NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/lib/interaction/action/base.d.ts
2023-09-14 14:47:11 +08:00

30 lines
747 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IAction, IInteractionContext, LooseObject } from '../../interface';
/**
* Action 的基类
*/
declare abstract class Action<T = LooseObject> implements IAction {
/** Action 名字 */
name: any;
/** 上下文对象 */
context: IInteractionContext;
/** Action 配置 */
protected cfg: T;
/** 配置项的字段,自动负值到 this 上 */
protected cfgFields: string[];
constructor(context: IInteractionContext, cfg?: T);
/**
* 设置配置项传入的值
* @param cfg
*/
protected applyCfg(cfg: any): void;
/**
* Inits action提供给子类用于继承
*/
init(): void;
/**
* Destroys action
*/
destroy(): void;
}
export default Action;