feat: multiplayer undo / redo (#7348)
This commit is contained in:
@@ -69,9 +69,18 @@ export class API {
|
||||
return selectedElements[0];
|
||||
};
|
||||
|
||||
static getStateHistory = () => {
|
||||
static getUndoStack = () => {
|
||||
// @ts-ignore
|
||||
return h.history.stateHistory;
|
||||
return h.history.undoStack;
|
||||
};
|
||||
|
||||
static getRedoStack = () => {
|
||||
// @ts-ignore
|
||||
return h.history.redoStack;
|
||||
};
|
||||
|
||||
static getSnapshot = () => {
|
||||
return Array.from(h.store.snapshot.elements.values());
|
||||
};
|
||||
|
||||
static clearSelection = () => {
|
||||
|
||||
Reference in New Issue
Block a user