Skip to content

NodeInteractionLayer

Unofficial

Layer that handles user interactions with canvas nodes, such as resizing and connecting.

Import:

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

Signature:

export interface NodeInteractionLayer

Properties

PropertyTypeDescription
canvasCanvasViewCanvasReference to the parent canvas instance.
interactionElHTMLDivElementHTML element used for rendering interaction handles.
targetnullCurrently targeted node for interaction, or null if none.

Methods

MethodReturnsDescription
render()unknownRender the interaction handles for the current target node.
setTarget(arg1)unknownSet the target node for interaction.

Links to this page: