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

Function isEdgeVisible

ui/src/lib/map-model.ts:567–570  ·  view source on GitHub ↗
(edge: MapEdgeLayout, selected: string | null)

Source from the content-addressed store, hash-verified

565 * links and its back-references come out — for that module only.
566 */
567export function isEdgeVisible(edge: MapEdgeLayout, selected: string | null): boolean {
568 if (selected !== null) return edge.source === selected || edge.target === selected;
569 return !edge.thin && !edge.back;
570}
571
572/**
573 * Where a link's port sits on a box: `x = left + width x (i+1)/(n+1)` along

Callers 2

mapSvgFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected