2025-12-29 00:21:03 +01:00
|
|
|
export interface MenuItemConfig {
|
|
|
|
|
label: string;
|
|
|
|
|
subitems?: MenuItemConfig[];
|
|
|
|
|
action?: () => void;
|
|
|
|
|
customHTML?: HTMLElement;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MenuAnchor =
|
|
|
|
|
| "LeftCenter"
|
|
|
|
|
| "RightCenter"
|
|
|
|
|
| "TopCenter"
|
|
|
|
|
| "BottomCenter"
|
|
|
|
|
| "TopLeft"
|
|
|
|
|
| "TopRight"
|
|
|
|
|
| "BottomLeft"
|
|
|
|
|
| "BottomRight";
|
|
|
|
|
|
|
|
|
|
export interface MenuConfig {
|
2025-12-29 02:34:46 +01:00
|
|
|
isGlobal?: boolean;
|
2025-12-29 00:21:03 +01:00
|
|
|
anchor: MenuAnchor;
|
|
|
|
|
activationRadius: number;
|
|
|
|
|
items: MenuItemConfig[];
|
|
|
|
|
}
|