( arcs: readonly FileArc[], focusId: string | null, crowded: boolean )
| 464 | * neighbourhood, not about its out-edges. |
| 465 | */ |
| 466 | export function visibleArcs( |
| 467 | arcs: readonly FileArc[], |
| 468 | focusId: string | null, |
| 469 | crowded: boolean |
| 470 | ): FileArc[] { |
| 471 | if (!crowded) return [...arcs]; |
| 472 | if (!focusId) return []; |
| 473 | return arcs.filter((arc) => arc.ownerId === focusId || arc.targetId === focusId); |
| 474 | } |
| 475 | |
| 476 | /** Arcs that reach into a rendered line range. */ |
| 477 | export function arcsInRange(arcs: readonly FileArc[], first: number, last: number): FileArc[] { |
no outgoing calls
no test coverage detected