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

Function pillText

ui/src/lib/screens-model.ts:694–698  ·  view source on GitHub ↗
(info: { label: string }, edge: MapEdgeLayout, selected: string | null)

Source from the content-addressed store, hash-verified

692 * Empty when the edge has nothing to say (a single, unconditional transition).
693 */
694export function pillText(info: { label: string }, edge: MapEdgeLayout, selected: string | null): string {
695 if (!info.label) return '';
696 const arriving = selected !== null && edge.target === selected && edge.source !== selected;
697 return `${arriving ? '←' : '→'} ${info.label}`;
698}
699
700interface Rect {
701 x: number;

Callers 3

placeLabelsFunction · 0.85
hoverPillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected