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

PropertyTypeDescription
canvasCanvasViewCanvasReference to the parent canvas instance.
containerElHTMLDivElementOuter container element for the menu.
menuElHTMLDivElementElement containing the menu buttons and controls.
selectionCanvasSelectionReference to the current canvas selection.

Methods

MethodReturnsDescription
render(arg1)unknownRender the menu for the given selection or context.
updateZIndex(arg1)unknownUpdate the menu's z-index to stay above the selected items.

Links to this page: