UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

29 lines (28 loc) 726 B
/// <reference types="react" resolution-mode="require"/> /// <reference types="web" /> import { ChartOption, Size } from '../types/index.js'; import { View } from './view.js'; export declare class Chart extends View { chartEle: HTMLElement; ele: HTMLElement; width: number; height: number; private sizeObserver; constructor(props: ChartOption); /** * 绑定自动伸缩视图 */ private bindAutoFit; private unbindAutoFit; /** * 改变图表大小,重新渲染 (由 bbox内部处理) * @param width * @param height * @returns Chart */ changeSize: ({ width, height }: Size) => this; /** * 销毁图表 */ destroy(): void; }