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-public-latest';

Signature:

export interface CanvasViewCanvasNodeBaseBase extends CanvasViewCanvasNodeBaseBaseBase

Extends: CanvasViewCanvasNodeBaseBaseBase

Properties

PropertyTypeDescription
isAttached?unknownWhether the node is currently attached to the canvas DOM.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
isFocused?unknownWhether the node currently has focus.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
rectCanvasRectBounding rectangle of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)

Methods

MethodReturnsDescription
attach()unknownAttach the node to the canvas DOM.
blur()unknownRemove focus from the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
deselect()unknownDeselect the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
destroy()unknownDestroy the node and release its resources.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
detach()unknownDetach the node from the canvas DOM.
focus()unknownSet focus on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getBBox()unknownGet the bounding box of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getConnectedFiles()unknownGet all files connected to this node via edges.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
getData()unknownGet the serialized data for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
initialize()unknownInitialize the node after construction.
isEditable()unknownCheck whether this node supports editing.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
mountContent()unknownMount the node's content into the content container.
moveAndResize(arg1)unknownMove and resize the node to the specified bounds.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
moveTo(arg1)unknownMove the node to the specified position.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onClick(arg1)unknownHandle click events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onConnectionPointerdown(arg1, arg2)unknownHandle pointer down on a connection handle to start edge creation.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onContextMenu(arg1)unknownHandle context menu events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onPointerdown(arg1)unknownHandle pointer down events on the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onResizeDblclick(arg1, arg2)unknownHandle double-click on a resize handle to auto-size the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
onResizePointerdown(arg1, arg2)unknownHandle pointer down on a resize handle to start resizing.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
preDetach()unknownPerform cleanup before detaching the node.
render()unknownRender the node to the canvas.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
renderZIndex()unknownRender the node's z-index CSS property.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
resize(arg1)unknownResize the node to the specified dimensions.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
select()unknownMark the node as selected.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setColor(arg1, arg2)unknownSet the color of the node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setData(arg1)unknownSet the serialized data for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
setIsEditing(arg1)unknownSet whether the node is in editing mode.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
showMenu(arg1)unknownShow the context menu for this node.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
startEditing()unknownEnter editing mode for the node's content.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)
unmountContent()unknownUnmount the node's content from the content container.
updateBreakpoint(arg1)unknownUpdate the rendering breakpoint based on the node's current size.
updateZIndex()unknownUpdate the z-index of the node in the stacking order.
(Inherited from CanvasViewCanvasNodeBaseBaseBase)

Links to this page: