@plattar/plattar-ar-adapter 1.130.2 → 1.130.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 +38 -26
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +32 -35
- package/build/es2019/plattar-ar-adapter.min.js +1 -9
- package/dist/embed/controllers/configurator-controller.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
|
@@ -1195,6 +1195,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1195
1195
|
|
|
1196
1196
|
var showAR = _this12.getAttribute("show-ar");
|
|
1197
1197
|
|
|
1198
|
+
var showUI = _this12.getAttribute("show-ui");
|
|
1199
|
+
|
|
1200
|
+
if (showUI && showUI === "true") {
|
|
1201
|
+
dst = plattar_api_1.Server.location().base + "configurator/dist/index.html?scene_id=" + sceneID;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1198
1204
|
if (configState) {
|
|
1199
1205
|
dst += "&config_state=" + configState;
|
|
1200
1206
|
}
|
|
@@ -1246,6 +1252,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1246
1252
|
|
|
1247
1253
|
var showAR = _this13.getAttribute("show-ar");
|
|
1248
1254
|
|
|
1255
|
+
var showUI = _this13.getAttribute("show-ui");
|
|
1256
|
+
|
|
1249
1257
|
if (configState) {
|
|
1250
1258
|
viewer.setAttribute("config-state", configState);
|
|
1251
1259
|
}
|
|
@@ -1254,6 +1262,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1254
1262
|
viewer.setAttribute("show-ar", showAR);
|
|
1255
1263
|
}
|
|
1256
1264
|
|
|
1265
|
+
if (showUI) {
|
|
1266
|
+
viewer.setAttribute("show-ui", showUI);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1257
1269
|
viewer.onload = function () {
|
|
1258
1270
|
return accept(viewer);
|
|
1259
1271
|
};
|
|
@@ -3244,7 +3256,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3244
3256
|
Object.defineProperty(exports, "__esModule", {
|
|
3245
3257
|
value: true
|
|
3246
3258
|
});
|
|
3247
|
-
exports["default"] = "1.130.
|
|
3259
|
+
exports["default"] = "1.130.3";
|
|
3248
3260
|
}, {}],
|
|
3249
3261
|
17: [function (require, module, exports) {
|
|
3250
3262
|
"use strict";
|
|
@@ -9603,6 +9615,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9603
9615
|
exports["default"] = "1.120.1";
|
|
9604
9616
|
}, {}],
|
|
9605
9617
|
115: [function (require, module, exports) {
|
|
9618
|
+
var Util = require("../../util/util");
|
|
9619
|
+
|
|
9606
9620
|
var ElementController = require("../controllers/element-controller");
|
|
9607
9621
|
|
|
9608
9622
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
@@ -9767,6 +9781,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9767
9781
|
get: function get() {
|
|
9768
9782
|
return "none";
|
|
9769
9783
|
}
|
|
9784
|
+
}, {
|
|
9785
|
+
key: "elementLocation",
|
|
9786
|
+
get: function get() {
|
|
9787
|
+
return Util.getElementLocation(this.elementType);
|
|
9788
|
+
}
|
|
9770
9789
|
}]);
|
|
9771
9790
|
|
|
9772
9791
|
return BaseElement;
|
|
@@ -9774,6 +9793,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9774
9793
|
|
|
9775
9794
|
module.exports = BaseElement;
|
|
9776
9795
|
}, {
|
|
9796
|
+
"../../util/util": 128,
|
|
9777
9797
|
"../controllers/element-controller": 117
|
|
9778
9798
|
}],
|
|
9779
9799
|
116: [function (require, module, exports) {
|
|
@@ -9800,6 +9820,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9800
9820
|
get: function get() {
|
|
9801
9821
|
return "configurator";
|
|
9802
9822
|
}
|
|
9823
|
+
}, {
|
|
9824
|
+
key: "elementLocation",
|
|
9825
|
+
get: function get() {
|
|
9826
|
+
if (this.hasAttribute("show-ui")) {
|
|
9827
|
+
var state = this.getAttribute("show-ui");
|
|
9828
|
+
return state === "true" ? "configurator/dist/index.html" : _get(_getPrototypeOf(ConfiguratorElement.prototype), "elementLocation", this);
|
|
9829
|
+
}
|
|
9830
|
+
|
|
9831
|
+
return _get(_getPrototypeOf(ConfiguratorElement.prototype), "elementLocation", this);
|
|
9832
|
+
}
|
|
9803
9833
|
}, {
|
|
9804
9834
|
key: "optionalAttributes",
|
|
9805
9835
|
get: function get() {
|
|
@@ -9884,7 +9914,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9884
9914
|
throw new Error("ElementController - attribute \"server\" must be one of \"production\", \"staging\" or \"dev\"");
|
|
9885
9915
|
}
|
|
9886
9916
|
|
|
9887
|
-
var embedLocation =
|
|
9917
|
+
var embedLocation = element.elementLocation;
|
|
9888
9918
|
|
|
9889
9919
|
if (embedLocation === undefined) {
|
|
9890
9920
|
throw new Error("ElementController - element named \"" + elementType + "\" is invalid");
|
|
@@ -9992,7 +10022,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9992
10022
|
|
|
9993
10023
|
if (element.hasAttribute("fullscreen")) {
|
|
9994
10024
|
var style = document.createElement('style');
|
|
9995
|
-
style.textContent = "
|
|
10025
|
+
style.textContent = "._PlattarFullScreen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }";
|
|
9996
10026
|
this._iframe.className = "_PlattarFullScreen";
|
|
9997
10027
|
shadow.append(style);
|
|
9998
10028
|
this._fsStyle = style;
|
|
@@ -10492,13 +10522,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10492
10522
|
value: function getServerLocation(server) {
|
|
10493
10523
|
switch (server) {
|
|
10494
10524
|
case "production":
|
|
10495
|
-
return "https://app.plattar.com/
|
|
10525
|
+
return "https://app.plattar.com/";
|
|
10496
10526
|
|
|
10497
10527
|
case "staging":
|
|
10498
|
-
return "https://staging.plattar.space/
|
|
10528
|
+
return "https://staging.plattar.space/";
|
|
10499
10529
|
|
|
10500
10530
|
case "dev":
|
|
10501
|
-
return "https://localhost/
|
|
10531
|
+
return "https://localhost/";
|
|
10502
10532
|
|
|
10503
10533
|
default:
|
|
10504
10534
|
return undefined;
|
|
@@ -10510,25 +10540,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10510
10540
|
var isValid = Util.isValidType(etype);
|
|
10511
10541
|
|
|
10512
10542
|
if (isValid) {
|
|
10513
|
-
return etype + ".html";
|
|
10514
|
-
}
|
|
10515
|
-
|
|
10516
|
-
return undefined;
|
|
10517
|
-
}
|
|
10518
|
-
}, {
|
|
10519
|
-
key: "getElementBundleLocation",
|
|
10520
|
-
value: function getElementBundleLocation(etype, server) {
|
|
10521
|
-
var location = Util.getServerLocation(server);
|
|
10522
|
-
|
|
10523
|
-
if (!location) {
|
|
10524
|
-
return undefined;
|
|
10525
|
-
}
|
|
10526
|
-
|
|
10527
|
-
var isValid = Util.isValidType(etype);
|
|
10528
|
-
|
|
10529
|
-
if (isValid) {
|
|
10530
|
-
var isMinified = location === "dev" ? false : true;
|
|
10531
|
-
return isMinified ? etype + "-bundle.min.js" : etype + "-bundle.js";
|
|
10543
|
+
return "renderer/" + etype + ".html";
|
|
10532
10544
|
}
|
|
10533
10545
|
|
|
10534
10546
|
return undefined;
|
|
@@ -10580,7 +10592,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10580
10592
|
module.exports = Util;
|
|
10581
10593
|
}, {}],
|
|
10582
10594
|
129: [function (require, module, exports) {
|
|
10583
|
-
module.exports = "1.
|
|
10595
|
+
module.exports = "1.130.1";
|
|
10584
10596
|
}, {}],
|
|
10585
10597
|
130: [function (require, module, exports) {
|
|
10586
10598
|
(function (global) {
|