Browse Source

updated option handling for manipulation system

flowchartTest
Alex de Mulder 9 years ago
parent
commit
83a0cf1cd5
2 changed files with 4 additions and 5 deletions
  1. +3
    -0
      examples/network/01_basic_usage.html
  2. +1
    -5
      lib/network/modules/ManipulationSystem.js

+ 3
- 0
examples/network/01_basic_usage.html View File

@ -53,6 +53,9 @@
data.label = data.label + "i"
callback(data)
}
},
controlNodeStyle: {
shape:'square'
}
}}//{physics:{stabilization:false}};
var network = new vis.Network(container, data, options);

+ 1
- 5
lib/network/modules/ManipulationSystem.js View File

@ -74,11 +74,7 @@ class ManipulationSystem {
}
else {
this.options.enabled = true;
for (let prop in options) {
if (options.hasOwnProperty(prop)) {
this.options[prop] = options[prop];
}
}
util.deepExtend(this.options, options);
}
if (this.options.initiallyVisible === true) {
this.editMode = true;

Loading…
Cancel
Save