Skip to content

NodeGraphNode

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:28

Properties

data?

optional data: unknown

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:43

Arbitrary consumer payload passed to renderNode.


draggable?

optional draggable: boolean

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:48

When false, the node cannot be moved by drag. Selection still works.

Default

true

height?

optional height: 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?

optional selectable: 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

true

width?

optional width: 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.