hx-white-board
Version:
```bash npm install hx-white-board ```
18 lines (17 loc) • 418 B
TypeScript
/**
* 快捷键功能
*/
import { Canvas } from 'fabric/fabric-impl';
import hotkeys from 'hotkeys-js';
import FabricCanvas from './index';
declare const keyNames: {
lrdu: string;
backspace: string;
ctrlz: string;
ctrly: string;
ctrlc: string;
ctrlv: string;
};
declare function hotKeys(canvas: Canvas, fabricCanvas: FabricCanvas): void;
export default hotKeys;
export { keyNames, hotkeys };