Skip to content

workflow / Exports / UniversalLayoutConfig

Interface: UniversalLayoutConfig

Layout configuration for automatic positioning

Table of contents

Properties

Properties

algorithm

algorithm: string

Layout algorithm to use

Defined in

types/universal-types.ts:227


direction

direction: "TB" | "BT" | "LR" | "RL"

Layout direction

Defined in

types/universal-types.ts:230


spacing

spacing: Object

Spacing configuration

Type declaration

NameType
nodeSpacingnumber
levelSpacingnumber
groupSpacing?number

Defined in

types/universal-types.ts:233


alignment

alignment: Object

Alignment preferences

Type declaration

NameType
horizontal"left" | "center" | "right"
vertical"center" | "top" | "bottom"

Defined in

types/universal-types.ts:240


bounds

Optional bounds: Object

Canvas bounds

Type declaration

NameType
widthnumber
heightnumber
paddingnumber

Defined in

types/universal-types.ts:246


options

Optional options: Record<string, unknown>

Algorithm-specific options

Defined in

types/universal-types.ts:253

Released under the MIT License.