Skip to main content

Interface: LayoutConfig

Defined in: mobjects/graph/graphTypes.ts:89

Layout configuration options

Properties

center?

optional center: Vector3Tuple

Defined in: mobjects/graph/graphTypes.ts:95

Center point of the layout. Default: [0, 0, 0]


iterations?

optional iterations: number

Defined in: mobjects/graph/graphTypes.ts:97

Number of iterations for force-directed layouts. Default: 50


partition?

optional partition: [VertexId[], VertexId[]]

Defined in: mobjects/graph/graphTypes.ts:101

For bipartite layout: partition sets


positions?

optional positions: Map<VertexId, Vector3Tuple>

Defined in: mobjects/graph/graphTypes.ts:103

Custom positions map for custom layout


root?

optional root: VertexId

Defined in: mobjects/graph/graphTypes.ts:99

For tree layout: root vertex


scale?

optional scale: number

Defined in: mobjects/graph/graphTypes.ts:93

Scale factor for the layout. Default: 2


type

type: LayoutType

Defined in: mobjects/graph/graphTypes.ts:91

Type of layout algorithm