Skip to content

NodeGraphBind

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:53

The four controlled props + change handlers, ready to spread.

Properties

edges

edges: NodeGraphEdge[]

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:55


groups

groups: NodeGraphGroup[]

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:56


nodes

nodes: NodeGraphNode[]

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:54


onEdgesChange()

onEdgesChange: (edges) => void

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:59

Parameters

edges

NodeGraphEdge[]

Returns

void


onGroupsChange()

onGroupsChange: (groups) => void

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:60

Parameters

groups

NodeGraphGroup[]

Returns

void


onNodesChange()

onNodesChange: (nodes) => void

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:58

Parameters

nodes

NodeGraphNode[]

Returns

void


onSelectionChange()

onSelectionChange: (selection) => void

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:61

Parameters

selection

NodeGraphSelection

Returns

void


selection

selection: NodeGraphSelection

Defined in: src/components/editor/NodeGraph/useNodeGraph.ts:57