Skip to main content

Home > @jsplumbtoolkit/core > AbstractLayout > layout

AbstractLayout.layout() method#

Runs the layout, without resetting calculated or user-provided positions beforehand. If the subclass has defined a begin method, that will be called first. Then, the subclass's step method will be called repeatedly, until the subclass makes a call to _super.setDone.

Signature:

layout(onComplete: LayoutResultsFunction, magnetizeAfterLayout: boolean): void;

Parameters#

ParameterTypeDescription
onCompleteLayoutResultsFunction
magnetizeAfterLayoutboolean

Returns:

void