redhotmagma-visualization 1.55.6 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,7 +168,7 @@ export var Three2DLayers = /*#__PURE__*/function (_Three2D) {
168
168
  //@note: apply original image size for visualizations with no design areas (test phase)
169
169
  useOriginalImageSize = !((_this$_currentDesignV = this._currentDesignView) !== null && _this$_currentDesignV !== void 0 && (_this$_currentDesignV = _this$_currentDesignV.designAreas) !== null && _this$_currentDesignV !== void 0 && _this$_currentDesignV.length);
170
170
  combinedTexture = new Texture(useOriginalImageSize ? canvas : optimizeTextureImage(canvas));
171
- combinedTexture.premultiplyAlpha = true;
171
+ combinedTexture.premultiplyAlpha = this._options.premultiplyAlpha;
172
172
  combinedTexture.originalSize = originalSize;
173
173
  combinedTexture.needsUpdate = true;
174
174
  _context3.n = 3;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "redhotmagma-visualization",
3
- "version": "1.55.6",
3
+ "version": "1.56.0",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./index.js",
7
7
  "dependencies": {
8
8
  "@babel/polyfill": "^7.12.1",
9
- "@configuratorware/scripts": "1.55.6",
9
+ "@configuratorware/scripts": "1.56.0",
10
10
  "@tweenjs/tween.js": "^17.6.0",
11
11
  "console-polyfill": "^0.3.0",
12
12
  "css-element-queries": "^1.2.3",
@@ -79,7 +79,7 @@ export class Three2DLayers extends Three2D {
79
79
  const combinedTexture = new Texture(
80
80
  useOriginalImageSize ? canvas : optimizeTextureImage(canvas)
81
81
  );
82
- combinedTexture.premultiplyAlpha = true;
82
+ combinedTexture.premultiplyAlpha = this._options.premultiplyAlpha;
83
83
  combinedTexture.originalSize = originalSize;
84
84
  combinedTexture.needsUpdate = true;
85
85