(ids: string[])
| 477 | const depthOf = new Map(payload.steps.map((s) => [s.id, s.depth])); |
| 478 | const deepest = Math.max(0, ...payload.steps.map((s) => s.depth)); |
| 479 | const layering = (ids: string[]): Map<string, number> => |
| 480 | new Map(ids.map((id) => [id, deepest - (depthOf.get(id) ?? deepest)])); |
| 481 | |
| 482 | layout = buildMapLayout( |
| 483 | { modules, links }, |