@plattar/plattar-ar-adapter 1.183.3 → 1.183.4
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/build/es2015/plattar-ar-adapter.js +32 -4
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +30 -4
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/configurator-controller.js +1 -1
- package/dist/embed/controllers/launcher-controller.js +1 -1
- package/dist/embed/controllers/vto-controller.js +1 -1
- package/dist/util/configurator-state.d.ts +1 -0
- package/dist/util/configurator-state.js +26 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -1811,7 +1811,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1811
1811
|
return this.getConfiguratorState();
|
|
1812
1812
|
case 5:
|
|
1813
1813
|
state = _context10.sent.state;
|
|
1814
|
-
first = state.
|
|
1814
|
+
first = state.firstActiveOfType("sceneproduct");
|
|
1815
1815
|
if (!first) {
|
|
1816
1816
|
_context10.next = 10;
|
|
1817
1817
|
break;
|
|
@@ -2474,7 +2474,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2474
2474
|
return this.getConfiguratorState();
|
|
2475
2475
|
case 5:
|
|
2476
2476
|
state = _context23.sent.state;
|
|
2477
|
-
first = state.
|
|
2477
|
+
first = state.firstActiveOfType("sceneproduct");
|
|
2478
2478
|
if (!first) {
|
|
2479
2479
|
_context23.next = 10;
|
|
2480
2480
|
break;
|
|
@@ -3663,7 +3663,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
3663
3663
|
return this.getConfiguratorState();
|
|
3664
3664
|
case 5:
|
|
3665
3665
|
state = _context36.sent.state;
|
|
3666
|
-
first = state.
|
|
3666
|
+
first = state.firstActiveOfType("sceneproduct");
|
|
3667
3667
|
if (!first) {
|
|
3668
3668
|
_context36.next = 10;
|
|
3669
3669
|
break;
|
|
@@ -4920,6 +4920,34 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4920
4920
|
}
|
|
4921
4921
|
return null;
|
|
4922
4922
|
}
|
|
4923
|
+
}, {
|
|
4924
|
+
key: "firstActiveOfType",
|
|
4925
|
+
value: function firstActiveOfType(type) {
|
|
4926
|
+
var states = this._state.states;
|
|
4927
|
+
if (states.length > 0) {
|
|
4928
|
+
var meta = this._state.meta;
|
|
4929
|
+
var found = states.find(function (productState) {
|
|
4930
|
+
var check = productState[meta.scene_product_index];
|
|
4931
|
+
if (check !== null && check !== undefined) {
|
|
4932
|
+
return productState.length === 3 && productState[meta.meta_index].type === type && productState[meta.meta_index].augment === true;
|
|
4933
|
+
}
|
|
4934
|
+
return false;
|
|
4935
|
+
});
|
|
4936
|
+
if (!found) {
|
|
4937
|
+
return null;
|
|
4938
|
+
}
|
|
4939
|
+
var data = {
|
|
4940
|
+
scene_product_id: found[meta.scene_product_index],
|
|
4941
|
+
product_variation_id: found[meta.product_variation_index],
|
|
4942
|
+
meta_data: {
|
|
4943
|
+
augment: found[meta.meta_index].augment || true,
|
|
4944
|
+
type: found[meta.meta_index].type || type
|
|
4945
|
+
}
|
|
4946
|
+
};
|
|
4947
|
+
return data;
|
|
4948
|
+
}
|
|
4949
|
+
return null;
|
|
4950
|
+
}
|
|
4923
4951
|
}, {
|
|
4924
4952
|
key: "length",
|
|
4925
4953
|
get: function get() {
|
|
@@ -5242,7 +5270,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
5242
5270
|
Object.defineProperty(exports, "__esModule", {
|
|
5243
5271
|
value: true
|
|
5244
5272
|
});
|
|
5245
|
-
exports["default"] = "1.183.
|
|
5273
|
+
exports["default"] = "1.183.4";
|
|
5246
5274
|
}, {}],
|
|
5247
5275
|
20: [function (require, module, exports) {
|
|
5248
5276
|
"use strict";
|