@mappedin/mappedin-js 5.43.0 → 5.44.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.44.0"}}}));export{c as a,e as b};
@@ -1159,7 +1159,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
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, 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, STACKED_MAPS_STATE } 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 */
@@ -1220,12 +1220,12 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1220
1220
  * Radius of path at nearest zoom, in metres.
1221
1221
  * @defaultValue 1.8
1222
1222
  */
1223
- nearRadius?: number;
1223
+ nearRadius?: number | (() => number);
1224
1224
  /**
1225
1225
  * Radius of path at furthest zoom, in metres.
1226
1226
  * @defaultValue 2.3 times nearRadius
1227
1227
  */
1228
- farRadius?: number;
1228
+ farRadius?: number | (() => number);
1229
1229
  /**
1230
1230
  * Zoom level where the path size is `nearRadius`.
1231
1231
  * @defaultValue 375
@@ -1370,6 +1370,12 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1370
1370
  * Path Options for map to map vertical paths.
1371
1371
  */
1372
1372
  connectionPathOptions?: TPathOptions;
1373
+ overviewPathOptions?: TPathOptions;
1374
+ overviewPathOnConnectionsOptions?: TPathOptions;
1375
+ showOverviewPathOnMap?: MappedinMap;
1376
+ overviewPathMode?: 'always' | 'current-elevation-and-mapgroup';
1377
+ overviewInactivePathSizeFactor?: number;
1378
+ overviewPathInactiveColor?: string;
1373
1379
  };
1374
1380
  export const labelThemes: {
1375
1381
  lightOnDark: {
@@ -2338,6 +2344,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
2338
2344
  map: MappedinMap;
2339
2345
  reason?: E_MAP_CHANGED_REASON;
2340
2346
  };
2347
+ [E_SDK_EVENT.STACKED_MAPS_STATE_CHANGE]: STACKED_MAPS_STATE;
2341
2348
  };
2342
2349
  /**
2343
2350
  * Arguments that get passed to listeners of an {@link E_BLUEDOT_EVENT}.
@@ -2526,9 +2533,12 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
2526
2533
  export type TPathOptionsInternal = TPathOptions & {
2527
2534
  curve?: typeof ANIMATION_TWEENS;
2528
2535
  drawConnectionSegments?: boolean;
2536
+ dashed?: boolean;
2529
2537
  connectionPathOptions?: TPathOptions & {
2530
2538
  curve?: typeof ANIMATION_TWEENS;
2531
2539
  };
2540
+ alwaysVisible?: boolean;
2541
+ zOffset?: number;
2532
2542
  };
2533
2543
  /**
2534
2544
  * @hidden
@@ -2645,6 +2655,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
2645
2655
  removeAllPaths(): void;
2646
2656
  }
2647
2657
  export default PathsController;
2658
+ export function getRadius<T extends number | (() => number) | undefined>(v: T): T extends number | (() => number) ? number : undefined;
2648
2659
  }
2649
2660
 
2650
2661
  declare module '@mappedin/mappedin-js/renderer/private/controllers/FloatingLabelsController' {
@@ -4024,7 +4035,11 @@ declare module '@mappedin/mappedin-js/renderer/MapView.enums' {
4024
4035
  * Use this event to create a loading screen that ensures outdoor view is fully loaded and rendered.
4025
4036
  * @experimental
4026
4037
  */
4027
- OUTDOOR_VIEW_LOADED = "OUTDOOR_VIEW_LOADED"
4038
+ OUTDOOR_VIEW_LOADED = "OUTDOOR_VIEW_LOADED",
4039
+ /**
4040
+ * Emitted when the stacked maps state changes
4041
+ */
4042
+ STACKED_MAPS_STATE_CHANGE = "STACKED_MAPS_STATE_CHANGE"
4028
4043
  }
