@mappedin/react-native-sdk 5.24.1 → 5.25.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/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
16
16
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
17
17
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
18
18
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
19
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
19
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMakerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
20
20
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
21
21
|
export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
22
22
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -26,7 +26,7 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
26
26
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
27
27
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
28
28
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
29
|
-
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
29
|
+
export type { TMiMapViewVenueOptions, TMiMapViewVenueMakerOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
30
30
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
31
31
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
32
32
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
@@ -178,7 +178,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
178
178
|
import { IFlatLabels, IFloatingLabels, TGetPolygonsAtCoordinateOptions, STATE, Mappedin, MappedinNode, MappedinMap, MappedinLocation, MappedinDirections, MappedinCategory, MappedinPolygon, TGetVenueOptions, TShowVenueOptions, MappedinCoordinate, MappedinDestinationSet, TCreateMarkerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
179
179
|
import { RNMappedinController } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MappedinController';
|
|
180
180
|
import { TReactNativeFlatLabelAllLocations, TReactNativeFlatLabelAllLocationsLegacy, TSerializableJourneyOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
181
|
-
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
181
|
+
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions, TGetVenueMakerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
182
182
|
import { TCameraManager } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
183
183
|
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
184
184
|
export class MapViewStore extends RNMappedinController {
|
|
@@ -196,7 +196,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
196
196
|
/**
|
|
197
197
|
* @hidden
|
|
198
198
|
*/
|
|
199
|
-
loadVenue(options: TGetVenueOptions, showVenueOptions: TShowVenueOptions & {
|
|
199
|
+
loadVenue(options: TGetVenueOptions | TGetVenueMakerOptions, showVenueOptions: TShowVenueOptions & {
|
|
200
200
|
prepareSearch?: boolean;
|
|
201
201
|
searchOptions?: TMappedinOfflineSearchOptions;
|
|
202
202
|
}): Promise<unknown>;
|
|
@@ -454,7 +454,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
454
454
|
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
455
455
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
456
456
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
457
|
-
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
457
|
+
export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
458
458
|
export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings, OfflineSearch, MappedinCollectionType, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
459
459
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/CameraController';
|
|
460
460
|
}
|
|
@@ -558,7 +558,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
558
558
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
559
559
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
560
560
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
561
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
561
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMakerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
562
562
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
563
563
|
export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
564
564
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -568,7 +568,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
568
568
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
569
569
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
570
570
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
571
|
-
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
571
|
+
export type { TMiMapViewVenueOptions, TMiMapViewVenueMakerOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
572
572
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
573
573
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
574
574
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
@@ -649,6 +649,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
649
649
|
accuracy: number;
|
|
650
650
|
floorLevel?: number;
|
|
651
651
|
};
|
|
652
|
+
/**
|
|
653
|
+
* override bluedot bearing
|
|
654
|
+
*/
|
|
655
|
+
bearing?: number;
|
|
652
656
|
};
|
|
653
657
|
export type { TBlueDotPositionUpdate, TBlueDotStateChange };
|
|
654
658
|
export type TPathOptions = {
|
|
@@ -1722,6 +1726,21 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1722
1726
|
* @internal
|
|
1723
1727
|
*/
|
|
1724
1728
|
export function getVenueMVF(userOptions: TGetVenueMVFOptions): Promise<Mappedin>;
|
|
1729
|
+
/**
|
|
1730
|
+
* @experimental
|
|
1731
|
+
* Get venue data for a map created in Mappedin Maker.
|
|
1732
|
+
* @param userOptions
|
|
1733
|
+
* @example
|
|
1734
|
+
* ```ts
|
|
1735
|
+
* const mappedin = await getVenueMaker({
|
|
1736
|
+
* key: '<Your Maker Key>',
|
|
1737
|
+
* secret: '<Your Maker Secret>',
|
|
1738
|
+
* mapId: '<Your Maker Map ID>',
|
|
1739
|
+
* });
|
|
1740
|
+
* ```
|
|
1741
|
+
* @returns {@link Mappedin} object with data from the Maker map.
|
|
1742
|
+
*/
|
|
1743
|
+
export function getVenueMaker(userOptions: TGetVenueMakerOptions): Promise<Mappedin>;
|
|
1725
1744
|
/**
|
|
1726
1745
|
* Get Venue Data for a Mappedin Venue
|
|
1727
1746
|
*/
|
|
@@ -1740,6 +1759,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1740
1759
|
*/
|
|
1741
1760
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
1742
1761
|
};
|
|
1762
|
+
/** @internal */
|
|
1743
1763
|
export type TGetVenueMVFOptions = TGetVenueBundleOptions & {
|
|
1744
1764
|
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1745
1765
|
/**
|
|
@@ -1747,6 +1767,42 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1747
1767
|
*/
|
|
1748
1768
|
override?: Partial<Pick<ParsedMVF, 'styles.json'>>;
|
|
1749
1769
|
};
|
|
1770
|
+
/**
|
|
1771
|
+
* @experimental
|
|
1772
|
+
* Options for {@link getVenueMaker}.
|
|
1773
|
+
*/
|
|
1774
|
+
export type TGetVenueMakerOptions = {
|
|
1775
|
+
/**
|
|
1776
|
+
* Maker auth key.
|
|
1777
|
+
*/
|
|
1778
|
+
key: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Maker auth secret.
|
|
1781
|
+
*/
|
|
1782
|
+
secret: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* Maker map ID.
|
|
1785
|
+
*/
|
|
1786
|
+
mapId: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
1789
|
+
*/
|
|
1790
|
+
bundleBaseUri?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
1793
|
+
*/
|
|
1794
|
+
authBaseUri?: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* Whether or not to emit analytics events.
|
|
1797
|
+
* @default true
|
|
1798
|
+
*/
|
|
1799
|
+
emitAnalyticsEvents?: boolean;
|
|
1800
|
+
/**
|
|
1801
|
+
* Callback for when the Maker map data has been fetched and parsed as Mappedin Venue Format (MVF) data. This occurs before the {@link Mappedin} object is hydrated.
|
|
1802
|
+
* @param mvf Parsed MVF data.
|
|
1803
|
+
*/
|
|
1804
|
+
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1805
|
+
};
|
|
1750
1806
|
/**
|
|
1751
1807
|
* @deprecated
|
|
1752
1808
|
* Fetching an offline Venue bundle
|
|
@@ -1783,6 +1839,15 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1783
1839
|
* @internal
|
|
1784
1840
|
*/
|
|
1785
1841
|
export function downloadVenueBundleMVF(options: TGetVenueBundleOptions): Promise<Uint8Array>;
|
|
1842
|
+
export function getMakerAccessToken(userOptions: TGetVenueMakerOptions): Promise<{
|
|
1843
|
+
access_token: string;
|
|
1844
|
+
expires_in: number;
|
|
1845
|
+
}>;
|
|
1846
|
+
export function getMakerBundleURL(userOptions: TGetVenueMakerOptions, token: string): Promise<{
|
|
1847
|
+
url: string;
|
|
1848
|
+
updated_at: string;
|
|
1849
|
+
}>;
|
|
1850
|
+
export function downloadMakerMVF(userOptions: TGetVenueMakerOptions): Promise<Uint8Array>;
|
|
1786
1851
|
/**
|
|
1787
1852
|
* Returns a {@link Mappedin} object hydrated with JSON data.
|
|
1788
1853
|
* @param {string|Object} mappedinSerializableData A JSON string or object representing a venue.
|
|
@@ -2164,11 +2229,33 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Fla
|
|
|
2164
2229
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/FloatingLabels' {
|
|
2165
2230
|
import { MappedinCoordinate, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
2166
2231
|
import { TAddFloatingLabelOptions, TFloatingLabelAllLocationsOptions, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
2167
|
-
import FloatingLabelsController from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
2232
|
+
import FloatingLabelsController, { type FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
2233
|
+
/**
|
|
2234
|
+
* Helper for handling a generic when the type could be either an array or promise.
|
|
2235
|
+
*
|
|
2236
|
+
* 1. If the type is an array, return the array.
|
|
2237
|
+
*
|
|
2238
|
+
* ```ts
|
|
2239
|
+
* type A = ArrayablePromise<string[]> // string[]\
|
|
2240
|
+
* ```
|
|
2241
|
+
*
|
|
2242
|
+
* 2. If the type is a void promise, return the void promise.
|
|
2243
|
+
*
|
|
2244
|
+
* ```ts
|
|
2245
|
+
* type B = ArrayablePromise<Promise<void>> // Promise<void>
|
|
2246
|
+
* ```
|
|
2247
|
+
*
|
|
2248
|
+
* 3. If the type is a non void promise, return the promise's resolved type wrapped in an array.
|
|
2249
|
+
*
|
|
2250
|
+
* ```ts
|
|
2251
|
+
* type C = ArrayablePromise<Promise<string>> // Promise<string[]>
|
|
2252
|
+
* ```
|
|
2253
|
+
*/
|
|
2254
|
+
type PromisableArray<T> = T extends Promise<infer G> ? Promise<G extends void ? void : G[]> : T[];
|
|
2168
2255
|
/**
|
|
2169
2256
|
* API to add and remove floating labels on the map.
|
|
2170
2257
|
*/
|
|
2171
|
-
export interface IFloatingLabels<T =
|
|
2258
|
+
export interface IFloatingLabels<T = FloatingLabel> {
|
|
2172
2259
|
/**
|
|
2173
2260
|
* Add a floating label to one entrance node of each polygons associated with all
|
|
2174
2261
|
* locations on the venue. The text is automatically determined based on location data.
|
|
@@ -2186,7 +2273,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2186
2273
|
* ```
|
|
2187
2274
|
* @param options
|
|
2188
2275
|
*/
|
|
2189
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): T
|
|
2276
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): PromisableArray<T>;
|
|
2190
2277
|
/**
|
|
2191
2278
|
* Add a floating label to a single polygon or node. When labelling a polygon,
|
|
2192
2279
|
* all entrance nodes of that polygon receive a label.
|
|
@@ -2201,7 +2288,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2201
2288
|
* @param text The text to display on the label.
|
|
2202
2289
|
* @param options
|
|
2203
2290
|
*/
|
|
2204
|
-
add(polygonOrNode: MappedinPolygon
|
|
2291
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T>;
|
|
2292
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): T;
|
|
2293
|
+
add(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T> | T;
|
|
2205
2294
|
/**
|
|
2206
2295
|
* Update the appearance attributes of an already-existing label. If the
|
|
2207
2296
|
* provided polygon or node does not have a label already, this is a no-op.
|
|
@@ -2217,7 +2306,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2217
2306
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2218
2307
|
* @param appearance The new {@link TFlatLabelAppearance} settings to apply to the polygon's label.
|
|
2219
2308
|
*/
|
|
2220
|
-
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance):
|
|
2309
|
+
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2221
2310
|
/**
|
|
2222
2311
|
* Remove a floating label from a single polygon or node.
|
|
2223
2312
|
*
|
|
@@ -2232,7 +2321,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2232
2321
|
*
|
|
2233
2322
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to remove.
|
|
2234
2323
|
*/
|
|
2235
|
-
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2324
|
+
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2236
2325
|
/**
|
|
2237
2326
|
* Remove all floating labels from the venue.
|
|
2238
2327
|
*
|
|
@@ -2246,7 +2335,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2246
2335
|
* mapView.FloatingLabels.removeAll();
|
|
2247
2336
|
* ```
|
|
2248
2337
|
*/
|
|
2249
|
-
removeAll():
|
|
2338
|
+
removeAll(): void;
|
|
2250
2339
|
/**
|
|
2251
2340
|
* Updates the priority of an existing floating label (or labels, in the case
|
|
2252
2341
|
* of a polygon). This controls whether it is preferred over other labels
|
|
@@ -2260,7 +2349,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2260
2349
|
*
|
|
2261
2350
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2262
2351
|
*/
|
|
2263
|
-
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number):
|
|
2352
|
+
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2264
2353
|
/**
|
|
2265
2354
|
* Resets the priority of an existing floating label (or labels, in the case
|
|
2266
2355
|
* of a polygon)
|
|
@@ -2277,7 +2366,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2277
2366
|
*
|
|
2278
2367
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2279
2368
|
*/
|
|
2280
|
-
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2369
|
+
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2281
2370
|
}
|
|
2282
2371
|
export class FloatingLabels implements IFloatingLabels {
|
|
2283
2372
|
#private;
|
|
@@ -2285,14 +2374,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2285
2374
|
* @hidden
|
|
2286
2375
|
*/
|
|
2287
2376
|
constructor(controller: FloatingLabelsController);
|
|
2288
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined):
|
|
2289
|
-
add(polygonOrNode: MappedinPolygon
|
|
2377
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined): FloatingLabel[];
|
|
2378
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel[];
|
|
2379
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel;
|
|
2290
2380
|
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2291
2381
|
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2292
2382
|
removeAll(): void;
|
|
2293
2383
|
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2294
2384
|
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2295
2385
|
}
|
|
2386
|
+
export {};
|
|
2296
2387
|
}
|
|
2297
2388
|
|
|
2298
2389
|
declare module '@mappedin/react-native-sdk/core/packages/navigator' {
|
|
@@ -2622,7 +2713,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2622
2713
|
import { IDirectionsResult, MappedinMap, MappedinNode, TBlueDotPositionUpdate, TBlueDotStateChange, TGetVenueOptions, TCameraTransform, TAddFlatLabelOptions, TAddFloatingLabelOptions, TPathOptions, TShowVenueOptions, STATE, TGeolocationObject, TEnableBlueDotOptions, MappedinLocation, TFlatLabelAllLocationsOptions, TFloatingLabelAllLocationsOptions, TMappedinOfflineSearchOptions, TFocusOnCameraOptions, TCameraAnimationOptions, TGetPolygonsAtCoordinateOptions, E_CAMERA_DIRECTION, TFlatLabelAppearance, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
2623
2714
|
import { TFocusOnTargetsSerializable, TMiMapViewOptions, TSerializedCoordinate, TSerializedMap, TSerializableJourneyOptions, TSerializedLocation, TSerializedNode, TSerializedPolygon, TFloatingLabelClickEventPayloadSerialized, TColliderClickEventPayloadSerialized } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
2624
2715
|
import { BRIDGE_EVENT, EVENT, MINIMAP_EVENT, NATIVE_EVENT } from '@mappedin/react-native-sdk/wrappers/common';
|
|
2625
|
-
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
2716
|
+
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TGetVenueMakerOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
2626
2717
|
export type BRIDGE_EVENT_PAYLOADS = {
|
|
2627
2718
|
[BRIDGE_EVENT.REJECT]: any;
|
|
2628
2719
|
[BRIDGE_EVENT.RESOLVE]: any;
|
|
@@ -2641,11 +2732,11 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2641
2732
|
options: TMiMapViewOptions;
|
|
2642
2733
|
};
|
|
2643
2734
|
[MINIMAP_EVENT.LOAD_MINIMAP]: {
|
|
2644
|
-
options: TGetVenueOptions;
|
|
2735
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2645
2736
|
};
|
|
2646
2737
|
[MINIMAP_EVENT.CACHE_IMAGE]: {
|
|
2647
2738
|
url?: string;
|
|
2648
|
-
options: TGetVenueOptions;
|
|
2739
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2649
2740
|
locationId: MappedinLocation['id'];
|
|
2650
2741
|
polygonHighlightColor?: string;
|
|
2651
2742
|
focusOptions?: TFocusOnCameraOptions & TCameraAnimationOptions;
|
|
@@ -2711,7 +2802,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2711
2802
|
};
|
|
2712
2803
|
};
|
|
2713
2804
|
[EVENT.LOAD_VENUE]: {
|
|
2714
|
-
options: TGetVenueOptions & {
|
|
2805
|
+
options: (TGetVenueOptions | TGetVenueMakerOptions) & {
|
|
2715
2806
|
useBundle?: boolean;
|
|
2716
2807
|
};
|
|
2717
2808
|
showVenueOptions: TShowVenueOptions & {
|
|
@@ -3051,7 +3142,38 @@ declare module '@mappedin/react-native-sdk/wrappers/common/types' {
|
|
|
3051
3142
|
language?: string;
|
|
3052
3143
|
emitAnalyticsEvents?: boolean;
|
|
3053
3144
|
};
|
|
3054
|
-
|
|
3145
|
+
/**
|
|
3146
|
+
* @experimental
|
|
3147
|
+
* Options for fetching a venue from Maker.
|
|
3148
|
+
*/
|
|
3149
|
+
export type TMiMapViewVenueMakerOptions = {
|
|
3150
|
+
/**
|
|
3151
|
+
* Maker auth key.
|
|
3152
|
+
*/
|
|
3153
|
+
key: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* Maker auth secret.
|
|
3156
|
+
*/
|
|
3157
|
+
secret: string;
|
|
3158
|
+
/**
|
|
3159
|
+
* Maker map ID.
|
|
3160
|
+
*/
|
|
3161
|
+
mapId: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
3164
|
+
*/
|
|
3165
|
+
bundleBaseUri?: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
3168
|
+
*/
|
|
3169
|
+
authBaseUri?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Whether or not to emit analytics events.
|
|
3172
|
+
* @default true
|
|
3173
|
+
*/
|
|
3174
|
+
emitAnalyticsEvents?: boolean;
|
|
3175
|
+
};
|
|
3176
|
+
export type TMiMapViewOptions = TShowVenueOptions & (TMiMapViewVenueOptions | TMiMapViewVenueMakerOptions);
|
|
3055
3177
|
/**
|
|
3056
3178
|
* @deprecated Only used for the deprecated {@link LABEL_ALL_LOCATIONS} event
|
|
3057
3179
|
*/
|
|
@@ -3404,14 +3526,14 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3404
3526
|
LOAD_MINIMAP: {
|
|
3405
3527
|
msgID?: string;
|
|
3406
3528
|
data: {
|
|
3407
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3529
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3408
3530
|
};
|
|
3409
3531
|
};
|
|
3410
3532
|
CACHE_IMAGE: {
|
|
3411
3533
|
msgID?: string;
|
|
3412
3534
|
data: {
|
|
3413
3535
|
url?: string;
|
|
3414
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3536
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3415
3537
|
locationId: string;
|
|
3416
3538
|
polygonHighlightColor?: string;
|
|
3417
3539
|
focusOptions?: import("../react-native-sdk/src").TFocusOnCameraOptions & import("../../core/packages/renderer").TAnimationOptions;
|
|
@@ -3534,7 +3656,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3534
3656
|
LOAD_VENUE: {
|
|
3535
3657
|
msgID?: string;
|
|
3536
3658
|
data: {
|
|
3537
|
-
options: import("../react-native-sdk/src").TGetVenueOptions & {
|
|
3659
|
+
options: (import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions) & {
|
|
3538
3660
|
useBundle?: boolean;
|
|
3539
3661
|
};
|
|
3540
3662
|
showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
|
|
@@ -4158,7 +4280,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4158
4280
|
};
|
|
4159
4281
|
};
|
|
4160
4282
|
export type TFloatingLabelOptionsInternal = {
|
|
4161
|
-
id
|
|
4283
|
+
id?: string;
|
|
4162
4284
|
position: TColliderPosition;
|
|
4163
4285
|
polygon?: MappedinPolygon;
|
|
4164
4286
|
mapId: string;
|
|
@@ -4174,6 +4296,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4174
4296
|
appearance?: TFloatingLabelAppearance;
|
|
4175
4297
|
createDespiteImage?: boolean;
|
|
4176
4298
|
layer?: string;
|
|
4299
|
+
interactive?: boolean;
|
|
4177
4300
|
};
|
|
4178
4301
|
enum PINVISIBILITY {
|
|
4179
4302
|
OPAQUE = 1,
|
|
@@ -4184,7 +4307,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4184
4307
|
CENTER = "center",
|
|
4185
4308
|
RIGHT = "right"
|
|
4186
4309
|
}
|
|
4187
|
-
class
|
|
4310
|
+
class InternalFloatingLabel extends BaseCollider implements ISmarterLabel {
|
|
4188
4311
|
#private;
|
|
4189
4312
|
lines: number;
|
|
4190
4313
|
contextConfigured: boolean;
|
|
@@ -4201,6 +4324,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4201
4324
|
appearance: TAppearanceFilledIn;
|
|
4202
4325
|
mapView: ICore;
|
|
4203
4326
|
position: TColliderPosition;
|
|
4327
|
+
options: TFloatingLabelOptionsInternal;
|
|
4204
4328
|
constructor(options: TFloatingLabelOptionsInternal, mapView: ICore);
|
|
4205
4329
|
enable(updateEngine?: boolean): void;
|
|
4206
4330
|
get totalTextBoxHeight(): number;
|
|
@@ -4221,7 +4345,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4221
4345
|
get pinCanvasSize(): number;
|
|
4222
4346
|
draw(context: CanvasRenderingContext2D): void;
|
|
4223
4347
|
}
|
|
4224
|
-
export default
|
|
4348
|
+
export default InternalFloatingLabel;
|
|
4225
4349
|
}
|
|
4226
4350
|
|
|
4227
4351
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core' {
|
|
@@ -6029,34 +6153,70 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
|
|
|
6029
6153
|
}
|
|
6030
6154
|
|
|
6031
6155
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController' {
|
|
6032
|
-
import {
|
|
6033
|
-
import type { ICore, TFloatingLabelAllLocationsOptions, TAddFloatingLabelOptions,
|
|
6034
|
-
import {
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6156
|
+
import { InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6157
|
+
import type { ICore, TFloatingLabelAllLocationsOptions, TAddFloatingLabelOptions, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6158
|
+
import { MappedinPolygon, MappedinCoordinate, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6159
|
+
/**
|
|
6160
|
+
* A floating label that is attached to a node or coordinate on the map.
|
|
6161
|
+
*/
|
|
6162
|
+
export class FloatingLabel {
|
|
6163
|
+
#private;
|
|
6164
|
+
/**
|
|
6165
|
+
* @hidden
|
|
6166
|
+
* @internal
|
|
6167
|
+
*/
|
|
6168
|
+
constructor(internalFloatingLabel: InternalFloatingLabel);
|
|
6169
|
+
/**
|
|
6170
|
+
* The ID of this label.
|
|
6171
|
+
*/
|
|
6172
|
+
get id(): string;
|
|
6173
|
+
/**
|
|
6174
|
+
* The text of this label.
|
|
6175
|
+
*/
|
|
6176
|
+
get text(): string;
|
|
6177
|
+
/**
|
|
6178
|
+
* The {@link TFloatingLabelAppearance} options of this label with defaults.
|
|
6179
|
+
*/
|
|
6180
|
+
get appearance(): Required<TFloatingLabelAppearance>;
|
|
6181
|
+
/**
|
|
6182
|
+
* The {@link MappedinNode} or {@link MappedinCoordinate} that this label is attached to.
|
|
6183
|
+
*/
|
|
6184
|
+
get nodeOrCoordinate(): MappedinNode | MappedinCoordinate;
|
|
6185
|
+
/**
|
|
6186
|
+
* The collision rank of this label.
|
|
6187
|
+
*/
|
|
6188
|
+
get rank(): number;
|
|
6189
|
+
/**
|
|
6190
|
+
* @hidden
|
|
6191
|
+
* @internal
|
|
6192
|
+
*/
|
|
6193
|
+
__updateInstance(internalFloatingLabel: InternalFloatingLabel): void;
|
|
6194
|
+
/**
|
|
6195
|
+
* Object representation of this label.
|
|
6196
|
+
*/
|
|
6197
|
+
toJSON(): {
|
|
6198
|
+
id: string;
|
|
6199
|
+
text: string;
|
|
6200
|
+
appearance: Required<TFloatingLabelAppearance>;
|
|
6201
|
+
nodeOrCoordinate: any;
|
|
6202
|
+
rank: number;
|
|
6203
|
+
};
|
|
6204
|
+
}
|
|
6046
6205
|
class FloatingLabelsController {
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6206
|
+
#private;
|
|
6207
|
+
core: ICore;
|
|
6208
|
+
internalFloatingLabels: Record<string, InternalFloatingLabel>;
|
|
6209
|
+
internalFloatingLabelsByNodeOrCoordinate: WeakMap<MappedinNode | MappedinCoordinate, InternalFloatingLabel>;
|
|
6210
|
+
floatingLabels: Record<string, FloatingLabel>;
|
|
6211
|
+
constructor(core: ICore);
|
|
6212
|
+
addLabel(target: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): FloatingLabel[];
|
|
6213
|
+
addLabel(target: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): FloatingLabel;
|
|
6214
|
+
removeLabel(target: MappedinPolygon | MappedinNode | MappedinCoordinate, bulk?: boolean): void;
|
|
6215
|
+
setPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate, rank: number): void;
|
|
6216
|
+
resetPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
6217
|
+
removeAllLabels(): void;
|
|
6218
|
+
setAppearance(target: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
6219
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): FloatingLabel[];
|
|
6060
6220
|
}
|
|
6061
6221
|
export default FloatingLabelsController;
|
|
6062
6222
|
}
|
|
@@ -6376,7 +6536,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6376
6536
|
export { Atlas, FlatLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas.js';
|
|
6377
6537
|
export { default as HoverLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HoverLabel';
|
|
6378
6538
|
export { default as BaseCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartCollider';
|
|
6379
|
-
export { default as
|
|
6539
|
+
export { default as InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
6380
6540
|
export { default as HTMLCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HTMLCollider';
|
|
6381
6541
|
export { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6382
6542
|
export { default as SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
@@ -6447,12 +6607,13 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6447
6607
|
|
|
6448
6608
|
declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
6449
6609
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
|
|
6450
|
-
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6610
|
+
import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6451
6611
|
import { PositionUpdater } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
6452
6612
|
import type { TMapViewOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6453
6613
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/core/common/Mappedin.Logger';
|
|
6454
6614
|
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6455
6615
|
export type { Path } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/PathsController';
|
|
6616
|
+
export type { FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
6456
6617
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6457
6618
|
export type { IDirectionsResult, TSimplifyDirectionsOptions, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES, } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6458
6619
|
/**
|
|
@@ -6493,7 +6654,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6493
6654
|
*/
|
|
6494
6655
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
6495
6656
|
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, E_MAP_CHANGED_REASON, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
6496
|
-
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
6657
|
+
export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
6497
6658
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
6498
6659
|
import { TTileManagerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
6499
6660
|
import { TShowWatermarkOptions } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/WatermarkController';
|
|
@@ -6507,7 +6668,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6507
6668
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6508
6669
|
export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
|
|
6509
6670
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraInteractionsSetOptions, TCameraAnimationOptions, default as CameraController, } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/CameraController';
|
|
6510
|
-
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/react-native-sdk/core/packages/get-venue';
|
|
6671
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMVFOptions, TGetVenueMakerOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6511
6672
|
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, MappedinLocationState, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6512
6673
|
/**
|
|
6513
6674
|
* Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
|
|
@@ -6633,7 +6794,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-s
|
|
|
6633
6794
|
oldValue: any;
|
|
6634
6795
|
newValue: any;
|
|
6635
6796
|
};
|
|
6636
|
-
type TListenerFn = (data: TChangeEventData) => void;
|
|
6797
|
+
type TListenerFn = (data: TChangeEventData | any) => void;
|
|
6637
6798
|
export interface IPubSub {
|
|
6638
6799
|
publish: (eventName: any, data: TChangeEventData) => void;
|
|
6639
6800
|
on: (eventName: any, listenerFn: TListenerFn) => void;
|
|
@@ -8526,7 +8687,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/scene-
|
|
|
8526
8687
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.MapObject' {
|
|
8527
8688
|
import { Group, Box3, Mesh, MeshLambertMaterial, Object3D, Vector3 } from 'three';
|
|
8528
8689
|
import { FrameTaskGroup } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.TaskScheduler';
|
|
8529
|
-
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore,
|
|
8690
|
+
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, InternalFloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
8530
8691
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
8531
8692
|
/**
|
|
8532
8693
|
* Some preset priorities for tasks.
|
|
@@ -8609,7 +8770,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
8609
8770
|
north: number;
|
|
8610
8771
|
mapScale: number | null;
|
|
8611
8772
|
object: Object3D;
|
|
8612
|
-
labels: Set<
|
|
8773
|
+
labels: Set<InternalFloatingLabel>;
|
|
8613
8774
|
tooltips: Set<SmartTooltip>;
|
|
8614
8775
|
markers: Set<unknown>;
|
|
8615
8776
|
box: Box3;
|
|
@@ -9566,8 +9727,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
9566
9727
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
9567
9728
|
import type { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9568
9729
|
import { Rectangle, QuadTree } from '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-tree';
|
|
9569
|
-
import {
|
|
9570
|
-
export type Collider = InternalMarker | SmartTooltip |
|
|
9730
|
+
import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9731
|
+
export type Collider = InternalMarker | SmartTooltip | InternalFloatingLabel;
|
|
9571
9732
|
export type ColliderQuadTree = QuadTree<{
|
|
9572
9733
|
collider: Collider;
|
|
9573
9734
|
}>;
|
|
@@ -10053,7 +10214,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
|
|
|
10053
10214
|
/**
|
|
10054
10215
|
* API for controlling floating labels.
|
|
10055
10216
|
*/
|
|
10056
|
-
FloatingLabels: IFloatingLabels
|
|
10217
|
+
FloatingLabels: IFloatingLabels;
|
|
10057
10218
|
/**
|
|
10058
10219
|
* API for adding 2D markers.
|
|
10059
10220
|
*/
|