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
Parameter | Type | Description |
---|---|---|
options | MagnetizerRunOptions<T> |
Returns:
Record<string, { original: PointXY; current: PointXY; }>