* 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)
| 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. |
no outgoing calls
no test coverage detected