Browse Source

fixed #974, requesting a redraw on update in case of physics being disabled.

flowchartTest
Alex de Mulder 9 years ago
parent
commit
8fe6408541
2 changed files with 16314 additions and 16309 deletions
  1. +16312
    -16308
      dist/vis.js
  2. +2
    -1
      lib/network/Network.js

+ 16312
- 16308
dist/vis.js
File diff suppressed because it is too large
View File


+ 2
- 1
lib/network/Network.js View File

@ -264,7 +264,7 @@ Network.prototype.bindEventListeners = function () {
// update shortcut lists
this._updateVisibleIndices();
this.physics.updatePhysicsData();
this.body.emitter.emit("_requestRedraw");
// call the dataUpdated event because the only difference between the two is the updating of the indices
this.body.emitter.emit("_dataUpdated");
});
@ -276,6 +276,7 @@ Network.prototype.bindEventListeners = function () {
this._updateValueRange(this.body.edges);
// start simulation (can be called safely, even if already running)
this.body.emitter.emit("startSimulation");
this.body.emitter.emit("_requestRedraw");
});
};

Loading…
Cancel
Save