@mappedin/mappedin-js 5.41.1 → 5.42.1

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.
@@ -1055,6 +1055,17 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
1055
1055
  disableBlueDot: () => void;
1056
1056
  enableBlueDotOptions: TEnableBlueDotOptions;
1057
1057
  enabled: boolean;
1058
+ enableTargetMapOverride: (mapId: MappedinMap['id'], options?: {
1059
+ restoreWhenNewFloorLevelIsReceived: boolean;
1060
+ }) => void;
1061
+ disableTargetMapOverride: () => void;
1062
+ targetMapOverride?: {
1063
+ mapId: MappedinMap['id'];
1064
+ lastStoredMapId?: MappedinMap['id'];
1065
+ options?: {
1066
+ restoreWhenNewFloorLevelIsReceived: boolean;
1067
+ };
1068
+ };
1058
1069
  state: TBlueDotStateChange;
1059
1070
  /**
1060
1071
  Whether blue dot should be allowed with missing floor level information.
@@ -1082,6 +1093,10 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
1082
1093
  The direction the user is moving.
1083
1094
  */
1084
1095
  bearing: any;
1096
+ /**
1097
+ * When bearing is set by updateBearing. undefined if overrideBearing is turned off
1098
+ */
1099
+ overrideBearing?: number;
1085
1100
  /**
1086
1101
  Everything in one object, for convenience.
1087
1102
  */
@@ -1786,6 +1801,14 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1786
1801
  * @default true
1787
1802
  */
1788
1803
  alpha?: boolean;
1804
+ floatingLabels?: {
1805
+ iconSizeInterpolation?: {
1806
+ nearZoomLevel: number;
1807
+ farZoomLevel: number;
1808
+ nearScale: number;
1809
+ farScale: number;
1810
+ };
1811
+ };
1789
1812
  onWebGLContextCreationError?: () => void;
1790
1813
  onWebGLContextLost?: () => void;
1791
1814
  onWebGLContextRestored?: () => void;
@@ -3211,6 +3234,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Camera' {
3211
3234
  }
3212
3235
 
3213
3236
  declare module '@mappedin/mappedin-js/renderer/public/api/BlueDot' {
3237
+ import { MappedinMap } from '@mappedin/mappedin-js/renderer/index.rn';
3214
3238
  import { BlueDotController, TEnableBlueDotOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
3215
3239
  /**
3216
3240
  * API to enable and respond to user position updates.
@@ -3269,6 +3293,10 @@ declare module '@mappedin/mappedin-js/renderer/public/api/BlueDot' {
3269
3293
  * @param options
3270
3294
  */
3271
3295
  enable(options?: TEnableBlueDotOptions): void;
3296
+ enableTargetMapOverride(mapId: MappedinMap['id'], options?: {
3297
+ restoreWhenNewFloorLevelIsReceived: boolean;
3298
+ }): void;
3299
+ disableTargetMapOverride(): void;
3272
3300
  /**
3273
3301
  * Disables Blue Dot that was enabled with {@link enable} and stops emitting events.
3274
3302
  *
@@ -3281,6 +3309,13 @@ declare module '@mappedin/mappedin-js/renderer/public/api/BlueDot' {
3281
3309
  * ```
3282
3310
  */
3283
3311
  disable(): void;
3312
+ /**
3313
+ * Updates the bearing (direction) of the blue dot on the map.
3314
+ *
3315
+ * @param v - The new bearing value in degrees. If undefined, the bearing will be reset.
3316
+ * 0 degrees points north, 90 degrees points east, and so on.
3317
+ */
3318
+ updateBearing(v?: number): void;
3284
3319
  }
3285
3320
  }
3286
3321
 
@@ -5200,11 +5235,11 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
5200
5235
  /**
5201
5236
  * Export venue data to JSON (for storage, encryption, etc)
5202
5237
  */
