UNPKG

@antv/x6-react-components

Version:

React components for building x6 editors

11 lines (10 loc) 412 B
import React, { MouseEvent } from 'react'; export declare const MenuContext: React.Context<MenuContext.Contexts>; export declare namespace MenuContext { interface Contexts { prefixCls: string; onClick: (name: string, e?: MouseEvent) => void; registerHotkey: (hotkey: string, handler: () => any) => void; unregisterHotkey: (hotkey: string, handler: () => any) => void; } }