@plattar/plattar-ar-adapter 1.189.2 → 1.194.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/build/es2015/plattar-ar-adapter.js +17 -16
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +2 -2
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/util/configurator-state.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prot
|
|
|
19
19
|
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
|
|
20
20
|
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
21
21
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
22
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) {
|
|
22
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
23
23
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
24
24
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
25
25
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -157,7 +157,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
157
157
|
var _Compose2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(output) {
|
|
158
158
|
var type, url, response, data, _t;
|
|
159
159
|
return _regenerator().w(function (_context) {
|
|
160
|
-
while (1) switch (_context.n) {
|
|
160
|
+
while (1) switch (_context.p = _context.n) {
|
|
161
161
|
case 0:
|
|
162
162
|
type = output === 'glb' ? "viewer" : "reality";
|
|
163
163
|
url = "https://xrutils.plattar.com/v3/scene/".concat(this._options.state.scene.id, "/").concat(type); // grab our existing scene-graph from the saved API
|
|
@@ -1334,7 +1334,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1334
1334
|
var _Compose3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(output) {
|
|
1335
1335
|
var type, url, response, data, _t2;
|
|
1336
1336
|
return _regenerator().w(function (_context5) {
|
|
1337
|
-
while (1) switch (_context5.n) {
|
|
1337
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
1338
1338
|
case 0:
|
|
1339
1339
|
type = output === 'glb' ? "viewer" : "reality";
|
|
1340
1340
|
url = "https://xrutils.plattar.com/v3/scene/".concat(this._options.sceneID, "/").concat(type, "/").concat(this._options.id); // grab our existing scene-graph from the saved API
|
|
@@ -1726,7 +1726,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1726
1726
|
var _startARQRCode = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(options) {
|
|
1727
1727
|
var dState, product, controller, _t3;
|
|
1728
1728
|
return _regenerator().w(function (_context9) {
|
|
1729
|
-
while (1) switch (_context9.n) {
|
|
1729
|
+
while (1) switch (_context9.p = _context9.n) {
|
|
1730
1730
|
case 0:
|
|
1731
1731
|
_context9.p = 0;
|
|
1732
1732
|
_context9.n = 1;
|
|
@@ -1776,7 +1776,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1776
1776
|
var _this14 = this;
|
|
1777
1777
|
var opt, sceneID, configState, dState, product, controller, viewer, width, height, dst, showAR, showUI, showBanner, sceneGraphID, _t4;
|
|
1778
1778
|
return _regenerator().w(function (_context0) {
|
|
1779
|
-
while (1) switch (_context0.n) {
|
|
1779
|
+
while (1) switch (_context0.p = _context0.n) {
|
|
1780
1780
|
case 0:
|
|
1781
1781
|
opt = this._GetDefaultQROptions(options); // remove the old renderer instance if any
|
|
1782
1782
|
if (!opt.detached) {
|
|
@@ -1897,7 +1897,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1897
1897
|
var _this15 = this;
|
|
1898
1898
|
var sceneID, configState, dState, product, controller, width, height, server, viewer, showAR, showUI, encodedState, _t5;
|
|
1899
1899
|
return _regenerator().w(function (_context1) {
|
|
1900
|
-
while (1) switch (_context1.n) {
|
|
1900
|
+
while (1) switch (_context1.p = _context1.n) {
|
|
1901
1901
|
case 0:
|
|
1902
1902
|
// remove the old renderer instance if any
|
|
1903
1903
|
this.removeRenderer();
|
|
@@ -1991,7 +1991,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
1991
1991
|
var _initAR = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
|
|
1992
1992
|
var dState, product, controller, arMode, _t6, _t7;
|
|
1993
1993
|
return _regenerator().w(function (_context10) {
|
|
1994
|
-
while (1) switch (_context10.n) {
|
|
1994
|
+
while (1) switch (_context10.p = _context10.n) {
|
|
1995
1995
|
case 0:
|
|
1996
1996
|
if (util_1.Util.canAugment()) {
|
|
1997
1997
|
_context10.n = 1;
|
|
@@ -2502,7 +2502,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2502
2502
|
var _startARQRCode2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(options) {
|
|
2503
2503
|
var dState, product, controller, _t10;
|
|
2504
2504
|
return _regenerator().w(function (_context20) {
|
|
2505
|
-
while (1) switch (_context20.n) {
|
|
2505
|
+
while (1) switch (_context20.p = _context20.n) {
|
|
2506
2506
|
case 0:
|
|
2507
2507
|
_context20.p = 0;
|
|
2508
2508
|
_context20.n = 1;
|
|
@@ -2568,7 +2568,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2568
2568
|
var _this20 = this;
|
|
2569
2569
|
var sceneID, configState, qrOptions, embedType, productID, sceneProductID, variationID, variationSKU, arMode, showBanner, sceneGraphID, width, height, server, viewer, _sceneGraphID, _t11;
|
|
2570
2570
|
return _regenerator().w(function (_context22) {
|
|
2571
|
-
while (1) switch (_context22.n) {
|
|
2571
|
+
while (1) switch (_context22.p = _context22.n) {
|
|
2572
2572
|
case 0:
|
|
2573
2573
|
// remove the old renderer instance if any
|
|
2574
2574
|
this.removeRenderer();
|
|
@@ -2671,7 +2671,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2671
2671
|
var _initAR3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23() {
|
|
2672
2672
|
var dState, product, controller, arMode, _t12, _t13;
|
|
2673
2673
|
return _regenerator().w(function (_context23) {
|
|
2674
|
-
while (1) switch (_context23.n) {
|
|
2674
|
+
while (1) switch (_context23.p = _context23.n) {
|
|
2675
2675
|
case 0:
|
|
2676
2676
|
if (util_1.Util.canAugment()) {
|
|
2677
2677
|
_context23.n = 1;
|
|
@@ -3072,7 +3072,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
3072
3072
|
var _this21 = this;
|
|
3073
3073
|
var opt, viewer, width, height, qrOptions, dst, sceneID, embedType, productID, sceneProductID, variationID, variationSKU, arMode, showBanner, sceneGraphID, _sceneGraphID2, _t20;
|
|
3074
3074
|
return _regenerator().w(function (_context29) {
|
|
3075
|
-
while (1) switch (_context29.n) {
|
|
3075
|
+
while (1) switch (_context29.p = _context29.n) {
|
|
3076
3076
|
case 0:
|
|
3077
3077
|
opt = this._GetDefaultQROptions(options);
|
|
3078
3078
|
viewer = document.createElement("plattar-qrcode"); // remove the old renderer instance if any
|
|
@@ -3732,7 +3732,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
3732
3732
|
var _this27 = this;
|
|
3733
3733
|
var opt, sceneID, viewer, width, height, dst, configState, showAR, productID, sceneProductID, variationID, _t21;
|
|
3734
3734
|
return _regenerator().w(function (_context34) {
|
|
3735
|
-
while (1) switch (_context34.n) {
|
|
3735
|
+
while (1) switch (_context34.p = _context34.n) {
|
|
3736
3736
|
case 0:
|
|
3737
3737
|
opt = this._GetDefaultQROptions(options); // remove the old renderer instance if any
|
|
3738
3738
|
if (!opt.detached) {
|
|
@@ -3830,7 +3830,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
3830
3830
|
var _this28 = this;
|
|
3831
3831
|
var sceneID, width, height, server, viewer, configState, showAR, productID, sceneProductID, variationID, _t22;
|
|
3832
3832
|
return _regenerator().w(function (_context35) {
|
|
3833
|
-
while (1) switch (_context35.n) {
|
|
3833
|
+
while (1) switch (_context35.p = _context35.n) {
|
|
3834
3834
|
case 0:
|
|
3835
3835
|
// remove the old renderer instance if any
|
|
3836
3836
|
this.removeRenderer();
|
|
@@ -5102,11 +5102,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
5102
5102
|
}
|
|
5103
5103
|
});
|
|
5104
5104
|
} else if (productState.length === 3) {
|
|
5105
|
+
var _productState$meta$me;
|
|
5105
5106
|
callback({
|
|
5106
5107
|
scene_product_id: productState[meta.scene_product_index],
|
|
5107
5108
|
product_variation_id: productState[meta.product_variation_index],
|
|
5108
5109
|
meta_data: {
|
|
5109
|
-
augment: productState[meta.meta_index].augment
|
|
5110
|
+
augment: (_productState$meta$me = productState[meta.meta_index].augment) !== null && _productState$meta$me !== void 0 ? _productState$meta$me : true,
|
|
5110
5111
|
type: productState[meta.meta_index].type || "sceneproduct"
|
|
5111
5112
|
}
|
|
5112
5113
|
});
|
|
@@ -5246,7 +5247,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
5246
5247
|
var _encodeSceneGraphID = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48() {
|
|
5247
5248
|
var graph, url, response, data, _t28;
|
|
5248
5249
|
return _regenerator().w(function (_context48) {
|
|
5249
|
-
while (1) switch (_context48.n) {
|
|
5250
|
+
while (1) switch (_context48.p = _context48.n) {
|
|
5250
5251
|
case 0:
|
|
5251
5252
|
graph = this.sceneGraph; // some scene-graphs are very large in size, we store it remotely
|
|
5252
5253
|
// this storage will expire in 10 minutes so this is a non-permanent version
|
|
@@ -5623,7 +5624,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
5623
5624
|
Object.defineProperty(exports, "__esModule", {
|
|
5624
5625
|
value: true
|
|
5625
5626
|
});
|
|
5626
|
-
exports["default"] = "1.
|
|
5627
|
+
exports["default"] = "1.194.1";
|
|
5627
5628
|
}, {}],
|
|
5628
5629
|
21: [function (require, module, exports) {
|
|
5629
5630
|
"use strict";
|