MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / crossSize

Function crossSize

yaml-flow-editor/src/utils/layout.ts:474–477  ·  view source on GitHub ↗
(node: FlowNode)

Source from the content-addressed store, hash-verified

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.

Callers 1

applyCompactGridLayoutFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected