@mappedin/mappedin-js 5.31.0 → 5.33.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.33.0"}}}));export{c as a,e as b};
@@ -766,7 +766,7 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
766
766
  }
767
767
 
768
768
  declare module '@mappedin/mappedin-js/get-venue' {
769
- import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
769
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata, ThingsOption } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
770
770
  import { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
771
771
  import { defaultThings } from '@mappedin/mappedin-js/get-venue/default-things';
772
772
  import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/get-venue/internal';
@@ -804,6 +804,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
804
804
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/get-venue/MappedinLocation';
805
805
  export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/get-venue/MappedinCoordinate';
806
806
  export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/get-venue/internal';
807
+ export type { ThingsOption };
807
808
  export { OfflineSearch } from '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch';
808
809
  export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch';
809
810
  export { defaultThings };
@@ -1135,7 +1136,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
1135
1136
  }
1136
1137
 
1137
1138
  declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1138
- import type { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/mappedin-js/get-venue';
1139
+ import type { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon, ThingsOption } from '@mappedin/mappedin-js/get-venue';
1139
1140
  import type { TFloatingLabelAppearance } from '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel';
1140
1141
  import type { TEnableBlueDotOptions, TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
1141
1142
  import type { Euler, Object3D, Vector3 } from 'three';
@@ -1143,7 +1144,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1143
1144
  import { TOOLTIP_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
1144
1145
  import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE, CAMERA_EASING_MODE, E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
1145
1146
  import { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL } from '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewController';
1146
- export type { TEnableBlueDotOptions, TFloatingLabelAppearance };
1147
+ export type { TEnableBlueDotOptions, TFloatingLabelAppearance, ThingsOption };
1147
1148
  /** @internal */
1148
1149
  export type Without<T, U> = {
1149
1150
  [P in Exclude<keyof T, keyof U>]?: never;
@@ -3522,6 +3523,26 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3522
3523
  * @returns Promise when all animations are complete.
3523
3524
  */
3524
3525
  zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
3526
+ /**
3527
+ * @experimental
3528
+ *
3529
+ * Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
3530
+ * current stack if there is a new Journey or Journey is cleared.
3531
+ *
3532
+ * @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
3533
+ *
3534
+ * @example
3535
+ * ```ts
3536
+ * mapView.Journey.draw(...);
3537
+ * mapView.StackedMaps.enable();
3538
+ * mapView.StackedMaps.showOverview();
3539
+ * mapView.Journey.clear();
3540
+ * mapView.StackedMaps.restack();
3541
+ * ```
3542
+ *
3543
+ * @returns Promise when all animations are complete.
3544
+ */
3545
+ restack: (options?: TStackedMapsOptions) => Promise<void>;
3525
3546
  /**
3526
3547
  * @experimental
3527
3548
  *
@@ -3686,6 +3707,12 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Layers' {
3686
3707
  * Adds a GeoJSON Feature or FeatureCollection to the map as a layer. The layer name must be unique
3687
3708
  */
3688
3709
  addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void> | undefined;
3710
+ /**
3711
+ * @experimental
3712
+ * Hides a GeoJSON layer from the map and removes it from the list of layers.
3713
+ * It will not appear in {@link getAllLayersForMap} afterwards and can be overwritten by a new layer with the same name.
3714
+ */
3715
+ removeGeoJSONLayer(layerName: string): Promise<void> | undefined;
3689
3716
  }
3690
3717
  export default LayerController;
3691
3718
  }
@@ -4133,7 +4160,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkCont
4133
4160
  #private;
4134
4161
  static ENABLED: boolean;
4135
4162
  static OPTIONS: Required<TShowWatermarkOptions>;
4136
- object: Sprite;
4163
+ object?: Sprite;
4137
4164
  constructor(core: ICore);
4138
4165
  show: () => void;
4139
4166
  hide: () => void;
@@ -4809,6 +4836,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
4809
4836
  clientId: string;
4810
4837
  clientSecret: string;
4811
4838
  venue: string;
4839
+ accessToken: string;
4812
4840
  };
4813
4841
  export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
4814
4842
  perspective?: string;
@@ -6611,115 +6639,141 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
6611
6639
  import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
6612
6640
  import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
6613
6641
  enum ACTION {
6614
- enable = "enable",
6615
- disable = "disable",
6616
- showOverview = "showOverview",
6617
- zoomInToMap = "zoomInToMap",
6618
- scrollToMap = "scrollToMap"
6642
+ enable = "enable",
6643
+ disable = "disable",
6644
+ showOverview = "showOverview",
6645
+ zoomInToMap = "zoomInToMap",
6646
+ scrollToMap = "scrollToMap",
6647
+ restack = "restack"
6619
6648
  }
6620
6649
  type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
6621
6650
  type TParams = {
6622
- map: MappedinMap;
6651
+ map: MappedinMap;
6623
6652
  } | {
6624
- directions: MappedinDirections | MappedinDirections[];
6653
+ directions: MappedinDirections | MappedinDirections[];
6625
6654
  } | {
6626
- stackScene: MapViewStackScene;
6627
- directions: MappedinDirections | MappedinDirections[];
6628
- verticalDistanceBetweenMaps?: number;
6655
+ stackScene: MapViewStackScene;
6656
+ directions: MappedinDirections | MappedinDirections[];
6657
+ verticalDistanceBetweenMaps?: number;
6629
6658
  } | {
6630
- stackScene: MapViewStackScene;
6631
- verticalDistanceBetweenMaps?: number;
6632
- map: MappedinMap;
6633
- nodes: MappedinNode[];
6659
+ stackScene: MapViewStackScene;
6660
+ verticalDistanceBetweenMaps?: number;
6661
+ map: MappedinMap;
6662
+ nodes: MappedinNode[];
6634
6663
  } | {
6635
- stackScene: MapViewStackScene;
6636
- map: MappedinMap;
6637
- nodes: MappedinNode[];
6638
- rotation: number;
6639
- cameraTransform?: TCameraTransform;
6640
- verticalDistanceBetweenMaps?: number;
6664
+ stackScene: MapViewStackScene;
6665
+ map: MappedinMap;
6666
+ nodes: MappedinNode[];
6667
+ rotation: number;
6668
+ cameraTransform?: TCameraTransform;
6669
+ verticalDistanceBetweenMaps?: number;
6641
6670
  };
6642
6671
  type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
6643
6672
  type TState = {
6644
- [stateName in STACKED_MAPS_STATE]?: {
6645
- actions: {
6646
- [actionName in ACTION]?: TActionFn;
6673
+ [stateName in STACKED_MAPS_STATE]?: {
6674
+ actions: {
6675
+ [actionName in ACTION]?: TActionFn;
6676
+ };
6647
6677
  };
6648
- };
6649
6678
  };
6650
6679
  export type TInternalTransitionOptions = {
6651
- animate?: boolean;
6680
+ animate?: boolean;
6652
6681
  };
6653
6682
  export type TStackedMapsOptions = {
6654
- verticalDistanceBetweenMaps?: number;
6655
- mapLabels?: boolean;
6683
+ /**
6684
+ * The vertical distance between maps in overview, in metres.
6685
+ * @default 50
6686
+ */
6687
+ verticalDistanceBetweenMaps?: number;
6688
+ /**
6689
+ * Whether to show map level labels in overview.
6690
+ * @default true
6691
+ */
6692
+ mapLabels?: boolean;
6693
+ /**
6694
+ * Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
6695
+ * @default true
6696
+ */
6697
+ prioritizeJourneyMaps?: boolean;
6656
6698
  };
6657
6699
  class StackedMapsController {
6658
- #private;
6659
- options: TStackedMapsOptions;
6660
- enabled: boolean;
6661
- stackScene: MapViewStackScene;
6662
- directions: MappedinDirections | MappedinDirections[];
6663
- constructor(core: ICore);
6664
- needsUpdate: boolean;
6665
- currentState: STACKED_MAPS_STATE;
6666
- mapsInJourney: MappedinMap[];
6667
- getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
6668
- activeMap: MappedinMap;
6669
- focusOn: {
6670
- targets: {
6671
- nodes: MappedinNode[];
6672
- };
6673
- options: {
6674
- zoom?: number | undefined;
6675
- tilt: number;
6676
- rotation: number;
6677
- position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
6678
- easing: CAMERA_EASING_MODE;
6679
- };
6680
- };
6681
- })[] | undefined;
6682
- getDisableOptions: (params: TParams) => (MapViewScene | {
6683
- activeMap: MappedinMap;
6684
- })[] | undefined;
6685
- getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
6686
- activeMap: MappedinMap;
6687
- focusOn: {
6688
- options: {
6689
- tilt: number;
6690
- duration: number;
6691
- };
6692
- };
6693
- verticalDistanceBetweenMaps: number | undefined;
6694
- })[] | undefined;
6695
- getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
6696
- focusOn: {
6697
- targets: {
6698
- nodes: MappedinNode[];
6699
- };
6700
- options: {
6701
- tilt: number;
6702
- easing: CAMERA_EASING_MODE;
6703
- };
6704
- };
6705
- activeMap: MappedinMap;
6706
- })[] | undefined;
6707
- getEnableOptions: (params: TParams) => void;
6708
- getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6709
- getZoomInToMapTransition: (options: any) => () => Promise<void>;
6710
- getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6711
- getDisableTransition: (options: any) => () => Promise<void>;
6712
- getEnableTransition: () => () => void;
6713
- states: TState;
6714
- transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
6715
- exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
6716
- disable: () => Promise<void>;
6717
- enable: (opts?: TStackedMapsOptions) => Promise<void>;
6718
- get nodesInJourney(): MappedinNode[];
6719
- showOverview: () => Promise<void>;
6720
- scrollToMap: (map: MappedinMap) => Promise<void>;
6721
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
6722
- get currentMap(): MappedinMap;
6700
+ #private;
6701
+ options: TStackedMapsOptions;
6702
+ enabled: boolean;
6703
+ stackScene: MapViewStackScene;
6704
+ constructor(core: ICore);
6705
+ needsUpdate: boolean;
6706
+ currentState: STACKED_MAPS_STATE;
6707
+ mapsInStack: MappedinMap[];
6708
+ getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
6709
+ activeMap: MappedinMap;
6710
+ focusOn: {
6711
+ targets: {
6712
+ nodes: MappedinNode[];
6713
+ };
6714
+ options: {
6715
+ zoom?: number | undefined;
6716
+ tilt: number;
6717
+ rotation: number;
6718
+ position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
6719
+ easing: CAMERA_EASING_MODE;
6720
+ };
6721
+ };
6722
+ })[] | undefined;
6723
+ getDisableOptions: (params: TParams) => (MapViewScene | {
6724
+ activeMap: MappedinMap;
6725
+ })[] | undefined;
6726
+ getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
6727
+ activeMap: MappedinMap;
6728
+ focusOn: {
6729
+ options: {
6730
+ tilt: number;
6731
+ duration: number;
6732
+ };
6733
+ };
6734
+ verticalDistanceBetweenMaps: number | undefined;
6735
+ })[] | undefined;
6736
+ getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
6737
+ focusOn: {
6738
+ targets: {
6739
+ nodes: MappedinNode[];
6740
+ };
6741
+ options: {
6742
+ tilt: number;
6743
+ easing: CAMERA_EASING_MODE;
6744
+ };
6745
+ };
6746
+ activeMap: MappedinMap;
6747
+ })[] | undefined;
6748
+ getRestackOptions: (params: TParams) => (MapViewStackScene | {
6749
+ activeMap: MappedinMap;
6750
+ focusOn: {
6751
+ options: {
6752
+ tilt: number;
6753
+ duration: number;
6754
+ };
6755
+ };
6756
+ verticalDistanceBetweenMaps: number | undefined;
6757
+ })[] | undefined;
6758
+ getEnableOptions: () => void;
6759
+ getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6760
+ getZoomInToMapTransition: (options: any) => () => Promise<void>;
6761
+ getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6762
+ getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6763
+ getDisableTransition: (options: any) => () => Promise<void>;
6764
+ getEnableTransition: () => () => void;
6765
+ states: TState;
6766
+ get determineMapStack(): MappedinMap[];
6767
+ transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
6768
+ exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
6769
+ disable: () => Promise<void>;
6770
+ enable: (opts?: TStackedMapsOptions) => Promise<void>;
6771
+ get nodesInJourneyOrMap(): any[];
6772
+ showOverview: () => Promise<void>;
6773
+ scrollToMap: (map: MappedinMap) => Promise<void>;
6774
+ restack: (options?: TStackedMapsOptions) => Promise<void>;
6775
+ zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
6776
+ get currentMap(): MappedinMap;
6723
6777
  }
6724
6778
  export default StackedMapsController;
6725
6779
  }
@@ -6983,7 +7037,10 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
6983
7037
  * An object containing all outlined polygons.
6984
7038
  */
6985
7039
  outlinedPolygons: Map<string, MappedinPolygon>;
6986
- cameraPlane: any;
7040
+ /**
7041
+ * A plane that is parallel to the ground and is used for raycasting.
7042
+ */
7043
+ worldPlane: Mesh;
6987
7044
  getPositionLatLon(lat: number, lon: number, map?: MappedinMap | string | null): Vector3;
6988
7045
  currentScale: number;
6989
7046
  getPositionPolygon(polygon: MappedinPolygon | string): Vector3;
@@ -7691,7 +7748,7 @@ declare module '@mappedin/mappedin-js/get-venue/pub-sub.typed' {
7691
7748
  * @template EVENT_PAYLOAD - The type of the event payload.
7692
7749
  * @template EVENT - The type of the event.
7693
7750
  */
7694
- export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD> {
7751
+ export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
7695
7752
  /**
7696
7753
  * @private
7697
7754
  * @internal
@@ -8722,73 +8779,76 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
8722
8779
  import type { ICore, MappedinPolygon, Collider } from '@mappedin/mappedin-js/renderer/internal';
8723
8780
  import { BlueDotManager, Path } from '@mappedin/mappedin-js/renderer/internal';
8724
8781
  class EventSystem {
8725
- core: ICore;
8726
- blueDotManager?: BlueDotManager;
8727
- rendererDomElement: any;
8728
- currentHover: string | null;
8729
- hoverLabel: any;
8730
- hoverColor: Color;
8731
- options: {
8732
- disableHover: boolean;
8733
- };
8734
- constructor(core: ICore);
8735
- setBlueDotManager: (blueDotManager: any) => void;
8736
- touchCount: number;
8737
- zoomOut(): void;
8738
- zoomIn(event: any): void;
8739
- onPointerMove: (event: any) => void;
8740
- onPointerUp: (event: any) => void;
8741
- /**
8742
- * We've confirmed that a map click has occured, so handle that here
8743
- */
8744
- handleMapClick(event: any): void;
8745
- onPointerDown: (event: any) => void;
8746
- incrementTouches: (event: any) => void;
8747
- decrementTouches: (event: any) => void;
8748
- clearMouse: () => void;
8749
- getMousePos: (event: any) => {
8750
- x: any;
8751
- y: any;
8752
- };
8753
- getScaledMousePos: (event: any) => {
8754
- x: number;
8755
- y: number;
8756
- };
8757
- cursorPos: {
8758
- x: number;
8759
- y: number;
8760
- };
8761
- mouse: {
8762
- x: number;
8763
- y: number;
8764
- };
8765
- mouseDownStart: {
8766
- time: number;
8767
- clientX: number;
8768
- clientY: number;
8769
- };
8770
- scaledCursorPos: {
8771
- x: number;
8772
- y: number;
8773
- };
8774
- hasTouched: boolean;
8775
- calculateMouseCoordinates: (event: any) => void;
8776
- getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
8777
- detectCollidersUnderMouse: () => Collider[];
8778
- detectPolygonsUnderMouse: () => string[];
8779
- detectPathsUnderMouse: () => Path[];
8780
- detectWatermarkUnderMouse: () => boolean;
8781
- detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
8782
- getMouseMapPosition: () => {
8783
- x: number;
8784
- y: number;
8785
- };
8786
- checkMouseIntersectsBlueDot: () => boolean;
8787
- doHoverEffect: () => void;
8788
- onPolygonHoverOut: (polygonId: string) => false | undefined;
8789
- onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
8790
- setHoverColor: (color: string) => void;
8791
- destroy(): void;
8782
+ core: ICore;
8783
+ blueDotManager?: BlueDotManager;
8784
+ rendererDomElement: any;
8785
+ currentHover: string | null;
8786
+ hoverLabel: any;
8787
+ hoverColor: Color;
8788
+ options: {
8789
+ disableHover: boolean;
8790
+ };
8791
+ constructor(core: ICore);
8792
+ setBlueDotManager: (blueDotManager: any) => void;
8793
+ touchCount: number;
8794
+ zoomOut(): void;
8795
+ zoomIn(event: any): void;
8796
+ onPointerMove: (event: any) => void;
8797
+ onPointerUp: (event: any) => void;
8798
+ /**
8799
+ * We've confirmed that a map click has occured, so handle that here
8800
+ */
8801
+ handleMapClick(event: any): void;
8802
+ onPointerDown: (event: any) => void;
8803
+ incrementTouches: (event: any) => void;
8804
+ decrementTouches: (event: any) => void;
8805
+ clearMouse: () => void;
8806
+ getMousePos: (event: any) => {
8807
+ x: any;
8808
+ y: any;
8809
+ };
8810
+ getScaledMousePos: (event: any) => {
8811
+ x: number;
8812
+ y: number;
8813
+ };
8814
+ cursorPos: {
8815
+ x: number;
8816
+ y: number;
8817
+ };
8818
+ mouse: {
8819
+ x: number;
8820
+ y: number;
8821
+ };
8822
+ mouseDownStart: {
8823
+ time: number;
8824
+ clientX: number;
8825
+ clientY: number;
8826
+ };
8827
+ scaledCursorPos: {
8828
+ x: number;
8829
+ y: number;
8830
+ };
8831
+ hasTouched: boolean;
8832
+ calculateMouseCoordinates: (event: any) => void;
8833
+ getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
8834
+ detectCollidersUnderMouse: () => Collider[];
8835
+ detectPolygonsUnderMouse: () => string[];
8836
+ detectPathsUnderMouse: () => Path[];
8837
+ detectWatermarkUnderMouse: () => boolean;
8838
+ detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
8839
+ /**
8840
+ * Gets mouse click position in x y map coordinates
8841
+ */
8842
+ getMouseMapPosition: () => {
8843
+ x: number;
8844
+ y: number;
8845
+ };
8846
+ checkMouseIntersectsBlueDot: () => boolean;
8847
+ doHoverEffect: () => void;
8848
+ onPolygonHoverOut: (polygonId: string) => false | undefined;
8849
+ onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
8850
+ setHoverColor: (color: string) => void;
8851
+ destroy(): void;
8792
8852
  }
8793
8853
  export default EventSystem;
8794
8854
  }
