Commit 55612c00 authored by marc duez's avatar marc duez

scatterplot.js: fix fastForward() needed for export of report

node movement are now made directly by the force simulation so it need to need to be applied after each computed frame
parent da25275d
......@@ -930,8 +930,12 @@ ScatterPlot.prototype = {
* (used for export a scatterplot screenshot without waiting for the clones have found a balance)
* */
fastForward: function() {
for (var i = 0; i < 500; i++) this.computeFrame()
this.drawFrame()
this.simulation.stop()
for (var i = 0; i < 200; i++) {
this.computeFrame()
this.simulation.tick()
this.drawFrame()
}
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment