Skip to content

Commit

Permalink
Merge branch 'force-stop' of https://github.com/jasondavies/d3 into v…
Browse files Browse the repository at this point in the history
…2.8.0
  • Loading branch information
mbostock committed Feb 18, 2012
2 parents 80e0e78 + 4f37a48 commit 4345a0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions d3.layout.js
Expand Up @@ -255,6 +255,9 @@ d3.layout.force = function() {
}

function tick() {
// simulated annealing, basically
if ((alpha *= .99) < .005) return true;

var n = nodes.length,
m = links.length,
q,
Expand Down Expand Up @@ -319,9 +322,6 @@ d3.layout.force = function() {
}

event.tick({type: "tick", alpha: alpha});

// simulated annealing, basically
return (alpha *= .99) < .005;
}

force.nodes = function(x) {
Expand Down

0 comments on commit 4345a0c

Please sign in to comment.