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

Function laneCount

ui/src/lib/screens-model.ts:685–687  ·  view source on GitHub ↗
(layerGap: number)

Source from the content-addressed store, hash-verified

683
684/** How many lanes of pills fit between two rows `layerGap` apart. */
685export function laneCount(layerGap: number): number {
686 return Math.max(1, Math.floor((layerGap - BAND_MARGIN - PILL_HEIGHT / 2 - PILL_OFFSET) / LANE_STEP) + 1);
687}
688
689/**
690 * The words on a pill: an arrow for which way the transition runs relative to

Callers 3

placeLabelsFunction · 0.85
hoverPillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected