Commit Graph

20 Commits

Author SHA1 Message Date
Mike Bostock
b4896d57ef Fix the many-body force.
Mutating the tree deletes the accumulated charges!
2016-04-23 09:37:09 -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
8c2113f53c Fix manyBody force. 2016-04-22 09:55:12 -07:00
Mike Bostock
d6f45ffc53 Update to d3-quadtree 0.7. 2016-04-22 09:45:03 -07:00
Mike Bostock
dfe79d5c7d Add collision force. 2016-04-21 17:49:52 -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
377713e73d Increase default theta. 2016-04-20 17:52:10 -07:00
Mike Bostock
5b46023e88 Rename charge to strength. 2016-04-20 15:31:37 -07:00
Mike Bostock
fd9b00383a Handle coincident nodes. 2016-04-20 09:52:14 -07:00
Mike Bostock
9392d4e1b7 Update d3-quadtree. 2016-04-19 17:18:35 -07:00
Mike Bostock
3d449cd12d Remove unused var. 2016-04-16 08:00:59 -07:00
Mike Bostock
5a3d213812 Handle coincident nodes. 2016-04-11 11:03:07 -07:00
Mike Bostock
7ae3bbc451 Fix #10 - non-recursive many-body force. 2016-04-11 10:36:35 -07:00
Mike Bostock
1fe10b4c18 Variable charge forces. 2016-04-08 15:07:00 -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
13fd5ee8ce Remove dead code. 2016-04-07 13:13:16 -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