UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

23 lines (22 loc) 628 B
import { View } from '../chart/view.js'; import { BaseComponent } from '../components/base.js'; /** * view strategy 视图策略抽象类 * 规范 strategy 的实现 */ export declare abstract class ViewStrategy { abstract get name(): string; abstract get component(): string[]; components: BaseComponent[]; abstract init(): void; abstract render(): void; readonly usedComponent: string[]; readonly ctrl: View; get options(): import("../index.js").Options; constructor(view: View); /** * 根据当前策略初始化组件 */ initComponent(): void; destroy(): void; }