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

Function place

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

Source from the content-addressed store, hash-verified

601 // What a box leads to reads before what reaches it, and each side in the
602 // order the picture puts the other end — down the page, then across.
603 const place = (id: string): number => {
604 const n = nodeById.get(id);
605 return n ? n.y * 100000 + n.x : 0;
606 };
607 for (const list of stubs.values()) {
608 list.sort((a, b) => (a.dir === b.dir ? place(a.other) - place(b.other) : a.dir === 'out' ? -1 : 1));
609 }

Callers 3

packStubsFunction · 0.70
clusterFunction · 0.70
packRegionsFunction · 0.70

Calls 6

widthOfFunction · 0.85
kidsOfFunction · 0.85
spreadFunction · 0.70
layerOfFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected