Skip to content

@graphty/layout / index / BfsLayoutOptions

Interface: BfsLayoutOptions ​

Defined in: indexed/bfs.ts:9

Options of the index-based breadth-first layout.

Extends ​

Properties ​

align? ​

readonly optional align?: LayerAlign

Defined in: indexed/bfs.ts:13

Default vertical.


center? ​

readonly optional center?: ArrayLike<number>

Defined in: indexed/common.ts:12

The centre (for random, the lowest corner of its cell, as in the legacy layout); missing components are 0. Default the origin.

Inherited from ​

CommonLayoutOptions.center


dim? ​

readonly optional dim?: 2 | 3

Defined in: indexed/common.ts:8

Components per row, 2 or 3; default 2.

Inherited from ​

CommonLayoutOptions.dim


scale? ​

readonly optional scale?: number

Defined in: indexed/common.ts:10

Size of the layout around its centre; default 1. What it measures is documented per layout.

Inherited from ​

CommonLayoutOptions.scale


seed? ​

readonly optional seed?: number | null

Defined in: indexed/common.ts:14

Seed of a layout that draws random numbers; a random seed when absent or null.

Inherited from ​

CommonLayoutOptions.seed


start? ​

readonly optional start?: NodeRef

Defined in: indexed/bfs.ts:11

The node the search starts from: its index, or { id }; default 0.