@mappedin/mappedin-js 5.42.0 → 5.43.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.
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-ZRT45YCM.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.43.0"}}}));export{c as a,e as b};
@@ -1153,13 +1153,13 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
1153
1153
  }
1154
1154
 
1155
1155
  declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1156
- import type { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon, ThingsOption } from '@mappedin/mappedin-js/get-venue';
1156
+ import type { MAP_RENDER_MODE, Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon, ThingsOption } from '@mappedin/mappedin-js/get-venue';
1157
1157
  import type { TFloatingLabelAppearance } from '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel';
1158
1158
  import type { TEnableBlueDotOptions, TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
1159
1159
  import type { Euler, Object3D, Vector3 } from 'three';
1160
1160
  import type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
1161
1161
  import { TOOLTIP_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
1162
- import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE, CAMERA_EASING_MODE, E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
1162
+ import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, CAMERA_EASING_MODE, E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
1163
1163
  import { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL } from '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewController';
1164
1164
  export type { TEnableBlueDotOptions, TFloatingLabelAppearance, ThingsOption };
1165
1165
  /** @internal */
@@ -4066,7 +4066,6 @@ declare module '@mappedin/mappedin-js/renderer/MapView.enums' {
4066
4066
  */
4067
4067
  CHANGED = "CHANGED"
4068
4068
  }
4069
- export { MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue';
4070
4069
  export enum E_CAMERA_DIRECTION {
4071
4070
  UP = "up",
4072
4071
  DOWN = "down",
@@ -4291,7 +4290,8 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4291
4290
  export { MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, MappedinLocation, MappedinVenue, } from '@mappedin/mappedin-js/get-venue';
4292
4291
  export type { TEnableBlueDotOptions, TFloatingLabelAppearance, TGeolocationObject, TPathOptions, TConnectionProps, TConnectionTemplateFn, TMarkerTemplateProps, TMarkerTemplateFn, TJourneyOptions, TPadding, TCreateMarkerOptions, TAnimationOptions, TCreateTooltipInternalOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TCreateTextTooltipOptions, TCreateCustomInnerHTMLTooltipOptions, TCreateCustomTooltipOptions, TCreateThreeDMarkerOptions, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TMapViewOptionsLegacy, TFlatLabelOptions, TFlatLabelAppearance, TFloatingLabelPolygonOptions, TAddFlatLabelOptions, TAddFloatingLabelOptions, TLabelAllLocationCommonOptions, TLabelAllLocationFloatingLabelOptions, TLabelAllLocationFlatLabelOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, changeListenerFn, TMapClickEvent, E_SDK_EVENT_PAYLOAD, E_BLUEDOT_EVENT_PAYLOAD, CAMERA_EVENT_PAYLOAD, } from '@mappedin/mappedin-js/renderer/MapView.types';
4293
4292
  export { labelThemes } from '@mappedin/mappedin-js/renderer/MapView.types';
4294
- export { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, E_BLUEDOT_STATE_REASON, E_BLUEDOT_STATE, E_BLUEDOT_MARKER_STATE, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, CAMERA_EASING_MODE, MAP_RENDER_MODE, ANIMATION_TWEENS, STACKED_MAPS_STATE, } from '@mappedin/mappedin-js/renderer/MapView.enums';
4293
+ export { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, E_BLUEDOT_STATE_REASON, E_BLUEDOT_STATE, E_BLUEDOT_MARKER_STATE, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, CAMERA_EASING_MODE, ANIMATION_TWEENS, STACKED_MAPS_STATE, } from '@mappedin/mappedin-js/renderer/MapView.enums';
4294
+ export { MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue';
4295
4295
  export { default as JSONSceneLoader } from '@mappedin/mappedin-js/renderer/internal/json-scene-loader';
4296
4296
  export { default as RENDER } from '@mappedin/mappedin-js/renderer/internal/Mappedin.RenderTasks';
4297
4297
  export { FrameUpdate, FrameTask, TaskScheduler } from '@mappedin/mappedin-js/get-venue/Mappedin.TaskScheduler';
@@ -5235,11 +5235,11 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
5235
5235
  /**
5236
5236
  * Export venue data to JSON (for storage, encryption, etc)
5237
5237
  */
5238
- toJSON: () => any;
5238
+ toJSON: (includeOptions?: boolean) => any;
5239
5239
  /**
5240
5240
  * Export venue data to String
5241
5241
  */
5242
- toString: () => string;
5242
+ toString: (includeOptions?: boolean) => string;
5243
5243
  }
5244
5244
  }
5245
5245
 
@@ -5517,6 +5517,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
5517
5517
  */
5518
5518
  export class MappedinLocation extends MappedinNavigatable {
5519
5519
  #private;
5520
+ static readonly __type = "MappedinLocation";
5521
+ readonly __type = "MappedinLocation";
5522
+ static is(instance: object): instance is MappedinLocation;
5520
5523
  states: TLocation['states'];
5521
5524
  id: string;
5522
5525
  name: string;
@@ -5621,6 +5624,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCoordinate' {
5621
5624
  */
5622
5625
  export class MappedinCoordinate {
5623
5626
  #private;
5627
+ static readonly __type = "MappedinCoordinate";
5628
+ readonly __type = "MappedinCoordinate";
5629
+ static is(instance: object): instance is MappedinCoordinate;
5624
5630
  /**
5625
5631
  * The Map that the Node is located on.
5626
5632
  *
@@ -6859,12 +6865,13 @@ declare module '@mappedin/mappedin-js/renderer/index.rn' {
6859
6865
  export type { ThingsOption } from '@mappedin/mappedin-js/renderer/MapView.types';
6860
6866
  export type { IFlatLabels } from '@mappedin/mappedin-js/renderer/public/api/FlatLabels';
6861
6867
  export type { IFloatingLabels } from '@mappedin/mappedin-js/renderer/public/api/FloatingLabels';
6862
- export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, } from '@mappedin/mappedin-js/renderer/MapView.types';
6868
+ export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, } from '@mappedin/mappedin-js/renderer/MapView.types';
6863
6869
  export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/mappedin-js/navigator';
6864
6870
  export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/mappedin-js/navigator';
6865
- export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/mappedin-js/get-venue';
6866
- export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings, OfflineSearch, MappedinCollectionType, } from '@mappedin/mappedin-js/get-venue';
6871
+ export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TDirectionToOptions, } from '@mappedin/mappedin-js/get-venue';
6872
+ export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings, OfflineSearch, MappedinCollectionType, GET_VENUE_EVENT, } from '@mappedin/mappedin-js/get-venue';
6867
6873
  export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, TCameraInteractionsSetOptions, } from '@mappedin/mappedin-js/renderer/private/controllers/CameraController';
6874
+ export { MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue/Mappedin.enums';
6868
6875
  }
6869
6876
 
6870
6877
  declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile' {
@@ -7188,7 +7195,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/json-scene-loader' {
7188
7195
  import { Element } from '@mappedin/mappedin-js/renderer/internal';
7189
7196
  import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
7190
7197
  import { MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
7191
- import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/renderer/MapView.enums';
7198
+ import { type MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue';
7192
7199
  class JSONSceneLoader {
7193
7200
  defaultExtrudeSettings: {
7194
7201
  amount: number;
@@ -8474,7 +8481,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
8474
8481
  import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Texture, Group } from 'three';
8475
8482
  import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
8476
8483
  import { AssetManager, MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
8477
- import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/renderer/MapView.enums';
8484
+ import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue';
8478
8485
  class Element extends PubSub {
8479
8486
  polygon: MappedinPolygon;
8480
8487
  mapClass: MappedinMap;
@@ -10593,6 +10600,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNode' {
10593
10600
  */
10594
10601
  export class MappedinNode extends MappedinNavigatable {
10595
10602
  #private;
10603
+ static readonly __type = "MappedinNode";
10604
+ readonly __type = "MappedinNode";
10605
+ static is(instance: object): instance is MappedinNode;
10596
10606
  /**
10597
10607
  * Node ID.
10598
10608
  * @property id {string}
@@ -10676,6 +10686,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinPolygon' {
10676
10686
  */
10677
10687
  export class MappedinPolygon extends MappedinNavigatable {
10678
10688
  #private;
10689
+ static readonly __type = "MappedinPolygon";
10690
+ readonly __type = "MappedinPolygon";
10691
+ static is(instance: object): instance is MappedinPolygon;
10679
10692
  geometry: any;
10680
10693
  perspectives?: any;
10681
10694
  image?: {
@@ -10843,6 +10856,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
10843
10856
  */
10844
10857
  export class MappedinCategory {
10845
10858
  #private;
10859
+ static readonly __type = "MappedinCategory";
10860
+ readonly __type = "MappedinCategory";
10861
+ static is(instance: object): instance is MappedinCategory;
10846
10862
  name?: string | undefined;
10847
10863
  externalId?: string | undefined;
10848
10864
  parents?: string[] | undefined;
@@ -10892,6 +10908,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinVortex' {
10892
10908
  */
10893
10909
  export class MappedinVortex {
10894
10910
  #private;
10911
+ static readonly __type = "MappedinVortex";
10912
+ readonly __type = "MappedinVortex";
10913
+ static is(instance: object): instance is MappedinVortex;
10895
10914
  /**
10896
10915
  * Vortex ID.
10897
10916
  *
@@ -11163,6 +11182,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMap' {
11163
11182
  */
11164
11183
  export class MappedinMap {
11165
11184
  #private;
11185
+ static readonly __type = "MappedinMap";
11186
+ readonly __type = "MappedinMap";
11187
+ static is(instance: object): instance is MappedinMap;
11166
11188
  id: string;
11167
11189
  group: string;
11168
11190
  name: string;
@@ -11237,6 +11259,9 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMapGroup' {
11237
11259
  */
11238
11260
  export class MappedinMapGroup {
11239
11261
  #private;
11262
+ static readonly __type = "MappedinMapGroup";
11263
+ readonly __type = "MappedinMapGroup";
11264
+ static is(instance: object): instance is MappedinMapGroup;
11240
11265
  id: string;
11241
11266
  name: string;
11242
11267
  constructor(mappedin: Mappedin, data: any);
@@ -11377,9 +11402,8 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
11377
11402
  findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
11378
11403
  findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
11379
11404
  get locationsByMapId(): Map<string, MappedinLocation[]>;
11380
- static instances: Map<Mappedin, MappedinCache>;
11405
+ static instances: WeakMap<Mappedin, MappedinCache>;
11381
11406
  static create(mappedin: Mappedin): MappedinCache;
11382
- static clear(): void;
11383
11407
  static clearInstance(mappedin: Mappedin): void;
11384
11408
  }
11385
11409
  export default MappedinCache;
@@ -11534,6 +11558,32 @@ declare module '@mappedin/mappedin-js/common/random-id' {
11534
11558
  export const randomId: () => string;
11535
11559
  }
11536
11560
 
11561
+ declare module '@mappedin/mappedin-js/get-venue/Mappedin.enums' {
11562
+ export enum MAP_RENDER_MODE {
11563
+ /** Each polygon, its geometry and mesh are sent to the GPU every render frame.
11564
+ * This was the default rendering mode before 4.0.17
11565
+ */
11566
+ MULTI_GEOMETRY = "MULTI_GEOMETRY",
11567
+ /** Polygons' geometries are grouped by material and merged together, resulting in far fewer
11568
+ * draw calls to the GPU. Default rendering mode since 4.0.17
11569
+ */
11570
+ SINGLE_GEOMETRY = "SINGLE_GEOMETRY"
11571
+ }
11572
+ export enum GET_VENUE_EVENT {
11573
+ LANGUAGE_CHANGED = 0
11574
+ }
11575
+ export enum MappedinCollectionType {
11576
+ CATEGORY = "categories",
11577
+ EVENT = "events",
11578
+ LOCATION = "locations",
11579
+ MAPGROUP = "mapGroups",
11580
+ MAP = "maps",
11581
+ NODE = "nodes",
11582
+ POLYGON = "polygons",
11583
+ VORTEX = "vortexes"
11584
+ }
11585
+ }
11586
+
11537
11587
  declare module '@mappedin/mappedin-js/renderer/internal/quad-tree' {
11538
11588
  export function contains(rect1: Rectangle, rect2: Rectangle): boolean;
11539
11589
  export function intersects(rect1: Rectangle, rect2: Rectangle): boolean;