Skip to main content

Variable: LAYOUT_COLUMN_WIDTH

const LAYOUT_COLUMN_WIDTH: 300 = 300

Automatic layout for nodes that carry no position.

The algorithm is the one the AI draft generator uses (the service's AI draft layout), so a graph built in code lands on the canvas the same way a generated draft does: a left-to-right layered layout where each node sits one column after its deepest predecessor, nodes in a column are stacked and centred around y = 0, and unreachable nodes go in the first free column.