UNPKG

gem-panel

Version:

A custom element <gem-panel>, let you easily create layout similar to Adobe After Effects.

28 lines 856 B
import { GemElement } from '@mantou/gem'; export interface MenuItem { text: string; disabled?: boolean; selected?: boolean; handle?: () => void; menu?: MenuItem[]; } declare type MenuState = { activeElement: HTMLElement | null; open: boolean; menuStack: { menu: MenuItem[]; x: number; y: number; }[]; }; export declare const menuStore: import("@mantou/gem").Store<MenuState>; export declare function openContextMenu(activeElement: HTMLElement | null, x: number, y: number, menu: MenuItem[]): void; export declare function pointerDownHandle(): void; export declare class GemPanelMenuElement extends GemElement { #private; stopPropagation: (evt: Event) => void; mounted: () => void; render: () => import("@mantou/gem").TemplateResult; } export {}; //# sourceMappingURL=menu.d.ts.map