@mappedin/viewer 0.4.2-c3f51ed.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.2](https://github.com/MappedIn/viewer/compare/viewer-v0.4.1...viewer-v0.4.2) (2023-09-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **MKR-323:** fix mapView props ([#25](https://github.com/MappedIn/viewer/issues/25)) ([c3f51ed](https://github.com/MappedIn/viewer/commit/c3f51ed55536690c70cb2582f04463aeb048e97e))
9
+
3
10
  ## [0.4.1](https://github.com/MappedIn/viewer/compare/viewer-v0.4.0...viewer-v0.4.1) (2023-09-13)
4
11
 
5
12
 
@@ -1,4 +1,4 @@
1
- import { c as Zn, r as f } from "./index-6f8782c6.js";
1
+ import { c as Zn, r as f } from "./index-d713da7a.js";
2
2
  Zn();
3
3
  var dn = {}, Nn = f(function(t, n, r, e, i) {
4
4
  var a = new Worker(dn[n] || (dn[n] = URL.createObjectURL(new Blob([t + ';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'], { type: "text/javascript" }))));
@@ -49286,7 +49286,7 @@ async function Nne(e) {
49286
49286
  throw new Error("Error parsing data! Unzipping failed.");
49287
49287
  if (e[Symbol.toStringTag] !== "Uint8Array")
49288
49288
  throw new Error("Unexpected file type! Unzipping failed.");
49289
- let r = (await import("./browser-JKMZVTUT-3cbda16a.js")).unzipSync(e);
49289
+ let r = (await import("./browser-JKMZVTUT-079f46dc.js")).unzipSync(e);
49290
49290
  if (!One(r))
49291
49291
  throw new Error("MVF is missing some expect static files. Unzipping failed.");
49292
49292
  let i = { "connection.json": r["connection.json"], "manifest.geojson": r["manifest.geojson"], "node.geojson": r["node.geojson"], "map.geojson": r["map.geojson"], "mapstack.geojson": r["mapstack.geojson"], "styles.json": r["styles.json"], space: {}, obstruction: {}, entrance: {} }, o = Object.keys(r);
@@ -57378,7 +57378,7 @@ var r4e = !1, Gie = class {
57378
57378
  async load() {
57379
57379
  try {
57380
57380
  let e = await this.fetchToken(), { access_token: t } = await e.json();
57381
- this.module = await import("./outdoor-context-QN5FBZ37-9c42d8a8.js");
57381
+ this.module = await import("./outdoor-context-QN5FBZ37-ea2d7820.js");
57382
57382
  let { Map: n, Marker: r } = this.module.default, i = document.createElement("div");
57383
57383
  Object.assign(i.style, { position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", pointerEvents: "none" }), this.core.container.appendChild(i);
57384
57384
  let o = this.core.referenceMap.georeference[0].target.x, l = this.core.referenceMap.georeference[0].target.y, u = this.core.referenceMap.georeference[2].target.x, c = this.core.referenceMap.georeference[2].target.y, p = new Rn(o, l), f = new Rn(u, c), g = p.midpointTo(f), v = -Uf.radToDeg(this.core.controls.getRotation() + this.core.referenceMap.getNorth()), _ = Uf.radToDeg(this.core.controls.getTilt()), S = this.core.controls.getZoomLevel(), P = { canvas: this.core.renderer.domElement(), canvasContainer: i, container: this.core.container, style: this.url, center: [g.lon, g.lat], zoom: S, bearing: v, pitch: _, transformRequest: (I) => ({ url: I, headers: { "x-mappedin-tiles-key": t } }) };
@@ -67201,7 +67201,7 @@ class j6e {
67201
67201
  this.rootStore = t;
67202
67202
  }
67203
67203
  init() {
67204
- const t = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", n = "https://ph-api.mappedin.com";
67204
+ const t = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", n = "https://ph-api.mappedin.com";
67205
67205
  U6e.init(t, { api_host: n });
67206
67206
  }
67207
67207
  }
@@ -96264,7 +96264,7 @@ const R9e = Jr.div`
96264
96264
  ] });
96265
96265
  }), Spe = () => {
96266
96266
  const e = document.createElement("meta");
96267
- e.name = "app-version", e.content = "0.4.1", document.head.appendChild(e);
96267
+ e.name = "app-version", e.content = "0.4.2", document.head.appendChild(e);
96268
96268
  }, Mpe = (e) => {
96269
96269
  let t = e;
96270
96270
  if (t == null && (Tw.warn("options.root was not specified. Defaulting to #viewer-app-root."), t = document.getElementById("viewer-app-root")), t == null)