@zxh19890103/wik
Version:
The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.
22 lines (21 loc) • 482 B
TypeScript
import { IStateAction, IStateActionManager } from '../../interfaces';
export declare class StateActionManager implements IStateActionManager {
readonly undoLimit = 20;
readonly redoLimit = 20;
/**
* pushed
*/
private actions;
/**
* popped
*/
private actions_;
private last;
push(sa: IStateAction): this;
delete(tag: number): this;
pop(): this;
redo(): this;
}
export interface StateActionManager {
undo(): this;
}