@zxh19890103/wik
Version:
The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.
28 lines (27 loc) • 875 B
TypeScript
import { Interactive } from '../../interfaces';
import { IStateAction } from '../../interfaces';
import { StateActionBase } from './StateAction.class';
/**
* Must be start with captical char.
*/
export type InteractiveStateActionName = 'Hover' | 'Highlight' | 'Select';
/**
* @todo
*
* 1. Support arguments
* 2. Support providing speicfied functions pairs
* 3. Support providing specified couple names: do & undo
*/
export declare class InteractiveStateAction extends StateActionBase implements IStateAction {
context: Interactive;
readonly type: InteractiveStateActionName;
private readonly payload;
private data;
private readonly doFn;
private readonly unDoFn;
private readonly fieldIs;
private applied;
constructor(context: Interactive, type: InteractiveStateActionName, payload?: any);
apply(): void;
revert(): void;
}