Removes and returns the most recent redo record.
The record popped from the redo stack, or undefined when empty
Removes and returns the most recent undo record.
The record popped from the undo stack, or undefined when empty
Pushes a new undo record and clears redo history.
Use this when the user performs a new operation: any previously undone step can no longer be redone, so the redo stack is discarded.
When maxDepth is exceeded, the oldest undo record is discarded.
Undo record produced by AcDbDatabaseTransactionManager
Stores an undo record on the redo stack after popUndo.
Record that was just undone and may be redone
Pushes a record back onto the undo stack without clearing redo history.
Used when replaying a redo. Calling push in that situation would discard the remaining redo records, which made it impossible to redo more than one step in a row.
Record that was just redone
Manages undo and redo history for database changes.
Stores committed AcDbUndoRecord entries. push is the user-initiated entry point and clears the redo stack, while pushUndo only restores an undone record during a redo so the remaining redo records survive.