(node: FlowNode)
| 346 | |
| 347 | /** The lifeline one node is drawn on: its file, or its own name when it has no file. */ |
| 348 | export function moduleLabel(node: FlowNode): string { |
| 349 | const uri = node.ref.uri; |
| 350 | if (uri.length === 0) { |
| 351 | return sanitizeLabel(node.ref.name) || 'unknown'; |
| 352 | } |
| 353 | return sanitizeLabel(baseNameOf(uri)) || sanitizeLabel(node.ref.name) || 'unknown'; |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Which arrow of the box one step lights up, or none. |
no test coverage detected