API REFERENCE
GridChartExportSpec
Fields, allowed values, and APIs that use GridChartExportSpec.
Type definition
A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.
export interface GridChartExportSpec {
readonly format: GridChartExportFormat;
readonly mimeType: string;
readonly filename: string;
readonly width: number;
readonly height: number;
readonly scale: number;
readonly pixelWidth: number;
readonly pixelHeight: number;
readonly background: string | null;
readonly backgroundSource: 'request' | 'theme' | 'default' | 'transparent';
readonly clamped: readonly ('width' | 'height' | 'scale')[];
}