Skip to main content

Home > @jsplumbtoolkit/layout-spring > SpringLayout

SpringLayout class#

Signature:

export declare class SpringLayout extends AbsoluteBackedLayout<SpringLayoutParameters> 

Extends: AbsoluteBackedLayout<SpringLayoutParameters>

Constructors#

ConstructorModifiersDescription
(constructor)(params)Constructs a new instance of the SpringLayout class

Properties#

PropertyModifiersTypeDescription
_cacheArray<any>
_elementsDictionary<{ id: string; n: Vertex; sp: PointXY; p: PointXY; f: [number, number]; locked?: boolean; }>
_moveCountnumber
currentParametersSpringLayoutParameters
defaultMagnetizedboolean
maxxnumber
maxynumber
minxnumber
minynumber
typestring
typestaticstring
xScalenumber
yScalenumber

Methods#

MethodModifiersDescription
_vertexAdded(params, eventInfo)
_vertexMoved(id, x, y)
_vertexRemoved(obj)
begin(toolkit, parameters)
end(toolkit, parameters)
getDefaultParameters()
reset()
step(toolkit, parameters)