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

Function xOf

ui/src/lib/map-model.ts:606–609  ·  view source on GitHub ↗
(nodes: Map<string, MapNodeLayout>, id: string)

Source from the content-addressed store, hash-verified

604}
605
606function xOf(nodes: Map<string, MapNodeLayout>, id: string): number {
607 const node = nodes.get(id);
608 return node ? node.x + node.width / 2 : 0;
609}
610
611/**
612 * A module's horizontal pull: the mean position of everything it connects to.

Callers 1

buildMapLayoutFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected