MCPcopy
hub / github.com/pascalorg/editor / createNode

Function createNode

packages/core/src/registry/scene-api.test.ts:11–13  ·  view source on GitHub ↗
(node: AnyNode)

Source from the content-addressed store, hash-verified

9 rootNodeIds: [] as AnyNodeId[],
10 dirtyNodes: new Set<AnyNodeId>(),
11 createNode(node: AnyNode) {
12 state.nodes[node.id] = node
13 },
14 updateNode(id: AnyNodeId, data: Partial<AnyNode>) {
15 const existing = state.nodes[id]
16 if (existing) state.nodes[id] = { ...existing, ...data } as AnyNode

Callers 15

commitCeilingDrawingFunction · 0.85
ElevatorPanelFunction · 0.85
RoofPanelFunction · 0.85
commitSlabDrawingFunction · 0.85
StairPanelFunction · 0.85
commitElevatorPlacementFunction · 0.85
commitRoofPlacementFunction · 0.85
commitZoneDrawingFunction · 0.85
createWallOnCurrentLevelFunction · 0.85
FloorplanPanelFunction · 0.85
FloatingLevelSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…