@mappedin/viewer 0.28.3-298b08e.0 → 0.28.3-e764ae7.0

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/dist/index.js CHANGED
@@ -75391,7 +75391,6 @@ class sY {
75391
75391
  e != null && this.setCurrentFloor(this.data.getById("floor", e));
75392
75392
  return;
75393
75393
  }
75394
- this.currentFloor == null && this.setCurrentFloor(this.floorClosestToGroundLevel);
75395
75394
  }
75396
75395
  syncDeparture() {
75397
75396
  if (this.mapStore.mapView != null) {
@@ -75551,8 +75550,10 @@ class sY {
75551
75550
  }
75552
75551
  get currentFloor() {
75553
75552
  const e = this.routerStore.params.floor;
75554
- if (!(e == null || Array.isArray(e)))
75555
- return this.data.getById("floor", e);
75553
+ if (Array.isArray(e))
75554
+ return;
75555
+ let t;
75556
+ return e != null && (t = this.data.getById("floor", e)), t ?? this.floorClosestToGroundLevel;
75556
75557
  }
75557
75558
  get state() {
75558
75559
  return Object.values(I0).includes(this.routerStore.path) ? this.routerStore.path : I0.START;
@@ -1 +1 @@
1
- export {};
1
+ export declare const CustomMatchers: Parameters<typeof expect.extend>[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.28.3-298b08e.0",
3
+ "version": "0.28.3-e764ae7.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",