Browse Source

Merge pull request #1004 from ozydingo/develop

Don't change backgroundColor if not requested on setOptions
flowchartTest
Jos de Jong 9 years ago
parent
commit
57be317205
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.valueMin !== undefined) this.defaultValueMin = options.valueMin;
if (options.valueMax !== undefined) this.defaultValueMax = options.valueMax;
if (options.backgroundColor !== undefined) this._setBackgroundColor(options.backgroundColor);
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);

Loading…
Cancel
Save