NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/interaction/action/base.d.ts

30 lines
747 B
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
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;