(node: FlowNode)
| 472 | return direction === 'TB' ? dim.height : dim.width; |
| 473 | }; |
| 474 | const crossSize = (node: FlowNode) => { |
| 475 | const dim = nodeDimensions.get(node.id) || { width: DEFAULT_NODE_WIDTH, height: DEFAULT_NODE_HEIGHT }; |
| 476 | return direction === 'TB' ? dim.width : dim.height; |
| 477 | }; |
| 478 | |
| 479 | // Height budget per column: roughly 5 normal-sized nodes. |
| 480 | // Oversized nodes consume more budget → fewer nodes in that column. |
no test coverage detected