new AnnotationHistoryManager(documentViewer)
Parameters:
| Name | Type | Description |
|---|---|---|
documentViewer |
core.DocumentViewer | The DocumentViewer instance to which this AnnotationHistoryManager belongs. |
Methods
-
canRedo()
-
Returns whether there are any annotation actions that can be redone.
Returns:
true if there are annotation actions that can be redone, false otherwise.
- Type
- boolean
-
canUndo()
-
Returns whether there are any annotation actions that can be undone.
Returns:
true if there are annotation actions that can be undone, false otherwise.
- Type
- boolean
-
clear()
-
Clears the annotation history.
-
redo()
-
Redoes the last undone annotation action. The annotationChanged event will be fired with a "redo" action.
-
undo()
-
Undoes the last annotation action. The annotationChanged event will be fired with an "undo" action.