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

Function get

packages/core/src/registry/scene-api.ts:55–57  ·  view source on GitHub ↗
(id: AnyNodeId)

Source from the content-addressed store, hash-verified

53
54 return {
55 get<N extends AnyNode = AnyNode>(id: AnyNodeId): N | undefined {
56 return store.getState().nodes[id] as N | undefined
57 },
58
59 nodes() {
60 return store.getState().nodes

Callers 9

use-interactive.tsFile · 0.50
use-scene.tsFile · 0.50
createNodesActionFunction · 0.50
applyNodeChangesActionFunction · 0.50
updateNodesActionFunction · 0.50
deleteNodesActionFunction · 0.50
use-editor.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected