Home > @jsplumbtoolkit/layout-force-directed > ForceDirectedLayout
ForceDirectedLayout class
A layout that treats edges as springs, and places each vertex in proximity to other vertices to which it is connected. This is a rewrite of the original Spring layout, with several placement enhancements and typically a shorter run time. As of 5.7.0, existing users of the Spring layout are encouraged to switch to this layout, and new users are encouraged to prefer this layout over the Spring layout.
Signature:
export declare class ForceDirectedLayout extends AbsoluteBackedLayout<ForceDirectedLayoutParameters>
Extends: AbsoluteBackedLayout<ForceDirectedLayoutParameters>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Constructs a new instance of the ForceDirectedLayout class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultMagnetized | boolean | ||
type | string | ||
type | static | string |
Methods
Method | Modifiers | Description |
---|---|---|
_vertexAdded(params, eventInfo) | ||
_vertexRemoved(obj) | ||
getDefaultParameters() | Get default values for the layout |