Skip to Content
πŸ“£ We just released Svelte Flow 1.0 Alpha β€” try it out and give us your feedback!
ReferenceTypesInternalNode

InternalNode<NodeType>

The internal node is an extension of the user nod. It is used internally and has some more information that is not exposed to the user directly, like positionAbsolute and handleBounds.

export type InternalNode<NodeType extends Node = Node> = { id: string; position: XYPosition; data: Node['data']; type?: Node['type']; sourcePosition?: Position; targetPosition?: Position; hidden?: boolean; selected?: boolean; dragging?: boolean; draggable?: boolean; selectable?: boolean; connectable?: boolean; resizing?: boolean; deletable?: boolean; dragHandle?: string; width?: number | null; height?: number | null; parentId?: string; zIndex?: number; extent?: 'parent' | CoordinateExtent; expandParent?: boolean; ariaLabel?: string; origin?: NodeOrigin; style?: string; class?: string; measured: { width?: number; height?: number; }; internals: { positionAbsolute: XYPosition; z: number; /** Holds a reference to the original node object provided by the user. * Used as an optimization to avoid certain operations. */ userNode: NodeType; handleBounds?: NodeHandleBounds; }; };

Fields

#id
string
#position
#data
T
#type?
U
#sourcePosition?
#targetPosition?
#hidden?
boolean
#selected?
boolean
#dragging?
boolean
#draggable?
boolean
#selectable?
boolean
#connectable?
boolean
#resizing?
boolean
#deletable?
boolean
#dragHandle?
string
#width?
number | null
#height?
number | null
#parentId?
string
#zIndex?
number
#extent?
"parent" | CoordinateExtent
#expandParent?
boolean
#ariaLabel?
string
#origin?
#style?
string
#class?
string

Notes

Last updated on