(nodes: Map<string, MapNodeLayout>, id: string)
| 604 | } |
| 605 | |
| 606 | function xOf(nodes: Map<string, MapNodeLayout>, id: string): number { |
| 607 | const node = nodes.get(id); |
| 608 | return node ? node.x + node.width / 2 : 0; |
| 609 | } |
| 610 | |
| 611 | /** |
| 612 | * A module's horizontal pull: the mean position of everything it connects to. |