Skip to content

CanvasMenu

Unofficial

Context menu and toolbar displayed on the canvas for node/edge actions.

Import:

import type { CanvasMenu } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface CanvasMenu

Properties

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: