Hi, dear Gojser, I have encountered this problem:
Redo triggered by Ctrl-Y works, but calling diagram.undoManager.redo() not work.
My code are as following:
diagramUndo = () => {
if (this.canvas && this.canvas.undoManager.canUndo()) {
this.canvas.undoManager.undo()
}
}
diagramRedo = () => {
if (this.canvas && this.canvas.undoManager.canRedo()) {
this.canvas.undoManager.redo()
}
}
diagramDeleteSelection = () => {
if (this.canvas && this.canvas.canDeleteSelection) {
this.canvas.deleteSelection()
}
}
Have I missed something to call this API?