@visactor/taro-vchart
Version:
Taro VChart 图表组件
40 lines (39 loc) • 1.01 kB
TypeScript
import type { IEvent, IOptions, IVChart, IChartProps, IDomRef, IVChartConstructor } from '../../typings';
export interface IProps {
chartConstructor: IVChartConstructor;
dpr: number;
domref: IDomRef;
mode?: string;
spec: object;
events?: IEvent[];
options?: IOptions;
onChartInit?: any;
onChartReady?: any;
onChartUpdate?: any;
}
interface ITTCanvas {
chartInstance: IVChart;
init: () => IVChart;
renderAsync: () => void;
updateSpec: (props: IChartProps) => void;
release: () => void;
}
export declare class TTCanvas implements ITTCanvas {
private chartConstructor;
private dpr;
private domref;
private mode;
private spec;
private events?;
private options?;
private onChartInit?;
private onChartReady?;
private onChartUpdate?;
chartInstance: IVChart;
constructor(props: IProps);
init(): IVChart;
renderAsync(): void;
updateSpec(props: IChartProps): void;
release(): void;
}
export {};