Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Interface. Imodel Layout Engine

sprotty-protocol / IModelLayoutEngine

Interface: IModelLayoutEngine

Defined in: diagram-services.ts:63

This service is responsible for the “macro layout” of a model, that is the positioning and sizing of the main structural elements of a model. In a graph, macro layout affects positions of nodes and routings of edges, but not necessarily the layout of labels and compartments inside a node, which are often arranged on the client side (“micro layout”).

Methods

layout()

layout(model, index?): SModelRoot | Promise<SModelRoot>

Defined in: diagram-services.ts:64

Parameters

model

SModelRoot

index?

SModelIndex

Returns

SModelRoot | Promise<SModelRoot>