Ir al contenido

Layout

Defined in: layout/Layout.ts:23

Abstract base class for diagram layouts.

new Layout(options?): Layout

Defined in: layout/Layout.ts:36

LayoutOptions = {}

Layout

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.

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


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


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


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

abstract apply(nodes, links): void

Defined in: layout/Layout.ts:46

Apply the layout to the given nodes and links.

Node[]

Link[]

void


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


layoutParts(parts): void

Defined in: layout/Layout.ts:183

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

readonly Part[]

void