@visactor/vchart
Version:
charts lib based @visactor/VGrammar
59 lines (58 loc) • 2.99 kB
TypeScript
import type { IAxisCommonTheme } from '../axis/interface';
import type { IBrushTheme } from '../brush/interface';
import type { ICrosshairTheme } from '../crosshair/interface';
import type { IDataZoomTheme } from '../data-zoom/data-zoom/interface';
import type { IScrollBarTheme } from '../data-zoom/scroll-bar/interface';
import type { IIndicatorTheme } from '../indicator/interface';
import type { IDiscreteLegendTheme } from '../legend/discrete/interface';
import type { IColorLegendTheme, ISizeLegendTheme } from '../legend/continuous/interface';
import type { IMarkAreaTheme } from '../marker/mark-area/interface';
import type { IMarkLineTheme } from '../marker/mark-line/interface';
import type { IMarkPointTheme } from '../marker/mark-point/interface';
import type { IPlayerTheme } from '../player/interface';
import type { ITitleTheme } from '../title/interface';
import type { ITooltipTheme } from '../tooltip/interface';
import type { ComponentTypeEnum } from './type';
import type { ITotalLabelTheme } from '../label/interface';
import type { IPoptipTheme } from '../poptip/interface';
import type { IColorKey } from '../../theme/color-scheme/interface';
import type { Direction, IOrientType } from '../../typings';
import type { ICartesianAxisCommonTheme } from '../axis/cartesian/interface/theme';
import type { IPolarAxisCommonTheme } from '../axis/polar/interface/theme';
export interface IComponentTheme {
axis?: IAxisCommonTheme;
axisBand?: IAxisCommonTheme;
axisLinear?: IAxisCommonTheme;
axisX?: ICartesianAxisCommonTheme;
axisY?: ICartesianAxisCommonTheme;
axisRadius?: IPolarAxisCommonTheme;
axisAngle?: IPolarAxisCommonTheme;
[]?: IDiscreteLegendTheme;
[]?: IColorLegendTheme;
[]?: ISizeLegendTheme;
[]?: IMarkLineTheme;
[]?: IMarkLineTheme;
[]?: IMarkAreaTheme;
[]?: IMarkAreaTheme;
[]?: IMarkPointTheme;
[]?: IMarkPointTheme;
[]?: IMarkPointTheme;
[]?: ITooltipTheme<string | IColorKey>;
[]?: ICrosshairTheme;
[]?: IDataZoomTheme;
[]?: IScrollBarTheme;
[]?: IIndicatorTheme;
[]?: IPlayerTheme;
[]?: IBrushTheme;
[]?: ITitleTheme;
[]?: IPoptipTheme;
[]?: ITotalLabelTheme;
[]: any;
}
export type ComponentThemeWithDirection<T extends {
orient?: IOrientType;
}> = T & {
orient?: IOrientType;
[]?: Omit<T, 'orient'>;
[]?: Omit<T, 'orient'>;
};