Commit Graph

16 Commits

Author SHA1 Message Date
Mike Bostock
d1aff9acf0 Don’t require nodes on creation. 2016-04-23 09:38:08 -07:00
Mike Bostock
74bfd620a3 Better collision detection.
By looking into the future, we can better avoid collisions.

Also remove duplicate initialization of node positions.
2016-04-22 13:04:57 -07:00
Mike Bostock
9944ad19ed Fix for zero alphaDecay. 2016-04-22 10:04:24 -07:00
Mike Bostock
d6f45ffc53 Update to d3-quadtree 0.7. 2016-04-22 09:45:03 -07:00
Mike Bostock
b5ad5d589d Air it out a bit. 2016-04-21 15:52:14 -07:00
Mike Bostock
19324ef21e Don’t rely on this. 2016-04-21 13:44:52 -07:00
Mike Bostock
f628880885 Allow forces to share the quadtree. 2016-04-21 13:27:10 -07:00
Mike Bostock
321784c573 Fix #13 - initialize positions and velocities. 2016-04-20 15:24:49 -07:00
Mike Bostock
44aabfab2a Allow simulation.force(name, null). 2016-04-20 12:53:35 -07:00
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