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

Function mainSize

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

Source from the content-addressed store, hash-verified

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;

Callers 1

applyCompactGridLayoutFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected