redhotmagma-visualization 1.27.3 → 1.27.7
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.
package/package.json
CHANGED
|
@@ -73,7 +73,12 @@ export class Three2DLayers extends Three2D {
|
|
|
73
73
|
ctx.drawImage(image, 0, 0);
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
//@note: apply original image size for visualizations with no design areas (test phase)
|
|
77
|
+
const useOriginalImageSize = !this._currentDesignView?.designAreas?.length;
|
|
78
|
+
|
|
79
|
+
const combinedTexture = new Texture(
|
|
80
|
+
useOriginalImageSize ? canvas : optimizeTextureImage(canvas)
|
|
81
|
+
);
|
|
77
82
|
combinedTexture.premultiplyAlpha = true;
|
|
78
83
|
combinedTexture.originalSize = originalSize;
|
|
79
84
|
combinedTexture.needsUpdate = true;
|