Creates a canvas context menu with view-level and scene-level actions.
Optional params. debug: true exposes the
engineer-only Debug submenu. Default false.
Sets the active context for this menu.
Current canvas menu context.
Emits an event to current subscribers.
Event name.
Event payload.
Subscribes to a menu event.
Supported events currently include:
"shown""hidden"Event name.
Subscriber callback.
UI context menu with support for grouped items, nested submenus, context-sensitive titles, and context-sensitive enabled/visible state.
Item actions and state resolvers receive the current context.