(node: FlowNode)
| 468 | |
| 469 | // Stacking dimension helpers (TB: stack vertically, LR: stack horizontally) |
| 470 | const mainSize = (node: FlowNode) => { |
| 471 | const dim = nodeDimensions.get(node.id) || { width: DEFAULT_NODE_WIDTH, height: DEFAULT_NODE_HEIGHT }; |
| 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; |
no test coverage detected