@plattar/plattar-ar-adapter 1.167.12 → 1.168.1

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/README.md CHANGED
@@ -10,16 +10,8 @@ _plattar-ar-adapter_ allows easy interfacing with Apple Quicklook and Google Sce
10
10
 
11
11
  ### _Quick Use_
12
12
 
13
- - ES2015 & ES2019 Builds via [jsDelivr](https://www.jsdelivr.com/)
14
-
15
13
  ```javascript
16
- // Minified Version ES2015 & ES2019 (Latest)
17
- https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2015/plattar-ar-adapter.min.js
18
- https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2019/plattar-ar-adapter.min.js
19
-
20
- // Standard Version ES2015 & ES2019 (Latest)
21
- https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2015/plattar-ar-adapter.js
22
- https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2019/plattar-ar-adapter.js
14
+ https://sdk.plattar.com/plattar-plugin.min.js
23
15
  ```
24
16
 
25
17
  ### _Installation_
@@ -32,4 +24,4 @@ npm install @plattar/plattar-ar-adapter
32
24
 
33
25
  ### _Documentation and Examples_
34
26
 
35
- - Visit [Documentation](https://plattar.github.io/plattar-ar-adapter) page for usage, guides and code examples
27
+ - Visit [Documentation](https://docs.plattar.com) page for usage, guides and code examples
@@ -2445,14 +2445,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2445
2445
  dst += "&show_ar=" + showAR;
2446
2446
  }
2447
2447
  viewer.setAttribute("url", opt.url || dst);
2448
- viewer.onload = function () {
2449
- return accept(viewer);
2450
- };
2451
- _this18.append(viewer);
2452
2448
  _this18._element = viewer;
2453
2449
  _this18._state = plattar_controller_1.ControllerState.QRCode;
2454
2450
  _this18._prevQROpt = opt;
2455
- return;
2451
+ return new Promise(function (accept, reject) {
2452
+ viewer.onload = function () {
2453
+ return accept(viewer);
2454
+ };
2455
+ _this18.append(viewer);
2456
+ });
2456
2457
  }
2457
2458
  return reject(new Error("ProductController.startQRCode() - minimum required attributes not set, use product-id as a minimum"));
2458
2459
  });
@@ -2525,13 +2526,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2525
2526
  dst += "&show_ar_banner=" + showBanner;
2526
2527
  }
2527
2528
  viewer.setAttribute("url", opt.url || dst);
2528
- viewer.onload = function () {
2529
- return accept(viewer);
2530
- };
2531
2529
  _this19._element = viewer;
2532
2530
  _this19._state = plattar_controller_1.ControllerState.QRCode;
2533
2531
  _this19._prevQROpt = opt;
2534
- _this19.append(viewer);
2532
+ return new Promise(function (accept, reject) {
2533
+ viewer.onload = function () {
2534
+ return accept(viewer);
2535
+ };
2536
+ _this19.append(viewer);
2537
+ });
2535
2538
  });
2536
2539
  }
2537
2540
  }, {
@@ -2565,13 +2568,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2565
2568
  if (showAR) {
2566
2569
  viewer.setAttribute("show-ar", showAR);
2567
2570
  }
2568
- viewer.onload = function () {
2569
- return accept(viewer);
2570
- };
2571
- _this20.append(viewer);
2572
2571
  _this20._element = viewer;
2573
2572
  _this20._state = plattar_controller_1.ControllerState.Renderer;
2574
- return;
2573
+ return new Promise(function (accept, reject) {
2574
+ viewer.onload = function () {
2575
+ return accept(viewer);
2576
+ };
2577
+ _this20.append(viewer);
2578
+ });
2575
2579
  }
2576
2580
  return reject(new Error("ProductController.startRenderer() - minimum required attributes not set, use scene-id as a minimum"));
2577
2581
  });
@@ -4246,7 +4250,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4246
4250
  Object.defineProperty(exports, "__esModule", {
4247
4251
  value: true
4248
4252
  });
4249
- exports["default"] = "1.167.12";
4253
+ exports["default"] = "1.168.1";
4250
4254
  }, {}],
4251
4255
  17: [function (require, module, exports) {
4252
4256
  "use strict";