|
|
@ -549,6 +549,11 @@ Network.prototype.setData = function(data, disableStart) { |
|
|
|
' parameter pair "nodes" and "edges", but not both.'); |
|
|
|
} |
|
|
|
|
|
|
|
// clean up in case there is anyone in an active mode of the manipulation. This is the same option as bound to the escape button.
|
|
|
|
if (this.constants.dataManipulation.enabled == true) { |
|
|
|
this._createManipulatorBar(); |
|
|
|
} |
|
|
|
|
|
|
|
// set options
|
|
|
|
this.setOptions(data && data.options); |
|
|
|
// set all data
|
|
|
@ -714,6 +719,7 @@ Network.prototype.setOptions = function (options) { |
|
|
|
throw new Error('Option "labels" is deprecated. Use options "locale" and "locales" instead.'); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// (Re)loading the mixins that can be enabled or disabled in the options.
|
|
|
|
// load the force calculation functions, grouped under the physics system.
|
|
|
|
this._loadPhysicsSystem(); |
|
|
|