Skip to content

CanvasViewCanvasNodeBase

Unofficial

Base interface for canvas nodes, providing core editing and interaction methods.

Import:

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

Signature:

export interface CanvasViewCanvasNodeBase extends CanvasViewCanvasNodeBaseBase

Extends: CanvasViewCanvasNodeBaseBase

Methods

Method Returns Description
attach() unknown Attach the node to the canvas DOM.
(Inherited from CanvasViewCanvasNodeBaseBase)
blur() unknown Remove focus from the node.
destroy() unknown Destroy the node and release its resources.
detach() unknown Detach the node from the canvas DOM.
(Inherited from CanvasViewCanvasNodeBaseBase)
focus() unknown Set focus on the node.
initialize() unknown Initialize the node after construction.
isEditable() unknown Check whether this node supports editing.
mountContent() unknown Mount the node's content into the content container.
(Inherited from CanvasViewCanvasNodeBaseBase)
moveAndResize(arg1) unknown Move and resize the node to the specified bounds.
onClick(arg1) unknown Handle click events on the node.
onResizeDblclick(arg1, arg2) unknown Handle double-click on a resize handle to auto-size the node.
preDetach() unknown Perform cleanup before detaching the node.
(Inherited from CanvasViewCanvasNodeBaseBase)
render() unknown Render the node to the canvas.
startEditing(arg1?) unknown Enter editing mode for the node's content.
unloadChild() unknown Unload the child editor view.
unmountContent() unknown Unmount the node's content from the content container.
(Inherited from CanvasViewCanvasNodeBaseBase)
updateBreakpoint(arg1) unknown Update the rendering breakpoint based on the node's current size.
(Inherited from CanvasViewCanvasNodeBaseBase)

Links to this page: