(block: BlockState)
| 272 | * Gets the dimensions and metrics for a block |
| 273 | */ |
| 274 | export function getBlockMetrics(block: BlockState): BlockMetrics { |
| 275 | if (isContainerType(block.type)) { |
| 276 | return getContainerMetrics(block) |
| 277 | } |
| 278 | |
| 279 | return getRegularBlockMetrics(block) |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Prepares metrics for all nodes in a graph |