@mappedin/mappedin-js 5.30.1 → 5.32.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.
@@ -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;
@@ -2470,6 +2471,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/MarkersContro
2470
2471
  }
2471
2472
 
2472
2473
  declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsController' {
2474
+ import { Group } from 'three';
2473
2475
  import { MappedinNode, MappedinCoordinate } from '@mappedin/mappedin-js/get-venue';
2474
2476
  import type { ICore, TPathOptions } from '@mappedin/mappedin-js/renderer/internal';
2475
2477
  import { ANIMATION_TWEENS } from '@mappedin/mappedin-js/renderer/internal';
@@ -2550,7 +2552,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
2550
2552
  path: Path;
2551
2553
  internalPath: InternalPath;
2552
2554
  }>;
2553
- connectionsPathMeshes: any;
2555
+ connectionsPathMeshes: Group<import("three").Object3DEventMap>;
2554
2556
  getPathLength(path: any): number;
2555
2557
  /**
2556
2558
  * Draws path in 3D space
@@ -3419,6 +3421,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Paths' {
3419
3421
  declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3420
3422
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
3421
3423
  import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
3424
+ import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController';
3422
3425
  /**
3423
3426
  * @experimental
3424
3427
  * API for showing multiple maps involved in a {@link Journey} as a vertical stack.
@@ -3452,9 +3455,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
3452
3455
  *
3453
3456
  * @returns Promise when all animations are complete.
3454
3457
  */
3455
- enable: (opts?: {
3456
- verticalDistanceBetweenMaps?: number;
3457
- }) => Promise<void>;
3458
+ enable: (opts?: TStackedMapsOptions) => Promise<void>;
3458
3459
  /**
3459
3460
  * @experimental
3460
3461
  *
@@ -4041,23 +4042,21 @@ declare module '@mappedin/mappedin-js/renderer/MapView.enums' {
4041
4042
  }
4042
4043
 
4043
4044
  declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager' {
4044
- import { Texture } from 'three';
4045
+ import { Texture, TextureLoader } from 'three';
4045
4046
  import type { MappedinMap } from '@mappedin/mappedin-js/get-venue';
4046
4047
  /**
4047
4048
  * @internal
4048
4049
  */
4049
4050
  export default class DefaultAssetManager {
4050
- textureLoader: any;
4051
+ textureLoader: TextureLoader;
4051
4052
  loadMapPolygons(map: MappedinMap): Promise<any>;
4052
4053
  loadImage(url: string): Promise<Texture>;
4053
4054
  }
4054
4055
  }
4055
4056
 
4056
4057
  declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager' {
4057
- import { Box3 } from 'three';
4058
4058
  import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
4059
4059
  import { MappedinCoordinate, MappedinMap } from '@mappedin/mappedin-js/get-venue';
4060
- import Object3D from '@mappedin/mappedin-js/renderer/internal/object3D.destroy';
4061
4060
  import { Tile } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile';
4062
4061
  import { IOutdoorContextProvider } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
4063
4062
  /**
@@ -4100,9 +4099,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
4100
4099
  fadeIn(): Promise<void>;
4101
4100
  fetchTiles(): void;
4102
4101
  zoomLevelToAltitudeMap: number[][];
4103
- plane: Object3D;
4102
+ plane: any;
4104
4103
  tiles: Tile[];
4105
- maskMeshBoundingBox: Box3;
4104
+ maskMeshBoundingBox?: any;
4106
4105
  fetchTilesForZoomLevel(zoomLevel: number): Promise<void>;
4107
4106
  /**
4108
4107
  * This function populates a layer of tiles starting from the center clockwise
@@ -4135,7 +4134,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkCont
4135
4134
  #private;
4136
4135
  static ENABLED: boolean;
4137
4136
  static OPTIONS: Required<TShowWatermarkOptions>;
4138
- object: Sprite;
4137
+ object?: Sprite;
4139
4138
  constructor(core: ICore);
4140
4139
  show: () => void;
4141
4140
  hide: () => void;
@@ -5078,11 +5077,11 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
5078
5077
  * @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
5079
5078
  * @param shouldPopulateBundledImagesAsBlobs Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
5080
5079
  */
5081
- hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>;
5080
+ hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean, updateInPlace?: boolean): Promise<undefined>;
5082
5081
  images: any;
5083
5082
  imageBinaries?: Map<string, Uint8Array>;
5084
5083
  scenes: any;
5085
- fetch(): Promise<void>;
5084
+ fetch(updateInPlace?: boolean): Promise<void>;
5086
5085
  /**
5087
5086
  * @deprecated Use {@link hydrateVenue} instead
5088
5087
  */
@@ -5425,6 +5424,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
5425
5424
  clone(): MappedinLocation;
5426
5425
  get nodeOperationHours(): TOperationHoursMap;
5427
5426
  static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
5427
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
5428
5428
  static fetch(mappedin: Mappedin): Promise<MappedinLocation[]>;
5429
5429
  /**
5430
5430
  *
@@ -6607,8 +6607,122 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/FlatLabelsCon
6607
6607
  export default FlatLabelsController;
6608
6608
  }
6609
6609
 
6610
- declare module '@mappedin/mappedin-js/renderer/internal/object3D.destroy' {
6611
- export default Object3D;
6610
+ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
6611
+ import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
6612
+ import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
6613
+ import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
6614
+ enum ACTION {
6615
+ enable = "enable",
6616
+ disable = "disable",
6617
+ showOverview = "showOverview",
6618
+ zoomInToMap = "zoomInToMap",
6619
+ scrollToMap = "scrollToMap"
6620
+ }
6621
+ type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
6622
+ type TParams = {
6623
+ map: MappedinMap;
6624
+ } | {
6625
+ directions: MappedinDirections | MappedinDirections[];
6626
+ } | {
6627
+ stackScene: MapViewStackScene;
6628
+ directions: MappedinDirections | MappedinDirections[];
6629
+ verticalDistanceBetweenMaps?: number;
6630
+ } | {
6631
+ stackScene: MapViewStackScene;
6632
+ verticalDistanceBetweenMaps?: number;
6633
+ map: MappedinMap;
6634
+ nodes: MappedinNode[];
6635
+ } | {
6636
+ stackScene: MapViewStackScene;
6637
+ map: MappedinMap;
6638
+ nodes: MappedinNode[];
6639
+ rotation: number;
6640
+ cameraTransform?: TCameraTransform;
6641
+ verticalDistanceBetweenMaps?: number;
6642
+ };
6643
+ type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
6644
+ type TState = {
6645
+ [stateName in STACKED_MAPS_STATE]?: {
6646
+ actions: {
6647
+ [actionName in ACTION]?: TActionFn;
6648
+ };
6649
+ };
6650
+ };
6651
+ export type TInternalTransitionOptions = {
6652
+ animate?: boolean;
6653
+ };
6654
+ export type TStackedMapsOptions = {
6655
+ verticalDistanceBetweenMaps?: number;
6656
+ mapLabels?: boolean;
6657
+ };
6658
+ class StackedMapsController {
6659
+ #private;
6660
+ options: TStackedMapsOptions;
6661
+ enabled: boolean;
6662
+ stackScene: MapViewStackScene;
6663
+ directions: MappedinDirections | MappedinDirections[];
6664
+ constructor(core: ICore);
6665
+ needsUpdate: boolean;
6666
+ currentState: STACKED_MAPS_STATE;
6667
+ mapsInJourney: MappedinMap[];
6668
+ getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
6669
+ activeMap: MappedinMap;
6670
+ focusOn: {
6671
+ targets: {
6672
+ nodes: MappedinNode[];
6673
+ };
6674
+ options: {
6675
+ zoom?: number | undefined;
6676
+ tilt: number;
6677
+ rotation: number;
6678
+ position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
6679
+ easing: CAMERA_EASING_MODE;
6680
+ };
6681
+ };
6682
+ })[] | undefined;
6683
+ getDisableOptions: (params: TParams) => (MapViewScene | {
6684
+ activeMap: MappedinMap;
6685
+ })[] | undefined;
6686
+ getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
6687
+ activeMap: MappedinMap;
6688
+ focusOn: {
6689
+ options: {
6690
+ tilt: number;
6691
+ duration: number;
6692
+ };
6693
+ };
6694
+ verticalDistanceBetweenMaps: number | undefined;
6695
+ })[] | undefined;
6696
+ getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
6697
+ focusOn: {
6698
+ targets: {
6699
+ nodes: MappedinNode[];
6700
+ };
6701
+ options: {
6702
+ tilt: number;
6703
+ easing: CAMERA_EASING_MODE;
6704
+ };
6705
+ };
6706
+ activeMap: MappedinMap;
6707
+ })[] | undefined;
6708
+ getEnableOptions: (params: TParams) => void;
6709
+ getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6710
+ getZoomInToMapTransition: (options: any) => () => Promise<void>;
6711
+ getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
6712
+ getDisableTransition: (options: any) => () => Promise<void>;
6713
+ getEnableTransition: () => () => void;
6714
+ states: TState;
6715
+ transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
6716
+ exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
6717
+ disable: () => Promise<void>;
6718
+ enable: (opts?: TStackedMapsOptions) => Promise<void>;
6719
+ get nodesInJourney(): MappedinNode[];
6720
+ showOverview: () => Promise<void>;
6721
+ scrollToMap: (map: MappedinMap) => Promise<void>;
6722
+ zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
6723
+ get currentMap(): MappedinMap;
6724
+ }
6725
+ export default StackedMapsController;
6612
6726
  }
6613
6727
 
6614
6728
  declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile' {
@@ -6621,8 +6735,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
6621
6735
  center: MappedinCoordinate;
6622
6736
  zoomLevel: number;
6623
6737
  mesh: Mesh;
6624
- material: MeshBasicMaterial;
6625
- texture: Texture;
6738
+ material?: MeshBasicMaterial;
6739
+ texture?: Texture;
6626
6740
  cache: {
6627
6741
  tileXY?: {
6628
6742
  tileX: number;
@@ -6639,7 +6753,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
6639
6753
  rendered: boolean;
6640
6754
  discardTexture(): void;
6641
6755
  applyTexture(): void;
6642
- render(metersPerTile: number, referenceMap: MappedinMap): Mesh;
6756
+ render(metersPerTile: number, referenceMap: MappedinMap): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
6643
6757
  }
6644
6758
  }
6645
6759
 
@@ -6924,6 +7038,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
6924
7038
  }
6925
7039
 
6926
7040
  declare module '@mappedin/mappedin-js/renderer/internal/json-scene-loader' {
7041
+ import { Group } from 'three';
6927
7042
  import { Element } from '@mappedin/mappedin-js/renderer/internal';
6928
7043
  import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
6929
7044
  import { MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
@@ -6943,12 +7058,12 @@ declare module '@mappedin/mappedin-js/renderer/internal/json-scene-loader' {
6943
7058
  on it, or a string URL to fetch those polygons from.
6944
7059
  **/
