Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/x6-plugin-keyboard/lib/api.d.ts
T
2026-09-10 15:40:10 +08:00

14 lines
593 B
TypeScript

import { KeyboardImpl } from './keyboard';
declare module '@antv/x6/lib/graph/graph' {
interface Graph {
isKeyboardEnabled: () => boolean;
enableKeyboard: () => Graph;
disableKeyboard: () => Graph;
toggleKeyboard: (enabled?: boolean) => Graph;
bindKey: (keys: string | string[], callback: KeyboardImpl.Handler, action?: KeyboardImpl.Action) => Graph;
unbindKey: (keys: string | string[], action?: KeyboardImpl.Action) => Graph;
clearKeys: () => Graph;
triggerKey: (key: string, action: KeyboardImpl.Action) => Graph;
}
}