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

Function positions

__tests__/ui-map-model.test.ts:345–349  ·  view source on GitHub ↗
(l: MapLayout)

Source from the content-addressed store, hash-verified

343 OPTS
344 );
345 const positions = (l: MapLayout) =>
346 l.nodes
347 .map((n) => `${n.id}@${n.layer}:${Math.round(n.x)},${Math.round(n.y)}`)
348 .sort()
349 .join('|');
350 expect(positions(b)).toBe(positions(a));
351 });
352

Callers 1

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected