@mappedin/mappedin-js 5.30.1 → 5.31.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.
- package/lib/esm/get-venue/index.d.ts +8 -2
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{GLTFExporter-E6XJBCL5.js → GLTFExporter-HNSPHLCS.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-CPAYXKVK.js → PerformanceController-HXUAYHSR.js} +1 -1
- package/lib/esm/renderer/{browser-HGUFUVKK.js → browser-QN2C33L4.js} +1 -1
- package/lib/esm/renderer/chunk-EX4TEORF.js +1 -0
- package/lib/esm/renderer/{chunk-JULCUMFX.js → chunk-M6VQMZ7F.js} +1 -1
- package/lib/esm/renderer/index.d.ts +216 -200
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-BWFYJL4H.js → outdoor-context-KYB4DPOV.js} +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-ELQY2PFM.js +0 -1
|
@@ -2470,6 +2470,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/MarkersContro
|
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
2472
2472
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsController' {
|
|
2473
|
+
import { Group } from 'three';
|
|
2473
2474
|
import { MappedinNode, MappedinCoordinate } from '@mappedin/mappedin-js/get-venue';
|
|
2474
2475
|
import type { ICore, TPathOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
2475
2476
|
import { ANIMATION_TWEENS } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -2550,7 +2551,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PathsControll
|
|
|
2550
2551
|
path: Path;
|
|
2551
2552
|
internalPath: InternalPath;
|
|
2552
2553
|
}>;
|
|
2553
|
-
connectionsPathMeshes:
|
|
2554
|
+
connectionsPathMeshes: Group<import("three").Object3DEventMap>;
|
|
2554
2555
|
getPathLength(path: any): number;
|
|
2555
2556
|
/**
|
|
2556
2557
|
* Draws path in 3D space
|
|
@@ -3419,6 +3420,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Paths' {
|
|
|
3419
3420
|
declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
3420
3421
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
3421
3422
|
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
3423
|
+
import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController';
|
|
3422
3424
|
/**
|
|
3423
3425
|
* @experimental
|
|
3424
3426
|
* API for showing multiple maps involved in a {@link Journey} as a vertical stack.
|
|
@@ -3452,9 +3454,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
|
3452
3454
|
*
|
|
3453
3455
|
* @returns Promise when all animations are complete.
|
|
3454
3456
|
*/
|
|
3455
|
-
enable: (opts?:
|
|
3456
|
-
verticalDistanceBetweenMaps?: number;
|
|
3457
|
-
}) => Promise<void>;
|
|
3457
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
3458
3458
|
/**
|
|
3459
3459
|
* @experimental
|
|
3460
3460
|
*
|
|
@@ -4041,23 +4041,21 @@ declare module '@mappedin/mappedin-js/renderer/MapView.enums' {
|
|
|
4041
4041
|
}
|
|
4042
4042
|
|
|
4043
4043
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager' {
|
|
4044
|
-
import { Texture } from 'three';
|
|
4044
|
+
import { Texture, TextureLoader } from 'three';
|
|
4045
4045
|
import type { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
4046
4046
|
/**
|
|
4047
4047
|
* @internal
|
|
4048
4048
|
*/
|
|
4049
4049
|
export default class DefaultAssetManager {
|
|
4050
|
-
textureLoader:
|
|
4050
|
+
textureLoader: TextureLoader;
|
|
4051
4051
|
loadMapPolygons(map: MappedinMap): Promise<any>;
|
|
4052
4052
|
loadImage(url: string): Promise<Texture>;
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
|
4055
4055
|
|
|
4056
4056
|
declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager' {
|
|
4057
|
-
import { Box3 } from 'three';
|
|
4058
4057
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
4059
4058
|
import { MappedinCoordinate, MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
4060
|
-
import Object3D from '@mappedin/mappedin-js/renderer/internal/object3D.destroy';
|
|
4061
4059
|
import { Tile } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile';
|
|
4062
4060
|
import { IOutdoorContextProvider } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
|
|
4063
4061
|
/**
|
|
@@ -4100,9 +4098,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
4100
4098
|
fadeIn(): Promise<void>;
|
|
4101
4099
|
fetchTiles(): void;
|
|
4102
4100
|
zoomLevelToAltitudeMap: number[][];
|
|
4103
|
-
plane:
|
|
4101
|
+
plane: any;
|
|
4104
4102
|
tiles: Tile[];
|
|
4105
|
-
maskMeshBoundingBox
|
|
4103
|
+
maskMeshBoundingBox?: any;
|
|
4106
4104
|
fetchTilesForZoomLevel(zoomLevel: number): Promise<void>;
|
|
4107
4105
|
/**
|
|
4108
4106
|
* This function populates a layer of tiles starting from the center clockwise
|
|
@@ -5078,11 +5076,11 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
|
|
|
5078
5076
|
* @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
|
|
5079
5077
|
* @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
5078
|
*/
|
|
5081
|
-
hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>;
|
|
5079
|
+
hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean, updateInPlace?: boolean): Promise<undefined>;
|
|
5082
5080
|
images: any;
|
|
5083
5081
|
imageBinaries?: Map<string, Uint8Array>;
|
|
5084
5082
|
scenes: any;
|
|
5085
|
-
fetch(): Promise<void>;
|
|
5083
|
+
fetch(updateInPlace?: boolean): Promise<void>;
|
|
5086
5084
|
/**
|
|
5087
5085
|
* @deprecated Use {@link hydrateVenue} instead
|
|
5088
5086
|
*/
|
|
@@ -5425,6 +5423,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
|
|
|
5425
5423
|
clone(): MappedinLocation;
|
|
5426
5424
|
get nodeOperationHours(): TOperationHoursMap;
|
|
5427
5425
|
static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
|
|
5426
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
5428
5427
|
static fetch(mappedin: Mappedin): Promise<MappedinLocation[]>;
|
|
5429
5428
|
/**
|
|
5430
5429
|
*
|
|
@@ -6607,8 +6606,122 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/FlatLabelsCon
|
|
|
6607
6606
|
export default FlatLabelsController;
|
|
6608
6607
|
}
|
|
6609
6608
|
|
|
6610
|
-
declare module '@mappedin/mappedin-js/renderer/
|
|
6611
|
-
|
|
6609
|
+
declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
|
|
6610
|
+
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
6611
|
+
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
|
|
6612
|
+
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
6613
|
+
enum ACTION {
|
|
6614
|
+
enable = "enable",
|
|
6615
|
+
disable = "disable",
|
|
6616
|
+
showOverview = "showOverview",
|
|
6617
|
+
zoomInToMap = "zoomInToMap",
|
|
6618
|
+
scrollToMap = "scrollToMap"
|
|
6619
|
+
}
|
|
6620
|
+
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
6621
|
+
type TParams = {
|
|
6622
|
+
map: MappedinMap;
|
|
6623
|
+
} | {
|
|
6624
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
6625
|
+
} | {
|
|
6626
|
+
stackScene: MapViewStackScene;
|
|
6627
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
6628
|
+
verticalDistanceBetweenMaps?: number;
|
|
6629
|
+
} | {
|
|
6630
|
+
stackScene: MapViewStackScene;
|
|
6631
|
+
verticalDistanceBetweenMaps?: number;
|
|
6632
|
+
map: MappedinMap;
|
|
6633
|
+
nodes: MappedinNode[];
|
|
6634
|
+
} | {
|
|
6635
|
+
stackScene: MapViewStackScene;
|
|
6636
|
+
map: MappedinMap;
|
|
6637
|
+
nodes: MappedinNode[];
|
|
6638
|
+
rotation: number;
|
|
6639
|
+
cameraTransform?: TCameraTransform;
|
|
6640
|
+
verticalDistanceBetweenMaps?: number;
|
|
6641
|
+
};
|
|
6642
|
+
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
6643
|
+
type TState = {
|
|
6644
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
6645
|
+
actions: {
|
|
6646
|
+
[actionName in ACTION]?: TActionFn;
|
|
6647
|
+
};
|
|
6648
|
+
};
|
|
6649
|
+
};
|
|
6650
|
+
export type TInternalTransitionOptions = {
|
|
6651
|
+
animate?: boolean;
|
|
6652
|
+
};
|
|
6653
|
+
export type TStackedMapsOptions = {
|
|
6654
|
+
verticalDistanceBetweenMaps?: number;
|
|
6655
|
+
mapLabels?: boolean;
|
|
6656
|
+
};
|
|
6657
|
+
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;
|
|
6723
|
+
}
|
|
6724
|
+
export default StackedMapsController;
|
|
6612
6725
|
}
|
|
6613
6726
|
|
|
6614
6727
|
declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile' {
|
|
@@ -6621,8 +6734,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
6621
6734
|
center: MappedinCoordinate;
|
|
6622
6735
|
zoomLevel: number;
|
|
6623
6736
|
mesh: Mesh;
|
|
6624
|
-
material
|
|
6625
|
-
texture
|
|
6737
|
+
material?: MeshBasicMaterial;
|
|
6738
|
+
texture?: Texture;
|
|
6626
6739
|
cache: {
|
|
6627
6740
|
tileXY?: {
|
|
6628
6741
|
tileX: number;
|
|
@@ -6639,7 +6752,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
6639
6752
|
rendered: boolean;
|
|
6640
6753
|
discardTexture(): void;
|
|
6641
6754
|
applyTexture(): void;
|
|
6642
|
-
render(metersPerTile: number, referenceMap: MappedinMap): Mesh
|
|
6755
|
+
render(metersPerTile: number, referenceMap: MappedinMap): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
|
|
6643
6756
|
}
|
|
6644
6757
|
}
|
|
6645
6758
|
|
|
@@ -6924,6 +7037,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
|
6924
7037
|
}
|
|
6925
7038
|
|
|
6926
7039
|
declare module '@mappedin/mappedin-js/renderer/internal/json-scene-loader' {
|
|
7040
|
+
import { Group } from 'three';
|
|
6927
7041
|
import { Element } from '@mappedin/mappedin-js/renderer/internal';
|
|
6928
7042
|
import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
|
|
6929
7043
|
import { MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -6943,12 +7057,12 @@ declare module '@mappedin/mappedin-js/renderer/internal/json-scene-loader' {
|
|
|
6943
7057
|
on it, or a string URL to fetch those polygons from.
|
|
6944
7058
|
**/
|
|
6945
7059
|
load(polygons: string | MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
|
|
6946
|
-
container:
|
|
7060
|
+
container: Group<import("three").Object3DEventMap>;
|
|
6947
7061
|
elements: (Element | null)[];
|
|
6948
7062
|
visibleLayers: Set<unknown>;
|
|
6949
7063
|
}>;
|
|
6950
7064
|
_build(polygons: MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
|
|
6951
|
-
container:
|
|
7065
|
+
container: Group<import("three").Object3DEventMap>;
|
|
6952
7066
|
elements: (Element | null)[];
|
|
6953
7067
|
visibleLayers: Set<unknown>;
|
|
6954
7068
|
}>;
|
|
@@ -7631,7 +7745,7 @@ declare module '@mappedin/mappedin-js/get-venue/pub-sub.typed' {
|
|
|
7631
7745
|
}
|
|
7632
7746
|
|
|
7633
7747
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
7634
|
-
import {
|
|
7748
|
+
import { Box3, Mesh, MeshLambertMaterial, Object3D, Vector3, BufferGeometry } from 'three';
|
|
7635
7749
|
import { FrameTaskGroup } from '@mappedin/mappedin-js/get-venue/Mappedin.TaskScheduler';
|
|
7636
7750
|
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, InternalFloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
7637
7751
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
@@ -7657,10 +7771,10 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
|
7657
7771
|
export const SCENE_FROM_LIVE_JSON = false;
|
|
7658
7772
|
type InterpolationFunctionType = (zoomLevel: number) => any;
|
|
7659
7773
|
export class LayerGroup {
|
|
7660
|
-
mergedObjectsGroup:
|
|
7661
|
-
hoverObjectsGroup:
|
|
7774
|
+
mergedObjectsGroup: any;
|
|
7775
|
+
hoverObjectsGroup: any;
|
|
7662
7776
|
objectsByMaterials: Map<MeshLambertMaterial, Element[]>;
|
|
7663
|
-
hoverableMeshChildren: Mesh;
|
|
7777
|
+
hoverableMeshChildren: Mesh<BufferGeometry, MeshLambertMaterial>[];
|
|
7664
7778
|
_isVisible: boolean;
|
|
7665
7779
|
needsUpdate: boolean;
|
|
7666
7780
|
userData: any;
|
|
@@ -7774,8 +7888,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
|
7774
7888
|
processLayers(allLayers: string[], include?: string[], exclude?: string[]): string[];
|
|
7775
7889
|
processLayerGroup(name?: string, include?: string[], exclude?: string[], visible?: boolean, elements?: Element[], defaultRenderOrder?: number): LayerGroup;
|
|
7776
7890
|
get hoverableMeshChildren(): Mesh[];
|
|
7777
|
-
_objLoadedMerged(object:
|
|
7778
|
-
_objLoaded(object:
|
|
7891
|
+
_objLoadedMerged(object: any): Promise<void>;
|
|
7892
|
+
_objLoaded(object: any): void;
|
|
7779
7893
|
loadPolygonNow(polygonId: string): void;
|
|
7780
7894
|
_addElementToScene(element: Element): void;
|
|
7781
7895
|
/** *
|
|
@@ -8120,6 +8234,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker' {
|
|
|
8120
8234
|
}
|
|
8121
8235
|
|
|
8122
8236
|
declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Scene' {
|
|
8237
|
+
import { Object3D } from 'three';
|
|
8123
8238
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8124
8239
|
import type { ICore, SceneManager, TSceneTransitionOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
8125
8240
|
import { MapObject } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -8128,7 +8243,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
|
|
|
8128
8243
|
maps: MappedinMap[];
|
|
8129
8244
|
mapObjectsArray: MapObject[];
|
|
8130
8245
|
transitionOptions: TSceneTransitionOptions | undefined;
|
|
8131
|
-
object:
|
|
8246
|
+
object: Object3D<import("three").Object3DEventMap>;
|
|
8132
8247
|
currentMap: MappedinMap;
|
|
8133
8248
|
mapObjects: Map<MappedinMap['id'], MapObject>;
|
|
8134
8249
|
constructor(maps: MappedinMap[], core: ICore);
|
|
@@ -8139,7 +8254,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
|
|
|
8139
8254
|
* Determine each maps position and rotation relative to the refernce map
|
|
8140
8255
|
*/
|
|
8141
8256
|
determineMapPositionAndRotation(map: MappedinMap): {
|
|
8142
|
-
position:
|
|
8257
|
+
position: number[];
|
|
8143
8258
|
scale: number[];
|
|
8144
8259
|
rotation: number[];
|
|
8145
8260
|
};
|
|
@@ -8163,7 +8278,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sce
|
|
|
8163
8278
|
}
|
|
8164
8279
|
|
|
8165
8280
|
declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.StackScene' {
|
|
8166
|
-
import { Box3,
|
|
8281
|
+
import { Box3, Mesh } from 'three';
|
|
8167
8282
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8168
8283
|
import type { ICore, SceneManager, TSceneTransitionOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
8169
8284
|
import { MapObject, MapViewScene } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -8171,13 +8286,13 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sta
|
|
|
8171
8286
|
class MapViewStackScene extends MapViewScene {
|
|
8172
8287
|
#private;
|
|
8173
8288
|
containerBoxHelper: Box3;
|
|
8174
|
-
viewportBox:
|
|
8175
|
-
currentMapWrapperMesh:
|
|
8176
|
-
currentMapWrapperBoxHelper:
|
|
8177
|
-
viewportMesh:
|
|
8178
|
-
stackContainerMesh:
|
|
8289
|
+
viewportBox: any;
|
|
8290
|
+
currentMapWrapperMesh: any;
|
|
8291
|
+
currentMapWrapperBoxHelper: any;
|
|
8292
|
+
viewportMesh: any;
|
|
8293
|
+
stackContainerMesh: any;
|
|
8179
8294
|
currentMinTilt: number;
|
|
8180
|
-
constructor(maps: MappedinMap[], core: ICore);
|
|
8295
|
+
constructor(maps: MappedinMap[], core: ICore, mapLabels?: boolean);
|
|
8181
8296
|
lockControls(): void;
|
|
8182
8297
|
unlockControls(): void;
|
|
8183
8298
|
createStackBoundingBox(): void;
|
|
@@ -8204,7 +8319,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sta
|
|
|
8204
8319
|
}
|
|
8205
8320
|
|
|
8206
8321
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
8207
|
-
import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Group } from 'three';
|
|
8322
|
+
import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Texture, Group } from 'three';
|
|
8208
8323
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
8209
8324
|
import { AssetManager, MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
8210
8325
|
import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
@@ -8215,7 +8330,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
|
8215
8330
|
visible: boolean;
|
|
8216
8331
|
mode: MAP_RENDER_MODE;
|
|
8217
8332
|
static defaultMaterial: MeshLambertMaterial;
|
|
8218
|
-
static hoverMeshMaterial:
|
|
8333
|
+
static hoverMeshMaterial: MeshLambertMaterial;
|
|
8219
8334
|
assetManager: AssetManager;
|
|
8220
8335
|
imageVisible: boolean;
|
|
8221
8336
|
labelVisible: boolean;
|
|
@@ -8327,7 +8442,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
8327
8442
|
}
|
|
8328
8443
|
|
|
8329
8444
|
declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-focus-scene-manager/dynamic-focus-scene' {
|
|
8330
|
-
import { Object3D
|
|
8445
|
+
import { Object3D } from 'three';
|
|
8331
8446
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8332
8447
|
import type { ICore, MapObject } from '@mappedin/mappedin-js/renderer/internal';
|
|
8333
8448
|
import { Building } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -8335,10 +8450,10 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
8335
8450
|
class DynamicFocusScene {
|
|
8336
8451
|
buildings: Building[];
|
|
8337
8452
|
object: Object3D;
|
|
8338
|
-
panBounds:
|
|
8453
|
+
panBounds: any;
|
|
8339
8454
|
loaded: boolean;
|
|
8340
8455
|
baseMapObject: MapObject;
|
|
8341
|
-
raycasters:
|
|
8456
|
+
raycasters: any;
|
|
8342
8457
|
baseMap: MappedinMap;
|
|
8343
8458
|
options: {
|
|
8344
8459
|
indoorsFullyVisibleZoomLevel: number;
|
|
@@ -8583,15 +8698,15 @@ declare module '@mappedin/mappedin-js/renderer/internal/blue-dot-manager' {
|
|
|
8583
8698
|
}): void;
|
|
8584
8699
|
blueDots: {
|
|
8585
8700
|
handle: any;
|
|
8586
|
-
radius:
|
|
8587
|
-
dotObject:
|
|
8588
|
-
bearing: any
|
|
8701
|
+
radius: import("three").Mesh<import("three").CylinderGeometry, import("three").MeshBasicMaterial, import("three").Object3DEventMap> | undefined;
|
|
8702
|
+
dotObject: import("three").Object3D<import("three").Object3DEventMap>;
|
|
8703
|
+
bearing: import("three").Mesh<import("three").ExtrudeGeometry, any, import("three").Object3DEventMap>;
|
|
8589
8704
|
}[] | undefined;
|
|
8590
8705
|
positionTween: any;
|
|
8591
8706
|
currentPositionLatLon: any;
|
|
8592
8707
|
animateBearing(fromBearing: any, toBearing: any): void;
|
|
8593
8708
|
setBearing(bearing: any): void;
|
|
8594
|
-
getBlueDotForMap(mapOrMapId: any):
|
|
8709
|
+
getBlueDotForMap(mapOrMapId: any): import("three").Object3D<import("three").Object3DEventMap> | undefined;
|
|
8595
8710
|
/**
|
|
8596
8711
|
* Remove the 3D blue dot from the maps.
|
|
8597
8712
|
*
|
|
@@ -8658,12 +8773,12 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
|
|
|
8658
8773
|
};
|
|
8659
8774
|
hasTouched: boolean;
|
|
8660
8775
|
calculateMouseCoordinates: (event: any) => void;
|
|
8661
|
-
getMouseRayIntersects: (objects: Object3D | Object3D[]) =>
|
|
8776
|
+
getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
8662
8777
|
detectCollidersUnderMouse: () => Collider[];
|
|
8663
8778
|
detectPolygonsUnderMouse: () => string[];
|
|
8664
8779
|
detectPathsUnderMouse: () => Path[];
|
|
8665
8780
|
detectWatermarkUnderMouse: () => boolean;
|
|
8666
|
-
detectMapsUnderMouse: () =>
|
|
8781
|
+
detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
|
|
8667
8782
|
getMouseMapPosition: () => {
|
|
8668
8783
|
x: number;
|
|
8669
8784
|
y: number;
|
|
@@ -8689,7 +8804,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
|
|
|
8689
8804
|
scene: any;
|
|
8690
8805
|
getPolygonMeshFromId: any;
|
|
8691
8806
|
tryRendering: any;
|
|
8692
|
-
stencilSheet:
|
|
8807
|
+
stencilSheet: Mesh<PlaneGeometry, ShaderMaterial, import("three").Object3DEventMap> | null;
|
|
8693
8808
|
polygonsMarkedAsClosed: {};
|
|
8694
8809
|
onMapChanged(map: any): void;
|
|
8695
8810
|
currentMap: any;
|
|
@@ -8698,17 +8813,20 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
|
|
|
8698
8813
|
markPolygonAsOpen(polygonId: any): void;
|
|
8699
8814
|
markAllPolygonsAsOpen(): void;
|
|
8700
8815
|
}
|
|
8816
|
+
import { PlaneGeometry } from 'three';
|
|
8817
|
+
import { ShaderMaterial } from 'three';
|
|
8818
|
+
import { Mesh } from 'three';
|
|
8701
8819
|
}
|
|
8702
8820
|
|
|
8703
8821
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BinaryAssetManager' {
|
|
8704
|
-
import { Texture } from 'three';
|
|
8822
|
+
import { Texture, TextureLoader } from 'three';
|
|
8705
8823
|
/**
|
|
8706
8824
|
* This asset manager is used when loading a venue from MVF.
|
|
8707
8825
|
* It requires the MVF's image and model binaries to be passed in upon instantiation.
|
|
8708
8826
|
* This allows delaying the creation of Blobs and Object URLs until loading the map.
|
|
8709
8827
|
*/
|
|
8710
8828
|
export default class BinaryAssetManager {
|
|
8711
|
-
textureLoader:
|
|
8829
|
+
textureLoader: TextureLoader;
|
|
8712
8830
|
data: Map<string, Uint8Array>;
|
|
8713
8831
|
constructor(data: Map<string, Uint8Array>);
|
|
8714
8832
|
/**
|
|
@@ -8806,124 +8924,6 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BillboardMana
|
|
|
8806
8924
|
export default BillboardManager;
|
|
8807
8925
|
}
|
|
8808
8926
|
|
|
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
8927
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
8928
8928
|
/**
|
|
8929
8929
|
* A class that controls the rendering resources for a canvas output.
|
|
@@ -8962,9 +8962,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
8962
8962
|
onWebGLContextCreationError: any;
|
|
8963
8963
|
onWebGLContextLost: any;
|
|
8964
8964
|
onWebGLContextRestored: any;
|
|
8965
|
-
webGLContextCreationErrorListener:
|
|
8966
|
-
webGLContextLostListener:
|
|
8967
|
-
webGLContextRestoredListener:
|
|
8965
|
+
webGLContextCreationErrorListener: void;
|
|
8966
|
+
webGLContextLostListener: void;
|
|
8967
|
+
webGLContextRestoredListener: void;
|
|
8968
8968
|
shouldConsiderAlpha: any;
|
|
8969
8969
|
antialias: any;
|
|
8970
8970
|
/**
|
|
@@ -9023,7 +9023,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9023
9023
|
* @param height {number}
|
|
9024
9024
|
*/
|
|
9025
9025
|
setBufferSize(width: number, height: number): void;
|
|
9026
|
-
get backgroundColor():
|
|
9026
|
+
get backgroundColor(): Color | undefined;
|
|
9027
9027
|
get backgroundAlpha(): number | undefined;
|
|
9028
9028
|
/**
|
|
9029
9029
|
* Set the color and opacity that will be drawn behind the scene.
|
|
@@ -9041,7 +9041,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9041
9041
|
* @param {MapboxOutdoorContext} mapboxOutdoorContext context to draw
|
|
9042
9042
|
*/
|
|
9043
9043
|
setMapboxOutdoorContext(mapboxOutdoorContext: MapboxOutdoorContext): void;
|
|
9044
|
-
domElement():
|
|
9044
|
+
domElement(): HTMLCanvasElement;
|
|
9045
9045
|
isAvailable(): boolean;
|
|
9046
9046
|
disposeOfRenderLists(): void;
|
|
9047
9047
|
reportWebGlContextCreationError(e: any): void;
|
|
@@ -9083,9 +9083,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9083
9083
|
constructor(renderOptions: any, targetWebGLVersion?: number);
|
|
9084
9084
|
options: any;
|
|
9085
9085
|
core: any;
|
|
9086
|
-
renderer:
|
|
9086
|
+
renderer: WebGLRenderer | undefined;
|
|
9087
9087
|
effectComposer: EffectComposer | undefined;
|
|
9088
|
-
backgroundColor:
|
|
9088
|
+
backgroundColor: Color;
|
|
9089
9089
|
backgroundAlpha: number;
|
|
9090
9090
|
mapboxOutdoorContext: any;
|
|
9091
9091
|
/**
|
|
@@ -9149,19 +9149,19 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9149
9149
|
effectComposer: null;
|
|
9150
9150
|
outdoorsVisible: boolean;
|
|
9151
9151
|
options: any;
|
|
9152
|
-
renderer:
|
|
9152
|
+
renderer: WebGLRenderer | undefined;
|
|
9153
9153
|
core: any;
|
|
9154
9154
|
journeyOpacity: number | undefined;
|
|
9155
|
-
backgroundColor:
|
|
9155
|
+
backgroundColor: Color | undefined;
|
|
9156
9156
|
backgroundAlpha: number | undefined;
|
|
9157
9157
|
mapboxOutdoorContext: any;
|
|
9158
|
-
staticSceneRenderTarget:
|
|
9159
|
-
animatedSceneRenderTarget:
|
|
9160
|
-
alwaysOnTopSceneRenderTarget:
|
|
9161
|
-
outdoorViewRenderTarget:
|
|
9158
|
+
staticSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9159
|
+
animatedSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9160
|
+
alwaysOnTopSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9161
|
+
outdoorViewRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9162
9162
|
populateRenderTarget(renderTarget: any): void;
|
|
9163
9163
|
createOutdoorViewTexture(): void;
|
|
9164
|
-
outdoorViewTexture:
|
|
9164
|
+
outdoorViewTexture: Texture | undefined;
|
|
9165
9165
|
outdoorViewTextureProps: any;
|
|
9166
9166
|
setupEffectComposer(): void;
|
|
9167
9167
|
setOutdoorViewTexture(texture: any): void;
|
|
@@ -9238,7 +9238,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9238
9238
|
toggleOutdoorViewVisiblity(visible: any): void;
|
|
9239
9239
|
}
|
|
9240
9240
|
import { RENDER } from '@mappedin/mappedin-js/renderer/internal';
|
|
9241
|
+
import { Scene } from 'three';
|
|
9242
|
+
import { Camera } from 'three';
|
|
9243
|
+
import { Vector2 } from 'three';
|
|
9244
|
+
import { Texture } from 'three';
|
|
9245
|
+
import { Color } from 'three';
|
|
9246
|
+
import { WebGLRenderer } from 'three';
|
|
9241
9247
|
import { EffectComposer } from '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer';
|
|
9248
|
+
import { WebGLRenderTarget } from 'three';
|
|
9242
9249
|
export {};
|
|
9243
9250
|
}
|
|
9244
9251
|
|
|
@@ -9377,7 +9384,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
|
|
|
9377
9384
|
constructor(polygonMeshesById: any, renderer: any, core: any, taskScheduler: any, loadOptions?: {});
|
|
9378
9385
|
mapObjects: Map<any, any>;
|
|
9379
9386
|
currentMap: undefined;
|
|
9380
|
-
object:
|
|
9387
|
+
object: Object3D<import("three").Object3DEventMap>;
|
|
9381
9388
|
_showCount: number;
|
|
9382
9389
|
_mapObjectsSortedByElevationDirty: boolean;
|
|
9383
9390
|
expanded: boolean;
|
|
@@ -9485,6 +9492,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
|
|
|
9485
9492
|
resize(): void;
|
|
9486
9493
|
}
|
|
9487
9494
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
9495
|
+
import { Object3D } from 'three';
|
|
9496
|
+
import { Vector3 } from 'three';
|
|
9488
9497
|
import MultiFloorView from '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView';
|
|
9489
9498
|
}
|
|
9490
9499
|
|
|
@@ -9809,14 +9818,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.DebugUIControl'
|
|
|
9809
9818
|
|
|
9810
9819
|
declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
9811
9820
|
import '../internal/externals/globalThisPolyfill';
|
|
9812
|
-
import { Color, Mesh, PerspectiveCamera, Scene, Vector2 } from 'three';
|
|
9821
|
+
import { Color, Mesh, PerspectiveCamera, Scene, Vector2, Vector3, Raycaster } from 'three';
|
|
9813
9822
|
import '../internal/object3D.destroy';
|
|
9814
9823
|
import type { TGetPolygonsAtCoordinateOptions, TMapViewOptions, TPadding, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
9815
9824
|
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
9825
|
import { Mappedin as IMappedin, MappedinCoordinate, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
9817
9826
|
import { E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
9818
9827
|
import type { PerformanceController } from '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController';
|
|
9819
|
-
export const raycaster:
|
|
9828
|
+
export const raycaster: Raycaster;
|
|
9820
9829
|
let Mappedin: any;
|
|
9821
9830
|
/**
|
|
9822
9831
|
* Some preset orderings for updates.
|
|
@@ -9894,7 +9903,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9894
9903
|
referenceMap: MappedinMap;
|
|
9895
9904
|
currentInteractionEvent: INTERNAL_EVENT | undefined;
|
|
9896
9905
|
resolution: Vector2;
|
|
9897
|
-
cameraParameters:
|
|
9906
|
+
cameraParameters: any;
|
|
9898
9907
|
controls: typeof Mappedin.CameraControls;
|
|
9899
9908
|
cameraPlane: Mesh;
|
|
9900
9909
|
canvasWidth: number;
|
|
@@ -9948,17 +9957,17 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9948
9957
|
* @param longitude {Number} Longitude of position
|
|
9949
9958
|
* @returns A position you can use with a Marker either initially or to update later when the user (for example) moves
|
|
9950
9959
|
*/
|
|
9951
|
-
getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) =>
|
|
9960
|
+
getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) => Vector3 | undefined;
|
|
9952
9961
|
lockNorth: (element: any, offset?: number) => void;
|
|
9953
9962
|
unlockNorth: (element: any) => void;
|
|
9954
|
-
convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) =>
|
|
9963
|
+
convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) => Vector3 | undefined;
|
|
9955
9964
|
/**
|
|
9956
9965
|
* Converts a 2D x,y screen position into a 3D MappedinCoordinate using projection
|
|
9957
9966
|
*/
|
|
9958
9967
|
convertScreenCoordinateToMapCoordinate: (x: number, y: number, map: MappedinMap) => MappedinCoordinate | undefined;
|
|
9959
9968
|
convert3DMapPositionToCoordinate: (coord: any, mapClass?: MappedinMap | null | undefined) => MappedinCoordinate | undefined;
|
|
9960
|
-
getPositionPolygon: (polygon: any) =>
|
|
9961
|
-
getPositionNode: (node: any) =>
|
|
9969
|
+
getPositionPolygon: (polygon: any) => Vector3 | null;
|
|
9970
|
+
getPositionNode: (node: any) => Vector3 | undefined;
|
|
9962
9971
|
hideAllLabels: () => void;
|
|
9963
9972
|
setBackgroundColor: (color: any, alpha: any) => void;
|
|
9964
9973
|
setSize: (width: any, height: any) => void;
|
|
@@ -9991,8 +10000,8 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9991
10000
|
mapSetResolved: any;
|
|
9992
10001
|
setMap: (map: string | MappedinMap) => Promise<null>;
|
|
9993
10002
|
setMapWithReason: (map: string | MappedinMap, reason: E_MAP_CHANGED_REASON) => Promise<null>;
|
|
9994
|
-
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) =>
|
|
9995
|
-
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) =>
|
|
10003
|
+
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
10004
|
+
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
9996
10005
|
getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
9997
10006
|
/**
|
|
9998
10007
|
* Destroys instance and frees resources
|
|
@@ -10552,6 +10561,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
|
|
|
10552
10561
|
*/
|
|
10553
10562
|
get children(): MappedinCategory[];
|
|
10554
10563
|
static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
|
|
10564
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10555
10565
|
static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
|
|
10556
10566
|
toJSON(): any;
|
|
10557
10567
|
}
|
|
@@ -10773,6 +10783,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinEvent' {
|
|
|
10773
10783
|
* @internal
|
|
10774
10784
|
*/
|
|
10775
10785
|
static hydrate(events: any, mappedin: Mappedin): MappedinEvent[];
|
|
10786
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10776
10787
|
/**
|
|
10777
10788
|
* @internal
|
|
10778
10789
|
*/
|
|
@@ -10797,6 +10808,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocationState' {
|
|
|
10797
10808
|
* @internal
|
|
10798
10809
|
*/
|
|
10799
10810
|
static hydrate(locationStates: any): MappedinLocationState[];
|
|
10811
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10800
10812
|
id: string;
|
|
10801
10813
|
name: string;
|
|
10802
10814
|
value: string;
|
|
@@ -10890,6 +10902,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMap' {
|
|
|
10890
10902
|
*/
|
|
10891
10903
|
getNorth(): any;
|
|
10892
10904
|
static hydrate(maps: any, mappedin: Mappedin): MappedinMap[];
|
|
10905
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10893
10906
|
static fetch(mappedin: Mappedin): Promise<MappedinMap[]>;
|
|
10894
10907
|
get center(): any;
|
|
10895
10908
|
toJSON(): any;
|
|
@@ -10915,6 +10928,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMapGroup' {
|
|
|
10915
10928
|
*/
|
|
10916
10929
|
get maps(): MappedinMap[];
|
|
10917
10930
|
static hydrate(mapGroups: any, mappedin: Mappedin): MappedinMapGroup[];
|
|
10931
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10918
10932
|
static fetch(mappedin: Mappedin): Promise<MappedinMapGroup[]>;
|
|
10919
10933
|
toJSON(): any;
|
|
10920
10934
|
}
|
|
@@ -11235,7 +11249,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
11235
11249
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
11236
11250
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
11237
11251
|
export function determineMapPositionAndRotation(map: MappedinMap, core: ICore): {
|
|
11238
|
-
position:
|
|
11252
|
+
position: number[];
|
|
11239
11253
|
scale: number[];
|
|
11240
11254
|
rotation: number[];
|
|
11241
11255
|
};
|
|
@@ -11311,8 +11325,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
|
|
|
11311
11325
|
options: TPostProcessingOptions & Required<Pick<TPostProcessingOptions, 'antialias' | 'antialiasQuality' | 'aoEnabled' | 'aoQuality' | 'aoResolution'>>;
|
|
11312
11326
|
isWebGL2: boolean;
|
|
11313
11327
|
effectComposer: PPEffectComposer;
|
|
11314
|
-
scene: Scene;
|
|
11315
|
-
camera: PerspectiveCamera;
|
|
11328
|
+
scene: Scene | null;
|
|
11329
|
+
camera: PerspectiveCamera | null;
|
|
11316
11330
|
depthTexture?: Texture;
|
|
11317
11331
|
renderer: any;
|
|
11318
11332
|
constructor(renderer: any, options: TPostProcessingOptions);
|
|
@@ -11335,7 +11349,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
|
|
|
11335
11349
|
}
|
|
11336
11350
|
|
|
11337
11351
|
declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
11338
|
-
import { Box3, Vector3, Object3D
|
|
11352
|
+
import { Box3, Vector3, Object3D } from 'three';
|
|
11339
11353
|
import { Mappedin, MapObject, MappedinMap, TMapViewOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
11340
11354
|
import { Camera } from '@mappedin/mappedin-js/renderer/public/api/Camera';
|
|
11341
11355
|
/**
|
|
@@ -11355,7 +11369,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
|
11355
11369
|
export function isGatewayKey(key: string): boolean;
|
|
11356
11370
|
export function getCombinedBoundingBox(objects: Object3D[]): Box3;
|
|
11357
11371
|
export function getMapsBoundingBox(maps: MapObject[], mapPadding: number): Box3;
|
|
11358
|
-
export function scrubMaterial(material:
|
|
11372
|
+
export function scrubMaterial(material: any): void;
|
|
11359
11373
|
/**
|
|
11360
11374
|
* Takes a Mappedin Object or id and returns the ID, so our functions can take bottomRight
|
|
11361
11375
|
* @template T extends string | {id: string}
|
|
@@ -11378,8 +11392,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
|
11378
11392
|
*/
|
|
11379
11393
|
export function appendItems<T>(arr1: T[], arr2: T[]): void;
|
|
11380
11394
|
export function getBiggestBoundingBox(objects: Object3D[]): {
|
|
11381
|
-
min:
|
|
11382
|
-
max:
|
|
11395
|
+
min: Vector3;
|
|
11396
|
+
max: Vector3;
|
|
11383
11397
|
};
|
|
11384
11398
|
export function unpackBoundingBox(boundingBox: Box3): Vector3[];
|
|
11385
11399
|
export function getMapScale(map: MappedinMap): number;
|
|
@@ -11552,7 +11566,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11552
11566
|
_focusMapsLen: number;
|
|
11553
11567
|
_focusAnimCurve: any;
|
|
11554
11568
|
_focusAnimDuration: number;
|
|
11555
|
-
rotationAxis:
|
|
11569
|
+
rotationAxis: Vector3;
|
|
11556
11570
|
mapBoundingBoxes: any[];
|
|
11557
11571
|
_helperBoundingBoxes: any[];
|
|
11558
11572
|
mapAxesHelpers: any[];
|
|
@@ -11609,11 +11623,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11609
11623
|
*/
|
|
11610
11624
|
get projections(): any[];
|
|
11611
11625
|
tiltMaps(tiltRad: any): void;
|
|
11612
|
-
_focusBox:
|
|
11626
|
+
_focusBox: Box3 | undefined;
|
|
11613
11627
|
_scrollWindow: number | undefined;
|
|
11614
11628
|
tween: any;
|
|
11615
11629
|
getFocusMaps(start: any, dir: any, len: any): any;
|
|
11616
|
-
getFocusBox():
|
|
11630
|
+
getFocusBox(): Box3;
|
|
11617
11631
|
getVisibleMaps(): any;
|
|
11618
11632
|
getVisibleMapIds(): any;
|
|
11619
11633
|
getVisibleMapIndices(): number[];
|
|
@@ -11624,6 +11638,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11624
11638
|
scrollMapsDown(): Promise<any>;
|
|
11625
11639
|
destroy(): void;
|
|
11626
11640
|
}
|
|
11641
|
+
import { Vector3 } from 'three';
|
|
11642
|
+
import { Box3 } from 'three';
|
|
11627
11643
|
}
|
|
11628
11644
|
|
|
11629
11645
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController' {
|