@mappedin/mappedin-js 5.37.0 → 5.38.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.
@@ -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;