Ir al contenido

TreeLayoutOptions

Defined in: layout/TreeLayout.ts:8

Options for tree layout.

optional angle?: number

Defined in: layout/TreeLayout.ts:11

Angle in degrees for the tree’s growth direction (0=down, 90=right, 180=up, 270=left) in the non-radial layout, or the start angle in the radial layout. Default: 0


optional angleIncrement?: number

Defined in: layout/TreeLayout.ts:15

Angle increment for radial layout. Default: 45


optional center?: boolean

Defined in: layout/Layout.ts:17

Whether to center the layout. Default: true

LayoutOptions.center


optional direction?: "horizontal" | "vertical"

Defined in: layout/Layout.ts:15

Whether to arrange in a specific direction. Default: ‘vertical’

LayoutOptions.direction


optional nodeSpacing?: number

Defined in: layout/TreeLayout.ts:17

Node separation in the non-primary direction. Default: 30


optional padding?: number

Defined in: layout/Layout.ts:13

Border padding. Default: 20

LayoutOptions.padding


optional radial?: boolean

Defined in: layout/TreeLayout.ts:13

Whether to use radial layout. Default: false


optional spacing?: number

Defined in: layout/Layout.ts:11

Spacing between nodes. Default: 50

LayoutOptions.spacing