(hop: WireTrailHop)
| 123 | } |
| 124 | |
| 125 | function arrow(hop: WireTrailHop): string { |
| 126 | return hop.dir === 'up' ? '←' : hop.dir === 'down' ? '→' : '·'; |
| 127 | } |
| 128 | |
| 129 | function nameList(hops: readonly WireTrailHop[]): string { |
| 130 | const names = hops.slice(0, MAX_NAMED_DECAYED).map((hop) => hop.name); |