MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / nodeOf

Function nodeOf

__tests__/ui-screens-model.test.ts:123–127  ·  view source on GitHub ↗
(model: ScreensModel, id: string)

Source from the content-addressed store, hash-verified

121}
122
123function nodeOf(model: ScreensModel, id: string): MapNodeLayout {
124 const node = model.layout.nodes.find((n) => n.id === id);
125 expect(node, `no node ${id}`).toBeTruthy();
126 return node!;
127}
128
129function layerOf(model: ScreensModel, id: string): number {
130 return nodeOf(model, id).layer;

Callers 3

layerOfFunction · 0.70
sidesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected