Commit Graph

7 Commits

Author SHA1 Message Date
Mike Bostock
71510f3725 Make force.nodes optional. 2016-04-20 09:53:56 -07:00
Mike Bostock
f08062fb16 Assign node.index in d3.forceSimulation.
Also get ready for d3-quadtree 0.3 and per-node forces.
2016-04-08 08:33:00 -07:00
Mike Bostock
a72896d49f Preserve alpha when setting alphaDecay. 2016-04-07 11:55:45 -07:00
Mike Bostock
bbaa4d61e5 Improvements.
Fix #7 - forces are now mutable, so it’s easier to change their settings and
they behave more like other configurable objects in D3 (though less like curves,
easing functions and interpolators).

Fix #9 - forces now have a dedicated interface rather than just being beforetick
listeners. This allows forces to be re-initialized when the nodes change.

Fix #10 - d3.forcePosition now initializes node positions and velocities.
2016-04-07 11:32:34 -07:00
Mike Bostock
c7380c13b0 Compute link bias. 2016-04-06 13:51:59 -07:00
Mike Bostock
2bebbfb2e7 Checkpoint many-body forces. 2016-04-06 13:21:23 -07:00
Mike Bostock
bc24b67ad6 Initial commit. 2016-04-05 13:50:36 -07:00