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

20 lines
735 B
TypeScript

import { Disposable, Graph } from '@antv/x6';
import { KeyboardImpl } from './keyboard';
import './api';
export declare class Keyboard extends Disposable implements Graph.Plugin {
name: string;
private keyboardImpl;
options: KeyboardImpl.Options;
constructor(options?: KeyboardImpl.Options);
init(graph: Graph): void;
isEnabled(): boolean;
enable(): void;
disable(): void;
toggleEnabled(enabled?: boolean): this;
bindKey(keys: string | string[], callback: KeyboardImpl.Handler, action?: KeyboardImpl.Action): this;
trigger(key: string, action?: KeyboardImpl.Action): this;
clear(): this;
unbindKey(keys: string | string[], action?: KeyboardImpl.Action): this;
dispose(): void;
}