Creates a history manager that records the annotation changes of an annotation manager.
The annotation manager whose changes are recorded.
Starts an explicit batch spanning awaits; repeated calls return the same id. Cannot start while undo / redo is busy.
Discards only the records of the current explicit batch; the document and earlier undo / redo stay.
Whether there is a step to redo.
True when redo is possible.
Whether there is a step to undo.
True when undo is possible.
Clears the whole history, including an open batch.
Commits the explicit batch as one step; an empty batch is not recorded.
The committed history counts; an explicit batch is not counted before end. Each call returns an independent snapshot.
Whether there is a step to redo.
Whether there is a step to undo.
Number of steps that can be redone.
Number of steps that can be undone.
Whether an explicit batch (beginBatchOperation) is in progress.
True while a batch is open.
Includes queued requests not yet started; all native entry points share this state.
Redoes the last undone step. Queued behind pending writes and other undo / redo calls.
Removes every listener of every event.
Maximum number of steps (at least 1); the oldest are dropped when exceeded (setMaxHistorySize).
Captures the properties before a modification for later records; does not commit the document or add history.
Undoes the last step. Queued behind pending writes and other undo / redo calls.
Base class for objects that fire named events. Listener arguments are passed by position.