@plattar/plattar-ar-adapter 1.158.1 → 1.158.3
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 +60 -44
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +15 -1
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/configurator-controller.js +4 -0
- package/dist/embed/controllers/plattar-controller.d.ts +6 -0
- package/dist/embed/controllers/plattar-controller.js +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -986,6 +986,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
986
986
|
this.parent.lockObserver();
|
|
987
987
|
this.parent.destroy();
|
|
988
988
|
this.setAttribute("product-id", product.scene_product_id);
|
|
989
|
+
this.removeAttribute("scene-id");
|
|
989
990
|
this.parent.unlockObserver();
|
|
990
991
|
const controller = this.parent.create();
|
|
991
992
|
if (controller) {
|
|
@@ -1016,6 +1017,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1016
1017
|
this.parent.lockObserver();
|
|
1017
1018
|
this.parent.destroy();
|
|
1018
1019
|
this.setAttribute("product-id", product.scene_product_id);
|
|
1020
|
+
this.removeAttribute("scene-id");
|
|
1019
1021
|
this.parent.unlockObserver();
|
|
1020
1022
|
const controller = this.parent.create();
|
|
1021
1023
|
if (controller) {
|
|
@@ -1087,6 +1089,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1087
1089
|
this.parent.lockObserver();
|
|
1088
1090
|
this.parent.destroy();
|
|
1089
1091
|
this.setAttribute("product-id", product.scene_product_id);
|
|
1092
|
+
this.removeAttribute("scene-id");
|
|
1090
1093
|
this.parent.unlockObserver();
|
|
1091
1094
|
const controller = this.parent.create();
|
|
1092
1095
|
if (controller) {
|
|
@@ -1143,6 +1146,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1143
1146
|
this.parent.lockObserver();
|
|
1144
1147
|
this.parent.destroy();
|
|
1145
1148
|
this.setAttribute("product-id", product.scene_product_id);
|
|
1149
|
+
this.removeAttribute("scene-id");
|
|
1146
1150
|
this.parent.unlockObserver();
|
|
1147
1151
|
const controller = this.parent.create();
|
|
1148
1152
|
if (controller) {
|
|
@@ -1430,6 +1434,16 @@ class PlattarController {
|
|
|
1430
1434
|
this.parent.setAttribute(attribute, value);
|
|
1431
1435
|
}
|
|
1432
1436
|
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Removes a particular attribute from HTML DOM
|
|
1439
|
+
*
|
|
1440
|
+
* @param attribute - The name of the attribute
|
|
1441
|
+
*/
|
|
1442
|
+
removeAttribute(attribute) {
|
|
1443
|
+
if (this.parent) {
|
|
1444
|
+
this.parent.removeAttribute(attribute);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1433
1447
|
/**
|
|
1434
1448
|
* Appends the provided element into the shadow-root of the parent element
|
|
1435
1449
|
* @param element - The element to append
|
|
@@ -2693,7 +2707,7 @@ exports.Util = Util;
|
|
|
2693
2707
|
},{}],16:[function(require,module,exports){
|
|
2694
2708
|
"use strict";
|
|
2695
2709
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2696
|
-
exports.default = "1.158.
|
|
2710
|
+
exports.default = "1.158.3";
|
|
2697
2711
|
|
|
2698
2712
|
},{}],17:[function(require,module,exports){
|
|
2699
2713
|
"use strict";
|