I know hotkeys are available but I want to trigger undo and redo over a button click outside the viewer.
I have also tried trigger event for hotkeys but it doesn’t work.
Please suggest me something to use this default feature for undo and redo of annotations.
How to use this methods?
this.viewerInstance.CoreControls.AnnotationHistoryManager.undo();
This doesn’t work. Please let me know the actual way to invoke that method.