UNPKG

@mescius/dsimageviewer

Version:

Document Solutions Image Viewer

22 lines (21 loc) 769 B
/** * Viewer transaction support. **/ export interface IViewerTransactionSupport { /** * Called when parent viewer requests confirm and apply changes, usually when the Ctrl+Enter or Enter key is pressed. **/ confirmChanges(): Promise<void | boolean> | void | boolean; /** * Called when parent viewer requests cancel changes, usually when the ESCAPE key is pressed. **/ cancelChanges(): Promise<void | boolean> | void | boolean; /** * Undo viewer transaction step. Return true if undo operation is consumed. **/ undoTransactionStep(): boolean | void; /** * Redo viewer transaction step. Return true if redo operation is consumed. **/ redoTransactionStep(): boolean | void; }