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

Function xOf

__tests__/ui-map-model.test.ts:294–297  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

292 // The handle order must follow the targets' left-to-right order, or the
293 // three edges cross each other inside the gap for no reason.
294 const xOf = (id: string) => {
295 const n = layout.nodes.find((m) => m.id === id)!;
296 return n.x + n.width / 2;
297 };
298 const targets = top.sourceHandles.map(
299 (id) => layout.edges.find((e) => e.id === id)!.target
300 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected