(info: { label: string }, edge: MapEdgeLayout, selected: string | null)
| 692 | * Empty when the edge has nothing to say (a single, unconditional transition). |
| 693 | */ |
| 694 | export 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 | |
| 700 | interface Rect { |
| 701 | x: number; |
no outgoing calls
no test coverage detected