MCPcopy
hub / github.com/wavetermdev/waveterm / getNodeByBlockId

Method getNodeByBlockId

frontend/layout/lib/layoutModel.ts:1495–1502  ·  view source on GitHub ↗

* Get the layout node matching the specified blockId. * @param blockId The blockId that the returned node should contain. * @returns The node containing the specified blockId, null if not found.

(blockId: string)

Source from the content-addressed store, hash-verified

1493 * @returns The node containing the specified blockId, null if not found.
1494 */
1495 getNodeByBlockId(blockId: string): LayoutNode {
1496 for (const leaf of this.getter(this.leafs)) {
1497 if (leaf.data.blockId === blockId) {
1498 return leaf;
1499 }
1500 }
1501 return null;
1502 }
1503
1504 /**
1505 * Get a jotai atom containing the additional properties associated with a given node.

Callers 8

handleBackendActionMethod · 0.95
replaceBlockFunction · 0.80
refocusNodeFunction · 0.80
handle_setblockfocusMethod · 0.80
uxCloseBlockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected