zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
34 lines (33 loc) • 791 B
TypeScript
import { View } from '../chart/view.js';
import { InteractionSteps } from '../types/index.js';
export declare type InteractionCtor = new (view: View, opt: unknown) => Interaction;
/**
* 交互的基类。
*/
export default class Interaction {
/** view 或者 chart */
protected view: View;
/** 配置项 */
steps: InteractionSteps;
private readonly callbackCaches;
constructor(view: View, steps: InteractionSteps);
/**
* 初始化。
*/
init(): void;
/**
* 绑定事件
*/
protected initEvents(): void;
private initActionObject;
private getActionCallback;
private readonly getActionObject;
/**
* 销毁事件
*/
protected clearEvents(): void;
/**
* 销毁。
*/
destroy(): void;
}