Skip to content

Commit b133560

Browse files
committed
docs(js): clarify viz footer runtime comment
1 parent 7715097 commit b133560

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

js/src/viz-core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
// Browser runtime for the Visualize tool card display footer. This powers the
2+
// "Show Query" toggle, the custom "Save" menu, and the PNG/SVG export buttons.
3+
// The export path is slightly hacky because Vega owns the real download links,
4+
// so this file proxies those downloads through the footer buttons we control.
15
type ExportFormat = "png" | "svg";
26
type QuerychatAction =
37
| "show-query"
48
| "save-toggle"
59
| "save-png"
610
| "save-svg"
711
| "copy";
8-
912
export interface VizRuntimeAdapter {
1013
exportPlot(widgetId: string, format: ExportFormat, filename: string): void;
1114
}

0 commit comments

Comments
 (0)