@plattar/plattar-ar-adapter 1.167.3 → 1.167.5
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 +21 -34
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +18 -27
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/configurator-controller.d.ts +0 -1
- package/dist/embed/controllers/configurator-controller.js +0 -9
- package/dist/embed/controllers/plattar-controller.d.ts +1 -1
- package/dist/embed/controllers/plattar-controller.js +17 -0
- package/dist/embed/controllers/product-controller.d.ts +0 -1
- package/dist/embed/controllers/product-controller.js +0 -8
- package/dist/embed/controllers/vto-controller.d.ts +0 -1
- package/dist/embed/controllers/vto-controller.js +0 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1263,15 +1263,6 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1263
1263
|
const configAR = new configurator_ar_1.ConfiguratorAR({ state: await this.getConfiguratorState(), useARBanner: this.getBooleanAttribute("show-ar-banner") });
|
|
1264
1264
|
return configAR.init();
|
|
1265
1265
|
}
|
|
1266
|
-
removeRenderer() {
|
|
1267
|
-
if (this._element) {
|
|
1268
|
-
this.removeChild(this._element);
|
|
1269
|
-
this._element = null;
|
|
1270
|
-
return true;
|
|
1271
|
-
}
|
|
1272
|
-
this.removeMessengerObservers();
|
|
1273
|
-
return false;
|
|
1274
|
-
}
|
|
1275
1266
|
get element() {
|
|
1276
1267
|
return this._element;
|
|
1277
1268
|
}
|
|
@@ -1482,6 +1473,23 @@ class PlattarController {
|
|
|
1482
1473
|
};
|
|
1483
1474
|
});
|
|
1484
1475
|
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Removes the currently active renderer view from the DOM
|
|
1478
|
+
*/
|
|
1479
|
+
removeRenderer() {
|
|
1480
|
+
// remove all other children
|
|
1481
|
+
const shadow = this.parent.shadowRoot;
|
|
1482
|
+
if (shadow) {
|
|
1483
|
+
let child = shadow.lastElementChild;
|
|
1484
|
+
while (child) {
|
|
1485
|
+
shadow.removeChild(child);
|
|
1486
|
+
child = shadow.lastElementChild;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
this._element = null;
|
|
1490
|
+
this.removeMessengerObservers();
|
|
1491
|
+
return true;
|
|
1492
|
+
}
|
|
1485
1493
|
/**
|
|
1486
1494
|
* Returns the Parent Instance
|
|
1487
1495
|
*/
|
|
@@ -1766,14 +1774,6 @@ class ProductController extends plattar_controller_1.PlattarController {
|
|
|
1766
1774
|
return reject(new Error("ProductController.initAR() - minimum required attributes not set, use product-id as a minimum"));
|
|
1767
1775
|
});
|
|
1768
1776
|
}
|
|
1769
|
-
removeRenderer() {
|
|
1770
|
-
if (this._element) {
|
|
1771
|
-
this.removeChild(this._element);
|
|
1772
|
-
this._element = null;
|
|
1773
|
-
return true;
|
|
1774
|
-
}
|
|
1775
|
-
return false;
|
|
1776
|
-
}
|
|
1777
1777
|
get element() {
|
|
1778
1778
|
return this._element;
|
|
1779
1779
|
}
|
|
@@ -2014,15 +2014,6 @@ class VTOController extends plattar_controller_1.PlattarController {
|
|
|
2014
2014
|
const configAR = new configurator_ar_1.ConfiguratorAR({ state: await this.getConfiguratorState(), useARBanner: this.getBooleanAttribute("show-ar-banner") });
|
|
2015
2015
|
return configAR.init();
|
|
2016
2016
|
}
|
|
2017
|
-
removeRenderer() {
|
|
2018
|
-
if (this._element) {
|
|
2019
|
-
this.removeChild(this._element);
|
|
2020
|
-
this._element = null;
|
|
2021
|
-
return true;
|
|
2022
|
-
}
|
|
2023
|
-
this.removeMessengerObservers();
|
|
2024
|
-
return false;
|
|
2025
|
-
}
|
|
2026
2017
|
get element() {
|
|
2027
2018
|
return this._element;
|
|
2028
2019
|
}
|
|
@@ -2841,7 +2832,7 @@ exports.Util = Util;
|
|
|
2841
2832
|
},{}],16:[function(require,module,exports){
|
|
2842
2833
|
"use strict";
|
|
2843
2834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2844
|
-
exports.default = "1.167.
|
|
2835
|
+
exports.default = "1.167.5";
|
|
2845
2836
|
|
|
2846
2837
|
},{}],17:[function(require,module,exports){
|
|
2847
2838
|
"use strict";
|