|
|
@ -85,11 +85,7 @@ class ConfigurationSystem { |
|
|
|
color: ['color','#848484'], |
|
|
|
highlight: ['color','#848484'], |
|
|
|
hover: ['color','#848484'], |
|
|
|
inherit: { |
|
|
|
enabled: true, |
|
|
|
source: ['from', 'to'], // from / to
|
|
|
|
useGradients: false |
|
|
|
}, |
|
|
|
inherit: ['from','to','both',true, false], |
|
|
|
opacity: [1, 0, 1, 0.05] |
|
|
|
}, |
|
|
|
dashes: { |
|
|
@ -272,7 +268,7 @@ class ConfigurationSystem { |
|
|
|
config = this.actualOptions.configure; |
|
|
|
} |
|
|
|
|
|
|
|
if (config === false) { |
|
|
|
if (config !== false) { |
|
|
|
this._create(config); |
|
|
|
} |
|
|
|
} |
|
|
@ -679,30 +675,9 @@ class ConfigurationSystem { |
|
|
|
this._makeRange(arr, value, path); |
|
|
|
if (arr[0] !== value) {this.changedOptions.push({path:path, value:value});} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* handle the string type of option. |
|
|
|
* TODO: Not sure what to do with this |
|
|
|
* @param optionName |
|
|
|
* @param string |
|
|
|
* @param value |
|
|
|
* @param path |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
_handleString(string, value, path) { |
|
|
|
if (string === 'string') { |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
//this._makeLabel(optionName, path);
|
|
|
|
//console.log('string', string, value, path);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* called to update the network with the new settings. |
|
|
@ -717,6 +692,8 @@ class ConfigurationSystem { |
|
|
|
|
|
|
|
_constructOptions(value,path, optionsObj = {}) { |
|
|
|
let pointer = optionsObj; |
|
|
|
value = value === 'true' ? true : value; |
|
|
|
value = value === 'false' ? false : value; |
|
|
|
for (let i = 0; i < path.length; i++) { |
|
|
|
if (pointer[path[i]] === undefined) { |
|
|
|
pointer[path[i]] = {}; |
|
|
|