Browse Source

Only set backgroundColor if specified in setOptions

flowchartTest
Andrew Schwartz 9 years ago
parent
commit
729ee128bd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/graph3d/Graph3d.js

+ 2
- 1
lib/graph3d/Graph3d.js View File

@ -876,6 +876,7 @@ Graph3d.prototype.setOptions = function (options) {
if (options.zMax !== undefined) this.defaultZMax = options.zMax; if (options.zMax !== undefined) this.defaultZMax = options.zMax;
if (options.valueMin !== undefined) this.defaultValueMin = options.valueMin; if (options.valueMin !== undefined) this.defaultValueMin = options.valueMin;
if (options.valueMax !== undefined) this.defaultValueMax = options.valueMax; if (options.valueMax !== undefined) this.defaultValueMax = options.valueMax;
if (options.backgroundColor !== undefined) this._setBackgroundColor(options.backgroundColor);
if (options.cameraPosition !== undefined) cameraPosition = options.cameraPosition; if (options.cameraPosition !== undefined) cameraPosition = options.cameraPosition;
@ -904,7 +905,7 @@ Graph3d.prototype.setOptions = function (options) {
} }
} }
} }
this._setBackgroundColor(options.backgroundColor);
} }
this.setSize(this.width, this.height); this.setSize(this.width, this.height);

Loading…
Cancel
Save