Commit Graph

15 Commits

Author SHA1 Message Date
Mike Bostock
3810e0fa11 Pass nodes to force.initialize. 2016-04-25 21:47:24 -07:00
Mike Bostock
b330311b4f Default empty nodes and links. 2016-04-25 17:04:51 -07:00
Mike Bostock
0f68d7259e Reset link force when links change. 2016-04-23 08:43:59 -07:00
Mike Bostock
19324ef21e Don’t rely on this. 2016-04-21 13:44:52 -07:00
Mike Bostock
900d9e1b24 Fix #1 - allow linking by string identifier. 2016-04-20 13:37:41 -07:00
Mike Bostock
166bda8cdd Initialize link.index, too. 2016-04-20 12:38:01 -07:00
Mike Bostock
541ef54098 Allow numeric source and target identifiers. 2016-04-20 12:33:10 -07:00
Mike Bostock
46eb5553a0 Per-link strength and distance. 2016-04-20 10:39:32 -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
0c881ead02 Cleaner. 2016-04-07 11:42:17 -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