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

Function visibleArcs

ui/src/lib/filecode-model.ts:466–474  ·  view source on GitHub ↗
(
  arcs: readonly FileArc[],
  focusId: string | null,
  crowded: boolean
)

Source from the content-addressed store, hash-verified

464 * neighbourhood, not about its out-edges.
465 */
466export 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. */
477export function arcsInRange(arcs: readonly FileArc[], first: number, last: number): FileArc[] {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected