@mappedin/mappedin-js 5.36.0 → 5.38.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.38.0"}}}));export{c as a,e as b};
@@ -3440,7 +3440,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Paths' {
3440
3440
  declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3441
3441
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
3442
3442
  import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
3443
- import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
3443
+ import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform, TCameraAnimationOptions } from '@mappedin/mappedin-js/renderer/internal';
3444
3444
  /**
3445
3445
  * @experimental
3446
3446
  * API for showing multiple maps involved in a {@link Journey} as a vertical stack.
@@ -3504,7 +3504,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3504
3504
  *
3505
3505
  * @returns Promise when all animations are complete.
3506
3506
  */
3507
- showOverview: () => Promise<void>;
3507
+ showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
3508
3508
  /**
3509
3509
  * @experimental
3510
3510
  *
@@ -3512,7 +3512,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3512
3512
  *
3513
3513
  * @example
3514
3514
  * ```ts
3515
- * // Zoom into a clicked map if Stacked Maps is in Overview state
3515
+ * // Scroll the camera to a specific map if Stacked Maps is in Overview state
3516
3516
  * mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
3517
3517
  * if (maps.length <= 0) return;
3518
3518
  * if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
@@ -3523,7 +3523,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3523
3523
  *
3524
3524
  * @returns Promise when all animations are complete.
3525
3525
  */
3526
- scrollToMap: (map: MappedinMap) => Promise<void>;
3526
+ scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
3527
3527
  /**
3528
3528
  * @experimental
3529
3529
  *
@@ -3542,7 +3542,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3542
3542
  *
3543
3543
  * @returns Promise when all animations are complete.
3544
3544
  */
3545
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
3545
+ zoomInToMap: (map: MappedinMap, cameraOptions?: TCameraTransform & TCameraAnimationOptions) => Promise<void>;
3546
3546
  /**
3547
3547
  * @experimental
3548
3548
  *
@@ -4168,7 +4168,6 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
4168
4168
 
4169
4169
  declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController' {
4170
4170
  import { ICore } from '@mappedin/mappedin-js/renderer/private/Core.interface';
4171
- import { Sprite } from 'three';
4172
4171
  type TPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
4173
4172
  export type TShowWatermarkOptions = {
4174
4173
  /**
@@ -4224,7 +4223,16 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkCont
4224
4223
  #private;
4225
4224
  static ENABLED: boolean;
4226
4225
  static OPTIONS: Required<TShowWatermarkOptions>;
4227
- object?: Sprite;
4226
+ /**
4227
+ * The current calculated position and size of the watermark on the screen. It is updated every resize.
4228
+ * This is public so it can be used in event system.
4229
+ */
4230
+ position: {
4231
+ x: number;
4232
+ y: number;
4233
+ width: number;
4234
+ height: number;
4235
+ };
4228
4236
  constructor(core: ICore);
4229
4237
  show: () => void;
4230
4238
  hide: () => void;
@@ -4832,6 +4840,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Exporter' {
4832
4840
  onlyVisible?: boolean;
4833
4841
  binary?: boolean;
4834
4842
  scale?: number;
4843
+ light?: boolean;
4835
4844
  };
4836
4845
  /**
4837
4846
  * API to export the scene.
@@ -8769,7 +8778,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
8769
8778
  touchCount: number;
8770
8779
  zoomOut(): void;
8771
8780
  zoomIn(event: any): void;
8772
- onPointerMove: (event: any) => void;
8781
+ onPointerMove: (event: PointerEvent) => void;
8773
8782
  onPointerUp: (event: any) => void;
8774
8783
  /**
8775
8784
  * We've confirmed that a map click has occured, so handle that here
@@ -8810,7 +8819,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
8810
8819
  detectCollidersUnderMouse: () => Collider[];
8811
8820
  detectPolygonsUnderMouse: () => string[];
8812
8821
  detectPathsUnderMouse: () => Path[];
8813
- detectWatermarkUnderMouse: () => boolean;
8822
+ detectWatermarkUnderMouse: (event: PointerEvent) => boolean;
8814
8823
  detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
8815
8824
  /**
8816
8825
  * Gets mouse click position in x y map coordinates
@@ -8820,7 +8829,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
8820
8829
  y: number;
8821
8830
  };
8822
8831
  checkMouseIntersectsBlueDot: () => boolean;
8823
- doHoverEffect: () => void;
8832
+ doHoverEffect: (event: PointerEvent) => void;
8824
8833
  onPolygonHoverOut: (polygonId: string) => false | undefined;
8825
8834
  onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
8826
8835
  setHoverColor: (color: string) => void;
@@ -8963,7 +8972,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BillboardMana
8963
8972
  declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
8964
8973
  import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
8965
8974
  import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
8966
- import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
8975
+ import type { ICore, TCameraTransform, TCameraAnimationOptions } from '@mappedin/mappedin-js/renderer/internal';
8967
8976
  import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
8968
8977
  enum ACTION {
8969
8978
  enable = "enable",
@@ -8982,18 +8991,24 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
8982
8991
  stackScene: MapViewStackScene;
8983
8992
  directions: MappedinDirections | MappedinDirections[];
8984
8993
  verticalDistanceBetweenMaps?: number;
8994
+ animationOptions?: TCameraAnimationOptions;
8985
8995
  } | {
8986
8996
  stackScene: MapViewStackScene;
8987
8997
  verticalDistanceBetweenMaps?: number;
8988
8998
  map: MappedinMap;
8989
8999
  nodes: MappedinNode[];
9000
+ cameraOptions?: TCameraTransform & TCameraAnimationOptions;
9001
+ duration?: number;
9002
+ animationOptions?: TCameraAnimationOptions;
8990
9003
  } | {
8991
9004
  stackScene: MapViewStackScene;
8992
9005
  map: MappedinMap;
8993
9006
  nodes: MappedinNode[];
8994
9007
  rotation: number;
8995
- cameraTransform?: TCameraTransform;
9008
+ cameraOptions?: TCameraTransform & TCameraAnimationOptions;
8996
9009
  verticalDistanceBetweenMaps?: number;
9010
+ duration?: number;
9011
+ animationOptions?: TCameraAnimationOptions;
8997
9012
  };
8998
9013
  type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
8999
9014
  type TState = {
@@ -9026,6 +9041,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9026
9041
  tilt: number;
9027
9042
  rotation: number;
9028
9043
  position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
9044
+ duration?: number | undefined;
9029
9045
  easing: CAMERA_EASING_MODE;
9030
9046
  };
9031
9047
  };
@@ -9037,8 +9053,9 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9037
9053
  activeMap: MappedinMap;
9038
9054
  focusOn: {
9039
9055
  options: {
9040
- tilt: number;
9041
9056
  duration: number;
9057
+ easing?: CAMERA_EASING_MODE | undefined;
9058
+ tilt: number;
9042
9059
  };
9043
9060
  };
9044
9061
  verticalDistanceBetweenMaps: number | undefined;
@@ -9054,6 +9071,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9054
9071
  };
9055
9072
  };
9056
9073
  activeMap: MappedinMap;
9074
+ duration: number | undefined;
9057
9075
  })[] | undefined;
9058
9076
  getRestackOptions: (params: TParams) => (MapViewStackScene | {
9059
9077
  activeMap: MappedinMap;
@@ -9079,10 +9097,10 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
9079
9097
  disable: () => Promise<void>;
9080
9098
  enable: (opts?: TStackedMapsOptions) => Promise<void>;
9081
9099
  get nodesInJourneyOrMap(): any[];
9082
- showOverview: () => Promise<void>;
9083
- scrollToMap: (map: MappedinMap) => Promise<void>;
9100
+ showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
9101
+ scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
9084
9102
  restack: (options?: TStackedMapsOptions) => Promise<void>;
9085
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
9103
+ zoomInToMap: (map: MappedinMap, cameraOptions?: TCameraTransform & TCameraAnimationOptions) => Promise<void>;
9086
9104
  get currentMap(): MappedinMap;
9087
9105
  }
9088
9106
  export default StackedMapsController;