mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 21:28:33 +08:00
937 B
937 B
title | order |
---|---|
Opeartion Stack | 13 |
pushStack(action, data, stackType)
Push operation。
Implemented the undo function, refer to here
Implemented the redo function, refer tohere
参数
Name | Type | Required | Description |
---|---|---|---|
action | string | false | operation type,the value of 'update' by default |
data | unknown | false | Stacked data |
stackType | 'redo' | 'undo' | false |
getUndoStack()
get undo stack。
getRedoStack()
get redo stack。
getStackData()
get the data in stack。
The return value type:
{
undoStack: StackData[];
redoStack: StackData[];
};
clearStack()
Clear the data in stack。