Export result
ChartExportFormat, ChartExportResult, ChartExportWarning: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
The export formats a chart offers.
type ChartExportFormat = 'png' | 'svg' | 'csv' | 'pdf';The file one export call produced, at its capture moment: the file that was handed to the browser, or would have been with download on. One call captures once; the host never recaptures to get the bytes.
interface ChartExportResult {
readonly format: ChartExportFormat;
readonly filename: string;
readonly blob: Blob;
readonly downloadStarted: boolean;
readonly warnings: readonly ChartExportWarning[];
}A non-fatal disclosure about an exported file: the file exists and is returned, but it is not everything the chart shows. A closed vocabulary; a new code is a contract change.
font-: an inherit-mode PNG (no export font set) in which a web font the live chart uses got no embedded face (its stylesheet is cross-origin, or its file could not be fetched), so its glyphs draw in a browser default font.fallback
interface ChartExportWarning {
readonly code: 'font-fallback';
readonly family: string;
}