@mappedin/react-native-sdk 5.24.1 → 5.26.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/README.md +25 -187
- package/dist/{browser-HCTYRIMX.js → browser-VVXLWKHV.js} +1 -1
- package/dist/{chunk-XV372I7S.js → chunk-YVLEJFQB.js} +1 -1
- package/dist/index.d.ts +296 -121
- package/dist/index.js +1 -1
- package/package.json +2 -2
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>;
|
|
@@ -451,10 +451,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
451
451
|
export { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
452
452
|
export type { IFlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/FlatLabels';
|
|
453
453
|
export type { IFloatingLabels } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/FloatingLabels';
|
|
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';
|
|
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, TShowVenueOptions, } 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,
|
|
457
|
+
export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, 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,12 +649,23 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
649
649
|
accuracy: number;
|
|
650
650
|
floorLevel?: number;
|
|
651
651
|
};
|
|
652
|
+
/**
|
|
653
|
+
* Optional property to override the bearing of the bluedot.
|
|
654
|
+
* Specifies the clockwise rotation angle in degrees from North.
|
|
655
|
+
* For example:
|
|
656
|
+
* - A value of 0 (or undefined) indicates North.
|
|
657
|
+
* - A value of 90 indicates East.
|
|
658
|
+
* - A value of 180 indicates South.
|
|
659
|
+
* - A value of 225 indicates SouthWest.
|
|
660
|
+
* This property helps in setting a specific orientation for the bluedot.
|
|
661
|
+
*/
|
|
662
|
+
bearing?: number;
|
|
652
663
|
};
|
|
653
664
|
export type { TBlueDotPositionUpdate, TBlueDotStateChange };
|
|
654
665
|
export type TPathOptions = {
|
|
655
666
|
/**
|
|
656
667
|
* Path Colour
|
|
657
|
-
* @defaultValue #
|
|
668
|
+
* @defaultValue #4b90e2
|
|
658
669
|
*/
|
|
659
670
|
color?: string;
|
|
660
671
|
/**
|
|
@@ -702,6 +713,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
702
713
|
* @defaultValue true
|
|
703
714
|
*/
|
|
704
715
|
displayArrowsOnPath?: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* Animate arrows on path
|
|
718
|
+
* @defaultValue true
|
|
719
|
+
*/
|
|
720
|
+
animateArrowsOnPath?: boolean;
|
|
705
721
|
/**
|
|
706
722
|
* Flatten the path to a 2D line
|
|
707
723
|
* @defaultValue false
|
|
@@ -1268,6 +1284,58 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1268
1284
|
onWebGLContextRestored?: () => void;
|
|
1269
1285
|
onWebGLRendererError?: () => void;
|
|
1270
1286
|
};
|
|
1287
|
+
/**
|
|
1288
|
+
* MapView Options for React Native
|
|
1289
|
+
*/
|
|
1290
|
+
export type TShowVenueOptions = {
|
|
1291
|
+
/**
|
|
1292
|
+
* Sets the initial background color of the map, including while loading.
|
|
1293
|
+
*
|
|
1294
|
+
*/
|
|
1295
|
+
backgroundColor?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* The opacity of the initial background color.
|
|
1298
|
+
*/
|
|
1299
|
+
backgroundAlpha?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* Whether or not to display default styled Floating Labels initially
|
|
1302
|
+
*/
|
|
1303
|
+
labelAllLocationsOnInit?: boolean;
|
|
1304
|
+
/**
|
|
1305
|
+
* The id of the first map to show on map load
|
|
1306
|
+
*/
|
|
1307
|
+
firstMapId?: string;
|
|
1308
|
+
loadOptions?: {
|
|
1309
|
+
/**
|
|
1310
|
+
* Set the map render strategy in order to optimize FPS
|
|
1311
|
+
*
|
|
1312
|
+
* @beta
|
|
1313
|
+
*/
|
|
1314
|
+
mapRenderStrategy?: MAP_RENDER_MODE;
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* @experimental
|
|
1318
|
+
* Enable outdoor view. Requires multi-buffer rendering to be enabled
|
|
1319
|
+
*/
|
|
1320
|
+
outdoorView?: TOutdoorViewControllerOptions & {
|
|
1321
|
+
enabled?: boolean;
|
|
1322
|
+
};
|
|
1323
|
+
/**
|
|
1324
|
+
* @experimental
|
|
1325
|
+
* Enable multi-buffer rendering
|
|
1326
|
+
*
|
|
1327
|
+
* Multi-buffer rendering should improve performance but may cause issues on older GPUs/browsers
|
|
1328
|
+
* @default false
|
|
1329
|
+
*/
|
|
1330
|
+
multiBufferRendering?: boolean;
|
|
1331
|
+
/**
|
|
1332
|
+
* @experimental
|
|
1333
|
+
* Journey path will be visible through other objects. Note: this is on by default, but requires the
|
|
1334
|
+
* `multiBufferRendering` option (which is off by default) to be turned on.
|
|
1335
|
+
* @default true
|
|
1336
|
+
*/
|
|
1337
|
+
xRayPath?: boolean;
|
|
1338
|
+
};
|
|
1271
1339
|
/**
|
|
1272
1340
|
* Control how a flat label looks
|
|
1273
1341
|
*/
|
|
@@ -1666,62 +1734,26 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1666
1734
|
export type { TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types';
|
|
1667
1735
|
import { MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types';
|
|
1668
1736
|
import { ParsedMVF } from '@mappedin/mvf';
|
|
1669
|
-
export type TShowVenueOptions = {
|
|
1670
|
-
/**
|
|
1671
|
-
* Sets the initial background color of the map, including while loading.
|
|
1672
|
-
*
|
|
1673
|
-
*/
|
|
1674
|
-
backgroundColor?: string;
|
|
1675
|
-
/**
|
|
1676
|
-
* The opacity of the initial background color.
|
|
1677
|
-
*/
|
|
1678
|
-
backgroundAlpha?: number;
|
|
1679
|
-
/**
|
|
1680
|
-
* Whether or not to display default styled Floating Labels initially
|
|
1681
|
-
*/
|
|
1682
|
-
labelAllLocationsOnInit?: boolean;
|
|
1683
|
-
/**
|
|
1684
|
-
* The id of the first map to show on map load
|
|
1685
|
-
*/
|
|
1686
|
-
firstMapId?: string;
|
|
1687
|
-
loadOptions?: {
|
|
1688
|
-
/**
|
|
1689
|
-
* Set the map render strategy in order to optimize FPS
|
|
1690
|
-
*
|
|
1691
|
-
* @beta
|
|
1692
|
-
*/
|
|
1693
|
-
mapRenderStrategy?: MAP_RENDER_MODE;
|
|
1694
|
-
};
|
|
1695
|
-
/**
|
|
1696
|
-
* @experimental
|
|
1697
|
-
* Enable outdoor context. Requires multi-buffer rendering to be enabled
|
|
1698
|
-
*/
|
|
1699
|
-
outdoorContext?: {
|
|
1700
|
-
enabled?: boolean;
|
|
1701
|
-
url?: string;
|
|
1702
|
-
authURL?: string;
|
|
1703
|
-
};
|
|
1704
|
-
/**
|
|
1705
|
-
* @experimental
|
|
1706
|
-
* Enable multi-buffer rendering
|
|
1707
|
-
*
|
|
1708
|
-
* Multi-buffer rendering should improve performance but may cause issues on older GPUs/browsers
|
|
1709
|
-
* @default false
|
|
1710
|
-
*/
|
|
1711
|
-
multiBufferRendering?: boolean;
|
|
1712
|
-
/**
|
|
1713
|
-
* @experimental
|
|
1714
|
-
* Journey path will be visible through other objects. Note: this is on by default, but requires the
|
|
1715
|
-
* `multiBufferRendering` option (which is off by default) to be turned on.
|
|
1716
|
-
* @default true
|
|
1717
|
-
*/
|
|
1718
|
-
xRayPath?: boolean;
|
|
1719
|
-
};
|
|
1720
1737
|
export { MAP_RENDER_MODE, GET_VENUE_EVENT };
|
|
1721
1738
|
/**
|
|
1722
1739
|
* @internal
|
|
1723
1740
|
*/
|
|
1724
1741
|
export function getVenueMVF(userOptions: TGetVenueMVFOptions): Promise<Mappedin>;
|
|
1742
|
+
/**
|
|
1743
|
+
* @experimental
|
|
1744
|
+
* Get venue data for a map created in Mappedin Maker.
|
|
1745
|
+
* @param userOptions
|
|
1746
|
+
* @example
|
|
1747
|
+
* ```ts
|
|
1748
|
+
* const mappedin = await getVenueMaker({
|
|
1749
|
+
* key: '<Your Maker Key>',
|
|
1750
|
+
* secret: '<Your Maker Secret>',
|
|
1751
|
+
* mapId: '<Your Maker Map ID>',
|
|
1752
|
+
* });
|
|
1753
|
+
* ```
|
|
1754
|
+
* @returns {@link Mappedin} object with data from the Maker map.
|
|
1755
|
+
*/
|
|
1756
|
+
export function getVenueMaker(userOptions: TGetVenueMakerOptions): Promise<Mappedin>;
|
|
1725
1757
|
/**
|
|
1726
1758
|
* Get Venue Data for a Mappedin Venue
|
|
1727
1759
|
*/
|
|
@@ -1740,6 +1772,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1740
1772
|
*/
|
|
1741
1773
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
1742
1774
|
};
|
|
1775
|
+
/** @internal */
|
|
1743
1776
|
export type TGetVenueMVFOptions = TGetVenueBundleOptions & {
|
|
1744
1777
|
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1745
1778
|
/**
|
|
@@ -1747,6 +1780,42 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1747
1780
|
*/
|
|
1748
1781
|
override?: Partial<Pick<ParsedMVF, 'styles.json'>>;
|
|
1749
1782
|
};
|
|
1783
|
+
/**
|
|
1784
|
+
* @experimental
|
|
1785
|
+
* Options for {@link getVenueMaker}.
|
|
1786
|
+
*/
|
|
1787
|
+
export type TGetVenueMakerOptions = {
|
|
1788
|
+
/**
|
|
1789
|
+
* Maker auth key.
|
|
1790
|
+
*/
|
|
1791
|
+
key: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Maker auth secret.
|
|
1794
|
+
*/
|
|
1795
|
+
secret: string;
|
|
1796
|
+
/**
|
|
1797
|
+
* Maker map ID.
|
|
1798
|
+
*/
|
|
1799
|
+
mapId: string;
|
|
1800
|
+
/**
|
|
1801
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
1802
|
+
*/
|
|
1803
|
+
bundleBaseUri?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
1806
|
+
*/
|
|
1807
|
+
authBaseUri?: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* Whether or not to emit analytics events.
|
|
1810
|
+
* @default true
|
|
1811
|
+
*/
|
|
1812
|
+
emitAnalyticsEvents?: boolean;
|
|
1813
|
+
/**
|
|
1814
|
+
* 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.
|
|
1815
|
+
* @param mvf Parsed MVF data.
|
|
1816
|
+
*/
|
|
1817
|
+
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1818
|
+
};
|
|
1750
1819
|
/**
|
|
1751
1820
|
* @deprecated
|
|
1752
1821
|
* Fetching an offline Venue bundle
|
|
@@ -1783,6 +1852,15 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1783
1852
|
* @internal
|
|
1784
1853
|
*/
|
|
1785
1854
|
export function downloadVenueBundleMVF(options: TGetVenueBundleOptions): Promise<Uint8Array>;
|
|
1855
|
+
export function getMakerAccessToken(userOptions: TGetVenueMakerOptions): Promise<{
|
|
1856
|
+
access_token: string;
|
|
1857
|
+
expires_in: number;
|
|
1858
|
+
}>;
|
|
1859
|
+
export function getMakerBundleURL(userOptions: TGetVenueMakerOptions, token: string): Promise<{
|
|
1860
|
+
url: string;
|
|
1861
|
+
updated_at: string;
|
|
1862
|
+
}>;
|
|
1863
|
+
export function downloadMakerMVF(userOptions: TGetVenueMakerOptions): Promise<Uint8Array>;
|
|
1786
1864
|
/**
|
|
1787
1865
|
* Returns a {@link Mappedin} object hydrated with JSON data.
|
|
1788
1866
|
* @param {string|Object} mappedinSerializableData A JSON string or object representing a venue.
|
|
@@ -2164,11 +2242,33 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Fla
|
|
|
2164
2242
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/FloatingLabels' {
|
|
2165
2243
|
import { MappedinCoordinate, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
2166
2244
|
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';
|
|
2245
|
+
import FloatingLabelsController, { type FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
2246
|
+
/**
|
|
2247
|
+
* Helper for handling a generic when the type could be either an array or promise.
|
|
2248
|
+
*
|
|
2249
|
+
* 1. If the type is an array, return the array.
|
|
2250
|
+
*
|
|
2251
|
+
* ```ts
|
|
2252
|
+
* type A = ArrayablePromise<string[]> // string[]\
|
|
2253
|
+
* ```
|
|
2254
|
+
*
|
|
2255
|
+
* 2. If the type is a void promise, return the void promise.
|
|
2256
|
+
*
|
|
2257
|
+
* ```ts
|
|
2258
|
+
* type B = ArrayablePromise<Promise<void>> // Promise<void>
|
|
2259
|
+
* ```
|
|
2260
|
+
*
|
|
2261
|
+
* 3. If the type is a non void promise, return the promise's resolved type wrapped in an array.
|
|
2262
|
+
*
|
|
2263
|
+
* ```ts
|
|
2264
|
+
* type C = ArrayablePromise<Promise<string>> // Promise<string[]>
|
|
2265
|
+
* ```
|
|
2266
|
+
*/
|
|
2267
|
+
type PromisableArray<T> = T extends Promise<infer G> ? Promise<G extends void ? void : G[]> : T[];
|
|
2168
2268
|
/**
|
|
2169
2269
|
* API to add and remove floating labels on the map.
|
|
2170
2270
|
*/
|
|
2171
|
-
export interface IFloatingLabels<T =
|
|
2271
|
+
export interface IFloatingLabels<T = FloatingLabel> {
|
|
2172
2272
|
/**
|
|
2173
2273
|
* Add a floating label to one entrance node of each polygons associated with all
|
|
2174
2274
|
* locations on the venue. The text is automatically determined based on location data.
|
|
@@ -2186,7 +2286,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2186
2286
|
* ```
|
|
2187
2287
|
* @param options
|
|
2188
2288
|
*/
|
|
2189
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): T
|
|
2289
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): PromisableArray<T>;
|
|
2190
2290
|
/**
|
|
2191
2291
|
* Add a floating label to a single polygon or node. When labelling a polygon,
|
|
2192
2292
|
* all entrance nodes of that polygon receive a label.
|
|
@@ -2201,7 +2301,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2201
2301
|
* @param text The text to display on the label.
|
|
2202
2302
|
* @param options
|
|
2203
2303
|
*/
|
|
2204
|
-
add(polygonOrNode: MappedinPolygon
|
|
2304
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T>;
|
|
2305
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): T;
|
|
2306
|
+
add(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T> | T;
|
|
2205
2307
|
/**
|
|
2206
2308
|
* Update the appearance attributes of an already-existing label. If the
|
|
2207
2309
|
* provided polygon or node does not have a label already, this is a no-op.
|
|
@@ -2217,7 +2319,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2217
2319
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2218
2320
|
* @param appearance The new {@link TFlatLabelAppearance} settings to apply to the polygon's label.
|
|
2219
2321
|
*/
|
|
2220
|
-
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance):
|
|
2322
|
+
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2221
2323
|
/**
|
|
2222
2324
|
* Remove a floating label from a single polygon or node.
|
|
2223
2325
|
*
|
|
@@ -2232,7 +2334,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2232
2334
|
*
|
|
2233
2335
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to remove.
|
|
2234
2336
|
*/
|
|
2235
|
-
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2337
|
+
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2236
2338
|
/**
|
|
2237
2339
|
* Remove all floating labels from the venue.
|
|
2238
2340
|
*
|
|
@@ -2246,7 +2348,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2246
2348
|
* mapView.FloatingLabels.removeAll();
|
|
2247
2349
|
* ```
|
|
2248
2350
|
*/
|
|
2249
|
-
removeAll():
|
|
2351
|
+
removeAll(): void;
|
|
2250
2352
|
/**
|
|
2251
2353
|
* Updates the priority of an existing floating label (or labels, in the case
|
|
2252
2354
|
* of a polygon). This controls whether it is preferred over other labels
|
|
@@ -2260,7 +2362,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2260
2362
|
*
|
|
2261
2363
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2262
2364
|
*/
|
|
2263
|
-
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number):
|
|
2365
|
+
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2264
2366
|
/**
|
|
2265
2367
|
* Resets the priority of an existing floating label (or labels, in the case
|
|
2266
2368
|
* of a polygon)
|
|
@@ -2277,7 +2379,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2277
2379
|
*
|
|
2278
2380
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2279
2381
|
*/
|
|
2280
|
-
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2382
|
+
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2281
2383
|
}
|
|
2282
2384
|
export class FloatingLabels implements IFloatingLabels {
|
|
2283
2385
|
#private;
|
|
@@ -2285,14 +2387,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2285
2387
|
* @hidden
|
|
2286
2388
|
*/
|
|
2287
2389
|
constructor(controller: FloatingLabelsController);
|
|
2288
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined):
|
|
2289
|
-
add(polygonOrNode: MappedinPolygon
|
|
2390
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined): FloatingLabel[];
|
|
2391
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel[];
|
|
2392
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel;
|
|
2290
2393
|
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2291
2394
|
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2292
2395
|
removeAll(): void;
|
|
2293
2396
|
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2294
2397
|
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2295
2398
|
}
|
|
2399
|
+
export {};
|
|
2296
2400
|
}
|
|
2297
2401
|
|
|
2298
2402
|
declare module '@mappedin/react-native-sdk/core/packages/navigator' {
|
|
@@ -2622,7 +2726,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2622
2726
|
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
2727
|
import { TFocusOnTargetsSerializable, TMiMapViewOptions, TSerializedCoordinate, TSerializedMap, TSerializableJourneyOptions, TSerializedLocation, TSerializedNode, TSerializedPolygon, TFloatingLabelClickEventPayloadSerialized, TColliderClickEventPayloadSerialized } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
2624
2728
|
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';
|
|
2729
|
+
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TGetVenueMakerOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
2626
2730
|
export type BRIDGE_EVENT_PAYLOADS = {
|
|
2627
2731
|
[BRIDGE_EVENT.REJECT]: any;
|
|
2628
2732
|
[BRIDGE_EVENT.RESOLVE]: any;
|
|
@@ -2641,11 +2745,11 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2641
2745
|
options: TMiMapViewOptions;
|
|
2642
2746
|
};
|
|
2643
2747
|
[MINIMAP_EVENT.LOAD_MINIMAP]: {
|
|
2644
|
-
options: TGetVenueOptions;
|
|
2748
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2645
2749
|
};
|
|
2646
2750
|
[MINIMAP_EVENT.CACHE_IMAGE]: {
|
|
2647
2751
|
url?: string;
|
|
2648
|
-
options: TGetVenueOptions;
|
|
2752
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2649
2753
|
locationId: MappedinLocation['id'];
|
|
2650
2754
|
polygonHighlightColor?: string;
|
|
2651
2755
|
focusOptions?: TFocusOnCameraOptions & TCameraAnimationOptions;
|
|
@@ -2711,7 +2815,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2711
2815
|
};
|
|
2712
2816
|
};
|
|
2713
2817
|
[EVENT.LOAD_VENUE]: {
|
|
2714
|
-
options: TGetVenueOptions & {
|
|
2818
|
+
options: (TGetVenueOptions | TGetVenueMakerOptions) & {
|
|
2715
2819
|
useBundle?: boolean;
|
|
2716
2820
|
};
|
|
2717
2821
|
showVenueOptions: TShowVenueOptions & {
|
|
@@ -2893,7 +2997,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2893
2997
|
pathOptions: TPathOptions;
|
|
2894
2998
|
};
|
|
2895
2999
|
[EVENT.ADD_PATH]: {
|
|
2896
|
-
|
|
3000
|
+
nodesOrCoordinates: TSerializedNode[] | TSerializedCoordinate[];
|
|
2897
3001
|
options: TPathOptions;
|
|
2898
3002
|
};
|
|
2899
3003
|
[EVENT.REMOVE_PATH]: {
|
|
@@ -3051,7 +3155,38 @@ declare module '@mappedin/react-native-sdk/wrappers/common/types' {
|
|
|
3051
3155
|
language?: string;
|
|
3052
3156
|
emitAnalyticsEvents?: boolean;
|
|
3053
3157
|
};
|
|
3054
|
-
|
|
3158
|
+
/**
|
|
3159
|
+
* @experimental
|
|
3160
|
+
* Options for fetching a venue from Maker.
|
|
3161
|
+
*/
|
|
3162
|
+
export type TMiMapViewVenueMakerOptions = {
|
|
3163
|
+
/**
|
|
3164
|
+
* Maker auth key.
|
|
3165
|
+
*/
|
|
3166
|
+
key: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* Maker auth secret.
|
|
3169
|
+
*/
|
|
3170
|
+
secret: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* Maker map ID.
|
|
3173
|
+
*/
|
|
3174
|
+
mapId: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
3177
|
+
*/
|
|
3178
|
+
bundleBaseUri?: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
3181
|
+
*/
|
|
3182
|
+
authBaseUri?: string;
|
|
3183
|
+
/**
|
|
3184
|
+
* Whether or not to emit analytics events.
|
|
3185
|
+
* @default true
|
|
3186
|
+
*/
|
|
3187
|
+
emitAnalyticsEvents?: boolean;
|
|
3188
|
+
};
|
|
3189
|
+
export type TMiMapViewOptions = TShowVenueOptions & (TMiMapViewVenueOptions | TMiMapViewVenueMakerOptions);
|
|
3055
3190
|
/**
|
|
3056
3191
|
* @deprecated Only used for the deprecated {@link LABEL_ALL_LOCATIONS} event
|
|
3057
3192
|
*/
|
|
@@ -3404,14 +3539,14 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3404
3539
|
LOAD_MINIMAP: {
|
|
3405
3540
|
msgID?: string;
|
|
3406
3541
|
data: {
|
|
3407
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3542
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3408
3543
|
};
|
|
3409
3544
|
};
|
|
3410
3545
|
CACHE_IMAGE: {
|
|
3411
3546
|
msgID?: string;
|
|
3412
3547
|
data: {
|
|
3413
3548
|
url?: string;
|
|
3414
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3549
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3415
3550
|
locationId: string;
|
|
3416
3551
|
polygonHighlightColor?: string;
|
|
3417
3552
|
focusOptions?: import("../react-native-sdk/src").TFocusOnCameraOptions & import("../../core/packages/renderer").TAnimationOptions;
|
|
@@ -3534,7 +3669,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3534
3669
|
LOAD_VENUE: {
|
|
3535
3670
|
msgID?: string;
|
|
3536
3671
|
data: {
|
|
3537
|
-
options: import("../react-native-sdk/src").TGetVenueOptions & {
|
|
3672
|
+
options: (import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions) & {
|
|
3538
3673
|
useBundle?: boolean;
|
|
3539
3674
|
};
|
|
3540
3675
|
showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
|
|
@@ -3831,7 +3966,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3831
3966
|
ADD_PATH: {
|
|
3832
3967
|
msgID?: string;
|
|
3833
3968
|
data: {
|
|
3834
|
-
|
|
3969
|
+
nodesOrCoordinates: import("./types").TSerializedCoordinate[] | import("./types").TSerializedNode[];
|
|
3835
3970
|
options: import("../react-native-sdk/src").TPathOptions;
|
|
3836
3971
|
};
|
|
3837
3972
|
};
|
|
@@ -4158,7 +4293,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4158
4293
|
};
|
|
4159
4294
|
};
|
|
4160
4295
|
export type TFloatingLabelOptionsInternal = {
|
|
4161
|
-
id
|
|
4296
|
+
id?: string;
|
|
4162
4297
|
position: TColliderPosition;
|
|
4163
4298
|
polygon?: MappedinPolygon;
|
|
4164
4299
|
mapId: string;
|
|
@@ -4174,6 +4309,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4174
4309
|
appearance?: TFloatingLabelAppearance;
|
|
4175
4310
|
createDespiteImage?: boolean;
|
|
4176
4311
|
layer?: string;
|
|
4312
|
+
interactive?: boolean;
|
|
4177
4313
|
};
|
|
4178
4314
|
enum PINVISIBILITY {
|
|
4179
4315
|
OPAQUE = 1,
|
|
@@ -4184,7 +4320,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4184
4320
|
CENTER = "center",
|
|
4185
4321
|
RIGHT = "right"
|
|
4186
4322
|
}
|
|
4187
|
-
class
|
|
4323
|
+
class InternalFloatingLabel extends BaseCollider implements ISmarterLabel {
|
|
4188
4324
|
#private;
|
|
4189
4325
|
lines: number;
|
|
4190
4326
|
contextConfigured: boolean;
|
|
@@ -4201,6 +4337,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4201
4337
|
appearance: TAppearanceFilledIn;
|
|
4202
4338
|
mapView: ICore;
|
|
4203
4339
|
position: TColliderPosition;
|
|
4340
|
+
options: TFloatingLabelOptionsInternal;
|
|
4204
4341
|
constructor(options: TFloatingLabelOptionsInternal, mapView: ICore);
|
|
4205
4342
|
enable(updateEngine?: boolean): void;
|
|
4206
4343
|
get totalTextBoxHeight(): number;
|
|
@@ -4221,7 +4358,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4221
4358
|
get pinCanvasSize(): number;
|
|
4222
4359
|
draw(context: CanvasRenderingContext2D): void;
|
|
4223
4360
|
}
|
|
4224
|
-
export default
|
|
4361
|
+
export default InternalFloatingLabel;
|
|
4225
4362
|
}
|
|
4226
4363
|
|
|
4227
4364
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core' {
|
|
@@ -5569,6 +5706,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Offl
|
|
|
5569
5706
|
import type { SearchOptions } from 'minisearch';
|
|
5570
5707
|
import { MappedinLocation, MappedinCategory, Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/internal';
|
|
5571
5708
|
export const removeAccents: (it: string) => string;
|
|
5709
|
+
export function tokenizeAndCaptureDelimiters(text: string): string[];
|
|
5572
5710
|
export type { SearchOptions };
|
|
5573
5711
|
/**
|
|
5574
5712
|
* A {@link OfflineSearch} is an offline search module
|
|
@@ -6029,34 +6167,70 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
|
|
|
6029
6167
|
}
|
|
6030
6168
|
|
|
6031
6169
|
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
|
-
|
|
6170
|
+
import { InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6171
|
+
import type { ICore, TFloatingLabelAllLocationsOptions, TAddFloatingLabelOptions, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6172
|
+
import { MappedinPolygon, MappedinCoordinate, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6173
|
+
/**
|
|
6174
|
+
* A floating label that is attached to a node or coordinate on the map.
|
|
6175
|
+
*/
|
|
6176
|
+
export class FloatingLabel {
|
|
6177
|
+
#private;
|
|
6178
|
+
/**
|
|
6179
|
+
* @hidden
|
|
6180
|
+
* @internal
|
|
6181
|
+
*/
|
|
6182
|
+
constructor(internalFloatingLabel: InternalFloatingLabel);
|
|
6183
|
+
/**
|
|
6184
|
+
* The ID of this label.
|
|
6185
|
+
*/
|
|
6186
|
+
get id(): string;
|
|
6187
|
+
/**
|
|
6188
|
+
* The text of this label.
|
|
6189
|
+
*/
|
|
6190
|
+
get text(): string;
|
|
6191
|
+
/**
|
|
6192
|
+
* The {@link TFloatingLabelAppearance} options of this label with defaults.
|
|
6193
|
+
*/
|
|
6194
|
+
get appearance(): Required<TFloatingLabelAppearance>;
|
|
6195
|
+
/**
|
|
6196
|
+
* The {@link MappedinNode} or {@link MappedinCoordinate} that this label is attached to.
|
|
6197
|
+
*/
|
|
6198
|
+
get nodeOrCoordinate(): MappedinNode | MappedinCoordinate;
|
|
6199
|
+
/**
|
|
6200
|
+
* The collision rank of this label.
|
|
6201
|
+
*/
|
|
6202
|
+
get rank(): number;
|
|
6203
|
+
/**
|
|
6204
|
+
* @hidden
|
|
6205
|
+
* @internal
|
|
6206
|
+
*/
|
|
6207
|
+
__updateInstance(internalFloatingLabel: InternalFloatingLabel): void;
|
|
6208
|
+
/**
|
|
6209
|
+
* Object representation of this label.
|
|
6210
|
+
*/
|
|
6211
|
+
toJSON(): {
|
|
6212
|
+
id: string;
|
|
6213
|
+
text: string;
|
|
6214
|
+
appearance: Required<TFloatingLabelAppearance>;
|
|
6215
|
+
nodeOrCoordinate: any;
|
|
6216
|
+
rank: number;
|
|
6217
|
+
};
|
|
6218
|
+
}
|
|
6046
6219
|
class FloatingLabelsController {
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6220
|
+
#private;
|
|
6221
|
+
core: ICore;
|
|
6222
|
+
internalFloatingLabels: Record<string, InternalFloatingLabel>;
|
|
6223
|
+
internalFloatingLabelsByNodeOrCoordinate: WeakMap<MappedinNode | MappedinCoordinate, InternalFloatingLabel>;
|
|
6224
|
+
floatingLabels: Record<string, FloatingLabel>;
|
|
6225
|
+
constructor(core: ICore);
|
|
6226
|
+
addLabel(target: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): FloatingLabel[];
|
|
6227
|
+
addLabel(target: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): FloatingLabel;
|
|
6228
|
+
removeLabel(target: MappedinPolygon | MappedinNode | MappedinCoordinate, bulk?: boolean): void;
|
|
6229
|
+
setPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate, rank: number): void;
|
|
6230
|
+
resetPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
6231
|
+
removeAllLabels(): void;
|
|
6232
|
+
setAppearance(target: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
6233
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): FloatingLabel[];
|
|
6060
6234
|
}
|
|
6061
6235
|
export default FloatingLabelsController;
|
|
6062
6236
|
}
|
|
@@ -6376,7 +6550,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6376
6550
|
export { Atlas, FlatLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas.js';
|
|
6377
6551
|
export { default as HoverLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HoverLabel';
|
|
6378
6552
|
export { default as BaseCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartCollider';
|
|
6379
|
-
export { default as
|
|
6553
|
+
export { default as InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
6380
6554
|
export { default as HTMLCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HTMLCollider';
|
|
6381
6555
|
export { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6382
6556
|
export { default as SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
@@ -6447,12 +6621,13 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6447
6621
|
|
|
6448
6622
|
declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
6449
6623
|
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';
|
|
6624
|
+
import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6451
6625
|
import { PositionUpdater } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
6452
6626
|
import type { TMapViewOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6453
6627
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/core/common/Mappedin.Logger';
|
|
6454
6628
|
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6455
6629
|
export type { Path } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/PathsController';
|
|
6630
|
+
export type { FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
6456
6631
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6457
6632
|
export type { IDirectionsResult, TSimplifyDirectionsOptions, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES, } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6458
6633
|
/**
|
|
@@ -6493,7 +6668,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6493
6668
|
*/
|
|
6494
6669
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
6495
6670
|
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, };
|
|
6671
|
+
export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
6497
6672
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
6498
6673
|
import { TTileManagerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
6499
6674
|
import { TShowWatermarkOptions } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/WatermarkController';
|
|
@@ -6507,7 +6682,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6507
6682
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6508
6683
|
export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
|
|
6509
6684
|
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,
|
|
6685
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMVFOptions, TGetVenueMakerOptions, 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
6686
|
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
6687
|
/**
|
|
6513
6688
|
* Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
|
|
@@ -6633,7 +6808,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-s
|
|
|
6633
6808
|
oldValue: any;
|
|
6634
6809
|
newValue: any;
|
|
6635
6810
|
};
|
|
6636
|
-
type TListenerFn = (data: TChangeEventData) => void;
|
|
6811
|
+
type TListenerFn = (data: TChangeEventData | any) => void;
|
|
6637
6812
|
export interface IPubSub {
|
|
6638
6813
|
publish: (eventName: any, data: TChangeEventData) => void;
|
|
6639
6814
|
on: (eventName: any, listenerFn: TListenerFn) => void;
|
|
@@ -8526,7 +8701,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/scene-
|
|
|
8526
8701
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.MapObject' {
|
|
8527
8702
|
import { Group, Box3, Mesh, MeshLambertMaterial, Object3D, Vector3 } from 'three';
|
|
8528
8703
|
import { FrameTaskGroup } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.TaskScheduler';
|
|
8529
|
-
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore,
|
|
8704
|
+
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, InternalFloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
8530
8705
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
8531
8706
|
/**
|
|
8532
8707
|
* Some preset priorities for tasks.
|
|
@@ -8609,7 +8784,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
8609
8784
|
north: number;
|
|
8610
8785
|
mapScale: number | null;
|
|
8611
8786
|
object: Object3D;
|
|
8612
|
-
labels: Set<
|
|
8787
|
+
labels: Set<InternalFloatingLabel>;
|
|
8613
8788
|
tooltips: Set<SmartTooltip>;
|
|
8614
8789
|
markers: Set<unknown>;
|
|
8615
8790
|
box: Box3;
|
|
@@ -9566,8 +9741,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
9566
9741
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
9567
9742
|
import type { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9568
9743
|
import { Rectangle, QuadTree } from '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-tree';
|
|
9569
|
-
import {
|
|
9570
|
-
export type Collider = InternalMarker | SmartTooltip |
|
|
9744
|
+
import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9745
|
+
export type Collider = InternalMarker | SmartTooltip | InternalFloatingLabel;
|
|
9571
9746
|
export type ColliderQuadTree = QuadTree<{
|
|
9572
9747
|
collider: Collider;
|
|
9573
9748
|
}>;
|
|
@@ -10053,7 +10228,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
|
|
|
10053
10228
|
/**
|
|
10054
10229
|
* API for controlling floating labels.
|
|
10055
10230
|
*/
|
|
10056
|
-
FloatingLabels: IFloatingLabels
|
|
10231
|
+
FloatingLabels: IFloatingLabels;
|
|
10057
10232
|
/**
|
|
10058
10233
|
* API for adding 2D markers.
|
|
10059
10234
|
*/
|