6945
7060
  load(polygons: string | MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
6946
- container: any;
7061
+ container: Group<import("three").Object3DEventMap>;
6947
7062
  elements: (Element | null)[];
6948
7063
  visibleLayers: Set<unknown>;
6949
7064
  }>;
6950
7065
  _build(polygons: MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
6951
- container: any;
7066
+ container: Group<import("three").Object3DEventMap>;
6952
7067
  elements: (Element | null)[];
6953
7068
  visibleLayers: Set<unknown>;
6954
7069
  }>;
@@ -7631,7 +7746,7 @@ declare module '@mappedin/mappedin-js/get-venue/pub-sub.typed' {
7631
7746
  }
7632
7747
 
7633
7748
  declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
7634
- import { Group, Box3, Mesh, MeshLambertMaterial, Object3D, Vector3 } from 'three';
7749
+ import { Box3, Mesh, MeshLambertMaterial, Object3D, Vector3, BufferGeometry } from 'three';
7635
7750
  import { FrameTaskGroup } from '@mappedin/mappedin-js/get-venue/Mappedin.TaskScheduler';
7636
7751
  import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, InternalFloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/mappedin-js/renderer/internal';
7637
7752
  import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
@@ -7657,10 +7772,10 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
7657
7772
  export const SCENE_FROM_LIVE_JSON = false;
7658
7773
  type InterpolationFunctionType = (zoomLevel: number) => any;
7659
7774
  export class LayerGroup {
7660
- mergedObjectsGroup: Group;
7661
- hoverObjectsGroup: Group;
7775
+ mergedObjectsGroup: any;
7776
+ hoverObjectsGroup: any;
7662
7777
  objectsByMaterials: Map<MeshLambertMaterial, Element[]>;
7663
- hoverableMeshChildren: Mesh;
7778
+ hoverableMeshChildren: Mesh<BufferGeometry, MeshLambertMaterial>[];
7664
7779
  _isVisible: boolean;
7665
7780
  needsUpdate: boolean;
7666
7781
  userData: any;
@@ -7774,8 +7889,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
7774
7889
  processLayers(allLayers: string[], include?: string[], exclude?: string[]): string[];
7775
7890
  processLayerGroup(name?: string, include?: string[], exclude?: string[], visible?: boolean, elements?: Element[], defaultRenderOrder?: number): LayerGroup;
7776
7891
  get hoverableMeshChildren(): Mesh[];
7777
- _objLoadedMerged(object: Object3D): Promise<void>;
7778
- _objLoaded(object: Object3D): void;
7892
+ _objLoadedMerged(object: any): Promise<void>;
7893
+ _objLoaded(object: any): void;
7779
7894
  loadPolygonNow(polygonId: string): void;
7780
7895
  _addElementToScene(element: Element): void;
7781
7896
  /** *
@@ -8120,6 +8235,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker' {
8120
8235
  }
8121
8236
 
8122
8237
  declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Scene' {
8238
+ import { Object3D } from 'three';
8123
8239
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
8124
8240
  import type { ICore, SceneManager, TSceneTransitionOptions } from '@mappedin/mappedin-js/renderer/internal';
8125
8241
  import { MapObject } from '@mappedin/mappedin-js/renderer/internal';
@@ -8128,7 +8244,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
8128
8244
  maps: MappedinMap[];
8129
8245
  mapObjectsArray: MapObject[];
8130
8246
  transitionOptions: TSceneTransitionOptions | undefined;
8131
- object: any;
8247
+ object: Object3D<import("three").Object3DEventMap>;
8132
8248
  currentMap: MappedinMap;
8133
8249
  mapObjects: Map<MappedinMap['id'], MapObject>;
8134
8250
  constructor(maps: MappedinMap[], core: ICore);
@@ -8139,7 +8255,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
8139
8255
  * Determine each maps position and rotation relative to the refernce map
8140
8256
  */
8141
8257
  determineMapPositionAndRotation(map: MappedinMap): {
8142
- position: any[];
8258
+ position: number[];
8143
8259
  scale: number[];
8144
8260
  rotation: number[];
8145
8261
  };
@@ -8163,7 +8279,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
8163
8279
  }
8164
8280
 
8165
8281
  declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.StackScene' {
8166
- import { Box3, BoxHelper, Mesh } from 'three';
8282
+ import { Box3, Mesh } from 'three';
8167
8283
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
8168
8284
  import type { ICore, SceneManager, TSceneTransitionOptions } from '@mappedin/mappedin-js/renderer/internal';
8169
8285
  import { MapObject, MapViewScene } from '@mappedin/mappedin-js/renderer/internal';
@@ -8171,13 +8287,13 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sta
8171
8287
  class MapViewStackScene extends MapViewScene {
8172
8288
  #private;
8173
8289
  containerBoxHelper: Box3;
8174
- viewportBox: Box3;
8175
- currentMapWrapperMesh: Mesh;
8176
- currentMapWrapperBoxHelper: BoxHelper;
8177
- viewportMesh: Mesh;
8178
- stackContainerMesh: Mesh;
8290
+ viewportBox: any;
8291
+ currentMapWrapperMesh: any;
8292
+ currentMapWrapperBoxHelper: any;
8293
+ viewportMesh: any;
8294
+ stackContainerMesh: any;
8179
8295
  currentMinTilt: number;
8180
- constructor(maps: MappedinMap[], core: ICore);
8296
+ constructor(maps: MappedinMap[], core: ICore, mapLabels?: boolean);
8181
8297
  lockControls(): void;
8182
8298
  unlockControls(): void;
8183
8299
  createStackBoundingBox(): void;
@@ -8204,7 +8320,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sta
8204
8320
  }
8205
8321
 
8206
8322
  declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
