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
Returns:
Returns a promise that resolves when the operation is complete
Type
Promise.<void>

undo()

Undoes the most recent annotation change
Returns:
Returns a promise that resolves when the operation is complete
Type
Promise.<void>

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.