@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.
@@ -1881,17 +1881,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1881
1881
  }
1882
1882
  return _InitARGenerated;
1883
1883
  }())
1884
- }, {
1885
- key: "removeRenderer",
1886
- value: function removeRenderer() {
1887
- if (this._element) {
1888
- this.removeChild(this._element);
1889
- this._element = null;
1890
- return true;
1891
- }
1892
- this.removeMessengerObservers();
1893
- return false;
1894
- }
1895
1884
  }, {
1896
1885
  key: "element",
1897
1886
  get: function get() {
@@ -2220,9 +2209,28 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2220
2209
  return startARQRCode;
2221
2210
  }()
2222
2211
  /**
2223
- * Returns the Parent Instance
2212
+ * Removes the currently active renderer view from the DOM
2224
2213
  */
2225
2214
  )
2215
+ }, {
2216
+ key: "removeRenderer",
2217
+ value: function removeRenderer() {
2218
+ // remove all other children
2219
+ var shadow = this.parent.shadowRoot;
2220
+ if (shadow) {
2221
+ var child = shadow.lastElementChild;
2222
+ while (child) {
2223
+ shadow.removeChild(child);
2224
+ child = shadow.lastElementChild;
2225
+ }
2226
+ }
2227
+ this._element = null;
2228
+ this.removeMessengerObservers();
2229
+ return true;
2230
+ }
2231
+ /**
2232
+ * Returns the Parent Instance
2233
+ */
2226
2234
  }, {
2227
2235
  key: "parent",
2228
2236
  get: function get() {
@@ -2581,16 +2589,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2581
2589
  return reject(new Error("ProductController.initAR() - minimum required attributes not set, use product-id as a minimum"));
2582
2590
  });
2583
2591
  }
2584
- }, {
2585
- key: "removeRenderer",
2586
- value: function removeRenderer() {
2587
- if (this._element) {
2588
- this.removeChild(this._element);
2589
- this._element = null;
2590
- return true;
2591
- }
2592
- return false;
2593
- }
2594
2592
  }, {
2595
2593
  key: "element",
2596
2594
  get: function get() {
@@ -3046,17 +3044,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3046
3044
  }
3047
3045
  return _InitARGenerated;
3048
3046
  }())
3049
- }, {
3050
- key: "removeRenderer",
3051
- value: function removeRenderer() {
3052
- if (this._element) {
3053
- this.removeChild(this._element);
3054
- this._element = null;
3055
- return true;
3056
- }
3057
- this.removeMessengerObservers();
3058
- return false;
3059
- }
3060
3047
  }, {
3061
3048
  key: "element",
3062
3049
  get: function get() {
@@ -4212,7 +4199,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4212
4199
  Object.defineProperty(exports, "__esModule", {
4213
4200
  value: true
4214
4201
  });
4215
- exports["default"] = "1.167.3";
4202
+ exports["default"] = "1.167.5";
4216
4203
  }, {}],
4217
4204
  17: [function (require, module, exports) {
4218
4205
  "use strict";