4029
4044
  /**
4030
4045
  * @enum
@@ -4283,7 +4298,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkCont
4283
4298
 
4284
4299
  declare module '@mappedin/mappedin-js/renderer/internal' {
4285
4300
  import { Texture } from 'three';
4286
- import { STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
4301
+ import { STACKED_MAPS_STATE, STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
4287
4302
  import { TMapClickEvent } from '@mappedin/mappedin-js/renderer/MapView.types';
4288
4303
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
4289
4304
  import { Vector3 } from '@mappedin/mvf';
@@ -4340,7 +4355,8 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4340
4355
  OUTDOOR_VIEW_LOADED = 31,
4341
4356
  LAYER_VISIBILITY_CHANGED = 32,
4342
4357
  USER_INTERACTION_START = 33,
4343
- USER_INTERACTION_END = 34
4358
+ USER_INTERACTION_END = 34,
4359
+ STACKED_MAPS_STATE_CHANGE = 35
4344
4360
  }
4345
4361
  export type INTERNAL_EVENT_PAYLOAD = {
4346
4362
  [INTERNAL_EVENT.SET_SCENE_START]: undefined;
@@ -4392,6 +4408,7 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
4392
4408
  [INTERNAL_EVENT.SCENE_VISIBLITY_CHANGED]: undefined;
4393
4409
  [INTERNAL_EVENT.USER_INTERACTION_START]: undefined;
4394
4410
  [INTERNAL_EVENT.USER_INTERACTION_END]: undefined;
4411
+ [INTERNAL_EVENT.STACKED_MAPS_STATE_CHANGE]: STACKED_MAPS_STATE;
4395
4412
  };
4396
4413
  /**
4397
4414
  * Factories
@@ -5901,6 +5918,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch' {
5901
5918
  */
5902
5919
  weight?: number;
5903
5920
  }): Promise<void>;
5921
+ destroy(): void;
5904
5922
  }
5905
5923
  }
5906
5924
 
@@ -8106,7 +8124,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
8106
8124
  * to postpone its tasks.
8107
8125
  * @param persistImages - if true, image meshes will not be set visible = false
8108
8126
  */
8109
- onInvisible(persistImages?: boolean): void;
8127
+ onInvisible(persistImages?: boolean, persistPaths?: boolean): void;
8110
8128
  /**
8111
8129
  * Queue a task on this map that will be executed when the high and low
8112
8130
  * priority tasks have been processed.
@@ -8200,6 +8218,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.CameraLayers' {
8200
8218
  let STATIC: number;
8201
8219
  let ANIMATED: number;
8202
8220
  let ALWAYS_ON_TOP: number;
8221
+ let ANIMATED_BACKGROUND: number;
8203
8222
  }
8204
8223
  }
8205
8224
 
@@ -9216,6 +9235,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9216
9235
  transitionResolved: any;
9217
9236
  disable: () => Promise<void>;
9218
9237
  enable: (opts?: TStackedMapsOptions) => Promise<void>;
9238
+ publishChangeEvent: () => void;
9219
9239
  get nodesInJourneyOrMap(): MappedinNode[];
9220
9240
  showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
9221
9241
  scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
@@ -9459,6 +9479,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9459
9479
  mapboxOutdoorContext: any;
9460
9480
  staticSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9461
9481
  animatedSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9482
+ animatedSceneBackgroundRenderTarget: WebGLRenderTarget<Texture> | undefined;
9462
9483
  alwaysOnTopSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9463
9484
  outdoorViewRenderTarget: WebGLRenderTarget<Texture> | undefined;
9464
9485
  populateRenderTarget(renderTarget: any): void;
@@ -9471,6 +9492,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9471
9492
  * Dispose of the renderer and its buffers.
9472
9493
  */
9473
9494
  destroy(): void;
9495
+ renderToAnimatedBackgroundBuffer(scene: any, sceneCamera: any): void;
9474
9496
  /**
9475
9497
  * Render the provided scene using the given camera, re-rendering only
9476
9498
  * the animated parts.
@@ -9584,6 +9606,8 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/JourneyContro
9584
9606
  constructor(directions: MappedinDirections | MappedinDirections[], options: TJourneyOptions | undefined, core: Core);
9585
9607
  setStep: (step: any) => void;
9586
9608
  setStepByPath: (path: Path) => void;
9609
+ overviewPathMode: 'never' | 'always' | 'current-elevation-and-mapgroup';
9610
+ setOverviewPathMode(mode: 'never' | 'always' | 'current-elevation-and-mapgroup'): void;
9587
9611
  static instance: JourneyController | null;
9588
9612
  static create(directions: MappedinDirections | MappedinDirections[], options: any, core: Core): JourneyController;
9589
9613
  destroy(): void;
@@ -11646,6 +11670,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
11646
11670
  staticSceneDepthTexture: Uniform;
11647
11671
  animatedSceneColorTexture: Uniform;
11648
11672
  animatedSceneDepthTexture: Uniform;
11673
+ animatedSceneBackgroundTexture: Uniform;
11649
11674
  alwaysOnTopSceneColorTexture: Uniform;
11650
11675
  alwaysOnBottomSceneColorTexture: Uniform;
11651
11676
  };