workflow / Exports / UniversalLayoutConfig
Interface: UniversalLayoutConfig
Layout configuration for automatic positioning
Table of contents
Properties
Properties
algorithm
• algorithm: string
Layout algorithm to use
Defined in
direction
• direction: "TB" | "BT" | "LR" | "RL"
Layout direction
Defined in
spacing
• spacing: Object
Spacing configuration
Type declaration
| Name | Type |
|---|---|
nodeSpacing | number |
levelSpacing | number |
groupSpacing? | number |
Defined in
alignment
• alignment: Object
Alignment preferences
Type declaration
| Name | Type |
|---|---|
horizontal | "left" | "center" | "right" |
vertical | "center" | "top" | "bottom" |
Defined in
bounds
• Optional bounds: Object
Canvas bounds
Type declaration
| Name | Type |
|---|---|
width | number |
height | number |
padding | number |
Defined in
options
• Optional options: Record<string, unknown>
Algorithm-specific options