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

Function layerOf

ui/src/lib/steps-model.ts:1025–1026  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1023 // Layers count from the bottom, as the Map's do: the route of an edge and
1024 // which sides it uses fall out of the comparison alone.
1025 const layerOf = (id: string): number =>
1026 id === anchor.id ? globalLine + 1 : globalLine - (at.get(id)?.line ?? 0);
1027
1028 const nodesById = new Map<string, MapNodeLayout>();
1029 const place = (id: string, x: number, yy: number): void => {

Callers 1

placeFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected