@mappedin/react-native-sdk 5.7.0 → 5.8.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 +417 -132
- package/dist/index.js +253 -253
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,21 +15,21 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
15
15
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
16
16
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
17
17
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
18
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
18
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
19
19
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
20
|
-
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';
|
|
20
|
+
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';
|
|
21
21
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
22
22
|
import type { TEnableBlueDotOptions as TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptions as TLabelAllLocationCommonOptionsBase } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
23
|
-
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TAddFlatLabelOptions, TAddFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TCameraTargets, TCameraAnimationOptions, TCameraTransform, TBlueDotPositionUpdate, TBlueDotStateChange, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
23
|
+
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TAddFlatLabelOptions, TAddFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TCameraTargets, TCameraAnimationOptions, TCameraTransform, TBlueDotPositionUpdate, TBlueDotStateChange, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
24
24
|
export type { TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptionsBase };
|
|
25
25
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
26
26
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
27
27
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
28
28
|
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
29
|
-
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
29
|
+
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
30
30
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
31
31
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
32
|
-
export { BEARING_TYPE, ACTION_TYPE, MappedinLocation, Mappedin, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinDestinationSet, E_CAMERA_DIRECTION, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
32
|
+
export { BEARING_TYPE, ACTION_TYPE, MappedinLocation, Mappedin, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinDestinationSet, E_CAMERA_DIRECTION, CAMERA_EASING_MODE, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView' {
|
|
@@ -174,11 +174,10 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniM
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store' {
|
|
177
|
-
import { IFlatLabels, IFloatingLabels, TGetPolygonsAtCoordinateOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
177
|
+
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';
|
|
178
178
|
import { RNMappedinController } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MappedinController';
|
|
179
179
|
import { TReactNativeFlatLabelAllLocations, TReactNativeFlatLabelAllLocationsLegacy, TSerializableJourneyOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
180
180
|
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
181
|
-
import { 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';
|
|
182
181
|
import { TCameraManager } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
183
182
|
import { TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
184
183
|
export class MapViewStore extends RNMappedinController {
|
|
@@ -283,6 +282,9 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
283
282
|
*/
|
|
284
283
|
enableImageFlippingForPolygon(polygon: MappedinPolygon): Promise<unknown>;
|
|
285
284
|
/**
|
|
285
|
+
* @deprecated
|
|
286
|
+
* Use `Paths.removeAll` instead.
|
|
287
|
+
*
|
|
286
288
|
* Remove all paths
|
|
287
289
|
*/
|
|
288
290
|
removeAllPaths(): Promise<unknown>;
|
|
@@ -329,6 +331,9 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
329
331
|
* Set the current step of a multi-part journey
|
|
330
332
|
*/
|
|
331
333
|
setStep: (step: number) => Promise<undefined>;
|
|
334
|
+
setStepByPath: (path: {
|
|
335
|
+
id: string;
|
|
336
|
+
}) => Promise<unknown>;
|
|
332
337
|
};
|
|
333
338
|
/**
|
|
334
339
|
* BlueDot control interface
|
|
@@ -357,6 +362,18 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
357
362
|
accessible?: boolean;
|
|
358
363
|
}): Promise<MappedinDirections | MappedinDirections[]>;
|
|
359
364
|
/**
|
|
365
|
+
* Add or remove paths from the map
|
|
366
|
+
*/
|
|
367
|
+
Paths: {
|
|
368
|
+
add: (nodes: MappedinNode[], options?: TPathOptions | undefined) => Promise<unknown>;
|
|
369
|
+
remove: (path: {
|
|
370
|
+
id: string;
|
|
371
|
+
}) => Promise<void>;
|
|
372
|
+
removeAll: () => Promise<void>;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* @deprecated
|
|
376
|
+
* Use `Paths.add` instead.
|
|
360
377
|
*
|
|
361
378
|
* Draw a path based on a list of Nodes
|
|
362
379
|
*/
|
|
@@ -402,17 +419,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
402
419
|
/**
|
|
403
420
|
* @deprecated
|
|
404
421
|
*/
|
|
405
|
-
getVenueBundle, MappedinDestinationSet, Mappedin, randomId };
|
|
406
|
-
export { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, E_BLUEDOT_STATE_REASON, E_BLUEDOT_STATE, E_BLUEDOT_MARKER_STATE, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
422
|
+
getVenueBundle, MappedinDestinationSet, Mappedin, randomId, };
|
|
407
423
|
export { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
408
424
|
export type { IFlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLabels';
|
|
409
425
|
export type { IFloatingLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FloatingLabels';
|
|
410
|
-
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';
|
|
426
|
+
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';
|
|
411
427
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
412
428
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
413
|
-
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
414
|
-
export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings,
|
|
415
|
-
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
429
|
+
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
430
|
+
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';
|
|
431
|
+
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
416
432
|
}
|
|
417
433
|
|
|
418
434
|
declare module '@mappedin/react-native-sdk/wrappers/common' {
|
|
@@ -514,21 +530,21 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
514
530
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
515
531
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
516
532
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
517
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
533
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
518
534
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
519
|
-
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';
|
|
535
|
+
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';
|
|
520
536
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
521
537
|
import type { TEnableBlueDotOptions as TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptions as TLabelAllLocationCommonOptionsBase } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
522
|
-
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TAddFlatLabelOptions, TAddFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TCameraTargets, TCameraAnimationOptions, TCameraTransform, TBlueDotPositionUpdate, TBlueDotStateChange, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
538
|
+
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TAddFlatLabelOptions, TAddFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TCameraTargets, TCameraAnimationOptions, TCameraTransform, TBlueDotPositionUpdate, TBlueDotStateChange, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
523
539
|
export type { TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptionsBase };
|
|
524
540
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
525
541
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
526
542
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
527
543
|
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
528
|
-
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
544
|
+
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
529
545
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
530
546
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
531
|
-
export { BEARING_TYPE, ACTION_TYPE, MappedinLocation, Mappedin, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinDestinationSet, E_CAMERA_DIRECTION, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
547
|
+
export { BEARING_TYPE, ACTION_TYPE, MappedinLocation, Mappedin, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinDestinationSet, E_CAMERA_DIRECTION, CAMERA_EASING_MODE, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
532
548
|
}
|
|
533
549
|
|
|
534
550
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MappedinController' {
|
|
@@ -578,11 +594,11 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/Mappedi
|
|
|
578
594
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types' {
|
|
579
595
|
import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
580
596
|
import { TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
581
|
-
import { TEnableBlueDotOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
582
|
-
import { TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
597
|
+
import { TEnableBlueDotOptions, TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
583
598
|
import { TOOLTIP_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
584
599
|
import type { Euler, Object3D, Vector3 } from 'three';
|
|
585
600
|
import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
601
|
+
import { Path } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
586
602
|
export type { TEnableBlueDotOptions, TFloatingLabelAppearance };
|
|
587
603
|
/**
|
|
588
604
|
An extension of the GeolocationPosition type.
|
|
@@ -666,6 +682,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
666
682
|
* @defaultValue true
|
|
667
683
|
*/
|
|
668
684
|
animateDrawing?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* Whether the path should be clickable.
|
|
687
|
+
* @defaultValue false
|
|
688
|
+
*/
|
|
689
|
+
interactive?: boolean;
|
|
669
690
|
};
|
|
670
691
|
export type TConnectionProps = {
|
|
671
692
|
/**
|
|
@@ -1150,6 +1171,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1150
1171
|
text: string;
|
|
1151
1172
|
node: MappedinNode;
|
|
1152
1173
|
}[];
|
|
1174
|
+
/**
|
|
1175
|
+
* A list of paths that a user's click pass through. These are in order of first
|
|
1176
|
+
* to last intersected. Willbe empty if no paths were clicked.
|
|
1177
|
+
*/
|
|
1178
|
+
paths?: Path[];
|
|
1153
1179
|
};
|
|
1154
1180
|
export type E_SDK_EVENT_PAYLOAD = {
|
|
1155
1181
|
[E_SDK_EVENT.CLICK]: TMapClickEvent;
|
|
@@ -1244,9 +1270,9 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1244
1270
|
export type { TMappedinCoordinateOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoordinate';
|
|
1245
1271
|
export type { TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
1246
1272
|
export { OfflineSearch } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
|
|
1247
|
-
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
|
|
1273
|
+
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
|
|
1248
1274
|
/** API data types */
|
|
1249
|
-
export type { TLocationType, TNode, TImage, TLogo, TGalleryImage, TPhone, TSocial, TColor, TVortex, TPicture, TOpeningHours, TSiblingGroup, TState, TCategory, TEvent, TGeoReference, TMap, TMapGroup, TBuilding, TLocation, TPolygon, TPolygonRanking, TVenue, TMappedinAPI } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.types';
|
|
1275
|
+
export type { TLocationType, TNode, TImage, TLogo, TGalleryImage, TPhone, TSocial, TColor, TVortex, TPicture, TOpeningHours, TSiblingGroup, TState, TCategory, TEvent, TGeoReference, TMap, TMapGroup, TBuilding, TLocation, TPolygon, TPolygonRanking, TVenue, TMappedinAPI, } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.types';
|
|
1250
1276
|
export type { TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types';
|
|
1251
1277
|
import { MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types';
|
|
1252
1278
|
export type TShowVenueOptions = {
|
|
@@ -1448,9 +1474,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums'
|
|
|
1448
1474
|
* Follows user's current location by keeping the camera centered on the Blue Dot.
|
|
1449
1475
|
*/
|
|
1450
1476
|
FOLLOW = "follow"
|
|
1451
|
-
/**
|
|
1452
|
-
* FOLLOW WITH ROTATION provides turn by turn navigation while following user's location
|
|
1453
|
-
*/
|
|
1454
1477
|
}
|
|
1455
1478
|
export enum MARKER_ANCHOR {
|
|
1456
1479
|
CENTER = 0,
|
|
@@ -1815,13 +1838,39 @@ declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
|
1815
1838
|
SET_DEBUG_FLAGS = "SET_DEBUG_FLAGS",
|
|
1816
1839
|
LOAD_VENUE = "LOAD_VENUE",
|
|
1817
1840
|
SHOW_VENUE = "SHOW_VENUE",
|
|
1841
|
+
SET_COOKIE = "SET_COOKIE",
|
|
1842
|
+
CLEAR_BUNDLE_CACHE = "CLEAR_BUNDLE_CACHE",
|
|
1843
|
+
UPDATE_GEOLOCATION = "UPDATE_GEOLOCATION",
|
|
1818
1844
|
/**
|
|
1819
|
-
*
|
|
1820
|
-
* Use EVENT.CLICK instead
|
|
1845
|
+
* MapView
|
|
1821
1846
|
*/
|
|
1822
|
-
POLYGON_CLICKED = "POLYGON_CLICKED",
|
|
1823
1847
|
SET_MAP = "SET_MAP",
|
|
1824
1848
|
MAP_CHANGED = "MAP_CHANGED",
|
|
1849
|
+
SET_POLYGON_COLOR = "SET_POLYGON_COLOR",
|
|
1850
|
+
SET_BACKGROUND_COLOR = "SET_BACKGROUND_COLOR",
|
|
1851
|
+
CLEAR_POLYGON_COLOR = "CLEAR_POLYGON_COLOR",
|
|
1852
|
+
CLEAR_ALL_POLYGON_COLORS = "CLEAR_ALL_POLYGON_COLORS",
|
|
1853
|
+
ADD_INTERACTIVE_POLYGON = "ADD_INTERACTIVE_POLYGON",
|
|
1854
|
+
REMOVE_INTERACTIVE_POLYGONS = "REMOVE_INTERACTIVE_POLYGONS",
|
|
1855
|
+
ENABLE_IMAGE_FLIPPING_FOR_POLYGON = "ENABLE_IMAGE_FLIPPING_FOR_POLYGON",
|
|
1856
|
+
GET_DIRECTIONS = "GET_DIRECTIONS",
|
|
1857
|
+
DESTROY = "DESTROY",
|
|
1858
|
+
DATA_LOADED = "DATA_LOADED",
|
|
1859
|
+
FIRST_MAP_LOADED = "FIRST_MAP_LOADED",
|
|
1860
|
+
CREATE_MARKER = "CREATE_MARKER",
|
|
1861
|
+
REMOVE_MARKER = "REMOVE_MARKER",
|
|
1862
|
+
SET_STATE = "SET_STATE",
|
|
1863
|
+
STATE_CHANGED = "STATE_CHANGED",
|
|
1864
|
+
GET_NEAREST_NODE_BY_SCREEN_COORDINATES = "GET_NEAREST_NODE_BY_SCREEN_COORDINATES",
|
|
1865
|
+
CLICK = "CLICK",
|
|
1866
|
+
GET_POLYGONS_AT_COORDINATE = "GET_POLYGONS_AT_COORDINATE",
|
|
1867
|
+
GET_POLYGONS_AT_SCREEN_COORDINATE = "GET_POLYGONS_AT_SCREEN_COORDINATE",
|
|
1868
|
+
CREATE_TOOLTIP = "CREATE_TOOLTIP",
|
|
1869
|
+
CREATE_CUSTOM_TOOLTIP = "CREATE_CUSTOM_TOOLTIP",
|
|
1870
|
+
REMOVE_TOOLTIP = "REMOVE_TOOLTIP",
|
|
1871
|
+
/**
|
|
1872
|
+
* Camera
|
|
1873
|
+
*/
|
|
1825
1874
|
ROTATION_CHANGED = "ROTATION_CHANGED",
|
|
1826
1875
|
TILT_CHANGED = "TILT_CHANGED",
|
|
1827
1876
|
ZOOM_CHANGED = "ZOOM_CHANGED",
|
|
@@ -1833,68 +1882,73 @@ declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
|
1833
1882
|
SET_MIN_ZOOM = "SET_MIN_ZOOM",
|
|
1834
1883
|
SET_MAX_ZOOM = "SET_MAX_ZOOM",
|
|
1835
1884
|
SET_MAX_TILT = "SET_MAX_TILT",
|
|
1836
|
-
UPDATE_GEOLOCATION = "UPDATE_GEOLOCATION",
|
|
1837
1885
|
FOCUS_ON = "FOCUS_ON",
|
|
1838
|
-
SET_POLYGON_COLOR = "SET_POLYGON_COLOR",
|
|
1839
|
-
SET_BACKGROUND_COLOR = "SET_BACKGROUND_COLOR",
|
|
1840
|
-
CLEAR_POLYGON_COLOR = "CLEAR_POLYGON_COLOR",
|
|
1841
|
-
CLEAR_ALL_POLYGON_COLORS = "CLEAR_ALL_POLYGON_COLORS",
|
|
1842
|
-
ADD_INTERACTIVE_POLYGON = "ADD_INTERACTIVE_POLYGON",
|
|
1843
|
-
REMOVE_INTERACTIVE_POLYGONS = "REMOVE_INTERACTIVE_POLYGONS",
|
|
1844
|
-
ENABLE_IMAGE_FLIPPING_FOR_POLYGON = "ENABLE_IMAGE_FLIPPING_FOR_POLYGON",
|
|
1845
1886
|
CAMERA_SET_SAFE_AREA_INSETS = "CAMERA_SET_SAFE_AREA_INSETS",
|
|
1846
1887
|
/**
|
|
1847
|
-
*
|
|
1888
|
+
* Flat Labels
|
|
1848
1889
|
*/
|
|
1849
|
-
LABEL_ALL_LOCATIONS = "LABEL_ALL_LOCATIONS",
|
|
1850
1890
|
FLAT_LABEL_ALL_LOCATIONS = "FLAT_LABEL_ALL_LOCATIONS",
|
|
1851
|
-
FLOATING_LABEL_ALL_LOCATIONS = "FLOATING_LABEL_ALL_LOCATIONS",
|
|
1852
1891
|
REMOVE_ALL_FLAT_LABELS = "REMOVE_ALL_FLAT_LABELS",
|
|
1853
|
-
REMOVE_ALL_FLOATING_LABELS = "REMOVE_ALL_FLOATING_LABELS",
|
|
1854
1892
|
SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL = "SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL",
|
|
1855
1893
|
ADD_FLAT_LABEL = "ADD_FLAT_LABEL",
|
|
1856
|
-
ADD_FLOATING_LABEL = "ADD_FLOATING_LABEL",
|
|
1857
|
-
REMOVE_FLAT_LABEL = "REMOVE_FLAT_LABEL",
|
|
1858
1894
|
REMOVE_FLOATING_LABEL = "REMOVE_FLOATING_LABEL",
|
|
1859
1895
|
SET_FLOATING_LABEL_PRIORITY = "SET_FLOATING_LABEL_PRIORITY",
|
|
1860
1896
|
RESET_FLOATING_LABEL_PRIORITY = "RESET_FLOATING_LABEL_PRIORITY",
|
|
1861
|
-
SET_FLAT_LABEL_APPEARANCE = "SET_FLAT_LABEL_APPEARANCE",
|
|
1862
1897
|
SET_FLOATING_LABEL_APPEARANCE = "SET_FLOATING_LABEL_APPEARANCE",
|
|
1898
|
+
/**
|
|
1899
|
+
* Floating Labels
|
|
1900
|
+
*/
|
|
1901
|
+
FLOATING_LABEL_ALL_LOCATIONS = "FLOATING_LABEL_ALL_LOCATIONS",
|
|
1902
|
+
REMOVE_ALL_FLOATING_LABELS = "REMOVE_ALL_FLOATING_LABELS",
|
|
1903
|
+
ADD_FLOATING_LABEL = "ADD_FLOATING_LABEL",
|
|
1904
|
+
REMOVE_FLAT_LABEL = "REMOVE_FLAT_LABEL",
|
|
1905
|
+
SET_FLAT_LABEL_APPEARANCE = "SET_FLAT_LABEL_APPEARANCE",
|
|
1906
|
+
/**
|
|
1907
|
+
* Blue Dot
|
|
1908
|
+
*/
|
|
1863
1909
|
ENABLE_BLUE_DOT = "ENABLE_BLUE_DOT",
|
|
1864
1910
|
DISABLE_BLUE_DOT = "DISABLE_BLUE_DOT",
|
|
1865
|
-
GET_DIRECTIONS = "GET_DIRECTIONS",
|
|
1866
|
-
DESTROY = "DESTROY",
|
|
1867
|
-
DATA_LOADED = "DATA_LOADED",
|
|
1868
|
-
FIRST_MAP_LOADED = "FIRST_MAP_LOADED",
|
|
1869
|
-
CREATE_MARKER = "CREATE_MARKER",
|
|
1870
|
-
REMOVE_MARKER = "REMOVE_MARKER",
|
|
1871
|
-
OVERRIDE_LOCATION = "OVERRIDE_LOCATION",
|
|
1872
|
-
SET_JOURNEY_STEP = "SET_JOURNEY_STEP",
|
|
1873
1911
|
BLUEDOT_STATE_CHANGE = "BLUEDOT_STATE_CHANGE",
|
|
1874
1912
|
BLUEDOT_POSITION_UPDATE = "BLUEDOT_POSITION_UPDATE",
|
|
1875
|
-
|
|
1876
|
-
REMOVE_ALL_PATHS = "REMOVE_ALL_PATHS",
|
|
1913
|
+
OVERRIDE_LOCATION = "OVERRIDE_LOCATION",
|
|
1877
1914
|
/**
|
|
1878
|
-
*
|
|
1879
|
-
* Use EVENT.CLICK instead
|
|
1915
|
+
* Journey
|
|
1880
1916
|
*/
|
|
1881
|
-
|
|
1882
|
-
SET_STATE = "SET_STATE",
|
|
1883
|
-
STATE_CHANGED = "STATE_CHANGED",
|
|
1917
|
+
SET_JOURNEY_STEP = "SET_JOURNEY_STEP",
|
|
1884
1918
|
DRAW_JOURNEY = "DRAW_JOURNEY",
|
|
1885
1919
|
CLEAR_JOURNEY = "CLEAR_JOURNEY",
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1920
|
+
SET_JOURNEY_STEP_BY_PATH = "SET_JOURNEY_STEP_BY_PATH",
|
|
1921
|
+
/**
|
|
1922
|
+
* Paths
|
|
1923
|
+
*/
|
|
1924
|
+
ADD_PATH = "ADD_PATH",
|
|
1925
|
+
REMOVE_PATH = "REMOVE_PATH",
|
|
1926
|
+
REMOVE_ALL_PATHS = "REMOVE_ALL_PATHS",
|
|
1927
|
+
/**
|
|
1928
|
+
* Offline Search
|
|
1929
|
+
*/
|
|
1889
1930
|
SEARCH = "SEARCH",
|
|
1890
1931
|
SUGGEST = "SUGGEST",
|
|
1891
1932
|
ADD_SEARCH_QUERY = "ADD_SEARCH_QUERY",
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1933
|
+
/**
|
|
1934
|
+
* @deprecated Use {@link FLAT_LABEL_ALL_LOCATIONS} or {@link FLOATING_LABEL_ALL_LOCATIONS} instead.
|
|
1935
|
+
*/
|
|
1936
|
+
LABEL_ALL_LOCATIONS = "LABEL_ALL_LOCATIONS",
|
|
1937
|
+
/**
|
|
1938
|
+
* @deprecated
|
|
1939
|
+
* Use EVENT.CLICK instead
|
|
1940
|
+
*/
|
|
1941
|
+
NOTHING_CLICKED = "NOTHING_CLICKED",
|
|
1942
|
+
/**
|
|
1943
|
+
* @deprecated
|
|
1944
|
+
* Use EVENT.CLICK instead
|
|
1945
|
+
*/
|
|
1946
|
+
POLYGON_CLICKED = "POLYGON_CLICKED",
|
|
1947
|
+
/**
|
|
1948
|
+
* @deprecated
|
|
1949
|
+
* Use EVENT.ADD_PATH instead
|
|
1950
|
+
*/
|
|
1951
|
+
DRAW_PATH = "DRAW_PATH"
|
|
1898
1952
|
}
|
|
1899
1953
|
export enum WAYFINDING_EVENT {
|
|
1900
1954
|
GET_MAPS_IN_NAVIGATION = "GET_MAPS_IN_NAVIGATION",
|
|
@@ -1925,9 +1979,8 @@ declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
|
1925
1979
|
|
|
1926
1980
|
declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
1927
1981
|
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';
|
|
1928
|
-
import { TFocusOnTargetsSerializable, TMiMapViewOptions, TSerializedCoordinate, TSerializedMap } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
1982
|
+
import { TFocusOnTargetsSerializable, TMiMapViewOptions, TSerializedCoordinate, TSerializedMap, TSerializableJourneyOptions, TSerializedLocation, TSerializedNode, TSerializedPolygon } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
1929
1983
|
import { BRIDGE_EVENT, EVENT, MINIMAP_EVENT, NATIVE_EVENT } from '@mappedin/react-native-sdk/wrappers/common';
|
|
1930
|
-
import { TSerializableJourneyOptions, TSerializedLocation, TSerializedNode, TSerializedPolygon } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
1931
1984
|
import { TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
1932
1985
|
export type BRIDGE_EVENT_PAYLOADS = {
|
|
1933
1986
|
[BRIDGE_EVENT.REJECT]: any;
|
|
@@ -2011,6 +2064,11 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2011
2064
|
[EVENT.SET_JOURNEY_STEP]: {
|
|
2012
2065
|
step: number;
|
|
2013
2066
|
};
|
|
2067
|
+
[EVENT.SET_JOURNEY_STEP_BY_PATH]: {
|
|
2068
|
+
path: {
|
|
2069
|
+
id: string;
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2014
2072
|
[EVENT.LOAD_VENUE]: {
|
|
2015
2073
|
options: TGetVenueOptions & {
|
|
2016
2074
|
useBundle?: boolean;
|
|
@@ -2186,6 +2244,15 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2186
2244
|
path: MappedinNode['id'][];
|
|
2187
2245
|
pathOptions: TPathOptions;
|
|
2188
2246
|
};
|
|
2247
|
+
[EVENT.ADD_PATH]: {
|
|
2248
|
+
nodes: TSerializedNode[];
|
|
2249
|
+
options: TPathOptions;
|
|
2250
|
+
};
|
|
2251
|
+
[EVENT.REMOVE_PATH]: {
|
|
2252
|
+
path: {
|
|
2253
|
+
id: string;
|
|
2254
|
+
};
|
|
2255
|
+
};
|
|
2189
2256
|
[EVENT.REMOVE_ALL_PATHS]: null;
|
|
2190
2257
|
[EVENT.SET_STATE]: {
|
|
2191
2258
|
state: STATE;
|
|
@@ -2229,6 +2296,9 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2229
2296
|
}[];
|
|
2230
2297
|
maps: TSerializedMap[];
|
|
2231
2298
|
nearBlueDot: boolean;
|
|
2299
|
+
paths: {
|
|
2300
|
+
id: string;
|
|
2301
|
+
}[];
|
|
2232
2302
|
};
|
|
2233
2303
|
[EVENT.GET_POLYGONS_AT_COORDINATE]: {
|
|
2234
2304
|
coordinate: TSerializedCoordinate;
|
|
@@ -2354,6 +2424,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Core.interface
|
|
|
2354
2424
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub.typed';
|
|
2355
2425
|
import { FlatLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas';
|
|
2356
2426
|
import MapObject from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.MapObject';
|
|
2427
|
+
import PathsController from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
2357
2428
|
export type TFocusOptionsLegacy = {
|
|
2358
2429
|
/**
|
|
2359
2430
|
* An array of Nodes to focus in on
|
|
@@ -2421,6 +2492,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Core.interface
|
|
|
2421
2492
|
cameraParameters: Vector2;
|
|
2422
2493
|
resolution: Vector2;
|
|
2423
2494
|
determineNewLabelSize: any;
|
|
2495
|
+
paths: PathsController;
|
|
2424
2496
|
on<EVENT_NAME extends keyof INTERNAL_EVENT_PAYLOAD>(eventName: EVENT_NAME, fn: (payload: INTERNAL_EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
2425
2497
|
data: null;
|
|
2426
2498
|
} ? INTERNAL_EVENT_PAYLOAD[EVENT_NAME]['data'] : INTERNAL_EVENT_PAYLOAD[EVENT_NAME]) => void): void;
|
|
@@ -2568,8 +2640,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Core.interface
|
|
|
2568
2640
|
}
|
|
2569
2641
|
|
|
2570
2642
|
declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
2571
|
-
import { BRIDGE_EVENT, BRIDGE_EVENT_PAYLOADS } from '@mappedin/react-native-sdk/wrappers/common';
|
|
2572
|
-
import { PubSub } from '@mappedin/react-native-sdk/wrappers/common';
|
|
2643
|
+
import { PubSub, BRIDGE_EVENT, BRIDGE_EVENT_PAYLOADS } from '@mappedin/react-native-sdk/wrappers/common';
|
|
2573
2644
|
export function uuid(): string;
|
|
2574
2645
|
export class MappedinController {
|
|
2575
2646
|
#private;
|
|
@@ -2615,7 +2686,10 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2615
2686
|
data: {
|
|
2616
2687
|
format: "jsonstring";
|
|
2617
2688
|
venueData: string;
|
|
2618
|
-
options: import("./types").TMiMapViewOptions;
|
|
2689
|
+
options: import("./types").TMiMapViewOptions; /**
|
|
2690
|
+
* Send a message to the other side of the bridge
|
|
2691
|
+
*
|
|
2692
|
+
* @hidden
|
|
2619
2693
|
};
|
|
2620
2694
|
};
|
|
2621
2695
|
LOAD_MINIMAP: {
|
|
@@ -2740,6 +2814,14 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2740
2814
|
step: number;
|
|
2741
2815
|
};
|
|
2742
2816
|
};
|
|
2817
|
+
SET_JOURNEY_STEP_BY_PATH: {
|
|
2818
|
+
msgID?: string | undefined;
|
|
2819
|
+
data: {
|
|
2820
|
+
path: {
|
|
2821
|
+
id: string;
|
|
2822
|
+
};
|
|
2823
|
+
};
|
|
2824
|
+
};
|
|
2743
2825
|
LOAD_VENUE: {
|
|
2744
2826
|
msgID?: string | undefined;
|
|
2745
2827
|
data: {
|
|
@@ -3021,6 +3103,21 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3021
3103
|
pathOptions: import("../react-native-sdk/src").TPathOptions;
|
|
3022
3104
|
};
|
|
3023
3105
|
};
|
|
3106
|
+
ADD_PATH: {
|
|
3107
|
+
msgID?: string | undefined;
|
|
3108
|
+
data: {
|
|
3109
|
+
nodes: import("./types").TSerializedNode[];
|
|
3110
|
+
options: import("../react-native-sdk/src").TPathOptions;
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
REMOVE_PATH: {
|
|
3114
|
+
msgID?: string | undefined;
|
|
3115
|
+
data: {
|
|
3116
|
+
path: {
|
|
3117
|
+
id: string;
|
|
3118
|
+
};
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
3024
3121
|
REMOVE_ALL_PATHS: {
|
|
3025
3122
|
msgID?: string | undefined;
|
|
3026
3123
|
data: null;
|
|
@@ -3093,6 +3190,9 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3093
3190
|
}[];
|
|
3094
3191
|
maps: import("./types").TSerializedMap[];
|
|
3095
3192
|
nearBlueDot: boolean;
|
|
3193
|
+
paths: {
|
|
3194
|
+
id: string;
|
|
3195
|
+
}[];
|
|
3096
3196
|
};
|
|
3097
3197
|
};
|
|
3098
3198
|
GET_POLYGONS_AT_COORDINATE: {
|
|
@@ -3384,8 +3484,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
3384
3484
|
import FakeGeolocation from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/fake-geolocation';
|
|
3385
3485
|
import { IStateMachine } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.StateMachine';
|
|
3386
3486
|
import { E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE, E_BLUEDOT_STATE_REASON } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
3387
|
-
import { IPubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
3388
|
-
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
3487
|
+
import { PubSub, IPubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
3389
3488
|
import { MappedinMap, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
3390
3489
|
import { TGeolocationObject } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
3391
3490
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
@@ -3625,6 +3724,115 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
3625
3724
|
export default SmartTooltip;
|
|
3626
3725
|
}
|
|
3627
3726
|
|
|
3727
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths' {
|
|
3728
|
+
import { TPathOptions, MappedinNode } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
3729
|
+
import { ANIMATION_TWEENS } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
3730
|
+
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
3731
|
+
export type TPathOptionsInternal = TPathOptions & {
|
|
3732
|
+
curve?: typeof ANIMATION_TWEENS;
|
|
3733
|
+
drawConnectionSegments?: boolean;
|
|
3734
|
+
connectionPathOptions?: TPathOptions & {
|
|
3735
|
+
curve?: typeof ANIMATION_TWEENS;
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
export type TInternalPathSegment = {
|
|
3739
|
+
id: string;
|
|
3740
|
+
nodes: MappedinNode[];
|
|
3741
|
+
mapId?: string;
|
|
3742
|
+
isConnectionPathSegment?: boolean;
|
|
3743
|
+
reset: () => void;
|
|
3744
|
+
resetPulse: () => void;
|
|
3745
|
+
object: any;
|
|
3746
|
+
tween: any;
|
|
3747
|
+
pulseTween: any;
|
|
3748
|
+
endPauseTween?: any;
|
|
3749
|
+
arrowAnimationTween: any;
|
|
3750
|
+
};
|
|
3751
|
+
/**
|
|
3752
|
+
* An object containing information that was used to draw a path on the map.
|
|
3753
|
+
*/
|
|
3754
|
+
export class Path {
|
|
3755
|
+
#private;
|
|
3756
|
+
constructor(internalPathObject: InternalPath);
|
|
3757
|
+
/**
|
|
3758
|
+
* A generated ID for this path object
|
|
3759
|
+
*/
|
|
3760
|
+
get id(): string;
|
|
3761
|
+
/**
|
|
3762
|
+
* A {@link MappedinNode}[] representing the nodes in the path
|
|
3763
|
+
*/
|
|
3764
|
+
get nodes(): MappedinNode[];
|
|
3765
|
+
}
|
|
3766
|
+
/**
|
|
3767
|
+
* Represents all the segments created for a single call to drawPath()
|
|
3768
|
+
*/
|
|
3769
|
+
export class InternalPath {
|
|
3770
|
+
id: string;
|
|
3771
|
+
nodes: MappedinNode[];
|
|
3772
|
+
pathSegments: TInternalPathSegment[];
|
|
3773
|
+
options: TPathOptionsInternal;
|
|
3774
|
+
constructor(nodes: MappedinNode[], pathSegments: TInternalPathSegment[], options: TPathOptionsInternal);
|
|
3775
|
+
}
|
|
3776
|
+
class PathsController {
|
|
3777
|
+
#private;
|
|
3778
|
+
constructor(core: ICore);
|
|
3779
|
+
pathSegments: Map<string, TInternalPathSegment>;
|
|
3780
|
+
pathsById: Map<string, {
|
|
3781
|
+
path: Path;
|
|
3782
|
+
internalPath: InternalPath;
|
|
3783
|
+
}>;
|
|
3784
|
+
pathsByMeshId: Map<string, {
|
|
3785
|
+
path: Path;
|
|
3786
|
+
internalPath: InternalPath;
|
|
3787
|
+
}>;
|
|
3788
|
+
getPathLength(path: any): number;
|
|
3789
|
+
/**
|
|
3790
|
+
* Draws path in 3D space
|
|
3791
|
+
*
|
|
3792
|
+
* Draws an entire path. It takes a list of nodes and will break them into separate path segments on every man change, putting the resultant segment on the right map.
|
|
3793
|
+
*
|
|
3794
|
+
* If you have a special use case (like off graph nodes, or venues with same map vortexes) use the drawPathSegment function.
|
|
3795
|
+
*
|
|
3796
|
+
* @method drawPath
|
|
3797
|
+
* @param path {[MappedinNode]} An array of Nodes, probably from a Node's {{#crossLink "MappedinNode/directionsTo:method"}}{{/crossLink}} call.
|
|
3798
|
+
* @param [options] {Object} Options for path drawing
|
|
3799
|
+
* @param [options.color='#ff834c'] {String} Path Colour
|
|
3800
|
+
* @param [options.pulseColor='#ffffff'] {String} Colour of path pulse
|
|
3801
|
+
* @param [options.pulseIterations=1] {Number} Number of iterations to pulse to indicate direction, also accepts 'Infinity'
|
|
3802
|
+
* @param [options.pulsePauseDuration=750] {Number} How many milliseconds to wait before starting the next pulse after the current pulse travels the entirety of the path
|
|
3803
|
+
* @param [options.nearRadius=1.8] {Number} Radius of path at nearest zoom
|
|
3804
|
+
* @param [options.farRadius=options.nearRadius] {Number} Radius of path at furthest zoom
|
|
3805
|
+
* @param [options.nearZoom=375] {Number} Zoom level where the path size is `nearRadius`
|
|
3806
|
+
* @param [options.farZoom=10000] {Number} Zoom level where the path size is `farRadius`
|
|
3807
|
+
* @param [options.drawDuration=1200] {Number} Duration of path drawing
|
|
3808
|
+
* @param [options.curve=TWEEN.Easing.Cubic.InOut] {Object} Path animation curve
|
|
3809
|
+
*
|
|
3810
|
+
* // NOTE: These options are disabled
|
|
3811
|
+
* @param [options.drawConnectionSegments=true] Draw map-to-map connection segments
|
|
3812
|
+
* @param [options.connectionPathOptions] {Object} Options for floor-to-floor connection paths
|
|
3813
|
+
* @param [options.connectionPathOptions.color='#ff834c'] {String} Path Colour
|
|
3814
|
+
* @param [options.connectionPathOptions.pulseColor='#ffffff'] {String} Colour of path pulse
|
|
3815
|
+
* @param [options.connectionPathOptions.pulseIterations=Infinity] {Number} Number of iterations to pulse to indicate direction
|
|
3816
|
+
* @param [options.connectionPathOptions.nearRadius=1.8] {Number} Radius of path at nearest zoom
|
|
3817
|
+
* @param [options.connectionPathOptions.farRadius=options.connectionPathOptions.nearRadius] {Number} Radius of path at furthest zoom
|
|
3818
|
+
* @param [options.connectionPathOptions.nearZoom=375] {Number} Zoom level where the path size is `nearRadius`
|
|
3819
|
+
* @param [options.connectionPathOptions.farZoom=10000] {Number} Zoom level where the path size is `farRadius`
|
|
3820
|
+
* @param [options.connectionPathOptions.drawDuration=600] {Number} Duration of path drawing
|
|
3821
|
+
* @param [options.connectionPathOptions.curve=TWEEN.Easing.Cubic.InOut] {Object} Connection Path animation curve
|
|
3822
|
+
*
|
|
3823
|
+
* @returns {Array} Array of Tween segments representing paths drawn on screen
|
|
3824
|
+
*/
|
|
3825
|
+
drawPath(path: MappedinNode[], options?: TPathOptionsInternal): Path;
|
|
3826
|
+
/**
|
|
3827
|
+
* Redraw an existing path with optional new options. This avoids changing its ID or reference.
|
|
3828
|
+
*/
|
|
3829
|
+
redrawPath(path: Path, options?: TPathOptionsInternal): void;
|
|
3830
|
+
removePath(pathOrPathId: Path | string): void;
|
|
3831
|
+
removeAllPaths(): void;
|
|
3832
|
+
}
|
|
3833
|
+
export default PathsController;
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3628
3836
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot' {
|
|
3629
3837
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
|
|
3630
3838
|
import { E_BLUEDOT_EVENT_PAYLOAD, E_BLUEDOT_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
@@ -3662,6 +3870,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey
|
|
|
3662
3870
|
import { MappedinDirections } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
3663
3871
|
import { Journey } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Journey';
|
|
3664
3872
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
3873
|
+
import { Path } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
3665
3874
|
class JourneyLayer {
|
|
3666
3875
|
#private;
|
|
3667
3876
|
/**
|
|
@@ -3686,6 +3895,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey
|
|
|
3686
3895
|
* Set the step of a multipart Journey
|
|
3687
3896
|
*/
|
|
3688
3897
|
setStep(step: number): void;
|
|
3898
|
+
/**
|
|
3899
|
+
* Set the step using a Path object
|
|
3900
|
+
*/
|
|
3901
|
+
setStepByPath(path: Path): void;
|
|
3689
3902
|
/**
|
|
3690
3903
|
* Clear the current Journey
|
|
3691
3904
|
*/
|
|
@@ -3995,7 +4208,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3995
4208
|
* @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
|
|
3996
4209
|
* @param shouldPopulateBundledImagesAsBlobs Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
|
|
3997
4210
|
*/
|
|
3998
|
-
hydrate(mappedinSerializableData: string |
|
|
4211
|
+
hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>;
|
|
3999
4212
|
images: any;
|
|
4000
4213
|
imageBinaries?: Map<string, Uint8Array>;
|
|
4001
4214
|
scenes: any;
|
|
@@ -5485,7 +5698,7 @@ declare module '@mappedin/react-native-sdk/core/packages/navigator/NavigationGra
|
|
|
5485
5698
|
mapsById: {
|
|
5486
5699
|
[propName: string]: IMap;
|
|
5487
5700
|
};
|
|
5488
|
-
constructor({ nodes, vortexes, maps, showVortexNames }: {
|
|
5701
|
+
constructor({ nodes, vortexes, maps, showVortexNames, }: {
|
|
5489
5702
|
nodes: INode[];
|
|
5490
5703
|
vortexes: IVortex[];
|
|
5491
5704
|
maps: IMap[];
|
|
@@ -5524,7 +5737,7 @@ declare module '@mappedin/react-native-sdk/core/packages/navigator/Navigator' {
|
|
|
5524
5737
|
instructions: Directive[];
|
|
5525
5738
|
}
|
|
5526
5739
|
class Navigator {
|
|
5527
|
-
constructor({ locations, nodes, vortexes, maps, showVortexNames }: {
|
|
5740
|
+
constructor({ locations, nodes, vortexes, maps, showVortexNames, }: {
|
|
5528
5741
|
locations: ILocation[];
|
|
5529
5742
|
nodes: INode[];
|
|
5530
5743
|
vortexes: IVortex[];
|
|
@@ -5546,7 +5759,7 @@ declare module '@mappedin/react-native-sdk/core/packages/navigator/Navigator' {
|
|
|
5546
5759
|
* @param departFrom ILocation - optional, id and name of a location to represent start of journey
|
|
5547
5760
|
* @param arriveAt ILocation - optional, id and name of a location to represent end of journey
|
|
5548
5761
|
*/
|
|
5549
|
-
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt }: {
|
|
5762
|
+
getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, }: {
|
|
5550
5763
|
originIds: string[];
|
|
5551
5764
|
destinationNodeIds: string[];
|
|
5552
5765
|
accessible: boolean;
|
|
@@ -5610,7 +5823,7 @@ declare module '@mappedin/react-native-sdk/core/packages/navigator/Directive' {
|
|
|
5610
5823
|
atLocation?: ILocation;
|
|
5611
5824
|
type?: BEARING_TYPE;
|
|
5612
5825
|
distance: number;
|
|
5613
|
-
constructor({ origin, action, distance, atLocation, instruction }: {
|
|
5826
|
+
constructor({ origin, action, distance, atLocation, instruction, }: {
|
|
5614
5827
|
origin?: INode;
|
|
5615
5828
|
action?: IAction;
|
|
5616
5829
|
distance?: number;
|
|
@@ -5646,8 +5859,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5646
5859
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
|
|
5647
5860
|
import { getVenue, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5648
5861
|
import { PositionUpdater } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
5649
|
-
import type { TMapViewOptions
|
|
5650
|
-
import { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5862
|
+
import type { TMapViewOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5651
5863
|
import { MARKER_ANCHOR } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Marker';
|
|
5652
5864
|
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Markers';
|
|
5653
5865
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
@@ -5677,8 +5889,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5677
5889
|
* @returns
|
|
5678
5890
|
*/
|
|
5679
5891
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
5680
|
-
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 } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
5681
|
-
export { getVenue, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet, MARKER_ANCHOR,
|
|
5892
|
+
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, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
5893
|
+
export { getVenue, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet, MARKER_ANCHOR, };
|
|
5682
5894
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
5683
5895
|
import { TTileManagerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/layers/Outdoor-Context/Mappedin.TileManager';
|
|
5684
5896
|
/**
|
|
@@ -5693,15 +5905,14 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5693
5905
|
/**
|
|
5694
5906
|
* @internal
|
|
5695
5907
|
*/
|
|
5696
|
-
DefaultAssetManager as AssetManager };
|
|
5908
|
+
DefaultAssetManager as AssetManager, };
|
|
5697
5909
|
export type { TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
|
|
5698
|
-
export type {
|
|
5699
|
-
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TEnableBlueDotOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
5910
|
+
export type { TMappedinInitializeOptions };
|
|
5700
5911
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5701
5912
|
export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
|
|
5702
|
-
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as Camera } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
5703
|
-
export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5704
|
-
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5913
|
+
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as Camera, } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
5914
|
+
export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5915
|
+
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5705
5916
|
/**
|
|
5706
5917
|
* @internal
|
|
5707
5918
|
* @hidden
|
|
@@ -5723,12 +5934,12 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5723
5934
|
/**
|
|
5724
5935
|
* @internal
|
|
5725
5936
|
*/
|
|
5726
|
-
OpenStreetMapOutdoorContext } from './layers/Outdoor-Context/Outdoor-Context.provider';
|
|
5937
|
+
OpenStreetMapOutdoorContext, } from './layers/Outdoor-Context/Outdoor-Context.provider';
|
|
5727
5938
|
export type {
|
|
5728
5939
|
/**
|
|
5729
5940
|
* @internal
|
|
5730
5941
|
*/
|
|
5731
|
-
IOutdoorContextProvider } from './layers/Outdoor-Context/Outdoor-Context.provider';
|
|
5942
|
+
IOutdoorContextProvider, } from './layers/Outdoor-Context/Outdoor-Context.provider';
|
|
5732
5943
|
}
|
|
5733
5944
|
|
|
5734
5945
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.RenderTasks' {
|
|
@@ -5761,6 +5972,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5761
5972
|
import { IFlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLabels';
|
|
5762
5973
|
import { IFloatingLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FloatingLabels';
|
|
5763
5974
|
import { MarkersLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/Markers';
|
|
5975
|
+
import { PathsLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/Paths';
|
|
5764
5976
|
export enum INTERNAL_EVENT {
|
|
5765
5977
|
ON_FIRST_MAP_LOADED = 0,
|
|
5766
5978
|
TEXTURE_LOADED = 1,
|
|
@@ -5833,6 +6045,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5833
6045
|
FlatLabels: IFlatLabels<void>;
|
|
5834
6046
|
FloatingLabels: IFloatingLabels<void>;
|
|
5835
6047
|
Markers: MarkersLayer;
|
|
6048
|
+
Paths: PathsLayer;
|
|
5836
6049
|
options: TMapViewOptions;
|
|
5837
6050
|
constructor(container: HTMLElement, venue: Mappedin, options?: TMapViewOptions & {
|
|
5838
6051
|
onFirstMapLoaded: () => void;
|
|
@@ -6032,6 +6245,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
6032
6245
|
enableImageFlippingForPolygon(polygon: MappedinPolygon): void;
|
|
6033
6246
|
disableImageFlippingForAllPolygons(): void;
|
|
6034
6247
|
/**
|
|
6248
|
+
* @deprecated Use `mapView.Paths.add` instead.
|
|
6249
|
+
*
|
|
6035
6250
|
* Draws an entire path. It takes a list of Nodes and will break them into separate pathSegments on every map change, putting the resultant segment on the right Map.
|
|
6036
6251
|
*
|
|
6037
6252
|
* @param path An array of Nodes, probably from a Node's {@link MappedinNode.directionsTo} call.
|
|
@@ -6039,12 +6254,15 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
6039
6254
|
*/
|
|
6040
6255
|
drawPath(path: MappedinNode[], options?: TPathOptions): string;
|
|
6041
6256
|
/**
|
|
6257
|
+
* @deprecated Use `mapView.Paths.remove` instead.
|
|
6258
|
+
*
|
|
6042
6259
|
* Remove a path by id
|
|
6043
6260
|
*/
|
|
6044
6261
|
removePath(pathId: string): void;
|
|
6045
6262
|
/**
|
|
6046
|
-
*
|
|
6263
|
+
* @deprecated Use `mapView.Paths.removeAll` instead.
|
|
6047
6264
|
*
|
|
6265
|
+
* Removes all pathSegments from all Maps.
|
|
6048
6266
|
*/
|
|
6049
6267
|
removeAllPaths(): void;
|
|
6050
6268
|
/**
|
|
@@ -6146,14 +6364,14 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Task
|
|
|
6146
6364
|
* Arbitrary data that you can store along with this update.
|
|
6147
6365
|
*/
|
|
6148
6366
|
constructor(options: {
|
|
6149
|
-
callback:
|
|
6367
|
+
callback: (...args: any[]) => any;
|
|
6150
6368
|
frameCount?: number;
|
|
6151
6369
|
ordering?: number;
|
|
6152
6370
|
supersededBy?: Set<any>;
|
|
6153
6371
|
name: string;
|
|
6154
6372
|
userdata?: Record<string, any>;
|
|
6155
6373
|
});
|
|
6156
|
-
_callback:
|
|
6374
|
+
_callback: (...args: any[]) => any;
|
|
6157
6375
|
_frameCount: number;
|
|
6158
6376
|
_ordering: number;
|
|
6159
6377
|
_supersededBy: Set<any>;
|
|
@@ -6207,7 +6425,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Task
|
|
|
6207
6425
|
postponeOnAdd: number | boolean;
|
|
6208
6426
|
name: string;
|
|
6209
6427
|
lastFrameTime: number;
|
|
6210
|
-
callback:
|
|
6428
|
+
callback: (...args: any[]) => any;
|
|
6211
6429
|
});
|
|
6212
6430
|
_postponed: number | boolean;
|
|
6213
6431
|
userdata: Record<string, any>;
|
|
@@ -6215,7 +6433,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Task
|
|
|
6215
6433
|
_group: FrameTaskGroup | null;
|
|
6216
6434
|
name: string;
|
|
6217
6435
|
_lastFrameTime: number;
|
|
6218
|
-
_callback:
|
|
6436
|
+
_callback: (...args: any[]) => any;
|
|
6219
6437
|
_complete: boolean;
|
|
6220
6438
|
_scheduled: boolean;
|
|
6221
6439
|
_cancelled: boolean;
|
|
@@ -6266,14 +6484,14 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Task
|
|
|
6266
6484
|
* Arbitrary data that you can store along with this task group.
|
|
6267
6485
|
*/
|
|
6268
6486
|
constructor(options: {
|
|
6269
|
-
onComplete?:
|
|
6487
|
+
onComplete?: (...args: any[]) => any;
|
|
6270
6488
|
priority?: number;
|
|
6271
6489
|
userdata: Record<string, any>;
|
|
6272
6490
|
postponeOnAdd: number | boolean;
|
|
6273
6491
|
name: string;
|
|
6274
6492
|
});
|
|
6275
6493
|
_postponed: number | boolean;
|
|
6276
|
-
_onComplete:
|
|
6494
|
+
_onComplete: (...args: any[]) => any;
|
|
6277
6495
|
_priority: number;
|
|
6278
6496
|
userdata: Record<string, any>;
|
|
6279
6497
|
name: string;
|
|
@@ -6995,12 +7213,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6995
7213
|
visible: boolean;
|
|
6996
7214
|
rank: number;
|
|
6997
7215
|
id: string;
|
|
6998
|
-
_bboxes?: [
|
|
6999
|
-
string,
|
|
7000
|
-
Rectangle,
|
|
7001
|
-
(collider: TCustomCollider<any>) => void,
|
|
7002
|
-
TGetBoundingBox
|
|
7003
|
-
][];
|
|
7216
|
+
_bboxes?: [string, Rectangle, (collider: TCustomCollider<any>) => void, TGetBoundingBox][];
|
|
7004
7217
|
offscreen?: boolean;
|
|
7005
7218
|
setAction: (action: EColliderAction) => void;
|
|
7006
7219
|
action?: EColliderAction;
|
|
@@ -7152,7 +7365,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-s
|
|
|
7152
7365
|
off(eventName: any, fn: any): void;
|
|
7153
7366
|
destroy(): void;
|
|
7154
7367
|
}
|
|
7155
|
-
export const PubSubLegacy: () => void;
|
|
7156
7368
|
export function tinyObservable<T>(store: T): T & IPubSub;
|
|
7157
7369
|
export {};
|
|
7158
7370
|
}
|
|
@@ -7174,7 +7386,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-
|
|
|
7174
7386
|
* @param [options.minRadius] The ring around the blue dot will only be drawn if `options.radius` is greater than or equal to this value, in metres. Must be >= 0.
|
|
7175
7387
|
* @param [options.radiusUpdateInterval] The width of radius update steps, in metres. For example, if interval is 3 and assume `minRadius` is 8, then the radius will be updated on 8, 11, 14, 17, etc. Must be >= 0.
|
|
7176
7388
|
*/
|
|
7177
|
-
constructor({ mapView, threeDMarkerLayer, core, minRadius, maxRadius, radiusUpdateInterval, radiusTweenOptions }?: {
|
|
7389
|
+
constructor({ mapView, threeDMarkerLayer, core, minRadius, maxRadius, radiusUpdateInterval, radiusTweenOptions, }?: {
|
|
7178
7390
|
mapView: any;
|
|
7179
7391
|
threeDMarkerLayer: any;
|
|
7180
7392
|
core: any;
|
|
@@ -7306,6 +7518,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
7306
7518
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
7307
7519
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
7308
7520
|
import BlueDotManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-dot-manager';
|
|
7521
|
+
import { Path } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
7309
7522
|
class EventSystemLayer {
|
|
7310
7523
|
mapView: MapView;
|
|
7311
7524
|
core: ICore;
|
|
@@ -7363,6 +7576,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
7363
7576
|
getMouseRayIntersects: (objects: Object3D | Object3D[]) => any;
|
|
7364
7577
|
detectCollidersUnderMouse: () => any;
|
|
7365
7578
|
detectPolygonsUnderMouse: () => string[];
|
|
7579
|
+
detectPathsUnderMouse: () => Path[];
|
|
7366
7580
|
detectMapsUnderMouse: () => any;
|
|
7367
7581
|
getMouseMapPosition: () => {
|
|
7368
7582
|
x: number;
|
|
@@ -7381,10 +7595,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
7381
7595
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Journey' {
|
|
7382
7596
|
import type Directive from '@mappedin/react-native-sdk/core/packages/navigator/Directive';
|
|
7383
7597
|
import type INode from '@mappedin/react-native-sdk/core/packages/navigator/interfaces/INode';
|
|
7384
|
-
import { MappedinDirections } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
7385
7598
|
import { TJourneyOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
7599
|
+
import { MappedinDirections } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
7386
7600
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
7387
7601
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
7602
|
+
import { Path } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
7388
7603
|
export type TMappedinDirections = {
|
|
7389
7604
|
distance: number;
|
|
7390
7605
|
path: INode[];
|
|
@@ -7406,6 +7621,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
7406
7621
|
get mapIdsInvolvedInJourney(): string[];
|
|
7407
7622
|
constructor(directions: MappedinDirections | MappedinDirections[], options: TJourneyOptions | undefined, mapView: MapView, core: ICore);
|
|
7408
7623
|
setStep: (step: any) => void;
|
|
7624
|
+
setStepByPath: (path: Path) => void;
|
|
7409
7625
|
static instance: Journey | null;
|
|
7410
7626
|
static create(directions: MappedinDirections | MappedinDirections[], options: any, mapView: MapView, core: ICore): Journey;
|
|
7411
7627
|
destroy(): void;
|
|
@@ -7696,7 +7912,7 @@ declare module '@mappedin/react-native-sdk/core/packages/navigator/Edge' {
|
|
|
7696
7912
|
distance: number;
|
|
7697
7913
|
angle: number;
|
|
7698
7914
|
weight: number;
|
|
7699
|
-
constructor({ origin, destination, vortex, elevationDelta, distance, angle }: {
|
|
7915
|
+
constructor({ origin, destination, vortex, elevationDelta, distance, angle, }: {
|
|
7700
7916
|
origin: INode;
|
|
7701
7917
|
destination: INode;
|
|
7702
7918
|
vortex?: IVortex;
|
|
@@ -8008,6 +8224,40 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Markers
|
|
|
8008
8224
|
}
|
|
8009
8225
|
}
|
|
8010
8226
|
|
|
8227
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Paths' {
|
|
8228
|
+
import { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
8229
|
+
import { TPathOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
8230
|
+
import PathsController, { Path } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Paths';
|
|
8231
|
+
/**
|
|
8232
|
+
* Add and remove paths from maps.
|
|
8233
|
+
*/
|
|
8234
|
+
export class PathsLayer {
|
|
8235
|
+
#private;
|
|
8236
|
+
constructor(pathsController: PathsController);
|
|
8237
|
+
/**
|
|
8238
|
+
* An array of all paths that are currently drawn.
|
|
8239
|
+
*/
|
|
8240
|
+
get paths(): Path[];
|
|
8241
|
+
/**
|
|
8242
|
+
* Takes an array of nodes and draws path segments on each map for the nodes on that map.
|
|
8243
|
+
*
|
|
8244
|
+
* @param nodes A {@link MappedinNode} array, probably from a {@link MappedinDirections} instance.
|
|
8245
|
+
* @param options A optional {@link TPathOptions} object.
|
|
8246
|
+
*/
|
|
8247
|
+
add(nodes: MappedinNode[], options?: TPathOptions): Path;
|
|
8248
|
+
/**
|
|
8249
|
+
* Remove a path from all maps it exists on.
|
|
8250
|
+
*
|
|
8251
|
+
* @param path A {@link Path} instance returned from {@link PathsLayer.add}.
|
|
8252
|
+
*/
|
|
8253
|
+
remove(path: Path): void;
|
|
8254
|
+
/**
|
|
8255
|
+
* Remove all paths from all maps.
|
|
8256
|
+
*/
|
|
8257
|
+
removeAll(): void;
|
|
8258
|
+
}
|
|
8259
|
+
}
|
|
8260
|
+
|
|
8011
8261
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.Scene' {
|
|
8012
8262
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
8013
8263
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
@@ -8153,37 +8403,72 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Outdoor
|
|
|
8153
8403
|
}
|
|
8154
8404
|
|
|
8155
8405
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Outdoor-Context/Outdoor-Context.provider' {
|
|
8406
|
+
/**
|
|
8407
|
+
* @experimental
|
|
8408
|
+
* The universal outdoor context interface
|
|
8409
|
+
*/
|
|
8156
8410
|
export interface IOutdoorContextProvider {
|
|
8157
|
-
|
|
8158
|
-
|
|
8411
|
+
/**
|
|
8412
|
+
* Returns the appropriate tile at coordinate
|
|
8413
|
+
*/
|
|
8414
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: AbortSignal): Promise<Response>;
|
|
8415
|
+
/**
|
|
8416
|
+
* Fetch attribution for the current tiles
|
|
8417
|
+
* format: [SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]
|
|
8418
|
+
*/
|
|
8419
|
+
fetchAttribution?(zoomLevel: number, bounds: [number, number, number, number]): Promise<Response>;
|
|
8159
8420
|
}
|
|
8421
|
+
/**
|
|
8422
|
+
* @experimental
|
|
8423
|
+
* Azure maps outdoor context class
|
|
8424
|
+
*/
|
|
8160
8425
|
export class AzureOutdoorContextProvider implements IOutdoorContextProvider {
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8426
|
+
lang: string;
|
|
8427
|
+
apiKey?: string;
|
|
8428
|
+
token?: string;
|
|
8429
|
+
tileSize: number;
|
|
8430
|
+
tilesetId: string;
|
|
8431
|
+
constructor(lang?: string, tileSize?: 256 | 512, apiKey?: string, token?: string);
|
|
8432
|
+
makeURL(x: number, y: number, zoom: number): string;
|
|
8433
|
+
/**
|
|
8434
|
+
* Fetch attribution for the current tiles
|
|
8435
|
+
* format: [SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]
|
|
8436
|
+
*/
|
|
8437
|
+
fetchAttribution(zoomLevel: number, bounds: [number, number, number, number]): Promise<Response>;
|
|
8438
|
+
/**
|
|
8439
|
+
* Returns the appropriate tile at coordinate
|
|
8440
|
+
*/
|
|
8441
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: AbortSignal): Promise<Response>;
|
|
8174
8442
|
}
|
|
8443
|
+
/**
|
|
8444
|
+
* @experimental
|
|
8445
|
+
* Google maps outdoor context class
|
|
8446
|
+
*/
|
|
8175
8447
|
export class GoogleOutdoorContextProvider implements IOutdoorContextProvider {
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8448
|
+
apiKey: string;
|
|
8449
|
+
sessionToken: string;
|
|
8450
|
+
lang: string;
|
|
8451
|
+
constructor(lang: string | undefined, apiKey: string);
|
|
8452
|
+
makeURL(x: number, y: number, zoom: number): string;
|
|
8453
|
+
/**
|
|
8454
|
+
* Returns the Google session token
|
|
8455
|
+
*/
|
|
8456
|
+
fetchSessionToken(): Promise<void>;
|
|
8457
|
+
/**
|
|
8458
|
+
* Returns the appropriate tile at coordinate
|
|
8459
|
+
*/
|
|
8460
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: any): Promise<Response>;
|
|
8183
8461
|
}
|
|
8462
|
+
/**
|
|
8463
|
+
* @experimental
|
|
8464
|
+
* OpenStreetMap maps outdoor context class
|
|
8465
|
+
*/
|
|
8184
8466
|
export class OpenStreetMapOutdoorContext implements IOutdoorContextProvider {
|
|
8185
|
-
|
|
8186
|
-
|
|
8467
|
+
makeURL(x: number, y: number, z: number): string;
|
|
8468
|
+
/**
|
|
8469
|
+
* Returns the appropriate tile at coordinate
|
|
8470
|
+
*/
|
|
8471
|
+
fetchTile(tileX: number, tileY: number, zoom: number, signal: any): Promise<Response>;
|
|
8187
8472
|
}
|
|
8188
8473
|
}
|
|
8189
8474
|
|