redhotmagma-visualization 1.32.6 → 1.32.8
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/Three/Three2D.js +3 -2
- package/package.json +2 -2
- package/src/Three/Three2D.js +3 -2
package/Three/Three2D.js
CHANGED
|
@@ -1127,10 +1127,11 @@ var Three2D = /*#__PURE__*/function (_ThreeBase) {
|
|
|
1127
1127
|
key: "getModelPathFromDesignView",
|
|
1128
1128
|
value: function getModelPathFromDesignView(designView) {
|
|
1129
1129
|
var images = (0, _get2["default"])(designView, "images");
|
|
1130
|
+
var isImageArray = images instanceof Array;
|
|
1130
1131
|
|
|
1131
|
-
if (this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
|
|
1132
|
+
if (images && !isImageArray && this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
|
|
1132
1133
|
return images[this._materialVariantPath];
|
|
1133
|
-
} else if (images.hasOwnProperty(this._itemPath)) {
|
|
1134
|
+
} else if (images && !isImageArray && images.hasOwnProperty(this._itemPath)) {
|
|
1134
1135
|
return images[this._itemPath];
|
|
1135
1136
|
} else {
|
|
1136
1137
|
return this._materialVariantPath ? (0, _get2["default"])(designView, "images[".concat(this._materialVariantPath, "]")) : (0, _get2["default"])(designView, "images[".concat(this._itemPath, "]"));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redhotmagma-visualization",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.8",
|
|
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.32.
|
|
9
|
+
"@configuratorware/scripts": "1.32.8",
|
|
10
10
|
"@tweenjs/tween.js": "^17.6.0",
|
|
11
11
|
"console-polyfill": "^0.3.0",
|
|
12
12
|
"css-element-queries": "^1.2.3",
|
package/src/Three/Three2D.js
CHANGED
|
@@ -640,9 +640,10 @@ export class Three2D extends ThreeBase {
|
|
|
640
640
|
|
|
641
641
|
getModelPathFromDesignView(designView) {
|
|
642
642
|
const images = get(designView, "images");
|
|
643
|
-
|
|
643
|
+
const isImageArray = images instanceof Array;
|
|
644
|
+
if (images && !isImageArray && this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
|
|
644
645
|
return images[this._materialVariantPath];
|
|
645
|
-
} else if (images.hasOwnProperty(this._itemPath)) {
|
|
646
|
+
} else if (images && !isImageArray && images.hasOwnProperty(this._itemPath)) {
|
|
646
647
|
return images[this._itemPath];
|
|
647
648
|
} else {
|
|
648
649
|
return this._materialVariantPath
|