commit | 92ef154c60eacd67c37be091dcdd8f6408b37113 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Tue Jun 09 19:38:38 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Jun 10 02:42:42 2015 +0000 |
tree | 10283991a8823f0798051d87858afaa0790e53d6 | |
parent | 48a91f77cbf65beded5a040454b1ccd32ac17bed [diff] |
Modified d3.js to use alternate force.tick() invocation for improved speed. Change-Id: I6d9e926817c13b5ef058e66ec1af509e22f1dea4
diff --git a/web/gui/src/main/webapp/tp/d3.js b/web/gui/src/main/webapp/tp/d3.js index b969927..fa4d7fa 100644 --- a/web/gui/src/main/webapp/tp/d3.js +++ b/web/gui/src/main/webapp/tp/d3.js
@@ -6215,7 +6215,12 @@ type: "start", alpha: alpha = x }); - d3.timer(force.tick); + //d3.timer(force.tick); + setTimeout(function tick(){ + force.tick(); + if(alpha >= .005); + setTimeout(tick, 0); + }, 0); } return force; };