5203
- toJSON: () => any;
5238
+ toJSON: (includeOptions?: boolean) => any;
5204
5239
  /**
5205
5240
  * Export venue data to String
5206
5241
  */
5207
- toString: () => string;
5242
+ toString: (includeOptions?: boolean) => string;
5208
5243
  }
5209
5244
  }
5210
5245
 
@@ -5294,7 +5329,7 @@ declare module '@mappedin/mappedin-js/get-venue/internal' {
5294
5329
  }
5295
5330
 
5296
5331
  declare module '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics' {
5297
- import { MappedinNavigatable, MappedinLocation, MappedinCategory } from '@mappedin/mappedin-js/get-venue/internal';
5332
+ import type { MappedinNavigatable, MappedinLocation, MappedinCategory } from '@mappedin/mappedin-js/get-venue/internal';
5298
5333
  type AnalyticsUserPosition = {
5299
5334
  bluedotTimestamp: number;
5300
5335
  latitude: number;
@@ -5385,7 +5420,21 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics' {
5385
5420
  * @param end {MappedinLocation} The end location for wayfinding.
5386
5421
  */
5387
5422
  getDirections(start: any, end: any): void;
5423
+ /**
5424
+ * Returns the active mi-session ID.
5425
+ */
5388
5426
  getSessionID(): string;
5427
+ /**
5428
+ * Sets the current global mi-session ID and overrides the local session ID.
5429
+ * @param sessionID {String} The session ID to be set.
5430
+ * @internal
5431
+ */
5432
+ static setSessionID(sessionID: string): void;
5433
+ /**
5434
+ * Clears the current global mi-session ID and reverts to the local session ID.
5435
+ * @internal
5436
+ */
5437
+ static clearSessionID(): void;
5389
5438
  getDeviceID(): string;
5390
5439
  /**
5391
5440
  * @param mode {Boolean} Indicates whether the user's geolocation is enabled.
@@ -6239,6 +6288,10 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel'
6239
6288
  backgroundColor?: string;
6240
6289
  };
6241
6290
  marker?: {
6291
+ /**
6292
+ * Whether the icon should scale with the zoom level
6293
+ */
6294
+ iconScaleInterpolation?: boolean;
6242
6295
  /**
6243
6296
  * Size of the marker in pixels
6244
6297
  * @deprecated Behavior when using this along with `iconVisibilityThreshold` and `icon` is undefined
@@ -6337,6 +6390,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel'
6337
6390
  active: string;
6338
6391
  inactive: string;
6339
6392
  };
6393
+ iconScaleInterpolation: boolean;
6340
6394
  iconSize?: number;
6341
6395
  icon?: string;
6342
6396
  iconFit?: 'fill' | 'cover' | 'contain';
@@ -6383,6 +6437,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel'
6383
6437
  static testId: number;
6384
6438
  style: TStyle;
6385
6439
  setColor: () => void;
6440
+ scale: number;
6386
6441
  clearColor: () => void;
6387
6442
  zoomProportion: number;
6388
6443
  _cache: {};
@@ -6414,6 +6469,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel'
6414
6469
  };
6415
6470
  };
6416
6471
  get pinCanvasSize(): number;
6472
+ iconVisible: boolean;
6417
6473
  draw(context: CanvasRenderingContext2D): void;
6418
6474
  }
6419
6475
  export default InternalFloatingLabel;
@@ -6540,7 +6596,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewCo
6540
6596
 
6541
6597
  declare module '@mappedin/mappedin-js/renderer/private/controllers/BlueDotController' {
6542
6598
  import type { IBlueDotCore, ICore, TEnableBlueDotOptions } from '@mappedin/mappedin-js/renderer/internal';
6543
- import { E_BLUEDOT_EVENT_PAYLOAD, E_BLUEDOT_EVENT, PubSub } from '@mappedin/mappedin-js/renderer/internal';
6599
+ import { E_BLUEDOT_EVENT_PAYLOAD, E_BLUEDOT_EVENT, MappedinMap, PubSub } from '@mappedin/mappedin-js/renderer/internal';
6544
6600
  /**
6545
6601
  * @hidden
6546
6602
  * @internal
@@ -6555,8 +6611,13 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BlueDotContro
6555
6611
  * @private
6556
6612
  */
6557
6613
  constructor(core: ICore);
6614
+ enableTargetMapOverride(mapId: MappedinMap['id'], options?: {
6615
+ restoreWhenNewFloorLevelIsReceived: boolean;
6616
+ }): void;
6617
+ disableTargetMapOverride(): void;
6558
6618
  enable(options?: TEnableBlueDotOptions): void;
6559
6619
  disable(): void;
6620
+ updateBearing(v?: number): void;
6560
6621
  }
6561
6622
  export default BlueDotController;
6562
6623
  }
