Skip to main content

Interface: LayoutConfig

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

Layout configuration options

Properties​

center?​

optional center: Vector3Tuple

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

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


iterations?​

optional iterations: number

Defined in: src/mobjects/graph/graphTypes.ts:105

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


partition?​

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

Defined in: src/mobjects/graph/graphTypes.ts:109

For bipartite layout: partition sets


positions?​

optional positions: Map<VertexId, Vector3Tuple>

Defined in: src/mobjects/graph/graphTypes.ts:111

Custom positions map for custom layout


root?​

optional root: VertexId

Defined in: src/mobjects/graph/graphTypes.ts:107

For tree layout: root vertex


scale?​

optional scale: number

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

Scale factor for the layout. Default: 2


type​

type: LayoutType

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

Type of layout algorithm