@mappedin/viewer 0.24.6-47c79cd.0 → 0.24.6-b39cd7f.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.
@@ -3,10 +3,12 @@ type TProcessedPlaces = {
3
3
  places: Exclude<Place, Coordinate>[];
4
4
  placesById: Record<string, Exclude<Place, Coordinate>>;
5
5
  placesByPlaceName: Record<string, Exclude<Place, Coordinate>[]>;
6
+ placesByPlaceNameNormalized: Record<string, Exclude<Place, Coordinate>[]>;
6
7
  placesByFloorId: Record<string, Exclude<Place, Coordinate>[]>;
7
8
  placeNamesByCategory: Record<string, string[]>;
8
9
  geometries: Geometry[];
9
10
  geometriesById: Record<string, Geometry>;
11
+ sortedPlaceNames: string[];
10
12
  };
11
13
  /**
12
14
  * Generate a bunch of useful immutable collections from the map data.
@@ -42,10 +42,12 @@ declare class RootStore {
42
42
  readonly places: Exclude<Place, Coordinate>[];
43
43
  readonly placesById: Record<string, Exclude<Place, Coordinate>>;
44
44
  readonly placesByNames: Record<string, Exclude<Place, Coordinate>[]>;
45
+ readonly placesByNameNormalized: Record<string, Exclude<Place, Coordinate>[]>;
45
46
  readonly placesByFloorId: Record<string, Exclude<Place, Coordinate>[]>;
46
47
  readonly placeNamesByCategory: Record<string, string[]>;
47
48
  readonly geometries: Geometry[];
48
49
  readonly geometriesById: Record<string, Geometry>;
50
+ readonly sortedPlaceNames: string[];
49
51
  constructor({ router, data, startupOptions, mvf, mapId, configId, configName, isMobile, }: {
50
52
  router: RouterStore;
51
53
  data: MapData;
@@ -60,6 +62,10 @@ declare class RootStore {
60
62
  private syncState;
61
63
  private syncCurrentFloor;
62
64
  private syncDeparture;
65
+ /**
66
+ * Try and find an array of {@link Place} objects by ID, name, or serialized coordinate.
67
+ */
68
+ private resolvePlaces;
63
69
  get title(): string;
64
70
  get isMakerPreview(): boolean;
65
71
  get directionsUnavailable(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.24.6-47c79cd.0",
3
+ "version": "0.24.6-b39cd7f.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",