@@ -9310,7 +9370,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/ExportControl
9310
9370
  /**
9311
9371
  * Exports the current scene as a GLTF file.
9312
9372
  */
9313
- getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
9373
+ getCurrentSceneGLTF: (userOptions: TGLTFExportOptions) => Promise<Blob>;
9314
9374
  }
9315
9375
  }
9316
9376
 
@@ -9334,6 +9394,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/LayerControll
9334
9394
  */
9335
9395
  getVisibleLayersForLoadedMap(map: MappedinMap): string[] | undefined;
9336
9396
  addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void>;
9397
+ removeGeoJSONLayer(layerName: string): Promise<void>;
9337
9398
  }
9338
9399
  export default LayerController;
9339
9400
  }
@@ -9905,7 +9966,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
9905
9966
  resolution: Vector2;
9906
9967
  cameraParameters: any;
9907
9968
  controls: typeof Mappedin.CameraControls;
9908
- cameraPlane: Mesh;
9969
+ worldPlane: Mesh;
9909
9970
  canvasWidth: number;
9910
9971
  canvasHeight: number;
9911
9972
  cachedPadding: TPadding;
@@ -10610,60 +10671,73 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinVenue' {
10610
10671
  import type { Mappedin } from '@mappedin/mappedin-js/get-venue/internal';