8207
- import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Group } from 'three';
8323
+ import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Texture, Group } from 'three';
8208
8324
  import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
8209
8325
  import { AssetManager, MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
8210
8326
  import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/renderer/MapView.enums';
@@ -8215,7 +8331,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
8215
8331
  visible: boolean;
8216
8332
  mode: MAP_RENDER_MODE;
8217
8333
  static defaultMaterial: MeshLambertMaterial;
8218
- static hoverMeshMaterial: any;
8334
+ static hoverMeshMaterial: MeshLambertMaterial;
8219
8335
  assetManager: AssetManager;
8220
8336
  imageVisible: boolean;
8221
8337
  labelVisible: boolean;
@@ -8327,7 +8443,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
8327
8443
  }
8328
8444
 
8329
8445
  declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-focus-scene-manager/dynamic-focus-scene' {
8330
- import { Object3D, Box3, Raycaster } from 'three';
8446
+ import { Object3D } from 'three';
8331
8447
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
8332
8448
  import type { ICore, MapObject } from '@mappedin/mappedin-js/renderer/internal';
8333
8449
  import { Building } from '@mappedin/mappedin-js/renderer/internal';
@@ -8335,10 +8451,10 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
8335
8451
  class DynamicFocusScene {
8336
8452
  buildings: Building[];
8337
8453
  object: Object3D;
8338
- panBounds: Box3;
8454
+ panBounds: any;
8339
8455
  loaded: boolean;
8340
8456
  baseMapObject: MapObject;
8341
- raycasters: Raycaster[];
8457
+ raycasters: any;
8342
8458
  baseMap: MappedinMap;
8343
8459
  options: {
8344
8460
  indoorsFullyVisibleZoomLevel: number;
@@ -8583,15 +8699,15 @@ declare module '@mappedin/mappedin-js/renderer/internal/blue-dot-manager' {
8583
8699
  }): void;
8584
8700
  blueDots: {
8585
8701
  handle: any;
8586
- radius: any;
8587
- dotObject: any;
8588
- bearing: any;
8702
+ radius: import("three").Mesh<import("three").CylinderGeometry, import("three").MeshBasicMaterial, import("three").Object3DEventMap> | undefined;
8703
+ dotObject: import("three").Object3D<import("three").Object3DEventMap>;
8704
+ bearing: import("three").Mesh<import("three").ExtrudeGeometry, any, import("three").Object3DEventMap>;
8589
8705
  }[] | undefined;
8590
8706
  positionTween: any;
8591
8707
  currentPositionLatLon: any;
8592
8708
  animateBearing(fromBearing: any, toBearing: any): void;
8593
8709
  setBearing(bearing: any): void;
8594
- getBlueDotForMap(mapOrMapId: any): any;
8710
+ getBlueDotForMap(mapOrMapId: any): import("three").Object3D<import("three").Object3DEventMap> | undefined;
8595
8711
  /**
8596
8712
  * Remove the 3D blue dot from the maps.
8597
8713
  *
@@ -8658,12 +8774,12 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
8658
8774
  };
8659
8775
  hasTouched: boolean;
8660
8776
  calculateMouseCoordinates: (event: any) => void;
8661
- getMouseRayIntersects: (objects: Object3D | Object3D[]) => any;
8777
+ getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
8662
8778
  detectCollidersUnderMouse: () => Collider[];
8663
8779
  detectPolygonsUnderMouse: () => string[];
8664
8780
  detectPathsUnderMouse: () => Path[];
8665
8781
  detectWatermarkUnderMouse: () => boolean;
8666
- detectMapsUnderMouse: () => any;
8782
+ detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
8667
8783
  getMouseMapPosition: () => {
8668
8784
  x: number;
8669
8785
  y: number;
@@ -8689,7 +8805,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
8689
8805
  scene: any;
8690
8806
  getPolygonMeshFromId: any;
8691
8807
  tryRendering: any;
8692
- stencilSheet: any;
8808
+ stencilSheet: Mesh<PlaneGeometry, ShaderMaterial, import("three").Object3DEventMap> | null;
8693
8809
  polygonsMarkedAsClosed: {};
8694
8810
  onMapChanged(map: any): void;
8695
8811
  currentMap: any;
@@ -8698,17 +8814,20 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
8698
8814
  markPolygonAsOpen(polygonId: any): void;
8699
8815
  markAllPolygonsAsOpen(): void;
8700
8816
  }
8817
+ import { PlaneGeometry } from 'three';
8818
+ import { ShaderMaterial } from 'three';
8819
+ import { Mesh } from 'three';
8701
8820
  }
8702
8821
 
8703
8822
  declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BinaryAssetManager' {
8704
- import { Texture } from 'three';
8823
+ import { Texture, TextureLoader } from 'three';
8705
8824
  /**
8706
8825
  * This asset manager is used when loading a venue from MVF.
8707
8826
  * It requires the MVF's image and model binaries to be passed in upon instantiation.
8708
8827
  * This allows delaying the creation of Blobs and Object URLs until loading the map.
8709
8828
  */
8710
8829
  export default class BinaryAssetManager {
8711
- textureLoader: any;
8830
+ textureLoader: TextureLoader;
8712
8831
  data: Map<string, Uint8Array>;
8713
8832
  constructor(data: Map<string, Uint8Array>);
8714
8833
  /**
@@ -8806,124 +8925,6 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BillboardMana
8806
8925
  export default BillboardManager;
8807
8926
  }
8808
8927
 
8809
- declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
8810
- import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
8811
- import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
8812
- import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
8813
- enum ACTION {
8814
- enable = "enable",
8815
- disable = "disable",
8816
- showOverview = "showOverview",
8817
- zoomInToMap = "zoomInToMap",
8818
- scrollToMap = "scrollToMap"
8819
- }
8820
- type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
8821
- type TParams = {
8822
- map: MappedinMap;
8823
- } | {
8824
- directions: MappedinDirections | MappedinDirections[];
8825
- } | {
8826
- stackScene: MapViewStackScene;
8827
- directions: MappedinDirections | MappedinDirections[];
8828
- verticalDistanceBetweenMaps?: number;
8829
- } | {
8830
- stackScene: MapViewStackScene;
8831
- verticalDistanceBetweenMaps?: number;
8832
- map: MappedinMap;
8833
- nodes: MappedinNode[];
8834
- } | {
8835
- stackScene: MapViewStackScene;
8836
- map: MappedinMap;
8837
- nodes: MappedinNode[];
8838
- rotation: number;
8839
- cameraTransform?: TCameraTransform;
8840
- verticalDistanceBetweenMaps?: number;
8841
- };
8842
- type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
8843
- type TState = {
8844
- [stateName in STACKED_MAPS_STATE]?: {
8845
- actions: {
8846
- [actionName in ACTION]?: TActionFn;
8847
- };
8848
- };
8849
- };
8850
- export type TInternalTransitionOptions = {
8851
- animate?: boolean;
8852
- };
8853
- class StackedMapsController {
8854
- #private;
8855
- options: {
8856
- verticalDistanceBetweenMaps?: number;
8857
- };
8858
- enabled: boolean;
8859
- stackScene: MapViewStackScene;
8860
- directions: MappedinDirections | MappedinDirections[];
8861
- constructor(core: ICore);
8862
- needsUpdate: boolean;
8863
- currentState: STACKED_MAPS_STATE;
8864
- mapsInJourney: MappedinMap[];
8865
- getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
8866
- activeMap: MappedinMap;
8867
- focusOn: {
8868
- targets: {
8869
- nodes: MappedinNode[];
8870
- };
8871
- options: {
8872
- zoom?: number | undefined;
8873
- tilt: number;
8874
- rotation: number;
8875
- position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
8876
- easing: CAMERA_EASING_MODE;
8877
- };
8878
- };
8879
- })[] | undefined;
8880
- getDisableOptions: (params: TParams) => (MapViewScene | {
8881
- activeMap: MappedinMap;
8882
- })[] | undefined;
8883
- getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
8884
- activeMap: MappedinMap;
8885
- focusOn: {
8886
- options: {
8887
- tilt: number;
8888
- duration: number;
8889
- };
8890
- };
8891
- verticalDistanceBetweenMaps: number | undefined;
8892
- })[] | undefined;
8893
- getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
8894
- focusOn: {
8895
- targets: {
8896
- nodes: MappedinNode[];
8897
- };
8898
- options: {
8899
- tilt: number;
8900
- easing: CAMERA_EASING_MODE;
8901
- };
8902
- };
8903
- activeMap: MappedinMap;
8904
- })[] | undefined;
8905
- getEnableOptions: (params: TParams) => void;
8906
- getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
8907
- getZoomInToMapTransition: (options: any) => () => Promise<void>;
8908
- getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
8909
- getDisableTransition: (options: any) => () => Promise<void>;
8910
- getEnableTransition: () => () => void;
8911
- states: TState;
8912
- transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
8913
- exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
8914
- disable: () => Promise<void>;
8915
- enable: (opts?: {
8916
- verticalDistanceBetweenMaps?: number;
8917
- }) => Promise<void>;
8918
- get nodesInJourney(): MappedinNode[];
8919
- showOverview: () => Promise<void>;
8920
- scrollToMap: (map: MappedinMap) => Promise<void>;
8921
- zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
8922
- get currentMap(): MappedinMap;
8923
- }
8924
- export default StackedMapsController;
8925
- }
8926
-
8927
8928
  declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
8928
8929
  /**
8929
8930
  * A class that controls the rendering resources for a canvas output.
@@ -8962,9 +8963,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
8962
8963
  onWebGLContextCreationError: any;
8963
8964
  onWebGLContextLost: any;
8964
8965
  onWebGLContextRestored: any;
8965
- webGLContextCreationErrorListener: any;
8966
- webGLContextLostListener: any;
8967
- webGLContextRestoredListener: any;
8966
+ webGLContextCreationErrorListener: void;
8967
+ webGLContextLostListener: void;
8968
+ webGLContextRestoredListener: void;
8968
8969
  shouldConsiderAlpha: any;
8969
8970
  antialias: any;
8970
8971
  /**
@@ -9023,7 +9024,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9023
9024
  * @param height {number}
9024
9025
  */
9025
9026
  setBufferSize(width: number, height: number): void;
9026
- get backgroundColor(): any;
9027
+ get backgroundColor(): Color | undefined;
9027
9028
  get backgroundAlpha(): number | undefined;
9028
9029
  /**
9029
9030
  * Set the color and opacity that will be drawn behind the scene.
@@ -9041,7 +9042,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9041
9042
  * @param {MapboxOutdoorContext} mapboxOutdoorContext context to draw
9042
9043
  */
9043
9044
  setMapboxOutdoorContext(mapboxOutdoorContext: MapboxOutdoorContext): void;
9044
- domElement(): any;
9045
+ domElement(): HTMLCanvasElement;
9045
9046
  isAvailable(): boolean;
9046
9047
  disposeOfRenderLists(): void;
9047
9048
  reportWebGlContextCreationError(e: any): void;
@@ -9083,9 +9084,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9083
9084
  constructor(renderOptions: any, targetWebGLVersion?: number);
9084
9085
  options: any;
9085
9086
  core: any;
9086
- renderer: any;
9087
+ renderer: WebGLRenderer | undefined;
9087
9088
  effectComposer: EffectComposer | undefined;
9088
- backgroundColor: any;
9089
+ backgroundColor: Color;
9089
9090
  backgroundAlpha: number;
9090
9091
  mapboxOutdoorContext: any;
9091
9092
  /**
@@ -9149,19 +9150,19 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9149
9150
  effectComposer: null;
9150
9151
  outdoorsVisible: boolean;
9151
9152
  options: any;
9152
- renderer: any;
9153
+ renderer: WebGLRenderer | undefined;
9153
9154
  core: any;
9154
9155
  journeyOpacity: number | undefined;
9155
- backgroundColor: any;
9156
+ backgroundColor: Color | undefined;
9156
9157
  backgroundAlpha: number | undefined;
9157
9158
  mapboxOutdoorContext: any;
9158
- staticSceneRenderTarget: any;
9159
- animatedSceneRenderTarget: any;
9160
- alwaysOnTopSceneRenderTarget: any;
9161
- outdoorViewRenderTarget: any;
9159
+ staticSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9160
+ animatedSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9161
+ alwaysOnTopSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
9162
+ outdoorViewRenderTarget: WebGLRenderTarget<Texture> | undefined;
9162
9163
  populateRenderTarget(renderTarget: any): void;
9163
9164
  createOutdoorViewTexture(): void;
9164
- outdoorViewTexture: any;
9165
+ outdoorViewTexture: Texture | undefined;
9165
9166
  outdoorViewTextureProps: any;
9166
9167
  setupEffectComposer(): void;
9167
9168
  setOutdoorViewTexture(texture: any): void;
@@ -9238,7 +9239,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
9238
9239
  toggleOutdoorViewVisiblity(visible: any): void;
9239
9240
  }
9240
9241
  import { RENDER } from '@mappedin/mappedin-js/renderer/internal';
9242
+ import { Scene } from 'three';
9243
+ import { Camera } from 'three';
9244
+ import { Vector2 } from 'three';
9245
+ import { Texture } from 'three';
9246
+ import { Color } from 'three';
9247
+ import { WebGLRenderer } from 'three';
9241
9248
  import { EffectComposer } from '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer';
9249
+ import { WebGLRenderTarget } from 'three';
9242
9250
  export {};
9243
9251
  }
9244
9252
 
@@ -9377,7 +9385,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
9377
9385
  constructor(polygonMeshesById: any, renderer: any, core: any, taskScheduler: any, loadOptions?: {});
9378
9386
  mapObjects: Map<any, any>;
9379
9387
  currentMap: undefined;
9380
- object: any;
9388
+ object: Object3D<import("three").Object3DEventMap>;
9381
9389
  _showCount: number;
9382
9390
  _mapObjectsSortedByElevationDirty: boolean;
9383
9391
  expanded: boolean;
@@ -9485,6 +9493,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
9485
9493
  resize(): void;
9486
9494
  }
9487
9495
  import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
9496
+ import { Object3D } from 'three';
9497
+ import { Vector3 } from 'three';
9488
9498
  import MultiFloorView from '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView';
9489
9499
  }
9490
9500
 
@@ -9809,14 +9819,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.DebugUIControl'
9809
9819
 
9810
9820
  declare module '@mappedin/mappedin-js/renderer/private/Core' {
9811
9821
  import '../internal/externals/globalThisPolyfill';
9812
- import { Color, Mesh, PerspectiveCamera, Scene, Vector2 } from 'three';
9822
+ import { Color, Mesh, PerspectiveCamera, Scene, Vector2, Vector3, Raycaster } from 'three';
9813
9823
  import '../internal/object3D.destroy';
9814
9824
  import type { TGetPolygonsAtCoordinateOptions, TMapViewOptions, TPadding, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
9815
9825
  import { Renderer, TaskScheduler, MapManager, FlatLabel, SmartCollisionEngine, PubSub, INTERNAL_EVENT, INTERNAL_EVENT_PAYLOAD, MapView, STATE, MapObject, SceneManager, TileManager, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem, BlueDotController, CameraController, BillboardManager, StackedMapsController, OutdoorViewController, WatermarkController, PolygonHoverColorsController, ExportController, LayerController } from '@mappedin/mappedin-js/renderer/internal';
9816
9826
  import { Mappedin as IMappedin, MappedinCoordinate, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
9817
9827
  import { E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
9818
9828
  import type { PerformanceController } from '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController';
9819
- export const raycaster: any;
9829
+ export const raycaster: Raycaster;
9820
9830
  let Mappedin: any;
9821
9831
  /**
9822
9832
  * Some preset orderings for updates.
@@ -9894,7 +9904,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
9894
9904
  referenceMap: MappedinMap;
9895
9905
  currentInteractionEvent: INTERNAL_EVENT | undefined;
9896
9906
  resolution: Vector2;
9897
- cameraParameters: Vector2;
9907
+ cameraParameters: any;
9898
9908
  controls: typeof Mappedin.CameraControls;
9899
9909
  cameraPlane: Mesh;
9900
9910
  canvasWidth: number;
@@ -9948,17 +9958,17 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
9948
9958
  * @param longitude {Number} Longitude of position
9949
9959
  * @returns A position you can use with a Marker either initially or to update later when the user (for example) moves
9950
9960
  */
9951
- getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) => any;
9961
+ getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) => Vector3 | undefined;
9952
9962
  lockNorth: (element: any, offset?: number) => void;
