@mappedin/mappedin-js 5.43.0 → 5.45.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.45.0"}}}));export{c as a,e as b};
@@ -106,6 +106,7 @@ declare module '@mappedin/mappedin-js' {
106
106
  export { TILE_RENDER_MODES } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
107
107
  export { AzureOutdoorContextProvider, OpenStreetMapOutdoorContext, } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
108
108
  export type { IOutdoorContextProvider } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
109
+ export { setMaplibreWorkerURL } from '@mappedin/mappedin-js/renderer/internal';
109
110
  }
110
111
 
111
112
  declare module '@mappedin/mappedin-js/renderer/public/MapView' {
@@ -1159,7 +1160,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1159
1160
  import type { Euler, Object3D, Vector3 } from 'three';
1160
1161
  import type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
1161
1162
  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, CAMERA_EASING_MODE, E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
1163
+ 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, STACKED_MAPS_STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
1163
1164
  import { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL } from '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewController';
1164
1165
  export type { TEnableBlueDotOptions, TFloatingLabelAppearance, ThingsOption };
1165
1166
  /** @internal */
@@ -1220,12 +1221,12 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1220
1221
  * Radius of path at nearest zoom, in metres.
1221
1222
  * @defaultValue 1.8
1222
1223
  */
1223
- nearRadius?: number;
1224
+ nearRadius?: number | (() => number);
1224
1225
  /**
1225
1226
  * Radius of path at furthest zoom, in metres.
1226
1227
  * @defaultValue 2.3 times nearRadius
1227
1228
  */
1228
- farRadius?: number;
1229
+ farRadius?: number | (() => number);
1229
1230
  /**
1230
1231
  * Zoom level where the path size is `nearRadius`.
1231
1232
  * @defaultValue 375
@@ -1370,6 +1371,12 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1370
1371
  * Path Options for map to map vertical paths.
1371
1372
  */
1372
1373
  connectionPathOptions?: TPathOptions;
1374
+ overviewPathOptions?: TPathOptions;
1375
+ overviewPathOnConnectionsOptions?: TPathOptions;
1376
+ showOverviewPathOnMap?: MappedinMap;
1377
+ overviewPathMode?: 'always' | 'current-elevation-and-mapgroup';
1378
+ overviewInactivePathSizeFactor?: number;
1379
+ overviewPathInactiveColor?: string;
1373
1380
  };
1374
1381
  export const labelThemes: {
1375
1382
  lightOnDark: {
@@ -2338,6 +2345,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
2338
2345
  map: MappedinMap;
2339
2346
  reason?: E_MAP_CHANGED_REASON;
2340
2347
  };
2348
+ [E_SDK_EVENT.STACKED_MAPS_STATE_CHANGE]: STACKED_MAPS_STATE;
2341
2349
  };
2342
2350
  /**
2343
2351
  * Arguments that get passed to listeners of an {@link E_BLUEDOT_EVENT}.
@@ -2526,9 +2534,12 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
2526
2534
  export type TPathOptionsInternal = TPathOptions & {
2527
2535
  curve?: typeof ANIMATION_TWEENS;
2528
2536
  drawConnectionSegments?: boolean;
2537
+ dashed?: boolean;
2529
2538
  connectionPathOptions?: TPathOptions & {
2530
2539
  curve?: typeof ANIMATION_TWEENS;
2531
2540
  };
2541
+ alwaysVisible?: boolean;
2542
+ zOffset?: number;
2532
2543
  };
2533
2544
  /**
2534
2545
  * @hidden
@@ -2645,6 +2656,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
2645
2656
  removeAllPaths(): void;
2646
2657
  }
2647
2658
  export default PathsController;
2659
+ export function getRadius<T extends number | (() => number) | undefined>(v: T): T extends number | (() => number) ? number : undefined;
2648
2660
  }
2649
2661
 
2650
2662
  declare module '@mappedin/mappedin-js/renderer/private/controllers/FloatingLabelsController' {
@@ -4024,7 +4036,11 @@ declare module '@mappedin/mappedin-js/renderer/MapView.enums' {
4024
4036
  * Use this event to create a loading screen that ensures outdoor view is fully loaded and rendered.
4025
4037
  * @experimental
4026
4038
  */
4027
- OUTDOOR_VIEW_LOADED = "OUTDOOR_VIEW_LOADED"
4039
+ OUTDOOR_VIEW_LOADED = "OUTDOOR_VIEW_LOADED",
4040
+ /**
4041
+ * Emitted when the stacked maps state changes
4042
+ */
4043
+ STACKED_MAPS_STATE_CHANGE = "STACKED_MAPS_STATE_CHANGE"
4028
4044
  }
