The following physics settings are renamed:
springCoeff -> springCoefficient
dragCoeff -> dragCoefficient
A new interactive demo is added to the library: http://anvaka.github.io/ngraph.forcelayout/.
Also the library is now available for consumption via CDN.
Major rework on how library treats dimensions of space. Previous versions of the library required concrete implementation for the given space (e.g. 3d, N-d).
With version 2.0, ngraph.forcealyout
generates code on the fly to support layout in the
given dimension. This comes at no extra performance cost to the consumer.
Second big change, is that custom forces can now be added to the library via simulator.addForce()
simulator.removeForce()
api.
With this change, the old physicsSimulator
factory methods became obsolete and were removed
(like settings.createQuadTree
, settings,createBounds
, etc. )
This was original implementation of the ngraph.forcelayout.