Files
lan-manager/web/node_modules/@antv/g6-plugin/lib/menu/index.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

31 lines
928 B
TypeScript

import { IG6GraphEvent, Item } from '@antv/g6-core';
import Base, { IPluginBaseConfig } from '../base';
interface MenuConfig extends IPluginBaseConfig {
handleMenuClick?: (target: HTMLElement, item: Item) => void;
getContent?: (evt?: IG6GraphEvent) => HTMLDivElement | string;
offsetX?: number;
offsetY?: number;
shouldBegin?: (evt?: IG6GraphEvent) => boolean;
itemTypes?: string[];
trigger?: 'click' | 'contextmenu';
}
export default class Menu extends Base {
constructor(config?: MenuConfig);
getDefaultCfgs(): MenuConfig;
getEvents(): {
click: string;
touchend: string;
contextmenu?: undefined;
} | {
contextmenu: string;
click?: undefined;
touchend?: undefined;
};
init(): void;
protected onMenuShow(e: IG6GraphEvent): void;
private removeMenuEventListener;
private onMenuHide;
destroy(): void;
}
export {};