(layerGap: number)
| 683 | |
| 684 | /** How many lanes of pills fit between two rows `layerGap` apart. */ |
| 685 | export 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 |
no outgoing calls
no test coverage detected