UNPKG

@mescius/dsimageviewer

Version:

Document Solutions Image Viewer

37 lines (36 loc) 1.35 kB
import { GcImageViewer } from '../GcImageViewer'; import { ViewerOptions } from '../ViewerOptions'; export declare class KeyboardWorker { private readonly _viewer; options: Partial<ViewerOptions>; private _windowHandlers; private _topWindowHandlers; private _eventBusHandlers; private _shiftKeyPressedFlag; constructor(_viewer: GcImageViewer, options: Partial<ViewerOptions>); dispose(): void; applyOptions(options?: Partial<ViewerOptions> | null): void; tool_zoomPageWidth(): boolean; tool_zoomActualSize(): boolean; tool_zoomIn(): boolean; tool_zoomOut(): boolean; tool_print(): boolean; tool_undo(): boolean; tool_redo(): boolean; tool_open(): boolean; tool_save(): boolean; tool_rotate(): boolean; tool_rotateBackward(): boolean; tool_confirmChanges(): void; tool_cancelChanges(): void; handleShortcut(e: KeyboardEvent): any; private _bindWindowEvents; private _unbindWindowEvents; private _bindEventBusEvents; private _unbindEventBusEvents; onWindowKeyDown(event: KeyboardEvent): boolean; onWindowKeyUp(event: KeyboardEvent): boolean; onTopWindowKeyDown(event: KeyboardEvent): void; onTopWindowKeyUp(event: KeyboardEvent): void; _handleShiftKey(shiftKeyPressed: boolean): void; }