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

Function between

__tests__/ui-steps-model.test.ts:262–265  ·  view source on GitHub ↗
(id: string, zone: { x: number; width: number })

Source from the content-addressed store, hash-verified

260 const model = buildStepsModel(payload([anchor, a1, a2, b1, a3], links));
261 const at = (id: string) => model.layout.nodes.find((n) => n.id === id)!;
262 const between = (id: string, zone: { x: number; width: number }) => {
263 const n = at(id);
264 return n.x >= zone.x && n.x + n.width <= zone.x + zone.width;
265 };
266 const edge = (from: string, to: string) => model.layout.edges.find((e) => e.source === from && e.target === to)!;
267
268 it('names the regions in the order the walk met them, each holding its own boxes', () => {

Callers 1

Calls 1

atFunction · 0.70

Tested by

no test coverage detected