|
|
@ -305,6 +305,17 @@ exports._calculateSpringForce = function (node1, node2, edgeLength) { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
exports._cleanupPhysicsConfiguration = function() { |
|
|
|
if (this.physicsConfiguration !== undefined) { |
|
|
|
while (this.physicsConfiguration.hasChildNodes()) { |
|
|
|
this.physicsConfiguration.removeChild(this.physicsConfiguration.firstChild); |
|
|
|
} |
|
|
|
|
|
|
|
this.physicsConfiguration.parentNode.removeChild(this.physicsConfiguration); |
|
|
|
this.physicsConfiguration = undefined; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Load the HTML for the physics config and bind it |
|
|
|
* @private |
|
|
@ -706,3 +717,5 @@ function showValueOfRange (id,map,constantsVariableName) { |
|
|
|
this.moving = true; |
|
|
|
this.start(); |
|
|
|
} |
|
|
|
|
|
|
|
|