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

66 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { View } from '../chart';
import { IShape, Point } from '../dependents';
import { IAction, IInteractionContext, LooseObject } from '../interface';
/**
*
*/
export default class Context implements IInteractionContext {
/** 当前所有的 Action */
actions: IAction[];
/** 当前 View 实例 */
view: View;
/** 当前事件对象 */
event: LooseObject;
private cacheMap;
constructor(view: View);
/**
*
* @param params
* -
* -
*/
cache(...params: any[]): any;
/**
* Action
* @param name Action
*/
getAction(name: string): IAction;
/**
* Action
* @param action Action
*/
addAction(action: IAction): void;
/**
* Action
* @param action Action
*/
removeAction(action: IAction): void;
/**
*
*/
getCurrentPoint(): Point;
/**
* shape
* @returns current shape
*/
getCurrentShape(): IShape;
/**
* View
*/
isInPlot(): boolean;
/**
*
* @param name shape name
*/
isInShape(name: any): boolean;
/**
*
* @param name
*/
isInComponent(name?: string): boolean;
/**
*
*/
destroy(): void;
}