4029
4045
  /**
4030
4046
  * @enum
@@ -4283,7 +4299,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkCont
4283
4299
 
4284
4300
  declare module '@mappedin/mappedin-js/renderer/internal' {
4285
4301
  import { Texture } from 'three';
4286
- import { STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
4302
+ import { STACKED_MAPS_STATE, STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
4287
4303
  import { TMapClickEvent } from '@mappedin/mappedin-js/renderer/MapView.types';
4288
4304
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
4289
4305
  import { Vector3 } from '@mappedin/mvf';
@@ -4340,7 +4356,8 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4340
4356
  OUTDOOR_VIEW_LOADED = 31,
4341
4357
  LAYER_VISIBILITY_CHANGED = 32,
4342
4358
  USER_INTERACTION_START = 33,
4343
- USER_INTERACTION_END = 34
4359
+ USER_INTERACTION_END = 34,
4360
+ STACKED_MAPS_STATE_CHANGE = 35
4344
4361
  }
4345
4362
  export type INTERNAL_EVENT_PAYLOAD = {
4346
4363
  [INTERNAL_EVENT.SET_SCENE_START]: undefined;
@@ -4392,6 +4409,7 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4392
4409
  [INTERNAL_EVENT.SCENE_VISIBLITY_CHANGED]: undefined;
4393
4410
  [INTERNAL_EVENT.USER_INTERACTION_START]: undefined;
4394
4411
  [INTERNAL_EVENT.USER_INTERACTION_END]: undefined;
4412
+ [INTERNAL_EVENT.STACKED_MAPS_STATE_CHANGE]: STACKED_MAPS_STATE;
4395
4413
  };
4396
4414
  /**
4397
4415
  * Factories
@@ -4467,6 +4485,8 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4467
4485
  export * from '@mappedin/mappedin-js/renderer/private/Core';
4468
4486
  const setAssetManager: <T extends import("./internal/Mappedin.AssetManager").default>(am: T) => void;
4469
4487
  export { setAssetManager };
4488
+ export let MAPLIBRE_WORKER_URL: string;
4489
+ export function setMaplibreWorkerURL(url: string): void;
4470
4490
  }
4471
4491
 
4472
4492
  declare module '@mappedin/mappedin-js/get-venue/MappedinDirections' {
@@ -5430,6 +5450,12 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics' {
5430
5450
  * @internal
5431
5451
  */
5432
5452
  static setSessionID(sessionID: string): void;
5453
+ /**
5454
+ * Sets the current global device ID and overrides the local device ID.
5455
+ * @param deviceId {String} The device ID to be set.
5456
+ * @internal
5457
+ */
5458
+ static setDeviceID(deviceId: string): void;
5433
5459
  /**
5434
5460
  * Clears the current global mi-session ID and reverts to the local session ID.
5435
5461
  * @internal
@@ -5901,6 +5927,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch' {
5901
5927
  */
5902
5928
  weight?: number;
5903
5929
  }): Promise<void>;
5930
+ destroy(): void;
5904
5931
  }
5905
5932
  }
5906
5933
 
@@ -8106,7 +8133,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
8106
8133
  * to postpone its tasks.
8107
8134
  * @param persistImages - if true, image meshes will not be set visible = false
8108
8135
  */
8109
- onInvisible(persistImages?: boolean): void;
8136
+ onInvisible(persistImages?: boolean, persistPaths?: boolean): void;
8110
8137
  /**
8111
8138
  * Queue a task on this map that will be executed when the high and low
8112
8139
  * priority tasks have been processed.
@@ -8200,6 +8227,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.CameraLayers' {
8200
8227
  let STATIC: number;
8201
8228
  let ANIMATED: number;
8202
8229
  let ALWAYS_ON_TOP: number;
8230
+ let ANIMATED_BACKGROUND: number;
8203
8231
  }
8204
8232
  }
8205
8233
 
@@ -9216,6 +9244,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9216
9244
  transitionResolved: any;
9217
9245
  disable: () => Promise<void>;
9218
9246
  enable: (opts?: TStackedMapsOptions) => Promise<void>;
9247
+ publishChangeEvent: () => void;
9219
9248
  get nodesInJourneyOrMap(): MappedinNode[];
9220
9249
  showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
9221
9250
  scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
@@ -9459,6 +9488,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9459
9488
  mapboxOutdoorContext: any;
9460
9489
  staticSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9461
9490
  animatedSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9491
+ animatedSceneBackgroundRenderTarget: WebGLRenderTarget<Texture> | undefined;
9462
9492
  alwaysOnTopSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9463
9493
  outdoorViewRenderTarget: WebGLRenderTarget<Texture> | undefined;
9464
9494
  populateRenderTarget(renderTarget: any): void;
@@ -9471,6 +9501,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9471
9501
  * Dispose of the renderer and its buffers.
9472
9502
  */
9473
9503
  destroy(): void;
9504
+ renderToAnimatedBackgroundBuffer(scene: any, sceneCamera: any): void;
9474
9505
  /**
9475
9506
  * Render the provided scene using the given camera, re-rendering only
9476
9507
  * the animated parts.
@@ -9584,6 +9615,8 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/JourneyContro
9584
9615
  constructor(directions: MappedinDirections | MappedinDirections[], options: TJourneyOptions | undefined, core: Core);
9585
9616
  setStep: (step: any) => void;
9586
9617
  setStepByPath: (path: Path) => void;
9618
+ overviewPathMode: 'never' | 'always' | 'current-elevation-and-mapgroup';
9619
+ setOverviewPathMode(mode: 'never' | 'always' | 'current-elevation-and-mapgroup'): void;
9587
9620
  static instance: JourneyController | null;
9588
9621
  static create(directions: MappedinDirections | MappedinDirections[], options: any, core: Core): JourneyController;
9589
9622
  destroy(): void;
@@ -11646,6 +11679,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
11646
11679
  staticSceneDepthTexture: Uniform;
11647
11680
  animatedSceneColorTexture: Uniform;
11648
11681
  animatedSceneDepthTexture: Uniform;
11682
+ animatedSceneBackgroundTexture: Uniform;
11649
11683
  alwaysOnTopSceneColorTexture: Uniform;
11650
11684
  alwaysOnBottomSceneColorTexture: Uniform;
11651
11685
  };