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