Skip to content

LayoutEngineInput

Defined in: src/layout/engine.ts:15

The graph a layout engine positions. May change in a minor release until pluggable layout engines ship.

direction: LayoutDirection;

Defined in: src/layout/engine.ts:17

Direction the graph flows in.


edges: LayoutEngineEdge[];

Defined in: src/layout/engine.ts:19

Every edge to route, including ones that do not rank nodes (visualOnly).


nodes: LayoutEngineNode[];

Defined in: src/layout/engine.ts:23

Every node to position, containers and their children alike.


nodeSeparation: number;

Defined in: src/layout/engine.ts:21

Minimum horizontal gap between nodes in the same rank, in pixels.


padding: number;

Defined in: src/layout/engine.ts:25

Margin around the whole graph, in pixels.


rankSeparation: number;

Defined in: src/layout/engine.ts:27

Minimum gap between ranks, in pixels.