|
@@ -268,7 +268,7 @@ export default {
|
|
|
stopSimulation: function() {
|
|
stopSimulation: function() {
|
|
|
this.isSimulating = false
|
|
this.isSimulating = false
|
|
|
if (this.animFrameId) {
|
|
if (this.animFrameId) {
|
|
|
- cancelAnimationFrame(this.animFrameId)
|
|
|
|
|
|
|
+ clearTimeout(this.animFrameId)
|
|
|
this.animFrameId = null
|
|
this.animFrameId = null
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
if (!this.isSimulating) return
|
|
if (!this.isSimulating) return
|
|
|
|
|
|
|
|
var self = this
|
|
var self = this
|
|
|
- var nodes = this.nodeData
|
|
|
|
|
|
|
+ var nodes = this.simNodes
|
|
|
var edges = this.edges
|
|
var edges = this.edges
|
|
|
var p = this.physics
|
|
var p = this.physics
|
|
|
|
|
|