history.undo
undo(): voidUndo the most recent committed history step.
Calls undo() on every command in the top undo-stack entry in reverse
order, then moves that entry to the redo stack. Emits
"history:changed". No-op when the undo stack is empty.
Returns: void
Example
api.history.undo();
return api.history.getUndoStack();