Skip to main content

Home > @jsplumbtoolkit/core > AbstractLayout > magnetize

AbstractLayout.magnetize() method#

Run the magnetizer.

Signature:

magnetize(params?: {        options?: MagnetizerRunOptions<any>;        origin?: PointXY;        focus?: string;    }): Dictionary<{        original: PointXY;        current: PointXY;    }>;

Parameters#

ParameterTypeDescription
params{ options?: MagnetizerRunOptions<any>; origin?: PointXY; focus?: string; }Options for the magnetizer.

Returns:

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