Skip to main content

Home > @jsplumbtoolkit/core > Magnetizer > executeAtCenter

Magnetizer.executeAtCenter() method#

Run the magnetizer using an origin computed to be the center of all elements.

Signature:

executeAtCenter(options?: MagnetizerRunOptions<T>): Dictionary<{        original: PointXY;        current: PointXY;    }>;

Parameters#

ParameterTypeDescription
optionsMagnetizerRunOptions<T>

Returns:

Dictionary<{ original: PointXY; current: PointXY; }>