UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

9 lines (8 loc) 523 B
import type { Dom } from '../dom'; export type ModifierKey = 'alt' | 'ctrl' | 'meta' | 'shift' | 'space'; export declare function parseModifierKey(modifiers: string | ModifierKey[]): { or: ModifierKey[]; and: ModifierKey[]; }; export declare function isModifierKeyEqual(modifiers1?: string | ModifierKey[] | null, modifiers2?: string | ModifierKey[] | null): boolean; export declare function isModifierKeyMatch(e: Dom.EventObject | WheelEvent, modifiers?: string | ModifierKey[] | null, strict?: boolean): boolean;