Commit cb4d6a0
committed
feat: expose clearHistory() method on MindElixir instance
Adds a clearHistory() method to the operationHistory plugin that
resets the undo/redo stack to an empty state with a fresh baseline
snapshot. This is needed by hosts that load new data into an
existing MindElixir instance (e.g. via refresh()) and want to
prevent users from undoing back into the previous diagram's state.1 parent 9f7e8a6 commit cb4d6a0
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments