Browse Source

fixed springs not calculating. added example, set inherit color to default ON

v3_develop
Alex de Mulder 10 years ago
parent
commit
5e3c2fea60
4 changed files with 39045 additions and 28992 deletions
  1. +28990
    -28990
      dist/vis.js
  2. +10053
    -0
      examples/network/28_world_cup_network_performance.html
  3. +1
    -1
      lib/network/Network.js
  4. +1
    -1
      lib/network/mixins/physics/PhysicsMixin.js

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


+ 10053
- 0
examples/network/28_world_cup_network_performance.html
File diff suppressed because it is too large
View File


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

@ -107,7 +107,7 @@ function Network (container, data, options) {
gap: 5, gap: 5,
altLength: undefined altLength: undefined
}, },
inheritColor: false // to, from, false, true (== from)
inheritColor: "from" // to, from, false, true (== from)
}, },
configurePhysics:false, configurePhysics:false,
physics: { physics: {

+ 1
- 1
lib/network/mixins/physics/PhysicsMixin.js View File

@ -95,7 +95,7 @@ exports._calculateForces = function () {
this._calculateGravitationalForces(); this._calculateGravitationalForces();
this._calculateNodeForces(); this._calculateNodeForces();
if (this.constants.springConstant > 0) {
if (this.constants.physics.springConstant > 0) {
if (this.constants.smoothCurves.enabled == true && this.constants.smoothCurves.dynamic == true) { if (this.constants.smoothCurves.enabled == true && this.constants.smoothCurves.dynamic == true) {
this._calculateSpringForcesWithSupport(); this._calculateSpringForcesWithSupport();
} }

Loading…
Cancel
Save