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>): Record<string, {        original: PointXY;        current: PointXY;    }>;

Parameters#

ParameterTypeDescription
optionsMagnetizerRunOptions<T>

Returns:

Record<string, { original: PointXY; current: PointXY; }>