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

Function columnMiddle

__tests__/ui-flow-model.test.ts:485–485  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

483 const layout = buildFlowLayout([tall, alt], 'f1');
484 const at = (name: string) => layout.cards.find((c) => c.hop.node.name === name)!;
485 const columnMiddle = (name: string) => at(name).y + at(name).height / 2;
486 // `a` is alone in its column; `b`/`c` share the next one. Their midpoints line up.
487 expect(columnMiddle('a')).toBeCloseTo((at('b').y + at('c').y + at('c').height) / 2, 5);
488 });

Callers 1

Calls 1

atFunction · 0.70

Tested by

no test coverage detected