Pop and return the last redoable action.
()
| 541 | |
| 542 | /** Pop and return the last redoable action. */ |
| 543 | redo(): EditAction | null { |
| 544 | const action = this.redoStack.pop(); |
| 545 | if (action) { |
| 546 | this.undoStack.push(action); |
| 547 | } |
| 548 | return action ?? null; |
| 549 | } |
| 550 | |
| 551 | /** Check if undo is available. */ |
| 552 | canUndo(): boolean { |
no test coverage detected