|
|
@ -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"); |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|