(e: OrderEdge)
| 473 | * simply goes on. |
| 474 | */ |
| 475 | export function lineWords(e: OrderEdge): string { |
| 476 | if (e.arm) return e.arm; |
| 477 | if (!e.when) return e.runs.length > 0 ? e.runs[e.runs.length - 1]! : ''; |
| 478 | const text = joinTokens(whenTokens(e.when)); |
| 479 | return text.length > EDGE_LABEL_MAX ? `${text.slice(0, EDGE_LABEL_MAX - 1)}…` : text; |
| 480 | } |
| 481 | |
| 482 | /** The point's words: the condition once, as the view says conditions, asking. */ |
| 483 | function forkLabel(on: string): string { |