Class: AnnotationHistoryManager

CoreControls. AnnotationHistoryManager

The manager of the Annotation history state for undoing and redoing annotation changes

new AnnotationHistoryManager()

Methods


canRedo()

Returns whether there is a change available to redo
Returns:
Whether there is a change that can be redone or not
Type
boolean

canUndo()

Returns whether there is a change available to undo
Returns:
Whether there is a change that can be undone or not
Type
boolean

clear()

Clears the undo/redo history so that no older changes can be undone.

redo()

Reapplies the most recent annotation change that was undone

undo()

Undoes the most recent annotation change

Events


historyChanged

Triggered when the annotation history stack changes. This could be used to check the canUndo or canRedo functions if their value has changed.