Fix incomplete commits

This commit is contained in:
Pitchaya Boonsarngsuk
2018-01-17 10:07:39 +00:00
parent 802402d413
commit 1d711f828d
5 changed files with 11 additions and 19 deletions

View File

@@ -354,23 +354,11 @@ function startHybridSimulation() {
hybridSimulation
.on("sampleTick", tickedHybrid)
.on("fullTick", tickedHybrid)
.on("sampleTick", ticked)
.on("fullTick", ticked)
.on("startFull", startedFull)
.on("end", endedHybrid);
function tickedHybrid() {
if (rendering === true) {
node
.attr("cx", function (d) {
return d.x;
})
.attr("cy", function (d) {
return d.y;
});
}
}
function startedFull() {
d3.selectAll(".nodes").remove();
// Add the nodes to DOM.