InternalNode
The InternalNode type is identical to the base Node type
but is extended with some additional properties used internally by React Flow. Some
functions and callbacks that return nodes may return an InternalNode.
Fields
| Name | Type | Default |
|---|---|---|
width | NodeType["width"] | |
height | NodeType["height"] | |
id | NodeType["id"]Unique id of a node. | |
position | NodeType["position"]Position of a node on the pane. | |
type | NodeType["type"]Type of node defined in nodeTypes | |
data | NodeType["data"] | |
sourcePosition | NodeType["sourcePosition"]Only relevant for default, source, target nodeType. Controls source position. | |
targetPosition | NodeType["targetPosition"]Only relevant for default, source, target nodeType. Controls target position. | |
selected | NodeType["selected"] | |
dragging | NodeType["dragging"] | |
draggable | NodeType["draggable"] | |
selectable | NodeType["selectable"] | |
connectable | NodeType["connectable"] | |
deletable | NodeType["deletable"] | |
dragHandle | NodeType["dragHandle"]A class name that can be applied to elements inside the node that allows those elements to act as drag handles, letting the user drag the node by clicking and dragging on those elements. | |
initialWidth | NodeType["initialWidth"] | |
initialHeight | NodeType["initialHeight"] | |
parentId | NodeType["parentId"] | |
zIndex | NodeType["zIndex"] | |
extent | NodeType["extent"]Boundary a node can be moved in. | |
expandParent | NodeType["expandParent"]When | |
ariaLabel | NodeType["ariaLabel"] | |
origin | NodeType["origin"]Origin of the node relative to its position. | |
handles | NodeType["handles"] | |
measured | { width?: number; height?: number; } | |
internals | { positionAbsolute: XYPosition; z: number; rootParentIndex?: number; userNode: NodeType; handleBounds?: NodeHandleBounds; bounds?: NodeBounds; } |