interface CoreLayout {
    createLayout(options: LayoutOptions): Layouts;
    layout(layout: LayoutOptions): Layouts;
    makeLayout(options: LayoutOptions): Layouts;
}

Hierarchy (view full)

Methods

  • Get a new layout, which can be used to algorithmically position the nodes in the graph.

    You must specify options.name with the name of the layout you wish to use.

    This function creates and returns a layout object. You may want to keep a reference to the layout for more advanced usecases, such as running multiple layouts simultaneously. Note that you must call layout.run() in order for it to affect the graph. An analogue to make a layout on a subset of the graph exists as eles.makeLayout().

    Parameters

    Returns Layouts