Creates an instance of ElkLayout and attaches it to a DiagramView. This allows the ElkLayout to manipulate the viewport of the DiagramView when fitting content.
the DiagramView instance to attach to
Automatically layout the diagram using the specified method and direction.
The layout method to use (flow, tree, circuit, stress, radial)
Optionaldirection: AutoLayoutDirectionThe direction for the layout (UP, DOWN, LEFT, RIGHT)
A promise that resolves to the array of laid out nodes
Automatically layout the diagram in a default flow.
Automatically layout the diagram in a top-to-bottom flow.
Automatically layout the diagram in a top-to-bottom tree.
Automatically layout the diagram in a bottom-to-top tree.
Automatically layout the diagram in a circuit.
Automatically layout the diagram in a network.
Automatically layout the diagram in a radial layout. N.B. Very poor results. To be evaluated before deployment.
ProtectedhandleProtectedbuildOptionalrelative_to: IRectOptionalcoordinates: CoordinateSystemProtectedbuildOptionalcoordinates: CoordinateSystemProtectedbuildProtectedbuildProtectedapply
ElkLayout is a utility class that provides methods to automatically layout nodes using ELK. Currently experimental and calls only layered flow layouts.