@mappedin/mappedin-js 5.32.0 → 5.34.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 +18 -4
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.d.ts +5 -2
- package/lib/esm/navigator/index.js +1 -1
- package/lib/esm/renderer/{GLTFExporter-736VSFZ3.js → GLTFExporter-GTBQCMC4.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-VIGOXCRM.js → PerformanceController-5WVE6OUG.js} +1 -1
- package/lib/esm/renderer/{browser-JGBAY4Z2.js → browser-2IPNXLES.js} +1 -1
- package/lib/esm/renderer/{chunk-E3DLMZPO.js → chunk-265QS37O.js} +1 -1
- package/lib/esm/renderer/chunk-475WYSDY.js +1 -0
- package/lib/esm/renderer/index.d.ts +239 -166
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/outdoor-context-VLB23X76.js +1 -0
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-2BPD3G27.js +0 -1
- package/lib/esm/renderer/outdoor-context-2GIXOQTQ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-ZRT45YCM.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.34.0"}}}));export{c as a,e as b};
|
|
@@ -3523,6 +3523,26 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
|
3523
3523
|
* @returns Promise when all animations are complete.
|
|
3524
3524
|
*/
|
|
3525
3525
|
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
3526
|
+
/**
|
|
3527
|
+
* @experimental
|
|
3528
|
+
*
|
|
3529
|
+
* Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
|
|
3530
|
+
* current stack if there is a new Journey or Journey is cleared.
|
|
3531
|
+
*
|
|
3532
|
+
* @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
|
|
3533
|
+
*
|
|
3534
|
+
* @example
|
|
3535
|
+
* ```ts
|
|
3536
|
+
* mapView.Journey.draw(...);
|
|
3537
|
+
* mapView.StackedMaps.enable();
|
|
3538
|
+
* mapView.StackedMaps.showOverview();
|
|
3539
|
+
* mapView.Journey.clear();
|
|
3540
|
+
* mapView.StackedMaps.restack();
|
|
3541
|
+
* ```
|
|
3542
|
+
*
|
|
3543
|
+
* @returns Promise when all animations are complete.
|
|
3544
|
+
*/
|
|
3545
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
3526
3546
|
/**
|
|
3527
3547
|
* @experimental
|
|
3528
3548
|
*
|
|
@@ -3687,6 +3707,12 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Layers' {
|
|
|
3687
3707
|
* Adds a GeoJSON Feature or FeatureCollection to the map as a layer. The layer name must be unique
|
|
3688
3708
|
*/
|
|
3689
3709
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void> | undefined;
|
|
3710
|
+
/**
|
|
3711
|
+
* @experimental
|
|
3712
|
+
* Hides a GeoJSON layer from the map and removes it from the list of layers.
|
|
3713
|
+
* It will not appear in {@link getAllLayersForMap} afterwards and can be overwritten by a new layer with the same name.
|
|
3714
|
+
*/
|
|
3715
|
+
removeGeoJSONLayer(layerName: string): Promise<void> | undefined;
|
|
3690
3716
|
}
|
|
3691
3717
|
export default LayerController;
|
|
3692
3718
|
}
|
|
@@ -4810,6 +4836,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
|
4810
4836
|
clientId: string;
|
|
4811
4837
|
clientSecret: string;
|
|
4812
4838
|
venue: string;
|
|
4839
|
+
accessToken: string;
|
|
4813
4840
|
};
|
|
4814
4841
|
export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
|
|
4815
4842
|
perspective?: string;
|
|
@@ -5442,8 +5469,8 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
|
|
|
5442
5469
|
}
|
|
5443
5470
|
|
|
5444
5471
|
declare module '@mappedin/mappedin-js/get-venue/MappedinCoordinate' {
|
|
5445
|
-
import { MappedinNode, Mappedin } from '@mappedin/mappedin-js/get-venue/internal';
|
|
5446
5472
|
import type { MappedinMap } from '@mappedin/mappedin-js/get-venue/internal';
|
|
5473
|
+
import { Mappedin, MappedinNode } from '@mappedin/mappedin-js/get-venue/internal';
|
|
5447
5474
|
export type TMappedinCoordinateOptions = {
|
|
5448
5475
|
map: MappedinMap;
|
|
5449
5476
|
mappedin: Mappedin;
|
|
@@ -5506,6 +5533,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCoordinate' {
|
|
|
5506
5533
|
* Get Nearest Node to Coordinate, which can then be used for navigation
|
|
5507
5534
|
*/
|
|
5508
5535
|
get nearestNode(): MappedinNode;
|
|
5536
|
+
/**
|
|
5537
|
+
* Get the {@link MappedinNode}s within a radius of the {@link MappedinCoordinate}.
|
|
5538
|
+
* @param radius - The radius in metres.
|
|
5539
|
+
*/
|
|
5540
|
+
nodesInRadius(radius: number): MappedinNode[];
|
|
5509
5541
|
toJSON(): {
|
|
5510
5542
|
x: number;
|
|
5511
5543
|
y: number;
|
|
@@ -6419,13 +6451,15 @@ declare module '@mappedin/mappedin-js/navigator/NavigationGraph' {
|
|
|
6419
6451
|
* @param accessible boolean - optional, if true directions will only take accessible route, defaults to false
|
|
6420
6452
|
* @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6421
6453
|
* @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6454
|
+
* @param excludedNodeIds set - optional, exclude all the nodes matching the given IDs
|
|
6422
6455
|
*/
|
|
6423
|
-
aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, }: {
|
|
6456
|
+
aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, excludedNodeIds, }: {
|
|
6424
6457
|
originIds: string[];
|
|
6425
6458
|
destinationNodeIds: string[];
|
|
6426
6459
|
accessible: boolean;
|
|
6427
6460
|
includedVortexIds?: Set<string>;
|
|
6428
6461
|
excludedVortexIds?: Set<string>;
|
|
6462
|
+
excludedNodeIds?: Set<string>;
|
|
6429
6463
|
}): Edge[];
|
|
6430
6464
|
getDistance(origin: INode, destination: INode): number;
|
|
6431
6465
|
getShortestEuclideanDistance(origin: INode, destinations: INode[]): number;
|
|
@@ -6492,10 +6526,11 @@ declare module '@mappedin/mappedin-js/navigator/Navigator' {
|
|
|
6492
6526
|
* @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6493
6527
|
* @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
|
|
6494
6528
|
*/
|
|
6495
|
-
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, simplify, }: {
|
|
6529
|
+
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, excludedNodeIds, simplify, }: {
|
|
6496
6530
|
originIds: string[];
|
|
6497
6531
|
includedVortexIds?: Set<string>;
|
|
6498
6532
|
excludedVortexIds?: Set<string>;
|
|
6533
|
+
excludedNodeIds?: Set<string>;
|
|
6499
6534
|
destinationNodeIds: string[];
|
|
6500
6535
|
accessible: boolean;
|
|
6501
6536
|
departFrom?: ILocation;
|
|
@@ -6612,115 +6647,141 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
|
|
|
6612
6647
|
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
|
|
6613
6648
|
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
6614
6649
|
enum ACTION {
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6650
|
+
enable = "enable",
|
|
6651
|
+
disable = "disable",
|
|
6652
|
+
showOverview = "showOverview",
|
|
6653
|
+
zoomInToMap = "zoomInToMap",
|
|
6654
|
+
scrollToMap = "scrollToMap",
|
|
6655
|
+
restack = "restack"
|
|
6620
6656
|
}
|
|
6621
6657
|
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
6622
6658
|
type TParams = {
|
|
6623
|
-
|
|
6659
|
+
map: MappedinMap;
|
|
6624
6660
|
} | {
|
|
6625
|
-
|
|
6661
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
6626
6662
|
} | {
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6663
|
+
stackScene: MapViewStackScene;
|
|
6664
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
6665
|
+
verticalDistanceBetweenMaps?: number;
|
|
6630
6666
|
} | {
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6667
|
+
stackScene: MapViewStackScene;
|
|
6668
|
+
verticalDistanceBetweenMaps?: number;
|
|
6669
|
+
map: MappedinMap;
|
|
6670
|
+
nodes: MappedinNode[];
|
|
6635
6671
|
} | {
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6672
|
+
stackScene: MapViewStackScene;
|
|
6673
|
+
map: MappedinMap;
|
|
6674
|
+
nodes: MappedinNode[];
|
|
6675
|
+
rotation: number;
|
|
6676
|
+
cameraTransform?: TCameraTransform;
|
|
6677
|
+
verticalDistanceBetweenMaps?: number;
|
|
6642
6678
|
};
|
|
6643
6679
|
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
6644
6680
|
type TState = {
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6681
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
6682
|
+
actions: {
|
|
6683
|
+
[actionName in ACTION]?: TActionFn;
|
|
6684
|
+
};
|
|
6648
6685
|
};
|
|
6649
|
-
};
|
|
6650
6686
|
};
|
|
6651
6687
|
export type TInternalTransitionOptions = {
|
|
6652
|
-
|
|
6688
|
+
animate?: boolean;
|
|
6653
6689
|
};
|
|
6654
6690
|
export type TStackedMapsOptions = {
|
|
6655
|
-
|
|
6656
|
-
|
|
6691
|
+
/**
|
|
6692
|
+
* The vertical distance between maps in overview, in metres.
|
|
6693
|
+
* @default 50
|
|
6694
|
+
*/
|
|
6695
|
+
verticalDistanceBetweenMaps?: number;
|
|
6696
|
+
/**
|
|
6697
|
+
* Whether to show map level labels in overview.
|
|
6698
|
+
* @default true
|
|
6699
|
+
*/
|
|
6700
|
+
mapLabels?: boolean;
|
|
6701
|
+
/**
|
|
6702
|
+
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
6703
|
+
* @default true
|
|
6704
|
+
*/
|
|
6705
|
+
prioritizeJourneyMaps?: boolean;
|
|
6657
6706
|
};
|
|
6658
6707
|
class StackedMapsController {
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
};
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6708
|
+
#private;
|
|
6709
|
+
options: TStackedMapsOptions;
|
|
6710
|
+
enabled: boolean;
|
|
6711
|
+
stackScene: MapViewStackScene;
|
|
6712
|
+
constructor(core: ICore);
|
|
6713
|
+
needsUpdate: boolean;
|
|
6714
|
+
currentState: STACKED_MAPS_STATE;
|
|
6715
|
+
mapsInStack: MappedinMap[];
|
|
6716
|
+
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
6717
|
+
activeMap: MappedinMap;
|
|
6718
|
+
focusOn: {
|
|
6719
|
+
targets: {
|
|
6720
|
+
nodes: MappedinNode[];
|
|
6721
|
+
};
|
|
6722
|
+
options: {
|
|
6723
|
+
zoom?: number | undefined;
|
|
6724
|
+
tilt: number;
|
|
6725
|
+
rotation: number;
|
|
6726
|
+
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
6727
|
+
easing: CAMERA_EASING_MODE;
|
|
6728
|
+
};
|
|
6729
|
+
};
|
|
6730
|
+
})[] | undefined;
|
|
6731
|
+
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
6732
|
+
activeMap: MappedinMap;
|
|
6733
|
+
})[] | undefined;
|
|
6734
|
+
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
6735
|
+
activeMap: MappedinMap;
|
|
6736
|
+
focusOn: {
|
|
6737
|
+
options: {
|
|
6738
|
+
tilt: number;
|
|
6739
|
+
duration: number;
|
|
6740
|
+
};
|
|
6741
|
+
};
|
|
6742
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
6743
|
+
})[] | undefined;
|
|
6744
|
+
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
6745
|
+
focusOn: {
|
|
6746
|
+
targets: {
|
|
6747
|
+
nodes: MappedinNode[];
|
|
6748
|
+
};
|
|
6749
|
+
options: {
|
|
6750
|
+
tilt: number;
|
|
6751
|
+
easing: CAMERA_EASING_MODE;
|
|
6752
|
+
};
|
|
6753
|
+
};
|
|
6754
|
+
activeMap: MappedinMap;
|
|
6755
|
+
})[] | undefined;
|
|
6756
|
+
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
6757
|
+
activeMap: MappedinMap;
|
|
6758
|
+
focusOn: {
|
|
6759
|
+
options: {
|
|
6760
|
+
tilt: number;
|
|
6761
|
+
duration: number;
|
|
6762
|
+
};
|
|
6763
|
+
};
|
|
6764
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
6765
|
+
})[] | undefined;
|
|
6766
|
+
getEnableOptions: () => void;
|
|
6767
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6768
|
+
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
6769
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6770
|
+
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6771
|
+
getDisableTransition: (options: any) => () => Promise<void>;
|
|
6772
|
+
getEnableTransition: () => () => void;
|
|
6773
|
+
states: TState;
|
|
6774
|
+
get determineMapStack(): MappedinMap[];
|
|
6775
|
+
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
6776
|
+
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
6777
|
+
disable: () => Promise<void>;
|
|
6778
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
6779
|
+
get nodesInJourneyOrMap(): any[];
|
|
6780
|
+
showOverview: () => Promise<void>;
|
|
6781
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
6782
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
6783
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
6784
|
+
get currentMap(): MappedinMap;
|
|
6724
6785
|
}
|
|
6725
6786
|
export default StackedMapsController;
|
|
6726
6787
|
}
|
|
@@ -6984,7 +7045,10 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
|
6984
7045
|
* An object containing all outlined polygons.
|
|
6985
7046
|
*/
|
|
6986
7047
|
outlinedPolygons: Map<string, MappedinPolygon>;
|
|
6987
|
-
|
|
7048
|
+
/**
|
|
7049
|
+
* A plane that is parallel to the ground and is used for raycasting.
|
|
7050
|
+
*/
|
|
7051
|
+
worldPlane: Mesh;
|
|
6988
7052
|
getPositionLatLon(lat: number, lon: number, map?: MappedinMap | string | null): Vector3;
|
|
6989
7053
|
currentScale: number;
|
|
6990
7054
|
getPositionPolygon(polygon: MappedinPolygon | string): Vector3;
|
|
@@ -7692,7 +7756,7 @@ declare module '@mappedin/mappedin-js/get-venue/pub-sub.typed' {
|
|
|
7692
7756
|
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
7693
7757
|
* @template EVENT - The type of the event.
|
|
7694
7758
|
*/
|
|
7695
|
-
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD> {
|
|
7759
|
+
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
7696
7760
|
/**
|
|
7697
7761
|
* @private
|
|
7698
7762
|
* @internal
|
|
@@ -8723,73 +8787,76 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
|
|
|
8723
8787
|
import type { ICore, MappedinPolygon, Collider } from '@mappedin/mappedin-js/renderer/internal';
|
|
8724
8788
|
import { BlueDotManager, Path } from '@mappedin/mappedin-js/renderer/internal';
|
|
8725
8789
|
class EventSystem {
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8790
|
+
core: ICore;
|
|
8791
|
+
blueDotManager?: BlueDotManager;
|
|
8792
|
+
rendererDomElement: any;
|
|
8793
|
+
currentHover: string | null;
|
|
8794
|
+
hoverLabel: any;
|
|
8795
|
+
hoverColor: Color;
|
|
8796
|
+
options: {
|
|
8797
|
+
disableHover: boolean;
|
|
8798
|
+
};
|
|
8799
|
+
constructor(core: ICore);
|
|
8800
|
+
setBlueDotManager: (blueDotManager: any) => void;
|
|
8801
|
+
touchCount: number;
|
|
8802
|
+
zoomOut(): void;
|
|
8803
|
+
zoomIn(event: any): void;
|
|
8804
|
+
onPointerMove: (event: any) => void;
|
|
8805
|
+
onPointerUp: (event: any) => void;
|
|
8806
|
+
/**
|
|
8807
|
+
* We've confirmed that a map click has occured, so handle that here
|
|
8808
|
+
*/
|
|
8809
|
+
handleMapClick(event: any): void;
|
|
8810
|
+
onPointerDown: (event: any) => void;
|
|
8811
|
+
incrementTouches: (event: any) => void;
|
|
8812
|
+
decrementTouches: (event: any) => void;
|
|
8813
|
+
clearMouse: () => void;
|
|
8814
|
+
getMousePos: (event: any) => {
|
|
8815
|
+
x: any;
|
|
8816
|
+
y: any;
|
|
8817
|
+
};
|
|
8818
|
+
getScaledMousePos: (event: any) => {
|
|
8819
|
+
x: number;
|
|
8820
|
+
y: number;
|
|
8821
|
+
};
|
|
8822
|
+
cursorPos: {
|
|
8823
|
+
x: number;
|
|
8824
|
+
y: number;
|
|
8825
|
+
};
|
|
8826
|
+
mouse: {
|
|
8827
|
+
x: number;
|
|
8828
|
+
y: number;
|
|
8829
|
+
};
|
|
8830
|
+
mouseDownStart: {
|
|
8831
|
+
time: number;
|
|
8832
|
+
clientX: number;
|
|
8833
|
+
clientY: number;
|
|
8834
|
+
};
|
|
8835
|
+
scaledCursorPos: {
|
|
8836
|
+
x: number;
|
|
8837
|
+
y: number;
|
|
8838
|
+
};
|
|
8839
|
+
hasTouched: boolean;
|
|
8840
|
+
calculateMouseCoordinates: (event: any) => void;
|
|
8841
|
+
getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
8842
|
+
detectCollidersUnderMouse: () => Collider[];
|
|
8843
|
+
detectPolygonsUnderMouse: () => string[];
|
|
8844
|
+
detectPathsUnderMouse: () => Path[];
|
|
8845
|
+
detectWatermarkUnderMouse: () => boolean;
|
|
8846
|
+
detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
|
|
8847
|
+
/**
|
|
8848
|
+
* Gets mouse click position in x y map coordinates
|
|
8849
|
+
*/
|
|
8850
|
+
getMouseMapPosition: () => {
|
|
8851
|
+
x: number;
|
|
8852
|
+
y: number;
|
|
8853
|
+
};
|
|
8854
|
+
checkMouseIntersectsBlueDot: () => boolean;
|
|
8855
|
+
doHoverEffect: () => void;
|
|
8856
|
+
onPolygonHoverOut: (polygonId: string) => false | undefined;
|
|
8857
|
+
onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
|
|
8858
|
+
setHoverColor: (color: string) => void;
|
|
8859
|
+
destroy(): void;
|
|
8793
8860
|
}
|
|
8794
8861
|
export default EventSystem;
|
|
8795
8862
|
}
|
|
@@ -9311,7 +9378,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/ExportControl
|
|
|
9311
9378
|
/**
|
|
9312
9379
|
* Exports the current scene as a GLTF file.
|
|
9313
9380
|
*/
|
|
9314
|
-
getCurrentSceneGLTF(userOptions: TGLTFExportOptions)
|
|
9381
|
+
getCurrentSceneGLTF: (userOptions: TGLTFExportOptions) => Promise<Blob>;
|
|
9315
9382
|
}
|
|
9316
9383
|
}
|
|
9317
9384
|
|
|
@@ -9335,6 +9402,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/LayerControll
|
|
|
9335
9402
|
*/
|
|
9336
9403
|
getVisibleLayersForLoadedMap(map: MappedinMap): string[] | undefined;
|
|
9337
9404
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void>;
|
|
9405
|
+
removeGeoJSONLayer(layerName: string): Promise<void>;
|
|
9338
9406
|
}
|
|
9339
9407
|
export default LayerController;
|
|
9340
9408
|
}
|
|
@@ -9906,7 +9974,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9906
9974
|
resolution: Vector2;
|
|
9907
9975
|
cameraParameters: any;
|
|
9908
9976
|
controls: typeof Mappedin.CameraControls;
|
|
9909
|
-
|
|
9977
|
+
worldPlane: Mesh;
|
|
9910
9978
|
canvasWidth: number;
|
|
9911
9979
|
canvasHeight: number;
|
|
9912
9980
|
cachedPadding: TPadding;
|
|
@@ -10256,6 +10324,10 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNavigatable' {
|
|
|
10256
10324
|
* Exclude all the vortexes matching the given IDs
|
|
10257
10325
|
*/
|
|
10258
10326
|
excludedVortexIds?: string[];
|
|
10327
|
+
/**
|
|
10328
|
+
* Exclude all the nodes matching the given IDs
|
|
10329
|
+
*/
|
|
10330
|
+
excludedNodeIds?: string[];
|
|
10259
10331
|
/**
|
|
10260
10332
|
* @experimental
|
|
10261
10333
|
* Apply line-of-sight simplifying to directions. This will attempt to remove unnecessary nodes between turns.
|
|
@@ -11070,6 +11142,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
|
|
|
11070
11142
|
get polygonsByMapId(): Map<string, MappedinPolygon[]>;
|
|
11071
11143
|
get nodesByMapId(): Map<string, MappedinNode[]>;
|
|
11072
11144
|
findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
|
|
11145
|
+
findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
|
|
11073
11146
|
get locationsByMapId(): Map<string, MappedinLocation[]>;
|
|
11074
11147
|
static instances: Map<Mappedin, MappedinCache>;
|
|
11075
11148
|
static create(mappedin: Mappedin): MappedinCache;
|