@mescius/dspdfviewer
Version:
Document Solutions PDF Viewer
37 lines (36 loc) • 1.43 kB
TypeScript
import GcPdfViewer from "../../GcPdfViewer";
import { UndoCommandSupport } from "./UndoCommandSupport";
/**
* The `LegacyUndoCommand` class provides support for undo and redo operations
* in the `GcPdfViewer` using its legacy API. It implements the `UndoCommandSupport`
* interface to ensure compatibility with the command-based undo/redo system.
*/
export declare class LegacyUndoCommand implements UndoCommandSupport {
viewer: GcPdfViewer;
/**
* Creates an instance of the `LegacyUndoCommand`.
*
* @param {GcPdfViewer} viewer - The `GcPdfViewer` instance associated with this undo command.
*/
constructor(viewer: GcPdfViewer);
/**
* The name of the command for identification.
*
* @type {string}
*/
name: string;
/**
* Executes the redo operation using the legacy API.
*
* @param {GcPdfViewer} viewer - The `GcPdfViewer` instance on which to perform the redo operation.
* @returns {Promise<void>} A promise that resolves when the redo operation is complete.
*/
execute(viewer: GcPdfViewer): Promise<void>;
/**
* Executes the undo operation using the legacy API.
*
* @param {GcPdfViewer} viewer - The `GcPdfViewer` instance on which to perform the undo operation.
* @returns {Promise<void>} A promise that resolves when the undo operation is complete.
*/
undo(viewer: GcPdfViewer): Promise<void>;
}