@vue-pdf-viewer/viewer
Version:
A vue-pdf-viewer component for Vue and Nuxt. Suitable for vue-pdf document.
19 lines (18 loc) • 430 B
TypeScript
/**
* Command Manager for Undo/Redo functionality
*/
export declare class CommandManager {
#private;
constructor(maxSize?: number);
add({ cmd, undo, post, mustExec }: {
cmd: () => void;
undo: () => void;
post?: () => void;
mustExec?: boolean;
}): void;
undo(): void;
redo(): void;
hasSomethingToUndo(): boolean;
hasSomethingToRedo(): boolean;
clear(): void;
}