@mappedin/mappedin-js 5.15.2 → 5.17.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.js +1 -1
- package/lib/esm/renderer/{browser-IAUTWFSH.js → browser-H6XV2WSH.js} +1 -1
- package/lib/esm/renderer/chunk-K22KGO4T.js +1 -0
- package/lib/esm/renderer/index.d.ts +296 -166
- package/lib/esm/renderer/index.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-6UGLFDOS.js +0 -1
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
declare module '@mappedin/mappedin-js' {
|
|
9
9
|
import { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
10
|
-
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/mappedin-js/get-venue';
|
|
10
|
+
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/mappedin-js/get-venue';
|
|
11
11
|
import { PositionUpdater } from '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
12
12
|
import type { TMapViewOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
13
|
-
import { MARKER_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker';
|
|
14
13
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/mappedin-js/--/common/Mappedin.Logger';
|
|
15
14
|
export type { Marker } from '@mappedin/mappedin-js/renderer/private/controllers/MarkersController';
|
|
16
15
|
export type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
|
|
@@ -25,6 +24,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
25
24
|
export type { BlueDot } from '@mappedin/mappedin-js/renderer/public/api/BlueDot';
|
|
26
25
|
export type { Markers } from '@mappedin/mappedin-js/renderer/public/api/Markers';
|
|
27
26
|
export type { Paths } from '@mappedin/mappedin-js/renderer/public/api/Paths';
|
|
27
|
+
export type { StackedMaps } from '@mappedin/mappedin-js/renderer/public/api/StackedMaps';
|
|
28
28
|
export type { TOOLTIP_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
|
|
29
29
|
export type TMappedinInitializeOutput = {
|
|
30
30
|
mapView: MapView;
|
|
@@ -49,8 +49,8 @@ declare module '@mappedin/mappedin-js' {
|
|
|
49
49
|
* @returns
|
|
50
50
|
*/
|
|
51
51
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
52
|
-
export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
53
|
-
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet,
|
|
52
|
+
export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, MARKER_ANCHOR, GEOLOCATION_STATUS, } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
53
|
+
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
54
54
|
import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
|
|
55
55
|
import { TTileManagerOptions } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
56
56
|
/**
|
|
@@ -66,13 +66,13 @@ declare module '@mappedin/mappedin-js' {
|
|
|
66
66
|
* @internal
|
|
67
67
|
*/
|
|
68
68
|
DefaultAssetManager as AssetManager, };
|
|
69
|
-
export type { TMappedinDirective } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
69
|
+
export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
70
70
|
export type { TMappedinInitializeOptions };
|
|
71
71
|
export * from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
72
72
|
export type { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
73
73
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as CameraController, } from '@mappedin/mappedin-js/renderer/private/controllers/CameraController';
|
|
74
|
-
export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/get-venue';
|
|
75
|
-
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, } from '@mappedin/mappedin-js/get-venue';
|
|
74
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/mappedin-js/get-venue';
|
|
75
|
+
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, MappedinLocationState, } from '@mappedin/mappedin-js/get-venue';
|
|
76
76
|
/**
|
|
77
77
|
* @internal
|
|
78
78
|
* @hidden
|
|
@@ -82,10 +82,23 @@ declare module '@mappedin/mappedin-js' {
|
|
|
82
82
|
export { CustomerAnalytics } from '@mappedin/mappedin-js/get-venue';
|
|
83
83
|
export { BundleAssetManager } from '@mappedin/mappedin-js/renderer/bundle-asset-manager';
|
|
84
84
|
/**
|
|
85
|
-
* @
|
|
85
|
+
* @experimental
|
|
86
|
+
* Enable Tile Manager to render outdoor tiles around the venue. Must be called before {@link showVenue}.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* __enableTileManager({
|
|
91
|
+
* provider: new AzureOutdoorContextProvider(
|
|
92
|
+
* venue.options.language,
|
|
93
|
+
* 256,
|
|
94
|
+
* "Your Azure API Key",
|
|
95
|
+
* undefined //Omitted when using API Key.
|
|
96
|
+
* )
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
86
99
|
*/
|
|
87
|
-
export function __useSceneManager(value: boolean): void;
|
|
88
100
|
export function __enableTileManager(options?: TTileManagerOptions): void;
|
|
101
|
+
export type { TTileManagerOptions, TILE_RENDER_MODES } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
89
102
|
export {
|
|
90
103
|
/**
|
|
91
104
|
* @internal
|
|
@@ -157,7 +170,7 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
157
170
|
*/
|
|
158
171
|
options: TMapViewOptions;
|
|
159
172
|
/**
|
|
160
|
-
*
|
|
173
|
+
* API for showing multiple maps as a vertical stack.
|
|
161
174
|
*/
|
|
162
175
|
StackedMaps: StackedMaps;
|
|
163
176
|
/**
|
|
@@ -648,6 +661,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
648
661
|
export { MappedinRankings } from '@mappedin/mappedin-js/get-venue/MappedinRankings';
|
|
649
662
|
export { MappedinDestinationSet } from '@mappedin/mappedin-js/get-venue/MappedinDestinationSet';
|
|
650
663
|
export { MappedinNavigatable } from '@mappedin/mappedin-js/get-venue/MappedinNavigatable';
|
|
664
|
+
export { MappedinLocationState } from '@mappedin/mappedin-js/get-venue/MappedinLocationState';
|
|
651
665
|
/**
|
|
652
666
|
* @internal
|
|
653
667
|
* @hidden
|
|
@@ -655,7 +669,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
655
669
|
* Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
|
|
656
670
|
*/
|
|
657
671
|
export { default as CustomerAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
|
|
658
|
-
export type { TTHINGS } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
672
|
+
export type { TTHINGS, TAccessors } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
659
673
|
export type { TMappedinDirective } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
660
674
|
export type { IDirectionsResult } from '@mappedin/mappedin-js/navigator';
|
|
661
675
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/get-venue/MappedinLocation';
|
|
@@ -1028,6 +1042,27 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1028
1042
|
* @defaultValue false
|
|
1029
1043
|
*/
|
|
1030
1044
|
interactive?: boolean;
|
|
1045
|
+
/**
|
|
1046
|
+
* @experimental
|
|
1047
|
+
*
|
|
1048
|
+
* @defaultValue false
|
|
1049
|
+
* The path will be adjusted vertically to the tallest polygon altitude.
|
|
1050
|
+
*/
|
|
1051
|
+
adjustedAltitude?: boolean;
|
|
1052
|
+
/**
|
|
1053
|
+
* @experimental
|
|
1054
|
+
*
|
|
1055
|
+
* The maximum altitude of the path in meters
|
|
1056
|
+
* @defaultValue Infinite
|
|
1057
|
+
*/
|
|
1058
|
+
maxAdjustedAltitude?: number;
|
|
1059
|
+
/**
|
|
1060
|
+
* @experimental
|
|
1061
|
+
*
|
|
1062
|
+
* @defaultValue -Infinite
|
|
1063
|
+
* The minimum altitude of the path in meters
|
|
1064
|
+
*/
|
|
1065
|
+
minAdjustedAltitude?: number;
|
|
1031
1066
|
};
|
|
1032
1067
|
export type TConnectionProps = {
|
|
1033
1068
|
/**
|
|
@@ -1461,6 +1496,10 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1461
1496
|
* Customize the appearance of the Floating Labels and their pins
|
|
1462
1497
|
*/
|
|
1463
1498
|
appearance?: TFloatingLabelAppearance;
|
|
1499
|
+
/**
|
|
1500
|
+
* Group analytics based ranking by {@link MappedinCategory.sortOrder} value
|
|
1501
|
+
*/
|
|
1502
|
+
groupRankingByCategory?: boolean;
|
|
1464
1503
|
};
|
|
1465
1504
|
export type TAddFlatLabelOptions = {
|
|
1466
1505
|
appearance?: TFlatLabelAppearance;
|
|
@@ -1470,6 +1509,10 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1470
1509
|
rank?: COLLISION_RANKING_TIERS | number;
|
|
1471
1510
|
appearance?: TFloatingLabelAppearance;
|
|
1472
1511
|
interactive?: boolean;
|
|
1512
|
+
/**
|
|
1513
|
+
* Group analytics based ranking by {@link MappedinCategory.sortOrder} value
|
|
1514
|
+
*/
|
|
1515
|
+
groupRankingByCategory?: boolean;
|
|
1473
1516
|
};
|
|
1474
1517
|
export type TLabelAllLocationCommonOptions = {
|
|
1475
1518
|
/**
|
|
@@ -1534,6 +1577,10 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1534
1577
|
export type TFloatingLabelAllLocationsOptions = TLabelAllLocationCommonOptions & {
|
|
1535
1578
|
appearance?: TFloatingLabelAppearance;
|
|
1536
1579
|
interactive?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* Group analytics based ranking by {@link MappedinCategory.sortOrder} value
|
|
1582
|
+
*/
|
|
1583
|
+
groupRankingByCategory?: boolean;
|
|
1537
1584
|
};
|
|
1538
1585
|
/**
|
|
1539
1586
|
* Options for controlling bulk location labelling
|
|
@@ -1637,53 +1684,6 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1637
1684
|
export type { default as Journey } from '@mappedin/mappedin-js/renderer/public/api/Journey';
|
|
1638
1685
|
}
|
|
1639
1686
|
|
|
1640
|
-
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker' {
|
|
1641
|
-
import './Mappedin.Marker.scss';
|
|
1642
|
-
import { COLLISION_RANKING_TIERS, HTMLCollider } from '@mappedin/mappedin-js/renderer/internal';
|
|
1643
|
-
import { Vector3 } from 'three';
|
|
1644
|
-
import type { TColliderStrategy, IHTMLCollider } from '@mappedin/mappedin-js/renderer/internal';
|
|
1645
|
-
/**
|
|
1646
|
-
* @hidden
|
|
1647
|
-
* @internal
|
|
1648
|
-
*/
|
|
1649
|
-
export type TSmartMarkerOptions = {
|
|
1650
|
-
contentHtml?: string;
|
|
1651
|
-
position: Vector3;
|
|
1652
|
-
mapId: string;
|
|
1653
|
-
id?: string;
|
|
1654
|
-
anchor?: MARKER_ANCHOR;
|
|
1655
|
-
collisionRank?: COLLISION_RANKING_TIERS;
|
|
1656
|
-
};
|
|
1657
|
-
type TTooltipStyle = {
|
|
1658
|
-
top?: string;
|
|
1659
|
-
left?: string;
|
|
1660
|
-
};
|
|
1661
|
-
export enum MARKER_ANCHOR {
|
|
1662
|
-
CENTER = 0,
|
|
1663
|
-
TOP = 1,
|
|
1664
|
-
BOTTOM = 2,
|
|
1665
|
-
LEFT = 3,
|
|
1666
|
-
RIGHT = 4
|
|
1667
|
-
}
|
|
1668
|
-
/**
|
|
1669
|
-
* @hidden
|
|
1670
|
-
* @internal
|
|
1671
|
-
*/
|
|
1672
|
-
class InternalMarker extends HTMLCollider implements IHTMLCollider {
|
|
1673
|
-
_el: Element | null;
|
|
1674
|
-
style: TTooltipStyle;
|
|
1675
|
-
polygon: any;
|
|
1676
|
-
constructor(options: TSmartMarkerOptions);
|
|
1677
|
-
get strategies(): TColliderStrategy[];
|
|
1678
|
-
colliderDidMount(): void;
|
|
1679
|
-
setAction(action: any): void;
|
|
1680
|
-
colliderDidNotFindAHome(): void;
|
|
1681
|
-
colliderDidGoOffscreen(): void;
|
|
1682
|
-
colliderDidUpdateVisiblity(): void;
|
|
1683
|
-
}
|
|
1684
|
-
export default InternalMarker;
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
1687
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/MarkersController' {
|
|
1688
1688
|
import { MappedinCoordinate, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
1689
1689
|
import type { ICore, TCreateMarkerOptions, TAnimationOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -2594,6 +2594,122 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Paths' {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
|
+
declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
2598
|
+
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
2599
|
+
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
2600
|
+
/**
|
|
2601
|
+
* API for showing multiple maps involved in a {@link Journey} as a vertical stack.
|
|
2602
|
+
*/
|
|
2603
|
+
export class StackedMaps {
|
|
2604
|
+
#private;
|
|
2605
|
+
/**
|
|
2606
|
+
* @hidden
|
|
2607
|
+
*/
|
|
2608
|
+
constructor(markersController: StackedMapsController);
|
|
2609
|
+
/**
|
|
2610
|
+
* @experimental
|
|
2611
|
+
* Enable Stacked Maps. A {@link Journey} must be drawn beforehand or this method will fail.
|
|
2612
|
+
* Use {@link showOverview} to expand the maps vertically after enabling.
|
|
2613
|
+
*
|
|
2614
|
+
* Upon enabling, map state will become {@link STATE.STACKED | STACKED} and Stacked Maps state will become {@link STACKED_MAPS_STATE.ACTIVE | ACTIVE}.
|
|
2615
|
+
*
|
|
2616
|
+
* @example
|
|
2617
|
+
* ```ts
|
|
2618
|
+
* // Create a Journey
|
|
2619
|
+
* const startLocation = mapView.venue.locations.find(...);
|
|
2620
|
+
* const endLocation = mapView.venue.locations.find(...);
|
|
2621
|
+
* mapView.Journey.draw(startLocation.directionsTo(endLocation));
|
|
2622
|
+
*
|
|
2623
|
+
* // Enable and show Stacked Maps Overview
|
|
2624
|
+
* mapView.StackedMaps.enable({
|
|
2625
|
+
* verticalDistanceBetweenMaps: 150
|
|
2626
|
+
* });
|
|
2627
|
+
* mapView.StackedMaps.showOverview();
|
|
2628
|
+
* ```
|
|
2629
|
+
*
|
|
2630
|
+
* @returns Promise when all animations are complete.
|
|
2631
|
+
*/
|
|
2632
|
+
enable: (opts?: {
|
|
2633
|
+
verticalDistanceBetweenMaps?: number | undefined;
|
|
2634
|
+
} | undefined) => Promise<void>;
|
|
2635
|
+
/**
|
|
2636
|
+
* @experimental
|
|
2637
|
+
*
|
|
2638
|
+
* Disable Stacked Maps and zoom in to the current map. Stacked Maps state will become {@link STACKED_MAPS_STATE.INACTIVE | INACTIVE}.
|
|
2639
|
+
*
|
|
2640
|
+
* @example
|
|
2641
|
+
* ```ts
|
|
2642
|
+
* mapView.StackedMaps.disable();
|
|
2643
|
+
* ```
|
|
2644
|
+
*
|
|
2645
|
+
* @returns Promise when all animations are complete.
|
|
2646
|
+
*/
|
|
2647
|
+
disable: () => Promise<void>;
|
|
2648
|
+
/**
|
|
2649
|
+
* @experimental
|
|
2650
|
+
*
|
|
2651
|
+
* Expand the maps in the current {@link Journey} vertically and add vertical paths between connections.
|
|
2652
|
+
* Stacked Maps must be enabled beforehand and state will become {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW}.
|
|
2653
|
+
*
|
|
2654
|
+
* @example
|
|
2655
|
+
* ```ts
|
|
2656
|
+
* mapView.Journey.draw(...)
|
|
2657
|
+
* mapView.StackedMaps.enable();
|
|
2658
|
+
* mapView.StackedMaps.showOverview();
|
|
2659
|
+
* ```
|
|
2660
|
+
*
|
|
2661
|
+
* @returns Promise when all animations are complete.
|
|
2662
|
+
*/
|
|
2663
|
+
showOverview: () => Promise<void>;
|
|
2664
|
+
/**
|
|
2665
|
+
* @experimental
|
|
2666
|
+
*
|
|
2667
|
+
* Scroll the camera to a specific map in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state.
|
|
2668
|
+
*
|
|
2669
|
+
* @example
|
|
2670
|
+
* ```ts
|
|
2671
|
+
* // Zoom into a clicked map if Stacked Maps is in Overview state
|
|
2672
|
+
* mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
|
|
2673
|
+
* if (maps.length <= 0) return;
|
|
2674
|
+
* if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
|
|
2675
|
+
* mapView.StackedMaps.scrollToMap(maps[0]);
|
|
2676
|
+
* }
|
|
2677
|
+
* });
|
|
2678
|
+
* ```
|
|
2679
|
+
*
|
|
2680
|
+
* @returns Promise when all animations are complete.
|
|
2681
|
+
*/
|
|
2682
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
2683
|
+
/**
|
|
2684
|
+
* @experimental
|
|
2685
|
+
*
|
|
2686
|
+
* Scroll and zoom into a specific map in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state. Stacked Maps state will become {@link STACKED_MAPS_STATE.ZOOMED_IN | ZOOMED_IN}.
|
|
2687
|
+
*
|
|
2688
|
+
* @example
|
|
2689
|
+
* ```ts
|
|
2690
|
+
* // Zoom into a clicked map if Stacked Maps is in Overview state
|
|
2691
|
+
* mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
|
|
2692
|
+
* if (maps.length <= 0) return;
|
|
2693
|
+
* if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
|
|
2694
|
+
* mapView.StackedMaps.zoomInToMap(maps[0]);
|
|
2695
|
+
* }
|
|
2696
|
+
* });
|
|
2697
|
+
* ```
|
|
2698
|
+
*
|
|
2699
|
+
* @returns Promise when all animations are complete.
|
|
2700
|
+
*/
|
|
2701
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform | undefined) => Promise<void>;
|
|
2702
|
+
/**
|
|
2703
|
+
* @experimental
|
|
2704
|
+
*
|
|
2705
|
+
* Get the current state of Stacked Maps.
|
|
2706
|
+
*
|
|
2707
|
+
* @returns The current {@link STACKED_MAPS_STATE}
|
|
2708
|
+
*/
|
|
2709
|
+
get state(): STACKED_MAPS_STATE;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2597
2713
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip' {
|
|
2598
2714
|
import './Mappedin.SmartTooltip.scss';
|
|
2599
2715
|
import { HTMLCollider, COLLISION_RANKING_TIERS } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -2911,13 +3027,16 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
2911
3027
|
import Object3D from '@mappedin/mappedin-js/renderer/internal/object3D.destroy';
|
|
2912
3028
|
import { Tile } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile';
|
|
2913
3029
|
import { IOutdoorContextProvider } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
|
|
3030
|
+
/**
|
|
3031
|
+
* @experimental
|
|
3032
|
+
*/
|
|
2914
3033
|
export enum TILE_RENDER_MODES {
|
|
2915
3034
|
NORMAL = 0,
|
|
2916
3035
|
AGGRESSIVE = 1
|
|
2917
3036
|
}
|
|
2918
3037
|
export const TILE_COLOR = "#f0f0f1";
|
|
2919
3038
|
/**
|
|
2920
|
-
* @
|
|
3039
|
+
* @experimental
|
|
2921
3040
|
*/
|
|
2922
3041
|
export type TTileManagerOptions = {
|
|
2923
3042
|
tileRenderMode?: TILE_RENDER_MODES;
|
|
@@ -2975,23 +3094,23 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinDirections' {
|
|
|
2975
3094
|
import type { MappedinMap } from '@mappedin/mappedin-js/get-venue/MappedinMap';
|
|
2976
3095
|
import type { MappedinNode } from '@mappedin/mappedin-js/get-venue/MappedinNode';
|
|
2977
3096
|
import type { MappedinVortex } from '@mappedin/mappedin-js/get-venue/MappedinVortex';
|
|
2978
|
-
interface IActionDeparture {
|
|
3097
|
+
export interface IActionDeparture {
|
|
2979
3098
|
type: ACTION_TYPE.DEPARTURE;
|
|
2980
3099
|
}
|
|
2981
|
-
interface IActionArrival {
|
|
3100
|
+
export interface IActionArrival {
|
|
2982
3101
|
type: ACTION_TYPE.ARRIVAL;
|
|
2983
3102
|
}
|
|
2984
|
-
interface IActionTakeVortex {
|
|
3103
|
+
export interface IActionTakeVortex {
|
|
2985
3104
|
type: ACTION_TYPE.TAKEVORTEX;
|
|
2986
3105
|
toMap: MappedinMap;
|
|
2987
3106
|
fromMap: MappedinMap;
|
|
2988
3107
|
}
|
|
2989
|
-
interface IActionExitVortex {
|
|
3108
|
+
export interface IActionExitVortex {
|
|
2990
3109
|
type: ACTION_TYPE.EXITVORTEX;
|
|
2991
3110
|
toMap: MappedinMap;
|
|
2992
3111
|
fromMap: MappedinMap;
|
|
2993
3112
|
}
|
|
2994
|
-
interface IActionTurn {
|
|
3113
|
+
export interface IActionTurn {
|
|
2995
3114
|
type: ACTION_TYPE.TURN;
|
|
2996
3115
|
bearing: BEARING_TYPE;
|
|
2997
3116
|
referencePosition?: string;
|
|
@@ -3023,7 +3142,6 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinDirections' {
|
|
|
3023
3142
|
constructor(mappedin: Mappedin, directions: IDirectionsResult);
|
|
3024
3143
|
toJSON(): IDirectionsResult;
|
|
3025
3144
|
}
|
|
3026
|
-
export {};
|
|
3027
3145
|
}
|
|
3028
3146
|
|
|
3029
3147
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/CameraController' {
|
|
@@ -3097,6 +3215,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/CameraControl
|
|
|
3097
3215
|
export type TCameraAnimationOptions = TAnimationOptions;
|
|
3098
3216
|
/**
|
|
3099
3217
|
* The Camera object specifies a view of the map and allows manipulation of that view.
|
|
3218
|
+
* @internal
|
|
3100
3219
|
*/
|
|
3101
3220
|
class CameraController extends PubSub<CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT> {
|
|
3102
3221
|
#private;
|
|
@@ -3289,10 +3408,9 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Journey' {
|
|
|
3289
3408
|
|
|
3290
3409
|
declare module '@mappedin/mappedin-js/renderer' {
|
|
3291
3410
|
import { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
3292
|
-
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/mappedin-js/get-venue';
|
|
3411
|
+
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/mappedin-js/get-venue';
|
|
3293
3412
|
import { PositionUpdater } from '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
3294
3413
|
import type { TMapViewOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
3295
|
-
import { MARKER_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker';
|
|
3296
3414
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/mappedin-js/--/common/Mappedin.Logger';
|
|
3297
3415
|
export type { Marker } from '@mappedin/mappedin-js/renderer/private/controllers/MarkersController';
|
|
3298
3416
|
export type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
|
|
@@ -3307,6 +3425,7 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
3307
3425
|
export type { BlueDot } from '@mappedin/mappedin-js/renderer/public/api/BlueDot';
|
|
3308
3426
|
export type { Markers } from '@mappedin/mappedin-js/renderer/public/api/Markers';
|
|
3309
3427
|
export type { Paths } from '@mappedin/mappedin-js/renderer/public/api/Paths';
|
|
3428
|
+
export type { StackedMaps } from '@mappedin/mappedin-js/renderer/public/api/StackedMaps';
|
|
3310
3429
|
export type { TOOLTIP_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
|
|
3311
3430
|
export type TMappedinInitializeOutput = {
|
|
3312
3431
|
mapView: MapView;
|
|
@@ -3331,8 +3450,8 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
3331
3450
|
* @returns
|
|
3332
3451
|
*/
|
|
3333
3452
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
3334
|
-
export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
3335
|
-
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet,
|
|
3453
|
+
export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE, STACKED_MAPS_STATE, MARKER_ANCHOR, GEOLOCATION_STATUS, } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
3454
|
+
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
3336
3455
|
import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
|
|
3337
3456
|
import { TTileManagerOptions } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
3338
3457
|
/**
|
|
@@ -3348,13 +3467,13 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
3348
3467
|
* @internal
|
|
3349
3468
|
*/
|
|
3350
3469
|
DefaultAssetManager as AssetManager, };
|
|
3351
|
-
export type { TMappedinDirective } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
3470
|
+
export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
3352
3471
|
export type { TMappedinInitializeOptions };
|
|
3353
3472
|
export * from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
3354
3473
|
export type { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
3355
3474
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as CameraController, } from '@mappedin/mappedin-js/renderer/private/controllers/CameraController';
|
|
3356
|
-
export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/get-venue';
|
|
3357
|
-
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, } from '@mappedin/mappedin-js/get-venue';
|
|
3475
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/mappedin-js/get-venue';
|
|
3476
|
+
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, MappedinLocationState, } from '@mappedin/mappedin-js/get-venue';
|
|
3358
3477
|
/**
|
|
3359
3478
|
* @internal
|
|
3360
3479
|
* @hidden
|
|
@@ -3364,10 +3483,23 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
3364
3483
|
export { CustomerAnalytics } from '@mappedin/mappedin-js/get-venue';
|
|
3365
3484
|
export { BundleAssetManager } from '@mappedin/mappedin-js/renderer/bundle-asset-manager';
|
|
3366
3485
|
/**
|
|
3367
|
-
* @
|
|
3486
|
+
* @experimental
|
|
3487
|
+
* Enable Tile Manager to render outdoor tiles around the venue. Must be called before {@link showVenue}.
|
|
3488
|
+
*
|
|
3489
|
+
* @example
|
|
3490
|
+
* ```ts
|
|
3491
|
+
* __enableTileManager({
|
|
3492
|
+
* provider: new AzureOutdoorContextProvider(
|
|
3493
|
+
* venue.options.language,
|
|
3494
|
+
* 256,
|
|
3495
|
+
* "Your Azure API Key",
|
|
3496
|
+
* undefined //Omitted when using API Key.
|
|
3497
|
+
* )
|
|
3498
|
+
* });
|
|
3499
|
+
* ```
|
|
3368
3500
|
*/
|
|
3369
|
-
export function __useSceneManager(value: boolean): void;
|
|
3370
3501
|
export function __enableTileManager(options?: TTileManagerOptions): void;
|
|
3502
|
+
export type { TTileManagerOptions, TILE_RENDER_MODES } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
3371
3503
|
export {
|
|
3372
3504
|
/**
|
|
3373
3505
|
* @internal
|
|
@@ -3384,70 +3516,6 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
3384
3516
|
IOutdoorContextProvider, } from './internal/outdoor-context/Outdoor-Context.provider';
|
|
3385
3517
|
}
|
|
3386
3518
|
|
|
3387
|
-
declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
3388
|
-
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
3389
|
-
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
3390
|
-
/**
|
|
3391
|
-
* Stacked Maps API
|
|
3392
|
-
*/
|
|
3393
|
-
export class StackedMaps {
|
|
3394
|
-
#private;
|
|
3395
|
-
/**
|
|
3396
|
-
* @hidden
|
|
3397
|
-
*/
|
|
3398
|
-
constructor(markersController: StackedMapsController);
|
|
3399
|
-
/**
|
|
3400
|
-
* @experimental
|
|
3401
|
-
* Enable stacked maps, which can be used to view maps involved in current journey as a vertical stack
|
|
3402
|
-
*
|
|
3403
|
-
* @returns Promise when all animations are complete
|
|
3404
|
-
*/
|
|
3405
|
-
enable: (opts?: {
|
|
3406
|
-
verticalDistanceBetweenMaps?: number | undefined;
|
|
3407
|
-
} | undefined) => Promise<void>;
|
|
3408
|
-
/**
|
|
3409
|
-
* @experimental
|
|
3410
|
-
*
|
|
3411
|
-
* Disables the current stacked maps experience and returns to the current map view
|
|
3412
|
-
*
|
|
3413
|
-
* @returns Promise when all animations are complete
|
|
3414
|
-
*/
|
|
3415
|
-
disable: () => Promise<void>;
|
|
3416
|
-
/**
|
|
3417
|
-
* @experimental
|
|
3418
|
-
*
|
|
3419
|
-
* Expand the maps in current journey vertically and add vertical paths
|
|
3420
|
-
*
|
|
3421
|
-
* @returns Promise when all animations are complete
|
|
3422
|
-
*/
|
|
3423
|
-
showOverview: () => Promise<void>;
|
|
3424
|
-
/**
|
|
3425
|
-
* @experimental
|
|
3426
|
-
*
|
|
3427
|
-
* Scroll to a specific map in the current journey (only available in Overview mode)
|
|
3428
|
-
*
|
|
3429
|
-
* @returns Promise when all animations are complete
|
|
3430
|
-
*/
|
|
3431
|
-
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
3432
|
-
/**
|
|
3433
|
-
* @experimental
|
|
3434
|
-
*
|
|
3435
|
-
* Scroll and zoom to a specific map in the current journey (only available in Overview mode)
|
|
3436
|
-
*
|
|
3437
|
-
* @returns Promise when all animations are complete
|
|
3438
|
-
*/
|
|
3439
|
-
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform | undefined) => Promise<void>;
|
|
3440
|
-
/**
|
|
3441
|
-
* @experimental
|
|
3442
|
-
*
|
|
3443
|
-
* Get the current state (such as Overview or Zoomed In) of Stacked Maps
|
|
3444
|
-
*
|
|
3445
|
-
* @returns The current {@link STACKED_MAPS_STATE}
|
|
3446
|
-
*/
|
|
3447
|
-
get state(): STACKED_MAPS_STATE;
|
|
3448
|
-
}
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
3519
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
3452
3520
|
export type TGetVenueOptions = {
|
|
3453
3521
|
accessToken?: string;
|
|
@@ -3527,7 +3595,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
|
|
|
3527
3595
|
POLYGON = "polygons",
|
|
3528
3596
|
VORTEX = "vortexes"
|
|
3529
3597
|
}
|
|
3530
|
-
type TAccessors = {
|
|
3598
|
+
export type TAccessors = {
|
|
3531
3599
|
[MappedinCollectionType.CATEGORY]: MappedinCategory;
|
|
3532
3600
|
[MappedinCollectionType.EVENT]: MappedinEvent;
|
|
3533
3601
|
[MappedinCollectionType.LOCATION]: MappedinLocation;
|
|
@@ -3985,6 +4053,8 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinPolygon' {
|
|
|
3985
4053
|
x: number;
|
|
3986
4054
|
y: number;
|
|
3987
4055
|
};
|
|
4056
|
+
/** Category grouped ranking determined by the {@link MappedinCategory.sortOrder} and {@link rank} for this polygon. */
|
|
4057
|
+
categoryRank?: number;
|
|
3988
4058
|
constructor(mappedin: Mappedin, data: any);
|
|
3989
4059
|
/**
|
|
3990
4060
|
* Map Object that this Polygon is located on.
|
|
@@ -4147,6 +4217,8 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
|
|
|
4147
4217
|
id?: string | undefined;
|
|
4148
4218
|
icon?: TPicture | undefined;
|
|
4149
4219
|
iconFromDefaultList?: string | undefined;
|
|
4220
|
+
/** Category sort priority. */
|
|
4221
|
+
sortOrder?: number | undefined;
|
|
4150
4222
|
constructor(mappedin: Mappedin, data: any);
|
|
4151
4223
|
/**
|
|
4152
4224
|
* Locations in this Category.
|
|
@@ -4381,6 +4453,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinVenue' {
|
|
|
4381
4453
|
name: string;
|
|
4382
4454
|
code: string;
|
|
4383
4455
|
}[];
|
|
4456
|
+
topLocations?: string[];
|
|
4384
4457
|
constructor(mappedin: Mappedin, data: any);
|
|
4385
4458
|
get metadata(): any;
|
|
4386
4459
|
set metadata(value: any);
|
|
@@ -4566,6 +4639,33 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNavigatable' {
|
|
|
4566
4639
|
}
|
|
4567
4640
|
}
|
|
4568
4641
|
|
|
4642
|
+
declare module '@mappedin/mappedin-js/get-venue/MappedinLocationState' {
|
|
4643
|
+
import type { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
4644
|
+
/**
|
|
4645
|
+
* A location state, that can belong to any number of {@link MappedinLocation}s.
|
|
4646
|
+
* @class MappedinLocationState
|
|
4647
|
+
*/
|
|
4648
|
+
export class MappedinLocationState {
|
|
4649
|
+
#private;
|
|
4650
|
+
/**
|
|
4651
|
+
* @internal
|
|
4652
|
+
*/
|
|
4653
|
+
constructor(data: any);
|
|
4654
|
+
/**
|
|
4655
|
+
* @internal
|
|
4656
|
+
*/
|
|
4657
|
+
static hydrate(locationStates: any): MappedinLocationState[];
|
|
4658
|
+
id: string;
|
|
4659
|
+
name: string;
|
|
4660
|
+
value: string;
|
|
4661
|
+
/**
|
|
4662
|
+
* @internal
|
|
4663
|
+
*/
|
|
4664
|
+
static fetch(mappedin: Mappedin): Promise<MappedinLocationState[]>;
|
|
4665
|
+
toJSON(): any;
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4569
4669
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics' {
|
|
4570
4670
|
import { MappedinCategory, MappedinLocation, MappedinNavigatable } from '@mappedin/mappedin-js/get-venue';
|
|
4571
4671
|
type AnalyticsOptions = {
|
|
@@ -4616,7 +4716,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics' {
|
|
|
4616
4716
|
class Analytics implements IInternalAnalytics {
|
|
4617
4717
|
#private;
|
|
4618
4718
|
constructor(options: AnalyticsOptions);
|
|
4619
|
-
track(target:
|
|
4719
|
+
track(target: string, query: Record<string, any>): void;
|
|
4620
4720
|
/**
|
|
4621
4721
|
* Whenever a location is selected, you should fire this event. What "selected" means can vary by venue,
|
|
4622
4722
|
* but a good rule of thumb is that you fire the event whenever you would show the location's details.
|
|
@@ -4973,6 +5073,8 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.API.types' {
|
|
|
4973
5073
|
opens: string;
|
|
4974
5074
|
closes: string;
|
|
4975
5075
|
dayOfWeek: string[];
|
|
5076
|
+
validFrom?: string;
|
|
5077
|
+
validThrough?: string;
|
|
4976
5078
|
};
|
|
4977
5079
|
export type TSiblingGroup = {
|
|
4978
5080
|
label: string;
|
|
@@ -5902,11 +6004,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-
|
|
|
5902
6004
|
* OpenStreetMap maps outdoor context class
|
|
5903
6005
|
*/
|
|
5904
6006
|
export class OpenStreetMapOutdoorContext implements IOutdoorContextProvider {
|
|
5905
|
-
makeURL(x: number, y: number, z: number): string;
|
|
6007
|
+
makeURL(x: number, y: number, z: number, customServer?: string): string;
|
|
5906
6008
|
/**
|
|
5907
6009
|
* Returns the appropriate tile at coordinate
|
|
5908
6010
|
*/
|
|
5909
|
-
fetchTile(tileX: number, tileY: number, zoom: number, signal: any): Promise<Response>;
|
|
6011
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: any, customServer?: string): Promise<Response>;
|
|
5910
6012
|
}
|
|
5911
6013
|
}
|
|
5912
6014
|
|
|
@@ -5949,7 +6051,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/JourneyContro
|
|
|
5949
6051
|
|
|
5950
6052
|
declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
5951
6053
|
import { Vector2, Vector3, Mesh } from 'three';
|
|
5952
|
-
import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController } from '@mappedin/mappedin-js/renderer/internal';
|
|
6054
|
+
import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController, SmartCollisionEngine } from '@mappedin/mappedin-js/renderer/internal';
|
|
5953
6055
|
import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem } from '@mappedin/mappedin-js/renderer/internal';
|
|
5954
6056
|
import Tween, { Easing } from '@tweenjs/tween.js';
|
|
5955
6057
|
export type TFocusOptionsLegacy = {
|
|
@@ -6172,7 +6274,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
|
6172
6274
|
bottom: number;
|
|
6173
6275
|
right: number;
|
|
6174
6276
|
}): void;
|
|
6175
|
-
smartCollisionEngine:
|
|
6277
|
+
smartCollisionEngine: SmartCollisionEngine;
|
|
6176
6278
|
mapObjects: Map<MappedinMap['id'], MapObject>;
|
|
6177
6279
|
/**
|
|
6178
6280
|
* The scene only renders when something has changed. This should be something a 3rd party developer doesn't need to worry about,
|
|
@@ -6209,24 +6311,6 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocationRankings' {
|
|
|
6209
6311
|
}
|
|
6210
6312
|
}
|
|
6211
6313
|
|
|
6212
|
-
declare module '@mappedin/mappedin-js/get-venue/MappedinLocationState' {
|
|
6213
|
-
import type { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
6214
|
-
/**
|
|
6215
|
-
* A location state, that can belong to any number of {@link MappedinLocation}s.
|
|
6216
|
-
* @class MappedinLocationState
|
|
6217
|
-
*/
|
|
6218
|
-
export class MappedinLocationState {
|
|
6219
|
-
#private;
|
|
6220
|
-
constructor(data: any);
|
|
6221
|
-
static hydrate(locationStates: any): MappedinLocationState[];
|
|
6222
|
-
id: string;
|
|
6223
|
-
name: string;
|
|
6224
|
-
value: string;
|
|
6225
|
-
static fetch(mappedin: Mappedin): Promise<MappedinLocationState[]>;
|
|
6226
|
-
toJSON(): any;
|
|
6227
|
-
}
|
|
6228
|
-
}
|
|
6229
|
-
|
|
6230
6314
|
declare module '@mappedin/mappedin-js/get-venue/MappedinTheme' {
|
|
6231
6315
|
import type { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
6232
6316
|
export class MappedinTheme {
|
|
@@ -7203,6 +7287,53 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.HTMLCollider' {
|
|
|
7203
7287
|
export default HTMLCollider;
|
|
7204
7288
|
}
|
|
7205
7289
|
|
|
7290
|
+
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Marker' {
|
|
7291
|
+
import './Mappedin.Marker.scss';
|
|
7292
|
+
import { COLLISION_RANKING_TIERS, HTMLCollider } from '@mappedin/mappedin-js/renderer/internal';
|
|
7293
|
+
import { Vector3 } from 'three';
|
|
7294
|
+
import type { TColliderStrategy, IHTMLCollider } from '@mappedin/mappedin-js/renderer/internal';
|
|
7295
|
+
/**
|
|
7296
|
+
* @hidden
|
|
7297
|
+
* @internal
|
|
7298
|
+
*/
|
|
7299
|
+
export type TSmartMarkerOptions = {
|
|
7300
|
+
contentHtml?: string;
|
|
7301
|
+
position: Vector3;
|
|
7302
|
+
mapId: string;
|
|
7303
|
+
id?: string;
|
|
7304
|
+
anchor?: MARKER_ANCHOR;
|
|
7305
|
+
collisionRank?: COLLISION_RANKING_TIERS;
|
|
7306
|
+
};
|
|
7307
|
+
type TTooltipStyle = {
|
|
7308
|
+
top?: string;
|
|
7309
|
+
left?: string;
|
|
7310
|
+
};
|
|
7311
|
+
export enum MARKER_ANCHOR {
|
|
7312
|
+
CENTER = 0,
|
|
7313
|
+
TOP = 1,
|
|
7314
|
+
BOTTOM = 2,
|
|
7315
|
+
LEFT = 3,
|
|
7316
|
+
RIGHT = 4
|
|
7317
|
+
}
|
|
7318
|
+
/**
|
|
7319
|
+
* @hidden
|
|
7320
|
+
* @internal
|
|
7321
|
+
*/
|
|
7322
|
+
class InternalMarker extends HTMLCollider implements IHTMLCollider {
|
|
7323
|
+
_el: Element | null;
|
|
7324
|
+
style: TTooltipStyle;
|
|
7325
|
+
polygon: any;
|
|
7326
|
+
constructor(options: TSmartMarkerOptions);
|
|
7327
|
+
get strategies(): TColliderStrategy[];
|
|
7328
|
+
colliderDidMount(): void;
|
|
7329
|
+
setAction(action: any): void;
|
|
7330
|
+
colliderDidNotFindAHome(): void;
|
|
7331
|
+
colliderDidGoOffscreen(): void;
|
|
7332
|
+
colliderDidUpdateVisiblity(): void;
|
|
7333
|
+
}
|
|
7334
|
+
export default InternalMarker;
|
|
7335
|
+
}
|
|
7336
|
+
|
|
7206
7337
|
declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Scene' {
|
|
7207
7338
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
7208
7339
|
import type { ICore, SceneManager, TSceneTransitionOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -7375,7 +7506,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/PolygonColors
|
|
|
7375
7506
|
class PolygonColorsController {
|
|
7376
7507
|
#private;
|
|
7377
7508
|
constructor(core: ICore);
|
|
7378
|
-
setPolygonColor(polygon: any, color: any): void;
|
|
7509
|
+
setPolygonColor(polygon: any, color: any, highlighted?: boolean): void;
|
|
7379
7510
|
clearPolygonColor(polygon: any): void;
|
|
7380
7511
|
clearAllPolygonColors(): void;
|
|
7381
7512
|
}
|
|
@@ -7627,7 +7758,7 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/EventSystem'
|
|
|
7627
7758
|
hasTouched: boolean;
|
|
7628
7759
|
calculateMouseCoordinates: (event: any) => void;
|
|
7629
7760
|
getMouseRayIntersects: (objects: Object3D | Object3D[]) => any;
|
|
7630
|
-
detectCollidersUnderMouse: () => any;
|
|
7761
|
+
detectCollidersUnderMouse: () => any[];
|
|
7631
7762
|
detectPolygonsUnderMouse: () => string[];
|
|
7632
7763
|
detectPathsUnderMouse: () => Path[];
|
|
7633
7764
|
detectMapsUnderMouse: () => any;
|
|
@@ -8494,7 +8625,6 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
8494
8625
|
};
|
|
8495
8626
|
class Core extends PubSub<INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT> {
|
|
8496
8627
|
#private;
|
|
8497
|
-
static USE_SCENE_MANAGER: boolean;
|
|
8498
8628
|
/**
|
|
8499
8629
|
* Controllers
|
|
8500
8630
|
*/
|
|
@@ -8627,7 +8757,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
8627
8757
|
*/
|
|
8628
8758
|
hideDebugUI: () => void;
|
|
8629
8759
|
determineNewLabelSize: () => void;
|
|
8630
|
-
setMap: (map: string | MappedinMap) => Promise<
|
|
8760
|
+
setMap: (map: string | MappedinMap) => Promise<null>;
|
|
8631
8761
|
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions | undefined) => any;
|
|
8632
8762
|
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions | undefined) => any;
|
|
8633
8763
|
getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|