Ir al contenido

LayeredDigraphLayout

Defined in: layout/LayeredDigraphLayout.ts:26

A layered (Sugiyama-style) layout for directed graphs. Assigns nodes to layers based on their longest path from the roots, then orders nodes within each layer to reduce edge crossings.

new LayeredDigraphLayout(options?): LayeredDigraphLayout

Defined in: layout/LayeredDigraphLayout.ts:30

LayeredDigraphLayoutOptions = {}

LayeredDigraphLayout

Layout.constructor

diagram: Diagram | null = null

Defined in: layout/Layout.ts:34

GoJS-compatible: the Diagram this layout is assigned to (set by Diagram.layout = ...), used by doLayout() when called with no explicit collection.

Layout.diagram

get isFinal(): boolean

Defined in: layout/Layout.ts:234

GoJS-compatible: Whether this is the final layout of a cycle.

boolean

set isFinal(value): void

Defined in: layout/Layout.ts:238

boolean

void

Layout.isFinal


get isInitial(): boolean

Defined in: layout/Layout.ts:225

GoJS-compatible: Whether this is the initial layout of the diagram.

boolean

set isInitial(value): void

Defined in: layout/Layout.ts:229

boolean

void

Layout.isInitial


get isOngoing(): boolean

Defined in: layout/Layout.ts:243

GoJS-compatible: Whether the layout is ongoing (auto-layout is active).

boolean

set isOngoing(value): void

Defined in: layout/Layout.ts:247

boolean

void

Layout.isOngoing


get network(): LayoutNetwork | null

Defined in: layout/Layout.ts:200

GoJS-compatible: The current layout network (or null).

LayoutNetwork | null

set network(value): void

Defined in: layout/Layout.ts:204

LayoutNetwork | null

void

Layout.network

apply(nodes, links): void

Defined in: layout/LayeredDigraphLayout.ts:41

Apply the layout to the given nodes and links.

Node[]

Link[]

void

Layout.apply


doLayout(collection?): void

Defined in: layout/Layout.ts:176

GoJS-compatible: Perform the layout on a collection of parts (or this diagram’s parts).

readonly Link[]

readonly Node[]

void

Layout.doLayout


layoutParts(parts): void

Defined in: layout/Layout.ts:183

GoJS-compatible: Perform the layout on the given parts.

readonly Part[]

void

Layout.layoutParts