(nodes: Map<string, GraphNode>)
| 283 | * Prepares metrics for all nodes in a graph |
| 284 | */ |
| 285 | export function prepareBlockMetrics(nodes: Map<string, GraphNode>): void { |
| 286 | for (const node of nodes.values()) { |
| 287 | node.metrics = getBlockMetrics(node.block) |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Creates a bounding box from position and dimensions |
no test coverage detected