Skip to main content

Home > @jsplumbtoolkit/core > Magnetizer > executeWithFocus

Magnetizer.executeWithFocus() method#

Run the magnetizer with the given element as its focus - the focus element will not be shifted.

Signature:

executeWithFocus(focus: string, options?: MagnetizerRunOptions<T>): Dictionary<{        original: PointXY;        current: PointXY;    }>;

Parameters#

ParameterTypeDescription
focusstring
optionsMagnetizerRunOptions<T>

Returns:

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