|
|
@ -43,14 +43,16 @@ function Network (container, data, options) { |
|
|
|
} |
|
|
|
|
|
|
|
// set constant values
|
|
|
|
this.remainingOptions = { |
|
|
|
dataManipulation: { |
|
|
|
enabled: false, |
|
|
|
initiallyVisible: false |
|
|
|
}, |
|
|
|
this.options = {}; |
|
|
|
this.defaultOptions = { |
|
|
|
//dataManipulation: {
|
|
|
|
// enabled: false,
|
|
|
|
// initiallyVisible: false
|
|
|
|
//},
|
|
|
|
locale: 'en', |
|
|
|
locales: locales, |
|
|
|
locales: locales |
|
|
|
}; |
|
|
|
util.extend(this.options, this.defaultOptions); |
|
|
|
|
|
|
|
// containers for nodes and edges
|
|
|
|
this.body = { |
|
|
@ -247,6 +249,7 @@ Network.prototype.setOptions = function (options) { |
|
|
|
// the hierarchical system can adapt the edges and the physics to it's own options because not all combinations work with the hierarichical system.
|
|
|
|
options = this.layoutEngine.setOptions(options.layout, options); |
|
|
|
|
|
|
|
this.groups.setOptions(options.groups); |
|
|
|
this.nodesHandler.setOptions(options.nodes); |
|
|
|
this.edgesHandler.setOptions(options.edges); |
|
|
|
this.physics.setOptions(options.physics); |
|
|
|