rune-langium / visual-editor/src / computeLayout
Function: computeLayout()
ts
function computeLayout(
nodes,
edges,
options?): TypeGraphNode[];Defined in: packages/visual-editor/src/layout/dagre-layout.ts:75
Compute layout positions for ReactFlow nodes using dagre.
Returns a new array of nodes with updated positions. Does not mutate the input.
Parameters
| Parameter | Type |
|---|---|
nodes | TypeGraphNode[] |
edges | TypeGraphEdge[] |
options? | LayoutOptions |