10611
10672
  import type { TLogo, TOpeningHours } from '@mappedin/mappedin-js/get-venue/Mappedin.API.types';
10612
10673
  /**
10613
- * A {@link MappedinVenue} is a specific place (like a mall) with one or more Maps (typically representing different floors) and Locations (stores, washrooms, elevators, etc).
10614
- *
10615
- * A Venue can have more properties such as 'name' and 'slug'. The {@link Mappedin} 'things' object is where you would specify what properties you want to download for Venues. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
10616
- *
10617
- * See below for an example a 'things' object with available Venue properties specified:
10618
- *
10619
- * things: {
10620
- * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
10621
- * locations: [],
10622
- * categories: [],
10623
- * maps: []
10624
- * }
10625
- *
10626
- *
10627
- * @class MappedinVenue
10628
- */
10674
+ * A {@link MappedinVenue} is a specific place (like a mall) with one or more Maps (typically representing different floors) and Locations (stores, washrooms, elevators, etc).
10675
+ *
10676
+ * A Venue can have more properties such as 'name' and 'slug'. The {@link Mappedin} 'things' object is where you would specify what properties you want to download for Venues. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
10677
+ *
10678
+ * See below for an example a 'things' object with available Venue properties specified:
10679
+ *
10680
+ * things: {
10681
+ * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
10682
+ * locations: [],
10683
+ * categories: [],
10684
+ * maps: []
10685
+ * }
10686
+ *
10687
+ *
10688
+ * @class MappedinVenue
10689
+ */
10629
10690
  export class MappedinVenue {
10630
- #private;
10631
- defaultMap: string;
10632
- address: string;
10633
- city: string;
10634
- countrycode: string;
10635
- externalId: string;
10636
- id: string;
10637
- latitude?: number;
10638
- logo?: TLogo;
10639
- longitude?: number;
10640
- name: string;
10641
- operationHours?: TOpeningHours[];
10642
- postal: string;
10643
- slug: string;
10644
- state: string;
10645
- telephone: string;
10646
- tzid: string;
10647
- tzidOverride: string;
10648
- utcOffset: string;
10649
- website: string;
10650
- secureContentStorage: boolean;
10651
- defaultLanguage: {
10652
- code: string;
10653
- name: string;
10654
- };
10655
- languages: {
10691
+ #private;
10692
+ defaultMap: string;
10693
+ address: string;
10694
+ city: string;
10695
+ countrycode: string;
10696
+ externalId: string;
10697
+ id: string;
10698
+ latitude?: number;
10699
+ logo?: TLogo;
10700
+ longitude?: number;
10656
10701
  name: string;
10657
- code: string;
10658
- }[];
10659
- topLocations?: string[];
10660
- constructor(mappedin: Mappedin, data: any);
10661
- get metadata(): any;
10662
- set metadata(value: any);
10663
- static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
10664
- static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
10665
- get isMultiBuilding(): any;
10666
- toJSON(): any;
10702
+ operationHours?: TOpeningHours[];
10703
+ postal: string;
10704
+ slug: string;
10705
+ state: string;
10706
+ telephone: string;
10707
+ tzid: string;
10708
+ tzidOverride: string;
10709
+ utcOffset: string;
10710
+ website: string;
10711
+ secureContentStorage: boolean;
10712
+ defaultLanguage: {
10713
+ code: string;
10714
+ name: string;
10715
+ };
10716
+ languages: {
10717
+ name: string;
10718
+ code: string;
10719
+ }[];
10720
+ topLocations?: string[];
10721
+ /**
10722
+ * Venue render options provided by the server.
10723
+ */
10724
+ renderOptions: {
10725
+ /**
10726
+ * Whether the venue should use perspectives to render the map or {@link Mappedin.polygons}.
10727
+ */
10728
+ useLivePolygons: boolean;
10729
+ /**
10730
+ * Whether the venue should automatically apply {@link TDirectionToOptions} `simplify: { enabled: true }` to all directions.
10731
+ */
10732
+ simplifyDirections: boolean;
10733
+ };
10734
+ constructor(mappedin: Mappedin, data: any);
10735
+ get metadata(): any;
10736
+ set metadata(value: any);
10737
+ static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
10738
+ static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
10739
+ get isMultiBuilding(): any;
10740
+ toJSON(): any;
10667
10741
  }
10668
10742
  }
10669
10743