9953
9963
  unlockNorth: (element: any) => void;
9954
- convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) => any;
9964
+ convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) => Vector3 | undefined;
9955
9965
  /**
9956
9966
  * Converts a 2D x,y screen position into a 3D MappedinCoordinate using projection
9957
9967
  */
9958
9968
  convertScreenCoordinateToMapCoordinate: (x: number, y: number, map: MappedinMap) => MappedinCoordinate | undefined;
9959
9969
  convert3DMapPositionToCoordinate: (coord: any, mapClass?: MappedinMap | null | undefined) => MappedinCoordinate | undefined;
9960
- getPositionPolygon: (polygon: any) => any;
9961
- getPositionNode: (node: any) => any;
9970
+ getPositionPolygon: (polygon: any) => Vector3 | null;
9971
+ getPositionNode: (node: any) => Vector3 | undefined;
9962
9972
  hideAllLabels: () => void;
9963
9973
  setBackgroundColor: (color: any, alpha: any) => void;
9964
9974
  setSize: (width: any, height: any) => void;
@@ -9991,8 +10001,8 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
9991
10001
  mapSetResolved: any;
9992
10002
  setMap: (map: string | MappedinMap) => Promise<null>;
9993
10003
  setMapWithReason: (map: string | MappedinMap, reason: E_MAP_CHANGED_REASON) => Promise<null>;
