Skip to content

CanvasViewCanvasNodeBaseBase

Unofficial

Intermediate base interface for canvas nodes, adding lifecycle and content mounting methods.

Import:

import type { CanvasViewCanvasNodeBaseBase } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface CanvasViewCanvasNodeBaseBase extends CanvasViewCanvasNodeBaseBaseBase

Extends: CanvasViewCanvasNodeBaseBaseBase

Properties

Property Type Description
isAttached? unknown Whether the node is currently attached to the canvas DOM.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
isFocused? unknown Whether the node currently has focus.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
rect CanvasRect Bounding rectangle of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)

Methods

Method Returns Description
attach() unknown Attach the node to the canvas DOM.
blur() unknown Remove focus from the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
deselect() unknown Deselect the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
destroy() unknown Destroy the node and release its resources.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
detach() unknown Detach the node from the canvas DOM.
focus() unknown Set focus on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getBBox() unknown Get the bounding box of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getConnectedFiles() unknown Get all files connected to this node via edges.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getData() unknown Get the serialized data for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
initialize() unknown Initialize the node after construction.
isEditable() unknown Check whether this node supports editing.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
mountContent() unknown Mount the node's content into the content container.
moveAndResize(arg1) unknown Move and resize the node to the specified bounds.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
moveTo(arg1) unknown Move the node to the specified position.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onClick(arg1) unknown Handle click events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onConnectionPointerdown(arg1, arg2) unknown Handle pointer down on a connection handle to start edge creation.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onContextMenu(arg1) unknown Handle context menu events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onPointerdown(arg1) unknown Handle pointer down events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onResizeDblclick(arg1, arg2) unknown Handle double-click on a resize handle to auto-size the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onResizePointerdown(arg1, arg2) unknown Handle pointer down on a resize handle to start resizing.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
preDetach() unknown Perform cleanup before detaching the node.
render() unknown Render the node to the canvas.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
renderZIndex() unknown Render the node's z-index CSS property.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
resize(arg1) unknown Resize the node to the specified dimensions.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
select() unknown Mark the node as selected.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setColor(arg1, arg2) unknown Set the color of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setData(arg1) unknown Set the serialized data for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setIsEditing(arg1) unknown Set whether the node is in editing mode.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
showMenu(arg1) unknown Show the context menu for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
startEditing() unknown Enter editing mode for the node's content.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
unmountContent() unknown Unmount the node's content from the content container.
updateBreakpoint(arg1) unknown Update the rendering breakpoint based on the node's current size.
updateZIndex() unknown Update the z-index of the node in the stacking order.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)

Links to this page: