(ids: string[])
| 416 | // Row 0 is the bottom, so the anchor — nothing happens before it — is on top. |
| 417 | const deepest = Math.max(0, ...graph.depth.values()); |
| 418 | const layering = (ids: string[]): Map<string, number> => |
| 419 | new Map(ids.map((id) => [id, deepest - (graph.depth.get(id) ?? deepest)])); |
| 420 | |
| 421 | const layout: MapLayout = buildMapLayout( |
| 422 | { modules, links }, |