9994
- getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => any;
9995
- getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => any;
10004
+ getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
10005
+ getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
9996
10006
  getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
9997
10007
  /**
9998
10008
  * Destroys instance and frees resources
@@ -10552,6 +10562,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
10552
10562
  */
10553
10563
  get children(): MappedinCategory[];
10554
10564
  static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
10565
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10555
10566
  static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
10556
10567
  toJSON(): any;
10557
10568
  }
@@ -10600,60 +10611,73 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinVenue' {
10600
10611
  import type { Mappedin } from '@mappedin/mappedin-js/get-venue/internal';
10601
10612
  import type { TLogo, TOpeningHours } from '@mappedin/mappedin-js/get-venue/Mappedin.API.types';
10602
10613
  /**
10603
- * 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).
10604
- *
10605
- * 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.
10606
- *
10607
- * See below for an example a 'things' object with available Venue properties specified:
10608
- *
10609
- * things: {
10610
- * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
10611
- * locations: [],
10612
- * categories: [],
10613
- * maps: []
10614
- * }
10615
- *
10616
- *
10617
- * @class MappedinVenue
10618
- */
10614
+ * 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).
10615
+ *
10616
+ * 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.
10617
+ *
10618
+ * See below for an example a 'things' object with available Venue properties specified:
10619
+ *
10620
+ * things: {
10621
+ * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
10622
+ * locations: [],
10623
+ * categories: [],
10624
+ * maps: []
10625
+ * }
10626
+ *
10627
+ *
10628
+ * @class MappedinVenue
10629
+ */
10619
10630
  export class MappedinVenue {
10620
- #private;
10621
- defaultMap: string;
10622
- address: string;
10623
- city: string;
10624
- countrycode: string;
10625
- externalId: string;
10626
- id: string;
10627
- latitude?: number;
10628
- logo?: TLogo;
10629
- longitude?: number;
10630
- name: string;
10631
- operationHours?: TOpeningHours[];
10632
- postal: string;
10633
- slug: string;
10634
- state: string;
10635
- telephone: string;
10636
- tzid: string;
10637
- tzidOverride: string;
10638
- utcOffset: string;
10639
- website: string;
10640
- secureContentStorage: boolean;
10641
- defaultLanguage: {
10642
- code: string;
10643
- name: string;
10644
- };
10645
- languages: {
10631
+ #private;
10632
+ defaultMap: string;
10633
+ address: string;
10634
+ city: string;
10635
+ countrycode: string;
10636
+ externalId: string;
10637
+ id: string;
10638
+ latitude?: number;
10639
+ logo?: TLogo;
10640
+ longitude?: number;
10646
10641
  name: string;
10647
- code: string;
10648
- }[];
10649
- topLocations?: string[];
10650
- constructor(mappedin: Mappedin, data: any);
10651
- get metadata(): any;
10652
- set metadata(value: any);
10653
- static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
10654
- static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
10655
- get isMultiBuilding(): any;
10656
- toJSON(): any;
10642
+ operationHours?: TOpeningHours[];
10643
+ postal: string;
10644
+ slug: string;
10645
+ state: string;
10646
+ telephone: string;
10647
+ tzid: string;
10648
+ tzidOverride: string;
10649
+ utcOffset: string;
10650
+ website: string;
10651
+ secureContentStorage: boolean;
10652
+ defaultLanguage: {
10653
+ code: string;
10654
+ name: string;
10655
+ };
10656
+ languages: {
10657
+ name: string;
10658
+ code: string;
10659
+ }[];
10660
+ topLocations?: string[];
10661
+ /**
10662
+ * Venue render options provided by the server.
10663
+ */
10664
+ renderOptions: {
10665
+ /**
10666
+ * Whether the venue should use perspectives to render the map or {@link Mappedin.polygons}.
10667
+ */
10668
+ useLivePolygons: boolean;
10669
+ /**
10670
+ * Whether the venue should automatically apply {@link TDirectionToOptions} `simplify: { enabled: true }` to all directions.
10671
+ */
10672
+ simplifyDirections: boolean;
10673
+ };
10674
+ constructor(mappedin: Mappedin, data: any);
10675
+ get metadata(): any;
10676
+ set metadata(value: any);
10677
+ static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
10678
+ static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
10679
+ get isMultiBuilding(): any;
10680
+ toJSON(): any;
10657
10681
  }
