UNPKG

canvas-editor-pdf

Version:
18 lines (16 loc) 629 B
import { Draw } from '@hufe921/canvas-editor/dist/src/editor/core/draw/Draw'; import { IRegisterShortcut } from '@hufe921/canvas-editor/dist/src/editor/interface/shortcut/Shortcut'; import { Command } from '@hufe921/canvas-editor'; export declare class Shortcut { private command; private globalShortcutList; private agentShortcutList; constructor(draw: Draw, command: Command); private _addEvent; removeEvent(): void; private _addShortcutList; registerShortcutList(payload: IRegisterShortcut[]): void; private _globalKeydown; private _agentKeydown; private _execute; }