NodeGraphNode
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:28
Properties
data?
optionaldata:unknown
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:43
Arbitrary consumer payload passed to renderNode.
draggable?
optionaldraggable:boolean
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:48
When false, the node cannot be moved by drag. Selection still works.
Default
trueheight?
optionalheight:number
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:41
Override the auto-measured height of the node body. See width.
id
id:
string
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:30
Stable identity.
position
position:
Point2D
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:32
Position in world coordinates (top-left corner of the node body).
selectable?
optionalselectable:boolean
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:54
When false, the node cannot be selected (clicks pass through to the background). Drag is also disabled.
Default
truewidth?
optionalwidth:number
Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:39
Override the auto-measured width of the node body. Use this when you need fixed-size nodes. When omitted, the library measures the rendered node DOM and uses that size for hit-testing, marquee selection, and minimap geometry.