10658
10682
  }
10659
10683
 
@@ -10773,6 +10797,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinEvent' {
10773
10797
  * @internal
10774
10798
  */
10775
10799
  static hydrate(events: any, mappedin: Mappedin): MappedinEvent[];
10800
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10776
10801
  /**
10777
10802
  * @internal
10778
10803
  */
@@ -10797,6 +10822,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocationState' {
10797
10822
  * @internal
10798
10823
  */
10799
10824
  static hydrate(locationStates: any): MappedinLocationState[];
10825
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10800
10826
  id: string;
10801
10827
  name: string;
10802
10828
  value: string;
@@ -10890,6 +10916,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMap' {
10890
10916
  */
10891
10917
  getNorth(): any;
10892
10918
  static hydrate(maps: any, mappedin: Mappedin): MappedinMap[];
10919
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10893
10920
  static fetch(mappedin: Mappedin): Promise<MappedinMap[]>;
10894
10921
  get center(): any;
10895
10922
  toJSON(): any;
@@ -10915,6 +10942,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMapGroup' {
10915
10942
  */
10916
10943
  get maps(): MappedinMap[];
10917
10944
  static hydrate(mapGroups: any, mappedin: Mappedin): MappedinMapGroup[];
10945
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10918
10946
  static fetch(mappedin: Mappedin): Promise<MappedinMapGroup[]>;
