@plattar/plattar-ar-adapter 1.130.1 → 1.130.2
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 +8 -15
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +7 -12
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/viewer-controller.js +5 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1169,8 +1169,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
1169
1169
|
exports.ViewerController = void 0;
|
|
1170
1170
|
const plattar_api_1 = require("@plattar/plattar-api");
|
|
1171
1171
|
const product_ar_1 = require("../../ar/product-ar");
|
|
1172
|
+
const scene_ar_1 = require("../../ar/scene-ar");
|
|
1172
1173
|
const scene_product_ar_1 = require("../../ar/scene-product-ar");
|
|
1173
|
-
const configurator_state_1 = require("../../util/configurator-state");
|
|
1174
1174
|
const util_1 = require("../../util/util");
|
|
1175
1175
|
const plattar_controller_1 = require("./plattar-controller");
|
|
1176
1176
|
/**
|
|
@@ -1308,16 +1308,11 @@ class ViewerController extends plattar_controller_1.PlattarController {
|
|
|
1308
1308
|
return product.init().then(accept).catch(reject);
|
|
1309
1309
|
}
|
|
1310
1310
|
const sceneID = this.getAttribute("scene-id");
|
|
1311
|
-
//
|
|
1311
|
+
// fallback to using default SceneAR implementation
|
|
1312
1312
|
if (sceneID) {
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
const sceneProductAR = new scene_product_ar_1.SceneProductAR(first.scene_product_id, first.product_variation_id);
|
|
1317
|
-
return sceneProductAR.init().then(accept).catch(reject);
|
|
1318
|
-
}
|
|
1319
|
-
return reject(new Error("ViewerController.initAR() - your scene does not contain any valid products"));
|
|
1320
|
-
}).catch(reject);
|
|
1313
|
+
const sceneAR = new scene_ar_1.SceneAR(sceneID);
|
|
1314
|
+
sceneAR.init().then(accept).catch(reject);
|
|
1315
|
+
return;
|
|
1321
1316
|
}
|
|
1322
1317
|
return reject(new Error("ViewerController.initAR() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1323
1318
|
});
|
|
@@ -1336,7 +1331,7 @@ class ViewerController extends plattar_controller_1.PlattarController {
|
|
|
1336
1331
|
}
|
|
1337
1332
|
exports.ViewerController = ViewerController;
|
|
1338
1333
|
|
|
1339
|
-
},{"../../ar/product-ar":3,"../../ar/scene-
|
|
1334
|
+
},{"../../ar/product-ar":3,"../../ar/scene-ar":5,"../../ar/scene-product-ar":6,"../../util/util":15,"./plattar-controller":8,"@plattar/plattar-api":42}],11:[function(require,module,exports){
|
|
1340
1335
|
"use strict";
|
|
1341
1336
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1342
1337
|
exports.VTOController = void 0;
|
|
@@ -2083,7 +2078,7 @@ exports.Util = Util;
|
|
|
2083
2078
|
},{}],16:[function(require,module,exports){
|
|
2084
2079
|
"use strict";
|
|
2085
2080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2086
|
-
exports.default = "1.130.
|
|
2081
|
+
exports.default = "1.130.2";
|
|
2087
2082
|
|
|
2088
2083
|
},{}],17:[function(require,module,exports){
|
|
2089
2084
|
"use strict";
|