@mappedin/mappedin-js 5.30.0 → 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-DEQSEN7W.js → GLTFExporter-HNSPHLCS.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-LQTUIR66.js → PerformanceController-HXUAYHSR.js} +1 -1
- package/lib/esm/renderer/{browser-6JBS3BDJ.js → browser-QN2C33L4.js} +1 -1
- package/lib/esm/renderer/chunk-EX4TEORF.js +1 -0
- package/lib/esm/renderer/{chunk-GZCZ637T.js → chunk-M6VQMZ7F.js} +1 -1
- package/lib/esm/renderer/index.d.ts +221 -221
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-2JOJVQ2X.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-RTK5KAPJ.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, 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;
|
|
@@ -8230,17 +8345,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
|
8230
8345
|
*/
|
|
8231
8346
|
isInflated: boolean;
|
|
8232
8347
|
sortScore: number | null;
|
|
8233
|
-
boundingBox
|
|
8234
|
-
min:
|
|
8235
|
-
|
|
8236
|
-
y: number;
|
|
8237
|
-
z: number;
|
|
8238
|
-
};
|
|
8239
|
-
max: {
|
|
8240
|
-
x: number;
|
|
8241
|
-
y: number;
|
|
8242
|
-
z: number;
|
|
8243
|
-
};
|
|
8348
|
+
boundingBox?: {
|
|
8349
|
+
min: Vector3;
|
|
8350
|
+
max: Vector3;
|
|
8244
8351
|
};
|
|
8245
8352
|
static materials: {
|
|
8246
8353
|
[key in string]: MeshLambertMaterial | MeshLambertMaterial[];
|
|
@@ -8262,16 +8369,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
|
8262
8369
|
static _setPolygonDefaults(poly: any): any;
|
|
8263
8370
|
constructor(poly: MappedinPolygon, mapClass: MappedinMap, container: Group, assetManager: any, mapLoadingStrategy?: MAP_RENDER_MODE);
|
|
8264
8371
|
getBoundingBox(): {
|
|
8265
|
-
min:
|
|
8266
|
-
|
|
8267
|
-
y: number;
|
|
8268
|
-
z: number;
|
|
8269
|
-
};
|
|
8270
|
-
max: {
|
|
8271
|
-
x: number;
|
|
8272
|
-
y: number;
|
|
8273
|
-
z: number;
|
|
8274
|
-
};
|
|
8372
|
+
min: Vector3;
|
|
8373
|
+
max: Vector3;
|
|
8275
8374
|
};
|
|
8276
8375
|
load(): Promise<this>;
|
|
8277
8376
|
_addLabel(poly: MappedinPolygon, mapClass: MappedinMap): void;
|
|
@@ -8343,7 +8442,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
8343
8442
|
}
|
|
8344
8443
|
|
|
8345
8444
|
declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-focus-scene-manager/dynamic-focus-scene' {
|
|
8346
|
-
import { Object3D
|
|
8445
|
+
import { Object3D } from 'three';
|
|
8347
8446
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8348
8447
|
import type { ICore, MapObject } from '@mappedin/mappedin-js/renderer/internal';
|
|
8349
8448
|
import { Building } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -8351,10 +8450,10 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
8351
8450
|
class DynamicFocusScene {
|
|
8352
8451
|
buildings: Building[];
|
|
8353
8452
|
object: Object3D;
|
|
8354
|
-
panBounds:
|
|
8453
|
+
panBounds: any;
|
|
8355
8454
|
loaded: boolean;
|
|
8356
8455
|
baseMapObject: MapObject;
|
|
8357
|
-
raycasters:
|
|
8456
|
+
raycasters: any;
|
|
8358
8457
|
baseMap: MappedinMap;
|
|
8359
8458
|
options: {
|
|
8360
8459
|
indoorsFullyVisibleZoomLevel: number;
|
|
@@ -8599,15 +8698,15 @@ declare module '@mappedin/mappedin-js/renderer/internal/blue-dot-manager' {
|
|
|
8599
8698
|
}): void;
|
|
8600
8699
|
blueDots: {
|
|
8601
8700
|
handle: any;
|
|
8602
|
-
radius:
|
|
8603
|
-
dotObject:
|
|
8604
|
-
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>;
|
|
8605
8704
|
}[] | undefined;
|
|
8606
8705
|
positionTween: any;
|
|
8607
8706
|
currentPositionLatLon: any;
|
|
8608
8707
|
animateBearing(fromBearing: any, toBearing: any): void;
|
|
8609
8708
|
setBearing(bearing: any): void;
|
|
8610
|
-
getBlueDotForMap(mapOrMapId: any):
|
|
8709
|
+
getBlueDotForMap(mapOrMapId: any): import("three").Object3D<import("three").Object3DEventMap> | undefined;
|
|
8611
8710
|
/**
|
|
8612
8711
|
* Remove the 3D blue dot from the maps.
|
|
8613
8712
|
*
|
|
@@ -8674,12 +8773,12 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
|
|
|
8674
8773
|
};
|
|
8675
8774
|
hasTouched: boolean;
|
|
8676
8775
|
calculateMouseCoordinates: (event: any) => void;
|
|
8677
|
-
getMouseRayIntersects: (objects: Object3D | Object3D[]) =>
|
|
8776
|
+
getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
8678
8777
|
detectCollidersUnderMouse: () => Collider[];
|
|
8679
8778
|
detectPolygonsUnderMouse: () => string[];
|
|
8680
8779
|
detectPathsUnderMouse: () => Path[];
|
|
8681
8780
|
detectWatermarkUnderMouse: () => boolean;
|
|
8682
|
-
detectMapsUnderMouse: () =>
|
|
8781
|
+
detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
|
|
8683
8782
|
getMouseMapPosition: () => {
|
|
8684
8783
|
x: number;
|
|
8685
8784
|
y: number;
|
|
@@ -8705,7 +8804,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
|
|
|
8705
8804
|
scene: any;
|
|
8706
8805
|
getPolygonMeshFromId: any;
|
|
8707
8806
|
tryRendering: any;
|
|
8708
|
-
stencilSheet:
|
|
8807
|
+
stencilSheet: Mesh<PlaneGeometry, ShaderMaterial, import("three").Object3DEventMap> | null;
|
|
8709
8808
|
polygonsMarkedAsClosed: {};
|
|
8710
8809
|
onMapChanged(map: any): void;
|
|
8711
8810
|
currentMap: any;
|
|
@@ -8714,17 +8813,20 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.ClosedPolygonMa
|
|
|
8714
8813
|
markPolygonAsOpen(polygonId: any): void;
|
|
8715
8814
|
markAllPolygonsAsOpen(): void;
|
|
8716
8815
|
}
|
|
8816
|
+
import { PlaneGeometry } from 'three';
|
|
8817
|
+
import { ShaderMaterial } from 'three';
|
|
8818
|
+
import { Mesh } from 'three';
|
|
8717
8819
|
}
|
|
8718
8820
|
|
|
8719
8821
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BinaryAssetManager' {
|
|
8720
|
-
import { Texture } from 'three';
|
|
8822
|
+
import { Texture, TextureLoader } from 'three';
|
|
8721
8823
|
/**
|
|
8722
8824
|
* This asset manager is used when loading a venue from MVF.
|
|
8723
8825
|
* It requires the MVF's image and model binaries to be passed in upon instantiation.
|
|
8724
8826
|
* This allows delaying the creation of Blobs and Object URLs until loading the map.
|
|
8725
8827
|
*/
|
|
8726
8828
|
export default class BinaryAssetManager {
|
|
8727
|
-
textureLoader:
|
|
8829
|
+
textureLoader: TextureLoader;
|
|
8728
8830
|
data: Map<string, Uint8Array>;
|
|
8729
8831
|
constructor(data: Map<string, Uint8Array>);
|
|
8730
8832
|
/**
|
|
@@ -8822,124 +8924,6 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BillboardMana
|
|
|
8822
8924
|
export default BillboardManager;
|
|
8823
8925
|
}
|
|
8824
8926
|
|
|
8825
|
-
declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
|
|
8826
|
-
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
8827
|
-
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
|
|
8828
|
-
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
8829
|
-
enum ACTION {
|
|
8830
|
-
enable = "enable",
|
|
8831
|
-
disable = "disable",
|
|
8832
|
-
showOverview = "showOverview",
|
|
8833
|
-
zoomInToMap = "zoomInToMap",
|
|
8834
|
-
scrollToMap = "scrollToMap"
|
|
8835
|
-
}
|
|
8836
|
-
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
8837
|
-
type TParams = {
|
|
8838
|
-
map: MappedinMap;
|
|
8839
|
-
} | {
|
|
8840
|
-
directions: MappedinDirections | MappedinDirections[];
|
|
8841
|
-
} | {
|
|
8842
|
-
stackScene: MapViewStackScene;
|
|
8843
|
-
directions: MappedinDirections | MappedinDirections[];
|
|
8844
|
-
verticalDistanceBetweenMaps?: number;
|
|
8845
|
-
} | {
|
|
8846
|
-
stackScene: MapViewStackScene;
|
|
8847
|
-
verticalDistanceBetweenMaps?: number;
|
|
8848
|
-
map: MappedinMap;
|
|
8849
|
-
nodes: MappedinNode[];
|
|
8850
|
-
} | {
|
|
8851
|
-
stackScene: MapViewStackScene;
|
|
8852
|
-
map: MappedinMap;
|
|
8853
|
-
nodes: MappedinNode[];
|
|
8854
|
-
rotation: number;
|
|
8855
|
-
cameraTransform?: TCameraTransform;
|
|
8856
|
-
verticalDistanceBetweenMaps?: number;
|
|
8857
|
-
};
|
|
8858
|
-
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
8859
|
-
type TState = {
|
|
8860
|
-
[stateName in STACKED_MAPS_STATE]?: {
|
|
8861
|
-
actions: {
|
|
8862
|
-
[actionName in ACTION]?: TActionFn;
|
|
8863
|
-
};
|
|
8864
|
-
};
|
|
8865
|
-
};
|
|
8866
|
-
export type TInternalTransitionOptions = {
|
|
8867
|
-
animate?: boolean;
|
|
8868
|
-
};
|
|
8869
|
-
class StackedMapsController {
|
|
8870
|
-
#private;
|
|
8871
|
-
options: {
|
|
8872
|
-
verticalDistanceBetweenMaps?: number;
|
|
8873
|
-
};
|
|
8874
|
-
enabled: boolean;
|
|
8875
|
-
stackScene: MapViewStackScene;
|
|
8876
|
-
directions: MappedinDirections | MappedinDirections[];
|
|
8877
|
-
constructor(core: ICore);
|
|
8878
|
-
needsUpdate: boolean;
|
|
8879
|
-
currentState: STACKED_MAPS_STATE;
|
|
8880
|
-
mapsInJourney: MappedinMap[];
|
|
8881
|
-
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
8882
|
-
activeMap: MappedinMap;
|
|
8883
|
-
focusOn: {
|
|
8884
|
-
targets: {
|
|
8885
|
-
nodes: MappedinNode[];
|
|
8886
|
-
};
|
|
8887
|
-
options: {
|
|
8888
|
-
zoom?: number | undefined;
|
|
8889
|
-
tilt: number;
|
|
8890
|
-
rotation: number;
|
|
8891
|
-
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
8892
|
-
easing: CAMERA_EASING_MODE;
|
|
8893
|
-
};
|
|
8894
|
-
};
|
|
8895
|
-
})[] | undefined;
|
|
8896
|
-
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
8897
|
-
activeMap: MappedinMap;
|
|
8898
|
-
})[] | undefined;
|
|
8899
|
-
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
8900
|
-
activeMap: MappedinMap;
|
|
8901
|
-
focusOn: {
|
|
8902
|
-
options: {
|
|
8903
|
-
tilt: number;
|
|
8904
|
-
duration: number;
|
|
8905
|
-
};
|
|
8906
|
-
};
|
|
8907
|
-
verticalDistanceBetweenMaps: number | undefined;
|
|
8908
|
-
})[] | undefined;
|
|
8909
|
-
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
8910
|
-
focusOn: {
|
|
8911
|
-
targets: {
|
|
8912
|
-
nodes: MappedinNode[];
|
|
8913
|
-
};
|
|
8914
|
-
options: {
|
|
8915
|
-
tilt: number;
|
|
8916
|
-
easing: CAMERA_EASING_MODE;
|
|
8917
|
-
};
|
|
8918
|
-
};
|
|
8919
|
-
activeMap: MappedinMap;
|
|
8920
|
-
})[] | undefined;
|
|
8921
|
-
getEnableOptions: (params: TParams) => void;
|
|
8922
|
-
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
8923
|
-
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
8924
|
-
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
8925
|
-
getDisableTransition: (options: any) => () => Promise<void>;
|
|
8926
|
-
getEnableTransition: () => () => void;
|
|
8927
|
-
states: TState;
|
|
8928
|
-
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
8929
|
-
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
8930
|
-
disable: () => Promise<void>;
|
|
8931
|
-
enable: (opts?: {
|
|
8932
|
-
verticalDistanceBetweenMaps?: number;
|
|
8933
|
-
}) => Promise<void>;
|
|
8934
|
-
get nodesInJourney(): MappedinNode[];
|
|
8935
|
-
showOverview: () => Promise<void>;
|
|
8936
|
-
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
8937
|
-
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
8938
|
-
get currentMap(): MappedinMap;
|
|
8939
|
-
}
|
|
8940
|
-
export default StackedMapsController;
|
|
8941
|
-
}
|
|
8942
|
-
|
|
8943
8927
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
8944
8928
|
/**
|
|
8945
8929
|
* A class that controls the rendering resources for a canvas output.
|
|
@@ -8978,9 +8962,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
8978
8962
|
onWebGLContextCreationError: any;
|
|
8979
8963
|
onWebGLContextLost: any;
|
|
8980
8964
|
onWebGLContextRestored: any;
|
|
8981
|
-
webGLContextCreationErrorListener:
|
|
8982
|
-
webGLContextLostListener:
|
|
8983
|
-
webGLContextRestoredListener:
|
|
8965
|
+
webGLContextCreationErrorListener: void;
|
|
8966
|
+
webGLContextLostListener: void;
|
|
8967
|
+
webGLContextRestoredListener: void;
|
|
8984
8968
|
shouldConsiderAlpha: any;
|
|
8985
8969
|
antialias: any;
|
|
8986
8970
|
/**
|
|
@@ -9039,7 +9023,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9039
9023
|
* @param height {number}
|
|
9040
9024
|
*/
|
|
9041
9025
|
setBufferSize(width: number, height: number): void;
|
|
9042
|
-
get backgroundColor():
|
|
9026
|
+
get backgroundColor(): Color | undefined;
|
|
9043
9027
|
get backgroundAlpha(): number | undefined;
|
|
9044
9028
|
/**
|
|
9045
9029
|
* Set the color and opacity that will be drawn behind the scene.
|
|
@@ -9057,7 +9041,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9057
9041
|
* @param {MapboxOutdoorContext} mapboxOutdoorContext context to draw
|
|
9058
9042
|
*/
|
|
9059
9043
|
setMapboxOutdoorContext(mapboxOutdoorContext: MapboxOutdoorContext): void;
|
|
9060
|
-
domElement():
|
|
9044
|
+
domElement(): HTMLCanvasElement;
|
|
9061
9045
|
isAvailable(): boolean;
|
|
9062
9046
|
disposeOfRenderLists(): void;
|
|
9063
9047
|
reportWebGlContextCreationError(e: any): void;
|
|
@@ -9099,9 +9083,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9099
9083
|
constructor(renderOptions: any, targetWebGLVersion?: number);
|
|
9100
9084
|
options: any;
|
|
9101
9085
|
core: any;
|
|
9102
|
-
renderer:
|
|
9086
|
+
renderer: WebGLRenderer | undefined;
|
|
9103
9087
|
effectComposer: EffectComposer | undefined;
|
|
9104
|
-
backgroundColor:
|
|
9088
|
+
backgroundColor: Color;
|
|
9105
9089
|
backgroundAlpha: number;
|
|
9106
9090
|
mapboxOutdoorContext: any;
|
|
9107
9091
|
/**
|
|
@@ -9165,19 +9149,19 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9165
9149
|
effectComposer: null;
|
|
9166
9150
|
outdoorsVisible: boolean;
|
|
9167
9151
|
options: any;
|
|
9168
|
-
renderer:
|
|
9152
|
+
renderer: WebGLRenderer | undefined;
|
|
9169
9153
|
core: any;
|
|
9170
9154
|
journeyOpacity: number | undefined;
|
|
9171
|
-
backgroundColor:
|
|
9155
|
+
backgroundColor: Color | undefined;
|
|
9172
9156
|
backgroundAlpha: number | undefined;
|
|
9173
9157
|
mapboxOutdoorContext: any;
|
|
9174
|
-
staticSceneRenderTarget:
|
|
9175
|
-
animatedSceneRenderTarget:
|
|
9176
|
-
alwaysOnTopSceneRenderTarget:
|
|
9177
|
-
outdoorViewRenderTarget:
|
|
9158
|
+
staticSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9159
|
+
animatedSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9160
|
+
alwaysOnTopSceneRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9161
|
+
outdoorViewRenderTarget: WebGLRenderTarget<Texture> | undefined;
|
|
9178
9162
|
populateRenderTarget(renderTarget: any): void;
|
|
9179
9163
|
createOutdoorViewTexture(): void;
|
|
9180
|
-
outdoorViewTexture:
|
|
9164
|
+
outdoorViewTexture: Texture | undefined;
|
|
9181
9165
|
outdoorViewTextureProps: any;
|
|
9182
9166
|
setupEffectComposer(): void;
|
|
9183
9167
|
setOutdoorViewTexture(texture: any): void;
|
|
@@ -9254,7 +9238,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9254
9238
|
toggleOutdoorViewVisiblity(visible: any): void;
|
|
9255
9239
|
}
|
|
9256
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';
|
|
9257
9247
|
import { EffectComposer } from '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer';
|
|
9248
|
+
import { WebGLRenderTarget } from 'three';
|
|
9258
9249
|
export {};
|
|
9259
9250
|
}
|
|
9260
9251
|
|
|
@@ -9393,7 +9384,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
|
|
|
9393
9384
|
constructor(polygonMeshesById: any, renderer: any, core: any, taskScheduler: any, loadOptions?: {});
|
|
9394
9385
|
mapObjects: Map<any, any>;
|
|
9395
9386
|
currentMap: undefined;
|
|
9396
|
-
object:
|
|
9387
|
+
object: Object3D<import("three").Object3DEventMap>;
|
|
9397
9388
|
_showCount: number;
|
|
9398
9389
|
_mapObjectsSortedByElevationDirty: boolean;
|
|
9399
9390
|
expanded: boolean;
|
|
@@ -9501,6 +9492,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
|
|
|
9501
9492
|
resize(): void;
|
|
9502
9493
|
}
|
|
9503
9494
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
9495
|
+
import { Object3D } from 'three';
|
|
9496
|
+
import { Vector3 } from 'three';
|
|
9504
9497
|
import MultiFloorView from '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView';
|
|
9505
9498
|
}
|
|
9506
9499
|
|
|
@@ -9825,14 +9818,14 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.DebugUIControl'
|
|
|
9825
9818
|
|
|
9826
9819
|
declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
9827
9820
|
import '../internal/externals/globalThisPolyfill';
|
|
9828
|
-
import { Color, Mesh, PerspectiveCamera, Scene, Vector2 } from 'three';
|
|
9821
|
+
import { Color, Mesh, PerspectiveCamera, Scene, Vector2, Vector3, Raycaster } from 'three';
|
|
9829
9822
|
import '../internal/object3D.destroy';
|
|
9830
9823
|
import type { TGetPolygonsAtCoordinateOptions, TMapViewOptions, TPadding, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
9831
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';
|
|
9832
9825
|
import { Mappedin as IMappedin, MappedinCoordinate, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
9833
9826
|
import { E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
9834
9827
|
import type { PerformanceController } from '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController';
|
|
9835
|
-
export const raycaster:
|
|
9828
|
+
export const raycaster: Raycaster;
|
|
9836
9829
|
let Mappedin: any;
|
|
9837
9830
|
/**
|
|
9838
9831
|
* Some preset orderings for updates.
|
|
@@ -9910,7 +9903,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9910
9903
|
referenceMap: MappedinMap;
|
|
9911
9904
|
currentInteractionEvent: INTERNAL_EVENT | undefined;
|
|
9912
9905
|
resolution: Vector2;
|
|
9913
|
-
cameraParameters:
|
|
9906
|
+
cameraParameters: any;
|
|
9914
9907
|
controls: typeof Mappedin.CameraControls;
|
|
9915
9908
|
cameraPlane: Mesh;
|
|
9916
9909
|
canvasWidth: number;
|
|
@@ -9964,17 +9957,17 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9964
9957
|
* @param longitude {Number} Longitude of position
|
|
9965
9958
|
* @returns A position you can use with a Marker either initially or to update later when the user (for example) moves
|
|
9966
9959
|
*/
|
|
9967
|
-
getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) =>
|
|
9960
|
+
getPositionLatLon: (lat: number, lon: number, map?: string | MappedinMap | null) => Vector3 | undefined;
|
|
9968
9961
|
lockNorth: (element: any, offset?: number) => void;
|
|
9969
9962
|
unlockNorth: (element: any) => void;
|
|
9970
|
-
convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) =>
|
|
9963
|
+
convertTo3DMapPosition: (nodeOrCoordinate: MappedinNode | MappedinCoordinate) => Vector3 | undefined;
|
|
9971
9964
|
/**
|
|
9972
9965
|
* Converts a 2D x,y screen position into a 3D MappedinCoordinate using projection
|
|
9973
9966
|
*/
|
|
9974
9967
|
convertScreenCoordinateToMapCoordinate: (x: number, y: number, map: MappedinMap) => MappedinCoordinate | undefined;
|
|
9975
9968
|
convert3DMapPositionToCoordinate: (coord: any, mapClass?: MappedinMap | null | undefined) => MappedinCoordinate | undefined;
|
|
9976
|
-
getPositionPolygon: (polygon: any) =>
|
|
9977
|
-
getPositionNode: (node: any) =>
|
|
9969
|
+
getPositionPolygon: (polygon: any) => Vector3 | null;
|
|
9970
|
+
getPositionNode: (node: any) => Vector3 | undefined;
|
|
9978
9971
|
hideAllLabels: () => void;
|
|
9979
9972
|
setBackgroundColor: (color: any, alpha: any) => void;
|
|
9980
9973
|
setSize: (width: any, height: any) => void;
|
|
@@ -10007,8 +10000,8 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
10007
10000
|
mapSetResolved: any;
|
|
10008
10001
|
setMap: (map: string | MappedinMap) => Promise<null>;
|
|
10009
10002
|
setMapWithReason: (map: string | MappedinMap, reason: E_MAP_CHANGED_REASON) => Promise<null>;
|
|
10010
|
-
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) =>
|
|
10011
|
-
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) =>
|
|
10003
|
+
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
10004
|
+
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
10012
10005
|
getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
10013
10006
|
/**
|
|
10014
10007
|
* Destroys instance and frees resources
|
|
@@ -10568,6 +10561,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
|
|
|
10568
10561
|
*/
|
|
10569
10562
|
get children(): MappedinCategory[];
|
|
10570
10563
|
static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
|
|
10564
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10571
10565
|
static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
|
|
10572
10566
|
toJSON(): any;
|
|
10573
10567
|
}
|
|
@@ -10789,6 +10783,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinEvent' {
|
|
|
10789
10783
|
* @internal
|
|
10790
10784
|
*/
|
|
10791
10785
|
static hydrate(events: any, mappedin: Mappedin): MappedinEvent[];
|
|
10786
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10792
10787
|
/**
|
|
10793
10788
|
* @internal
|
|
10794
10789
|
*/
|
|
@@ -10813,6 +10808,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocationState' {
|
|
|
10813
10808
|
* @internal
|
|
10814
10809
|
*/
|
|
10815
10810
|
static hydrate(locationStates: any): MappedinLocationState[];
|
|
10811
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10816
10812
|
id: string;
|
|
10817
10813
|
name: string;
|
|
10818
10814
|
value: string;
|
|
@@ -10906,6 +10902,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMap' {
|
|
|
10906
10902
|
*/
|
|
10907
10903
|
getNorth(): any;
|
|
10908
10904
|
static hydrate(maps: any, mappedin: Mappedin): MappedinMap[];
|
|
10905
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10909
10906
|
static fetch(mappedin: Mappedin): Promise<MappedinMap[]>;
|
|
10910
10907
|
get center(): any;
|
|
10911
10908
|
toJSON(): any;
|
|
@@ -10931,6 +10928,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMapGroup' {
|
|
|
10931
10928
|
*/
|
|
10932
10929
|
get maps(): MappedinMap[];
|
|
10933
10930
|
static hydrate(mapGroups: any, mappedin: Mappedin): MappedinMapGroup[];
|
|
10931
|
+
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10934
10932
|
static fetch(mappedin: Mappedin): Promise<MappedinMapGroup[]>;
|
|
10935
10933
|
toJSON(): any;
|
|
10936
10934
|
}
|
|
@@ -11251,7 +11249,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/dynamic-foc
|
|
|
11251
11249
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
11252
11250
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
11253
11251
|
export function determineMapPositionAndRotation(map: MappedinMap, core: ICore): {
|
|
11254
|
-
position:
|
|
11252
|
+
position: number[];
|
|
11255
11253
|
scale: number[];
|
|
11256
11254
|
rotation: number[];
|
|
11257
11255
|
};
|
|
@@ -11327,8 +11325,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
|
|
|
11327
11325
|
options: TPostProcessingOptions & Required<Pick<TPostProcessingOptions, 'antialias' | 'antialiasQuality' | 'aoEnabled' | 'aoQuality' | 'aoResolution'>>;
|
|
11328
11326
|
isWebGL2: boolean;
|
|
11329
11327
|
effectComposer: PPEffectComposer;
|
|
11330
|
-
scene: Scene;
|
|
11331
|
-
camera: PerspectiveCamera;
|
|
11328
|
+
scene: Scene | null;
|
|
11329
|
+
camera: PerspectiveCamera | null;
|
|
11332
11330
|
depthTexture?: Texture;
|
|
11333
11331
|
renderer: any;
|
|
11334
11332
|
constructor(renderer: any, options: TPostProcessingOptions);
|
|
@@ -11351,7 +11349,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
|
|
|
11351
11349
|
}
|
|
11352
11350
|
|
|
11353
11351
|
declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
11354
|
-
import { Box3, Vector3, Object3D
|
|
11352
|
+
import { Box3, Vector3, Object3D } from 'three';
|
|
11355
11353
|
import { Mappedin, MapObject, MappedinMap, TMapViewOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
11356
11354
|
import { Camera } from '@mappedin/mappedin-js/renderer/public/api/Camera';
|
|
11357
11355
|
/**
|
|
@@ -11371,7 +11369,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
|
11371
11369
|
export function isGatewayKey(key: string): boolean;
|
|
11372
11370
|
export function getCombinedBoundingBox(objects: Object3D[]): Box3;
|
|
11373
11371
|
export function getMapsBoundingBox(maps: MapObject[], mapPadding: number): Box3;
|
|
11374
|
-
export function scrubMaterial(material:
|
|
11372
|
+
export function scrubMaterial(material: any): void;
|
|
11375
11373
|
/**
|
|
11376
11374
|
* Takes a Mappedin Object or id and returns the ID, so our functions can take bottomRight
|
|
11377
11375
|
* @template T extends string | {id: string}
|
|
@@ -11394,8 +11392,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
|
11394
11392
|
*/
|
|
11395
11393
|
export function appendItems<T>(arr1: T[], arr2: T[]): void;
|
|
11396
11394
|
export function getBiggestBoundingBox(objects: Object3D[]): {
|
|
11397
|
-
min:
|
|
11398
|
-
max:
|
|
11395
|
+
min: Vector3;
|
|
11396
|
+
max: Vector3;
|
|
11399
11397
|
};
|
|
11400
11398
|
export function unpackBoundingBox(boundingBox: Box3): Vector3[];
|
|
11401
11399
|
export function getMapScale(map: MappedinMap): number;
|
|
@@ -11568,7 +11566,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11568
11566
|
_focusMapsLen: number;
|
|
11569
11567
|
_focusAnimCurve: any;
|
|
11570
11568
|
_focusAnimDuration: number;
|
|
11571
|
-
rotationAxis:
|
|
11569
|
+
rotationAxis: Vector3;
|
|
11572
11570
|
mapBoundingBoxes: any[];
|
|
11573
11571
|
_helperBoundingBoxes: any[];
|
|
11574
11572
|
mapAxesHelpers: any[];
|
|
@@ -11625,11 +11623,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11625
11623
|
*/
|
|
11626
11624
|
get projections(): any[];
|
|
11627
11625
|
tiltMaps(tiltRad: any): void;
|
|
11628
|
-
_focusBox:
|
|
11626
|
+
_focusBox: Box3 | undefined;
|
|
11629
11627
|
_scrollWindow: number | undefined;
|
|
11630
11628
|
tween: any;
|
|
11631
11629
|
getFocusMaps(start: any, dir: any, len: any): any;
|
|
11632
|
-
getFocusBox():
|
|
11630
|
+
getFocusBox(): Box3;
|
|
11633
11631
|
getVisibleMaps(): any;
|
|
11634
11632
|
getVisibleMapIds(): any;
|
|
11635
11633
|
getVisibleMapIndices(): number[];
|
|
@@ -11640,6 +11638,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView'
|
|
|
11640
11638
|
scrollMapsDown(): Promise<any>;
|
|
11641
11639
|
destroy(): void;
|
|
11642
11640
|
}
|
|
11641
|
+
import { Vector3 } from 'three';
|
|
11642
|
+
import { Box3 } from 'three';
|
|
11643
11643
|
}
|
|
11644
11644
|
|
|
11645
11645
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/PerformanceController' {
|