10919
10947
  toJSON(): any;
10920
10948
  }
@@ -11235,7 +11263,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
11235
11263
  import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
11236
11264
  import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
11237
11265
  export function determineMapPositionAndRotation(map: MappedinMap, core: ICore): {
11238
- position: any[];
11266
+ position: number[];
11239
11267
  scale: number[];
11240
11268
  rotation: number[];
11241
11269
  };
@@ -11311,8 +11339,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
11311
11339
  options: TPostProcessingOptions & Required<Pick<TPostProcessingOptions, 'antialias' | 'antialiasQuality' | 'aoEnabled' | 'aoQuality' | 'aoResolution'>>;
11312
11340
  isWebGL2: boolean;
11313
11341
  effectComposer: PPEffectComposer;
11314
- scene: Scene;
11315
- camera: PerspectiveCamera;
11342
+ scene: Scene | null;
11343
+ camera: PerspectiveCamera | null;
11316
11344
  depthTexture?: Texture;
11317
11345
  renderer: any;
11318
11346
  constructor(renderer: any, options: TPostProcessingOptions);
@@ -11335,7 +11363,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
11335
11363
  }
11336
11364
 
11337
11365
  declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
11338
- import { Box3, Vector3, Object3D, Material } from 'three';
11366
+ import { Box3, Vector3, Object3D } from 'three';
11339
11367
  import { Mappedin, MapObject, MappedinMap, TMapViewOptions } from '@mappedin/mappedin-js/renderer/internal';
11340
11368
  import { Camera } from '@mappedin/mappedin-js/renderer/public/api/Camera';
11341
11369
  /**
@@ -11355,7 +11383,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
11355
11383
  export function isGatewayKey(key: string): boolean;
11356
11384
  export function getCombinedBoundingBox(objects: Object3D[]): Box3;
11357
11385
  export function getMapsBoundingBox(maps: MapObject[], mapPadding: number): Box3;
11358
- export function scrubMaterial(material: Material): void;
11386
+ export function scrubMaterial(material: any): void;
11359
11387
  /**
11360
11388
  * Takes a Mappedin Object or id and returns the ID, so our functions can take bottomRight
11361
11389
  * @template T extends string | {id: string}
@@ -11378,8 +11406,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
11378
11406
  */
11379
11407
  export function appendItems<T>(arr1: T[], arr2: T[]): void;
11380
11408
  export function getBiggestBoundingBox(objects: Object3D[]): {
11381
- min: any;
11382
- max: any;
11409
+ min: Vector3;
11410
+ max: Vector3;
11383
11411
  };
11384
11412
  export function unpackBoundingBox(boundingBox: Box3): Vector3[];
11385
11413
  export function getMapScale(map: MappedinMap): number;
@@ -11552,7 +11580,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
11552
11580
  _focusMapsLen: number;
11553
11581
  _focusAnimCurve: any;
11554
11582
  _focusAnimDuration: number;
11555
- rotationAxis: any;
11583
+ rotationAxis: Vector3;
11556
11584
  mapBoundingBoxes: any[];
11557
11585
  _helperBoundingBoxes: any[];
11558
11586
  mapAxesHelpers: any[];
@@ -11609,11 +11637,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
11609
11637
  */
11610
11638
  get projections(): any[];
11611
11639
  tiltMaps(tiltRad: any): void;
11612
- _focusBox: any;
11640
+ _focusBox: Box3 | undefined;
11613
11641
  _scrollWindow: number | undefined;
11614
11642
  tween: any;
11615
11643
  getFocusMaps(start: any, dir: any, len: any): any;
11616
- getFocusBox(): any;
11644
+ getFocusBox(): Box3;
11617
11645
  getVisibleMaps(): any;
11618
11646
  getVisibleMapIds(): any;
11619
11647
  getVisibleMapIndices(): number[];
@@ -11624,6 +11652,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
11624
11652
  scrollMapsDown(): Promise<any>;
11625
11653
  destroy(): void;
11626
11654
  }
11655
+ import { Vector3 } from 'three';
11656
+ import { Box3 } from 'three';
11627
11657
  }
11628
11658
 
11629
11659
  declare module '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController' {