@@ -6785,6 +6846,27 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/FlatLabelsCon
6785
6846
  export default FlatLabelsController;
6786
6847
  }
6787
6848
 
6849
+ declare module '@mappedin/mappedin-js/renderer/index.rn' {
6850
+ import { getVenue, getVenueBundle, Mappedin, MappedinDestinationSet } from '@mappedin/mappedin-js/get-venue';
6851
+ import { randomId } from '@mappedin/mappedin-js/common/random-id';
6852
+ export * from '@mappedin/mappedin-js/renderer/MapView.enums';
6853
+ export { getVenue,
6854
+ /**
6855
+ * @deprecated
6856
+ */
6857
+ getVenueBundle, MappedinDestinationSet, Mappedin, randomId, };
6858
+ export { labelThemes } from '@mappedin/mappedin-js/renderer/MapView.types';
6859
+ export type { ThingsOption } from '@mappedin/mappedin-js/renderer/MapView.types';
6860
+ export type { IFlatLabels } from '@mappedin/mappedin-js/renderer/public/api/FlatLabels';
6861
+ 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';
6863
+ export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/mappedin-js/navigator';
6864
+ 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, GET_VENUE_EVENT, } from '@mappedin/mappedin-js/get-venue';
6867
+ export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, TCameraInteractionsSetOptions, } from '@mappedin/mappedin-js/renderer/private/controllers/CameraController';
6868
+ }
6869
+
6788
6870
  declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile' {
6789
6871
  import { Texture, Mesh, MeshBasicMaterial } from 'three';
6790
6872
  import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
@@ -11229,8 +11311,8 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
11229
11311
  * @returns the normalized value
11230
11312
  */
11231
11313
  export function normalizeCategoryRank(sortOrder: number, min: number, max: number, polygonRank?: number): number;
11232
- export function getDeviceID(): string;
11233
- export function getSessionID(): string;
11314
+ export function getDeviceIDFromStorage(): string;
11315
+ export function getSessionIDFromStorage(): string;
11234
11316
  /**
11235
11317
  * Finds the main Location associated with a Polygon. This means a Location
11236
11318
  * attached to the Polygon that has no parents, or, if there are none of those,
@@ -11444,6 +11526,14 @@ declare module '@mappedin/mappedin-js/navigator/interfaces/IPolygon' {
11444
11526
  export default IPolygon;
11445
11527
  }
11446
11528
 
11529
+ declare module '@mappedin/mappedin-js/common/random-id' {
11530
+ /**
11531
+ * Returns a UUIDv4-like ID without relying on a CSPRNG as we don't need it for these purposes.
11532
+ * @hidden
11533
+ */
11534
+ export const randomId: () => string;
11535
+ }
11536
+
11447
11537
  declare module '@mappedin/mappedin-js/renderer/internal/quad-tree' {
11448
11538
  export function contains(rect1: Rectangle, rect2: Rectangle): boolean;
11449
11539
  export function intersects(rect1: Rectangle, rect2: Rectangle): boolean;