UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

67 lines (66 loc) 1.48 kB
export declare type Theme = LightTheme | DarkTheme | CustomTheme | SystemTheme; /************************************************ * 待确定 * ************************************************/ interface Legend { width?: number; stroke?: string; fill?: string; } interface Title { width?: number; stroke?: string; fill?: string; } /***********************************************************/ interface Axis { stroke?: string; font?: string; tickWidth?: number; tickStroke?: string; gridWidth?: number; gridStroke?: string; } interface Shape { stroke?: string; width?: string; fill?: string; point?: Point; } interface Point { size?: number; } interface Tooltip { background?: string; color?: string; activeBg?: string; } export interface ThemeOptions { colorVar: Record<string, string>; backgroundColor?: string; title?: Title; legend?: Legend; axis?: Axis; xAxis?: Axis; yAxis?: Axis; shape?: Shape; tooltip?: Tooltip; gauge?: Gauge; } interface Gauge { textColor: string; descriptionColor: string; } export declare type LightTheme = { type?: 'light'; } & ThemeOptions; export declare type DarkTheme = { type?: 'dark'; } & ThemeOptions; export declare type CustomTheme = { type?: string; } & ThemeOptions; export declare type SystemTheme = { type?: 'system'; } & ThemeOptions; export {};