@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.
@@ -50,6 +50,10 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
50
50
  // optional attributes
51
51
  const configState = this.getAttribute("config-state");
52
52
  const showAR = this.getAttribute("show-ar");
53
+ const showUI = this.getAttribute("show-ui");
54
+ if (showUI && showUI === "true") {
55
+ dst = plattar_api_1.Server.location().base + "configurator/dist/index.html?scene_id=" + sceneID;
56
+ }
53
57
  if (configState) {
54
58
  dst += "&config_state=" + configState;
55
59
  }
@@ -87,12 +91,16 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
87
91
  // optional attributes
88
92
  const configState = this.getAttribute("config-state");
89
93
  const showAR = this.getAttribute("show-ar");
94
+ const showUI = this.getAttribute("show-ui");
90
95
  if (configState) {
91
96
  viewer.setAttribute("config-state", configState);
92
97
  }
93
98
  if (showAR) {
94
99
  viewer.setAttribute("show-ar", showAR);
95
100
  }
101
+ if (showUI) {
102
+ viewer.setAttribute("show-ui", showUI);
103
+ }
96
104
  viewer.onload = () => {
97
105
  return accept(viewer);
98
106
  };
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.130.2";
1
+ declare const _default: "1.130.3";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = "1.130.2";
3
+ exports.default = "1.130.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plattar/plattar-ar-adapter",
3
- "version": "1.130.2",
3
+ "version": "1.130.3",
4
4
  "description": "Plattar AR Adapter for interfacing with Google & Apple WebAR",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -41,12 +41,12 @@
41
41
  "@plattar/plattar-api": "^1.120.1",
42
42
  "@plattar/plattar-qrcode": "1.122.1",
43
43
  "@plattar/plattar-services": "^1.120.1",
44
- "@plattar/plattar-web": "^1.129.1"
44
+ "@plattar/plattar-web": "^1.130.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/cli": "^7.17.10",
48
- "@babel/core": "^7.17.10",
49
- "@babel/preset-env": "^7.17.10",
48
+ "@babel/core": "^7.17.12",
49
+ "@babel/preset-env": "^7.17.12",
50
50
  "browserify": "^17.0.0",
51
51
  "typescript": "^4.6.4",
52
52
  "uglify-js": "^3.15.5"