(id: string, stub: StepStub)
| 566 | const nodeById = new Map(layout.nodes.map((n) => [n.id, n])); |
| 567 | const pitch = NODE_HEIGHT + layerGap; |
| 568 | const add = (id: string, stub: StepStub): void => { |
| 569 | stubs.set(id, [...(stubs.get(id) ?? []), stub]); |
| 570 | }; |
| 571 | for (const edge of layout.edges) { |
| 572 | const from = nodeById.get(edge.source); |
| 573 | const to = nodeById.get(edge.target); |