CanvasMenu
Unofficial
Context menu and toolbar displayed on the canvas for node/edge actions.
Import:
import type { CanvasMenu } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface CanvasMenuProperties
| Property | Type | Description | |
|---|---|---|---|
| canvas | CanvasViewCanvas | Reference to the parent canvas instance. | |
| containerEl | HTMLDivElement | Outer container element for the menu. | |
| menuEl | HTMLDivElement | Element containing the menu buttons and controls. | |
| selection | CanvasSelection | Reference to the current canvas selection. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| render(arg1) | unknown | Render the menu for the given selection or context. | |
| updateZIndex(arg1) | unknown | Update the menu's z-index to stay above the selected items. |
Links to this page: