@visactor/vchart
Version:
charts lib based @visactor/VGrammar
41 lines (40 loc) • 1.53 kB
TypeScript
import type { LayoutCallBack } from '../../layout/interface';
import type { IRenderOption } from '../../compile/interface';
import type { IModelOption, IModelSpecInfo } from '../../model/interface';
import type { IBoundsLike } from '@visactor/vutils';
import type { ISeriesSpecInfo } from '../../series/interface';
import type { IRegionSpecInfo } from '../../region/interface';
import type { IPerformanceHook, TooltipActiveType } from '../../typings';
export interface IChartOption extends Omit<IModelOption, 'getChartViewRect' | 'getChartLayoutRect' | 'globalScale' | 'getChart' | 'getSeriesData' | 'animation'> {
container: HTMLElement | null;
canvas?: HTMLCanvasElement | OffscreenCanvas | string;
modeParams?: IRenderOption['modeParams'];
viewBox?: IBoundsLike;
layout?: LayoutCallBack;
disableTriggerEvent?: boolean;
componentShowContent?: {
tooltip?: boolean | Partial<Record<TooltipActiveType, boolean>>;
crosshair?: boolean;
};
performanceHook?: IPerformanceHook;
}
export interface IChartSpecTransformerOption extends Partial<IChartOption> {
seriesType?: string;
}
export interface IChartSpecInfo {
region?: IRegionSpecInfo[];
series?: ISeriesSpecInfo[];
component?: Record<string, Array<IModelSpecInfo>>;
}
export interface IChartCreatedOption {
}
export interface IChartInitOption {
}
export interface IChartUpdateOption {
}
export interface IChartLayoutOption {
}
export interface IChartEvaluateOption {
}
export interface IChartRenderOption {
}