@mappedin/react-native-sdk 5.0.0-beta.7 → 5.0.0-beta.8
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 +17 -22
- package/dist/index.d.ts +290 -378
- package/dist/index.js +277 -277
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
20
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, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TFocusOnTargets, TCommonLabelOptions, TCameraAnimationOptions, TFocusOnOptions, TAnimatePositionOptions, TBlueDotPositionUpdate, TBlueDotStateChange, TMoveCameraOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
23
|
+
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TFocusOnTargets, TCommonLabelOptions, TCameraAnimationOptions, TFocusOnOptions, TAnimatePositionOptions, TBlueDotPositionUpdate, TBlueDotStateChange, TMoveCameraOptions, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
24
24
|
export type { TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptionsBase };
|
|
25
|
-
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'
|
|
25
|
+
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
26
26
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
27
|
-
export type { TMapViewRNOptions } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
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
29
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective } 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';
|
|
@@ -39,7 +39,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
39
39
|
import { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
40
40
|
import type { TBlueDotPositionUpdate, TBlueDotStateChange, MappedinPolygon, MappedinMap, Mappedin } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
41
41
|
import { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
42
|
-
import { TMapViewRNOptions } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
42
|
+
import { TCameraChange, TMapViewRNOptions } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
43
43
|
export type TMiMapViewProps = {
|
|
44
44
|
/**
|
|
45
45
|
* The MapViewStore instance will be returned here
|
|
@@ -72,6 +72,12 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
72
72
|
onBlueDotPositionUpdated?: (prop: {
|
|
73
73
|
update: TBlueDotPositionUpdate;
|
|
74
74
|
}) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Called when the camera is updated
|
|
77
|
+
*/
|
|
78
|
+
onCameraChanged?: (prop: {
|
|
79
|
+
change: TCameraChange;
|
|
80
|
+
}) => void;
|
|
75
81
|
/**
|
|
76
82
|
* Called when data is loaded for this venue
|
|
77
83
|
*/
|
|
@@ -116,7 +122,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
116
122
|
/**
|
|
117
123
|
* @category Component
|
|
118
124
|
*/
|
|
119
|
-
export const MiMapView: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TMiMapViewProps, "
|
|
125
|
+
export const MiMapView: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TMiMapViewProps, "style" | "options" | "onFirstMapLoaded" | "onDataLoaded" | "venueData" | "onPolygonClicked" | "onBlueDotStateChanged" | "onBlueDotPositionUpdated" | "onCameraChanged" | "onNothingClicked" | "onMapChanged" | "onStateChanged" | "onVenueLoadError"> & React.RefAttributes<MapViewStore>>>;
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap' {
|
|
@@ -165,19 +171,14 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniM
|
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store' {
|
|
168
|
-
import { TMoveCameraOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
169
174
|
import { RNMappedinController } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MappedinController';
|
|
170
175
|
import { TReactNativeFlatLabelAllLocations, TReactNativeFlatLabelAllLocationsLegacy, TReactNativeFlatLabelPolygonOptions, TReactNativeFloatingLabelPolygonOptions, TSerializableJourneyOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
171
|
-
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions,
|
|
172
|
-
import { STATE, Mappedin, MappedinNode, MappedinMap, MappedinLocation, MappedinDirections, MappedinCategory, MappedinPolygon, TGetVenueOptions, TShowVenueOptions, MappedinCoordinate, MappedinDestinationSet, TCreateMarkerOptions,
|
|
173
|
-
import {
|
|
176
|
+
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
177
|
+
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';
|
|
178
|
+
import { TCameraManager } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
174
179
|
export class MapViewStore extends RNMappedinController {
|
|
175
180
|
#private;
|
|
176
181
|
state: STATE;
|
|
177
|
-
/**
|
|
178
|
-
* @deprecated Use BlueDot Events instead
|
|
179
|
-
*/
|
|
180
|
-
BlueDotState: E_BLUEDOT_STATE;
|
|
181
182
|
/**
|
|
182
183
|
* @hidden
|
|
183
184
|
*/
|
|
@@ -227,7 +228,24 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
227
228
|
/**
|
|
228
229
|
* Set Polygon Color
|
|
229
230
|
*/
|
|
230
|
-
setPolygonColor(
|
|
231
|
+
setPolygonColor(
|
|
232
|
+
/**
|
|
233
|
+
* Polygon or PolygonId
|
|
234
|
+
*/
|
|
235
|
+
polygonIdOrPolygon: MappedinPolygon['id'] | MappedinPolygon,
|
|
236
|
+
/**
|
|
237
|
+
* Color to use
|
|
238
|
+
*/
|
|
239
|
+
color: string,
|
|
240
|
+
/**
|
|
241
|
+
* Opacity of polygon after setting color
|
|
242
|
+
* @deprecated
|
|
243
|
+
*/
|
|
244
|
+
opacity?: number,
|
|
245
|
+
/**
|
|
246
|
+
* Color of flat label text on polygon
|
|
247
|
+
*/
|
|
248
|
+
textColor?: string): Promise<unknown>;
|
|
231
249
|
/**
|
|
232
250
|
* Clear Polygon Color
|
|
233
251
|
*/
|
|
@@ -260,113 +278,10 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
260
278
|
labelAllLocations(options?: TReactNativeFlatLabelAllLocations | TReactNativeFlatLabelAllLocationsLegacy): Promise<unknown>;
|
|
261
279
|
labelPolygon(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id'], options: TReactNativeFloatingLabelPolygonOptions): Promise<unknown>;
|
|
262
280
|
labelPolygon(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id'], options: TReactNativeFlatLabelPolygonOptions): Promise<unknown>;
|
|
263
|
-
/**
|
|
264
|
-
* @param focusOptions You should provide at least one Node or Polygon, but everything else is optional.
|
|
265
|
-
* @deprecated Use Camera.focusOn instead
|
|
266
|
-
*/
|
|
267
|
-
focusOn(focusOptions: TFocusOptionsLegacy): Promise<unknown>;
|
|
268
|
-
/**
|
|
269
|
-
* Padding - this is so that the map can be positioned on a portion of the screen
|
|
270
|
-
* @deprecated Use Camera.setSafeAreaInsets instead
|
|
271
|
-
*/
|
|
272
|
-
setSafeArea(padding: {
|
|
273
|
-
top: number;
|
|
274
|
-
bottom: number;
|
|
275
|
-
left: number;
|
|
276
|
-
right: number;
|
|
277
|
-
}): void;
|
|
278
|
-
/**
|
|
279
|
-
V3 Camera controls interface
|
|
280
|
-
*/
|
|
281
|
-
CameraControls: {
|
|
282
|
-
/**
|
|
283
|
-
* The current tilt in radians from top-down view.
|
|
284
|
-
* @deprecated Use CameraControls.tilt instead
|
|
285
|
-
*/
|
|
286
|
-
tilt: number;
|
|
287
|
-
/**
|
|
288
|
-
* @param tilt The new value to set the tilt to, in radians from top-down view.
|
|
289
|
-
* @deprecated Use CameraControls.setTilt instead
|
|
290
|
-
*/
|
|
291
|
-
setTilt: (tilt: number) => Promise<undefined>;
|
|
292
|
-
/**
|
|
293
|
-
* The current rotation in radians from north.
|
|
294
|
-
* @deprecated Use CameraControls.rotation instead
|
|
295
|
-
*/
|
|
296
|
-
rotation: number;
|
|
297
|
-
/**
|
|
298
|
-
* @param rotation The new value to set the rotation to, in radians from north..
|
|
299
|
-
* @deprecated Use CameraControls.setRotation instead
|
|
300
|
-
*/
|
|
301
|
-
setRotation: (rotation: number) => Promise<undefined>;
|
|
302
|
-
};
|
|
303
281
|
/**
|
|
304
282
|
Camera controls interface
|
|
305
283
|
*/
|
|
306
|
-
Camera:
|
|
307
|
-
/**
|
|
308
|
-
* The current tilt in radians from top-down view.
|
|
309
|
-
*/
|
|
310
|
-
tilt: number;
|
|
311
|
-
/**
|
|
312
|
-
* Set Camera options immediately
|
|
313
|
-
*/
|
|
314
|
-
set: (positionOptions?: TAnimatePositionOptions | undefined) => Promise<unknown>;
|
|
315
|
-
/**
|
|
316
|
-
* Translate Camera view in a relative direction by a given distance in meters
|
|
317
|
-
*/
|
|
318
|
-
translate: (options: TMoveCameraOptions) => Promise<unknown>;
|
|
319
|
-
/**
|
|
320
|
-
* The current rotation in radians from north.
|
|
321
|
-
*/
|
|
322
|
-
rotation: number;
|
|
323
|
-
/**
|
|
324
|
-
* Sets the maximum tilt angle (in radians) the camera is allowed to use.
|
|
325
|
-
*
|
|
326
|
-
* As tilt angle approaches π/2 radians, this will impact overall touch controls
|
|
327
|
-
* and should be used sparingly.
|
|
328
|
-
*
|
|
329
|
-
* @param radians Maximum allowed tilt angle. This value is clamped to be within the range [0, π/2]
|
|
330
|
-
*/
|
|
331
|
-
setMaxTilt: (radians: number) => Promise<unknown>;
|
|
332
|
-
/**
|
|
333
|
-
* Sets the minimum distance (in meters) the camera is allowed to get to the ground.
|
|
334
|
-
*
|
|
335
|
-
* @param meters Minimum allowed meters.
|
|
336
|
-
*/
|
|
337
|
-
setMinZoom: (meters: number) => Promise<unknown>;
|
|
338
|
-
/**
|
|
339
|
-
* Sets the maximum distance (in meters) the camera is allowed to get from the ground.
|
|
340
|
-
*
|
|
341
|
-
* @param meters Maximum allowed meters.
|
|
342
|
-
*/
|
|
343
|
-
setMaxZoom: (meters: number) => Promise<unknown>;
|
|
344
|
-
/**
|
|
345
|
-
* @param focusOptions You should provide at least one Node or Polygon, but everything else is optional.
|
|
346
|
-
*/
|
|
347
|
-
focusOn(focusOptions: TFocusOnOptions & {
|
|
348
|
-
animationOptions?: TAnimatePositionOptions;
|
|
349
|
-
}): Promise<unknown>;
|
|
350
|
-
/**
|
|
351
|
-
* This is so that the map can be positioned on a portion of the screen, (example padding)
|
|
352
|
-
*/
|
|
353
|
-
setSafeAreaInsets: (safeAreaInsets: {
|
|
354
|
-
top: number;
|
|
355
|
-
bottom: number;
|
|
356
|
-
left: number;
|
|
357
|
-
right: number;
|
|
358
|
-
}) => void;
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Visualize directions by drawing paths, and adding connection markers
|
|
362
|
-
* @deprecated Use {@link MapViewStore.Journey}'s draw method instead
|
|
363
|
-
*/
|
|
364
|
-
drawJourney(directions: MappedinDirections | MappedinDirections[], options?: TSerializableJourneyOptions): Promise<unknown>;
|
|
365
|
-
/**
|
|
366
|
-
* Remove any paths and markers associated with journey
|
|
367
|
-
* @deprecated Use mapView.Journey.clear instead
|
|
368
|
-
*/
|
|
369
|
-
clearJourney(): Promise<unknown>;
|
|
284
|
+
Camera: TCameraManager;
|
|
370
285
|
/**
|
|
371
286
|
* Journey management interface
|
|
372
287
|
*/
|
|
@@ -455,7 +370,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
455
370
|
export { getVenue, getVenueBundle, MappedinDestinationSet, Mappedin, randomId };
|
|
456
371
|
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';
|
|
457
372
|
export { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
458
|
-
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TCommonLabelOptions, TFlatLabelOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationCommonOptions, TLabelAllLocationFloatingLabelOptions, TLabelAllLocationFlatLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
373
|
+
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TCommonLabelOptions, TFlatLabelOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationCommonOptions, TLabelAllLocationFloatingLabelOptions, TLabelAllLocationFlatLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
459
374
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
460
375
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
461
376
|
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
@@ -472,8 +387,9 @@ declare module '@mappedin/react-native-sdk/wrappers/common' {
|
|
|
472
387
|
|
|
473
388
|
declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types' {
|
|
474
389
|
import { MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src';
|
|
475
|
-
import { MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
390
|
+
import { MappedinCoordinate, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
476
391
|
import type { MappedinCategory, MappedinLocation, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
392
|
+
import { TAnimatePositionOptions, TMoveCameraOptions, TFocusOnOptions, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
477
393
|
import { TFocusOptionsLegacy } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
478
394
|
export type TPolygonColorOptions = {
|
|
479
395
|
color: string;
|
|
@@ -515,6 +431,30 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
515
431
|
};
|
|
516
432
|
};
|
|
517
433
|
export type TMappedinCustomSearchObject = MappedinLocation | MappedinCategory | Record<string, unknown>;
|
|
434
|
+
/**
|
|
435
|
+
* Camera changed payload
|
|
436
|
+
*/
|
|
437
|
+
export type TCameraChange = CAMERA_EVENT_PAYLOAD[E_CAMERA_EVENT.CHANGED];
|
|
438
|
+
export type TCameraManager = {
|
|
439
|
+
position?: MappedinCoordinate;
|
|
440
|
+
tilt: number;
|
|
441
|
+
zoom: number;
|
|
442
|
+
rotation: number;
|
|
443
|
+
set: (positionOptions?: TAnimatePositionOptions) => Promise<unknown>;
|
|
444
|
+
focusOn: (focusOptions: TFocusOnOptions & {
|
|
445
|
+
animationOptions?: TAnimatePositionOptions;
|
|
446
|
+
}) => Promise<unknown>;
|
|
447
|
+
translate: (options: TMoveCameraOptions) => Promise<unknown>;
|
|
448
|
+
setMaxTilt: (radians: number) => Promise<unknown>;
|
|
449
|
+
setMinZoom: (meters: number) => Promise<unknown>;
|
|
450
|
+
setMaxZoom: (meters: number) => Promise<unknown>;
|
|
451
|
+
setSafeAreaInsets: (safeAreaInsets: {
|
|
452
|
+
top: number;
|
|
453
|
+
bottom: number;
|
|
454
|
+
left: number;
|
|
455
|
+
right: number;
|
|
456
|
+
}) => void;
|
|
457
|
+
};
|
|
518
458
|
}
|
|
519
459
|
|
|
520
460
|
declare module '@mappedin/react-native-sdk/wrappers/common/errors' {
|
|
@@ -543,11 +483,11 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
543
483
|
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';
|
|
544
484
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
545
485
|
import type { TEnableBlueDotOptions as TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptions as TLabelAllLocationCommonOptionsBase } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
546
|
-
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TFocusOnTargets, TCommonLabelOptions, TCameraAnimationOptions, TFocusOnOptions, TAnimatePositionOptions, TBlueDotPositionUpdate, TBlueDotStateChange, TMoveCameraOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
486
|
+
export type { TJourneyOptions, TGeolocationObject, TPathOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TFlatLabelAppearance, TFloatingLabelAppearance, TFocusOnCameraOptions, TFocusOnTargets, TCommonLabelOptions, TCameraAnimationOptions, TFocusOnOptions, TAnimatePositionOptions, TBlueDotPositionUpdate, TBlueDotStateChange, TMoveCameraOptions, CAMERA_EVENT_PAYLOAD, E_CAMERA_EVENT } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
547
487
|
export type { TEnableBlueDotOptionsBase, TLabelAllLocationCommonOptionsBase };
|
|
548
|
-
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'
|
|
488
|
+
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
549
489
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
550
|
-
export type { TMapViewRNOptions } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
490
|
+
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
551
491
|
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
552
492
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
553
493
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
@@ -635,6 +575,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
635
575
|
export type { TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
|
|
636
576
|
export type { IDirectionsResult } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
637
577
|
export type { TOperationHoursMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
|
|
578
|
+
export type { TMappedinCoordinateOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoordinate';
|
|
638
579
|
export type { TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
639
580
|
export { OfflineSearch } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
|
|
640
581
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
|
|
@@ -670,11 +611,18 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
670
611
|
};
|
|
671
612
|
};
|
|
672
613
|
export { MAP_RENDER_MODE };
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
*/
|
|
673
617
|
export function getVenueMVF(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
|
|
674
618
|
/**
|
|
675
619
|
* Get Venue Data for a Mappedin Venue
|
|
676
620
|
*/
|
|
677
621
|
export function getVenue(userOptions: TGetVenueOptions): Promise<Mappedin>;
|
|
622
|
+
/**
|
|
623
|
+
* @internal
|
|
624
|
+
*/
|
|
625
|
+
export function __setGetVenueMock(fn: any): void;
|
|
678
626
|
export type TGetVenueBundleOptions = TGetVenueOptions & {
|
|
679
627
|
bundleBaseUri?: string;
|
|
680
628
|
version?: string;
|
|
@@ -861,11 +809,26 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums'
|
|
|
861
809
|
export enum E_CAMERA_EVENT {
|
|
862
810
|
USER_INTERACTION_START = "USER_INTERACTION_START",
|
|
863
811
|
USER_INTERACTION_END = "USER_INTERACTION_END",
|
|
864
|
-
/**
|
|
865
|
-
|
|
812
|
+
/**
|
|
813
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
814
|
+
*/
|
|
866
815
|
ZOOM_CHANGED = "ZOOM_CHANGED",
|
|
816
|
+
/**
|
|
817
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
818
|
+
*/
|
|
867
819
|
ROTATION_CHANGED = "ROTATION_CHANGED",
|
|
868
|
-
|
|
820
|
+
/**
|
|
821
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
822
|
+
*/
|
|
823
|
+
TILT_CHANGED = "TILT_CHANGED",
|
|
824
|
+
/**
|
|
825
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
826
|
+
*/
|
|
827
|
+
POSITION_CHANGED = "POSITION_CHANGED",
|
|
828
|
+
/**
|
|
829
|
+
* Fires when camera state changes, including position, tilt, zoom and rotation
|
|
830
|
+
*/
|
|
831
|
+
CHANGED = "CHANGED"
|
|
869
832
|
}
|
|
870
833
|
export { MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
871
834
|
export enum E_CAMERA_DIRECTION {
|
|
@@ -893,7 +856,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums'
|
|
|
893
856
|
}
|
|
894
857
|
|
|
895
858
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types' {
|
|
896
|
-
import { Mappedin, MappedinLocation, MappedinMap, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
859
|
+
import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
897
860
|
import { TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
898
861
|
import { TEnableBlueDotOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
899
862
|
import { TBlueDotPositionUpdate, TBlueDotStateChange } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
@@ -938,12 +901,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
938
901
|
* @defaultValue 750
|
|
939
902
|
*/
|
|
940
903
|
pulsePauseDuration?: number;
|
|
941
|
-
/**
|
|
942
|
-
* (Deprecated) alias for `nearRadius`ty
|
|
943
|
-
* @defaultValue 1.8
|
|
944
|
-
* @deprecated
|
|
945
|
-
*/
|
|
946
|
-
radius?: number;
|
|
947
904
|
/**
|
|
948
905
|
* Radius of path at nearest zoom, in metres
|
|
949
906
|
* @defaultValue 1.8
|
|
@@ -1008,7 +965,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1008
965
|
icon: string;
|
|
1009
966
|
location?: MappedinLocation;
|
|
1010
967
|
};
|
|
1011
|
-
export type TMarkerTemplateFn = ({ icon
|
|
968
|
+
export type TMarkerTemplateFn = ({ icon, location }: TMarkerTemplateProps) => string;
|
|
1012
969
|
export type TJourneyOptions = {
|
|
1013
970
|
/**
|
|
1014
971
|
* What color to highlight departure and destination polygons
|
|
@@ -1269,11 +1226,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1269
1226
|
onWebGLContextLost?: () => void;
|
|
1270
1227
|
onWebGLContextRestored?: () => void;
|
|
1271
1228
|
onWebGLRendererError?: () => void;
|
|
1272
|
-
/**
|
|
1273
|
-
* @hidden
|
|
1274
|
-
* @deprecated
|
|
1275
|
-
*/
|
|
1276
|
-
outdoorContext?: boolean;
|
|
1277
1229
|
};
|
|
1278
1230
|
export type TCommonLabelOptions = {
|
|
1279
1231
|
/**
|
|
@@ -1354,7 +1306,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1354
1306
|
};
|
|
1355
1307
|
export type TFloatingLabelPolygonOptions = TCommonLabelOptions & {
|
|
1356
1308
|
scale?: number;
|
|
1357
|
-
flatLabels?: false | undefined;
|
|
1358
1309
|
/**
|
|
1359
1310
|
* Ranking tier to determine how likely a {@link FloatingLabel} will appear
|
|
1360
1311
|
*/
|
|
@@ -1457,13 +1408,27 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1457
1408
|
export type CAMERA_EVENT_PAYLOAD = {
|
|
1458
1409
|
[E_CAMERA_EVENT.USER_INTERACTION_START]: void;
|
|
1459
1410
|
[E_CAMERA_EVENT.USER_INTERACTION_END]: void;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1411
|
+
[E_CAMERA_EVENT.CHANGED]: {
|
|
1412
|
+
tilt: number;
|
|
1413
|
+
position: MappedinCoordinate;
|
|
1414
|
+
zoom: number;
|
|
1415
|
+
rotation: number;
|
|
1464
1416
|
};
|
|
1417
|
+
/**
|
|
1418
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
1419
|
+
*/
|
|
1420
|
+
[E_CAMERA_EVENT.POSITION_CHANGED]: MappedinCoordinate;
|
|
1421
|
+
/**
|
|
1422
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
1423
|
+
*/
|
|
1465
1424
|
[E_CAMERA_EVENT.ZOOM_CHANGED]: number;
|
|
1425
|
+
/**
|
|
1426
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
1427
|
+
*/
|
|
1466
1428
|
[E_CAMERA_EVENT.ROTATION_CHANGED]: number;
|
|
1429
|
+
/**
|
|
1430
|
+
* @deprecated Use E_CAMERA_EVENT.CHANGED instead
|
|
1431
|
+
*/
|
|
1467
1432
|
[E_CAMERA_EVENT.TILT_CHANGED]: number;
|
|
1468
1433
|
};
|
|
1469
1434
|
export type { default as BlueDotLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot';
|
|
@@ -1485,7 +1450,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1485
1450
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
1486
1451
|
import { MappedinNode, MappedinPolygon, MappedinCoordinate } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
1487
1452
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub.typed';
|
|
1488
|
-
import { Vector3 } from 'three';
|
|
1489
1453
|
import { CAMERA_EVENT_PAYLOAD } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
1490
1454
|
import { E_CAMERA_EVENT, E_CAMERA_DIRECTION, CAMERA_EASING_MODE, SAFE_AREA_INSET_TYPE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
1491
1455
|
export type TSafeAreaInsets = {
|
|
@@ -1499,7 +1463,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1499
1463
|
nodes?: MappedinNode[];
|
|
1500
1464
|
polygons?: MappedinPolygon[];
|
|
1501
1465
|
coordinates?: MappedinCoordinate[];
|
|
1502
|
-
points?: Vector3[];
|
|
1503
1466
|
};
|
|
1504
1467
|
export type TFocusOnCameraOptions = {
|
|
1505
1468
|
changeZoom?: boolean;
|
|
@@ -1659,115 +1622,90 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1659
1622
|
|
|
1660
1623
|
declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
1661
1624
|
export enum EVENT {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
*/
|
|
1715
|
-
SET_BLUE_DOT_IS_FOLLOWING = "SET_BLUE_DOT_IS_FOLLOWING",
|
|
1716
|
-
GET_DIRECTIONS = "GET_DIRECTIONS",
|
|
1717
|
-
DESTROY = "DESTROY",
|
|
1718
|
-
DATA_LOADED = "DATA_LOADED",
|
|
1719
|
-
FIRST_MAP_LOADED = "FIRST_MAP_LOADED",
|
|
1720
|
-
CREATE_MARKER = "CREATE_MARKER",
|
|
1721
|
-
REMOVE_MARKER = "REMOVE_MARKER",
|
|
1722
|
-
OVERRIDE_LOCATION = "OVERRIDE_LOCATION",
|
|
1723
|
-
SET_JOURNEY_STEP = "SET_JOURNEY_STEP",
|
|
1724
|
-
BLUEDOT_STATE_CHANGE = "BLUEDOT_STATE_CHANGE",
|
|
1725
|
-
BLUEDOT_POSITION_UPDATE = "BLUEDOT_POSITION_UPDATE",
|
|
1726
|
-
DRAW_PATH = "DRAW_PATH",
|
|
1727
|
-
REMOVE_ALL_PATHS = "REMOVE_ALL_PATHS",
|
|
1728
|
-
NOTHING_CLICKED = "NOTHING_CLICKED",
|
|
1729
|
-
SET_STATE = "SET_STATE",
|
|
1730
|
-
STATE_CHANGED = "STATE_CHANGED",
|
|
1731
|
-
DRAW_JOURNEY = "DRAW_JOURNEY",
|
|
1732
|
-
CLEAR_JOURNEY = "CLEAR_JOURNEY",
|
|
1733
|
-
SET_COOKIE = "SET_COOKIE",
|
|
1734
|
-
GET_NEAREST_NODE_BY_SCREEN_COORDINATES = "GET_NEAREST_NODE_BY_SCREEN_COORDINATES",
|
|
1735
|
-
CLEAR_BUNDLE_CACHE = "CLEAR_BUNDLE_CACHE",
|
|
1736
|
-
SEARCH = "SEARCH",
|
|
1737
|
-
SUGGEST = "SUGGEST",
|
|
1738
|
-
ADD_SEARCH_QUERY = "ADD_SEARCH_QUERY"
|
|
1625
|
+
LOAD_VENUE = "LOAD_VENUE",
|
|
1626
|
+
SHOW_VENUE = "SHOW_VENUE",
|
|
1627
|
+
POLYGON_CLICKED = "POLYGON_CLICKED",
|
|
1628
|
+
SET_MAP = "SET_MAP",
|
|
1629
|
+
MAP_CHANGED = "MAP_CHANGED",
|
|
1630
|
+
ROTATION_CHANGED = "ROTATION_CHANGED",
|
|
1631
|
+
TILT_CHANGED = "TILT_CHANGED",
|
|
1632
|
+
ZOOM_CHANGED = "ZOOM_CHANGED",
|
|
1633
|
+
CAMERA_SET = "CAMERA_SET",
|
|
1634
|
+
CAMERA_TRANSLATE = "CAMERA_TRANSLATE",
|
|
1635
|
+
POSITION_CHANGED = "POSITION_CHANGED",
|
|
1636
|
+
CAMERA_CHANGED = "CAMERA_CHANGED",
|
|
1637
|
+
SET_MIN_ZOOM = "SET_MIN_ZOOM",
|
|
1638
|
+
SET_MAX_ZOOM = "SET_MAX_ZOOM",
|
|
1639
|
+
SET_MAX_TILT = "SET_MAX_TILT",
|
|
1640
|
+
UPDATE_GEOLOCATION = "UPDATE_GEOLOCATION",
|
|
1641
|
+
FOCUS_ON = "FOCUS_ON",
|
|
1642
|
+
SET_POLYGON_COLOR = "SET_POLYGON_COLOR",
|
|
1643
|
+
SET_BACKGROUND_COLOR = "SET_BACKGROUND_COLOR",
|
|
1644
|
+
CLEAR_POLYGON_COLOR = "CLEAR_POLYGON_COLOR",
|
|
1645
|
+
CLEAR_ALL_POLYGON_COLORS = "CLEAR_ALL_POLYGON_COLORS",
|
|
1646
|
+
ADD_INTERACTIVE_POLYGON = "ADD_INTERACTIVE_POLYGON",
|
|
1647
|
+
REMOVE_INTERACTIVE_POLYGONS = "REMOVE_INTERACTIVE_POLYGONS",
|
|
1648
|
+
CAMERA_SET_SAFE_AREA_INSETS = "CAMERA_SET_SAFE_AREA_INSETS",
|
|
1649
|
+
LABEL_ALL_LOCATIONS = "LABEL_ALL_LOCATIONS",
|
|
1650
|
+
REMOVE_ALL_LABELS = "REMOVE_ALL_LABELS",
|
|
1651
|
+
LABEL_POLYGON = "LABEL_POLYGON",
|
|
1652
|
+
ENABLE_BLUE_DOT = "ENABLE_BLUE_DOT",
|
|
1653
|
+
DISABLE_BLUE_DOT = "DISABLE_BLUE_DOT",
|
|
1654
|
+
GET_DIRECTIONS = "GET_DIRECTIONS",
|
|
1655
|
+
DESTROY = "DESTROY",
|
|
1656
|
+
DATA_LOADED = "DATA_LOADED",
|
|
1657
|
+
FIRST_MAP_LOADED = "FIRST_MAP_LOADED",
|
|
1658
|
+
CREATE_MARKER = "CREATE_MARKER",
|
|
1659
|
+
REMOVE_MARKER = "REMOVE_MARKER",
|
|
1660
|
+
OVERRIDE_LOCATION = "OVERRIDE_LOCATION",
|
|
1661
|
+
SET_JOURNEY_STEP = "SET_JOURNEY_STEP",
|
|
1662
|
+
BLUEDOT_STATE_CHANGE = "BLUEDOT_STATE_CHANGE",
|
|
1663
|
+
BLUEDOT_POSITION_UPDATE = "BLUEDOT_POSITION_UPDATE",
|
|
1664
|
+
DRAW_PATH = "DRAW_PATH",
|
|
1665
|
+
REMOVE_ALL_PATHS = "REMOVE_ALL_PATHS",
|
|
1666
|
+
NOTHING_CLICKED = "NOTHING_CLICKED",
|
|
1667
|
+
SET_STATE = "SET_STATE",
|
|
1668
|
+
STATE_CHANGED = "STATE_CHANGED",
|
|
1669
|
+
DRAW_JOURNEY = "DRAW_JOURNEY",
|
|
1670
|
+
CLEAR_JOURNEY = "CLEAR_JOURNEY",
|
|
1671
|
+
SET_COOKIE = "SET_COOKIE",
|
|
1672
|
+
GET_NEAREST_NODE_BY_SCREEN_COORDINATES = "GET_NEAREST_NODE_BY_SCREEN_COORDINATES",
|
|
1673
|
+
CLEAR_BUNDLE_CACHE = "CLEAR_BUNDLE_CACHE",
|
|
1674
|
+
SEARCH = "SEARCH",
|
|
1675
|
+
SUGGEST = "SUGGEST",
|
|
1676
|
+
ADD_SEARCH_QUERY = "ADD_SEARCH_QUERY"
|
|
1739
1677
|
}
|
|
1740
1678
|
export enum WAYFINDING_EVENT {
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1679
|
+
GET_MAPS_IN_NAVIGATION = "GET_MAPS_IN_NAVIGATION",
|
|
1680
|
+
SHOW_JOURNEY = "SHOW_JOURNEY",
|
|
1681
|
+
START_NAVIGATION = "START_NAVIGATION",
|
|
1682
|
+
STOP_NAVIGATION = "STOP_NAVIGATION",
|
|
1683
|
+
SEEK = "SEEK",
|
|
1684
|
+
GET_MODE = "GET_MODE",
|
|
1685
|
+
EXIT_NAVIGATION = "EXIT_NAVIGATION"
|
|
1748
1686
|
}
|
|
1749
1687
|
export enum BRIDGE_EVENT {
|
|
1750
|
-
|
|
1751
|
-
|
|
1688
|
+
RESOLVE = "RESOLVE",
|
|
1689
|
+
REJECT = "REJECT"
|
|
1752
1690
|
}
|
|
1753
1691
|
export enum MINIMAP_EVENT {
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1692
|
+
LOAD_MINIMAP = "LOAD_MINIMAP",
|
|
1693
|
+
SHOW_MINIMAP = "SHOW_MINIMAP",
|
|
1694
|
+
READY = "MINIMAP_READY",
|
|
1695
|
+
CACHE_IMAGE = "CACHE_IMAGE"
|
|
1758
1696
|
}
|
|
1759
1697
|
export enum NATIVE_EVENT {
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1698
|
+
LOG = "LOG",
|
|
1699
|
+
READY = "READY",
|
|
1700
|
+
GET_MAP_POLYGONS = "GET_MAP_POLYGONS",
|
|
1701
|
+
GET_IMAGE = "GET_IMAGE"
|
|
1764
1702
|
}
|
|
1765
1703
|
}
|
|
1766
1704
|
|
|
1767
1705
|
declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
1768
1706
|
import { IDirectionsResult, MappedinMap, MappedinNode, TBlueDotPositionUpdate, TBlueDotStateChange, TGetVenueOptions, TFloatingLabelPolygonOptions, TFlatLabelPolygonOptions, TAnimatePositionOptions, TPathOptions, TShowVenueOptions, STATE, TGeolocationObject, TEnableBlueDotOptions, MappedinLocation, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions, TMoveCameraOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
1769
1707
|
import { TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
1770
|
-
import { BRIDGE_EVENT, EVENT, MINIMAP_EVENT,
|
|
1708
|
+
import { BRIDGE_EVENT, EVENT, MINIMAP_EVENT, TReactNativeFlatLabelAllLocationsLegacy, TReactNativeFlatLabelAllLocations, NATIVE_EVENT } from '@mappedin/react-native-sdk/wrappers/common';
|
|
1771
1709
|
import { TSerializableJourneyOptions, TFocusOnOptionsSerializable, TSerializedLocation, TSerializedNode, TSerializedPolygon } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
1772
1710
|
export type BRIDGE_EVENT_PAYLOADS = {
|
|
1773
1711
|
[BRIDGE_EVENT.REJECT]: any;
|
|
@@ -1819,6 +1757,24 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
1819
1757
|
[EVENT.TILT_CHANGED]: {
|
|
1820
1758
|
tilt: number;
|
|
1821
1759
|
};
|
|
1760
|
+
[EVENT.POSITION_CHANGED]: {
|
|
1761
|
+
position: {
|
|
1762
|
+
x: number;
|
|
1763
|
+
y: number;
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
[EVENT.CAMERA_CHANGED]: {
|
|
1767
|
+
rotation: number;
|
|
1768
|
+
tilt: number;
|
|
1769
|
+
zoom: number;
|
|
1770
|
+
position: {
|
|
1771
|
+
x: number;
|
|
1772
|
+
y: number;
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
[EVENT.ZOOM_CHANGED]: {
|
|
1776
|
+
zoom: number;
|
|
1777
|
+
};
|
|
1822
1778
|
[EVENT.UPDATE_GEOLOCATION]: {
|
|
1823
1779
|
msgID: undefined;
|
|
1824
1780
|
data: unknown;
|
|
@@ -1875,12 +1831,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
1875
1831
|
[EVENT.CAMERA_TRANSLATE]: {
|
|
1876
1832
|
options: TMoveCameraOptions;
|
|
1877
1833
|
};
|
|
1878
|
-
[EVENT.SET_ROTATION]: {
|
|
1879
|
-
rotation: number;
|
|
1880
|
-
};
|
|
1881
|
-
[EVENT.SET_TILT]: {
|
|
1882
|
-
tilt: number;
|
|
1883
|
-
};
|
|
1884
1834
|
[EVENT.CAMERA_SET_SAFE_AREA_INSETS]: {
|
|
1885
1835
|
safeAreaInsets: {
|
|
1886
1836
|
top: number;
|
|
@@ -1895,9 +1845,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
1895
1845
|
[EVENT.FOCUS_ON]: {
|
|
1896
1846
|
focusOptions: TFocusOnOptionsSerializable;
|
|
1897
1847
|
};
|
|
1898
|
-
[EVENT.FOCUS_ON_LEGACY]: {
|
|
1899
|
-
focusOptions: TFocusOnOptionsLegacySerializable;
|
|
1900
|
-
};
|
|
1901
1848
|
[EVENT.SET_POLYGON_COLOR]: {
|
|
1902
1849
|
polygonId: string;
|
|
1903
1850
|
color: string;
|
|
@@ -1915,33 +1862,18 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
1915
1862
|
[EVENT.LABEL_ALL_LOCATIONS]: {
|
|
1916
1863
|
options?: (Omit<TReactNativeFlatLabelAllLocations, 'locations'> | Omit<TLabelAllLocationFloatingLabelOptions, 'locations'> | Omit<TReactNativeFlatLabelAllLocationsLegacy, 'locations'>) & {
|
|
1917
1864
|
locations?: string[];
|
|
1918
|
-
/**
|
|
1919
|
-
* @deprecated
|
|
1920
|
-
*/
|
|
1921
|
-
legacyLabels?: boolean;
|
|
1922
1865
|
flatLabels?: boolean;
|
|
1923
1866
|
};
|
|
1924
1867
|
};
|
|
1925
1868
|
[EVENT.REMOVE_ALL_LABELS]: null;
|
|
1926
1869
|
[EVENT.LABEL_POLYGON]: {
|
|
1927
1870
|
polygonId: string;
|
|
1928
|
-
options:
|
|
1929
|
-
/**
|
|
1930
|
-
* @deprecated
|
|
1931
|
-
*/
|
|
1932
|
-
legacyLabels?: boolean;
|
|
1933
|
-
};
|
|
1871
|
+
options: TFloatingLabelPolygonOptions | TFlatLabelPolygonOptions;
|
|
1934
1872
|
};
|
|
1935
1873
|
[EVENT.ENABLE_BLUE_DOT]: {
|
|
1936
1874
|
options?: TEnableBlueDotOptions;
|
|
1937
1875
|
};
|
|
1938
1876
|
[EVENT.DISABLE_BLUE_DOT]: null;
|
|
1939
|
-
[EVENT.ENABLE_BEARING]: any;
|
|
1940
|
-
[EVENT.GET_NEAREST_NODE]: any;
|
|
1941
|
-
[EVENT.GET_BLUE_DOT_IS_FOLLOWING]: any;
|
|
1942
|
-
[EVENT.SET_BLUE_DOT_IS_FOLLOWING]: {
|
|
1943
|
-
isFollowing: boolean;
|
|
1944
|
-
};
|
|
1945
1877
|
[EVENT.GET_DIRECTIONS]: {
|
|
1946
1878
|
to: TSerializedNode | TSerializedLocation | TSerializedPolygon;
|
|
1947
1879
|
from: TSerializedNode | TSerializedLocation | TSerializedPolygon;
|
|
@@ -2069,26 +2001,12 @@ declare module '@mappedin/react-native-sdk/wrappers/common/types' {
|
|
|
2069
2001
|
};
|
|
2070
2002
|
export type TMiMapViewOptions = TShowVenueOptions & TMiMapViewVenueOptions;
|
|
2071
2003
|
export type TReactNativeFloatingLabelPolygonOptions = TFloatingLabelPolygonOptions & {
|
|
2072
|
-
/**
|
|
2073
|
-
* @deprecated
|
|
2074
|
-
*/
|
|
2075
|
-
legacyLabels?: false | undefined;
|
|
2076
2004
|
flatLabels?: false | undefined;
|
|
2077
2005
|
};
|
|
2078
|
-
export type TReactNativeFlatLabelPolygonOptions = TFlatLabelPolygonOptions &
|
|
2079
|
-
/**
|
|
2080
|
-
* @deprecated
|
|
2081
|
-
*/
|
|
2082
|
-
legacyLabels: true;
|
|
2083
|
-
} | {
|
|
2006
|
+
export type TReactNativeFlatLabelPolygonOptions = TFlatLabelPolygonOptions & {
|
|
2084
2007
|
flatLabels: true;
|
|
2085
|
-
});
|
|
2086
|
-
export type TReactNativeFlatLabelAllLocationsLegacy = Omit<TLabelAllLocationFlatLabelOptions, 'flatLabels'> & {
|
|
2087
|
-
/**
|
|
2088
|
-
* @deprecated
|
|
2089
|
-
*/
|
|
2090
|
-
legacyLabels: true;
|
|
2091
2008
|
};
|
|
2009
|
+
export type TReactNativeFlatLabelAllLocationsLegacy = Omit<TLabelAllLocationFlatLabelOptions, 'flatLabels'>;
|
|
2092
2010
|
export type TReactNativeFlatLabelAllLocations = TLabelAllLocationFlatLabelOptions & {
|
|
2093
2011
|
flatLabels: true;
|
|
2094
2012
|
};
|
|
@@ -2442,6 +2360,33 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2442
2360
|
tilt: number;
|
|
2443
2361
|
};
|
|
2444
2362
|
};
|
|
2363
|
+
POSITION_CHANGED: {
|
|
2364
|
+
msgID?: string | undefined;
|
|
2365
|
+
data: {
|
|
2366
|
+
position: {
|
|
2367
|
+
x: number;
|
|
2368
|
+
y: number;
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
CAMERA_CHANGED: {
|
|
2373
|
+
msgID?: string | undefined;
|
|
2374
|
+
data: {
|
|
2375
|
+
rotation: number;
|
|
2376
|
+
tilt: number;
|
|
2377
|
+
zoom: number;
|
|
2378
|
+
position: {
|
|
2379
|
+
x: number;
|
|
2380
|
+
y: number;
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
ZOOM_CHANGED: {
|
|
2385
|
+
msgID?: string | undefined;
|
|
2386
|
+
data: {
|
|
2387
|
+
zoom: number;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2445
2390
|
UPDATE_GEOLOCATION: {
|
|
2446
2391
|
msgID?: string | undefined;
|
|
2447
2392
|
data: {
|
|
@@ -2511,18 +2456,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2511
2456
|
options: import("../react-native-sdk/src").TMoveCameraOptions;
|
|
2512
2457
|
};
|
|
2513
2458
|
};
|
|
2514
|
-
SET_ROTATION: {
|
|
2515
|
-
msgID?: string | undefined;
|
|
2516
|
-
data: {
|
|
2517
|
-
rotation: number;
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
SET_TILT: {
|
|
2521
|
-
msgID?: string | undefined;
|
|
2522
|
-
data: {
|
|
2523
|
-
tilt: number;
|
|
2524
|
-
};
|
|
2525
|
-
};
|
|
2526
2459
|
CAMERA_SET_SAFE_AREA_INSETS: {
|
|
2527
2460
|
msgID?: string | undefined;
|
|
2528
2461
|
data: {
|
|
@@ -2546,12 +2479,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2546
2479
|
focusOptions: import("./types").TFocusOnOptionsSerializable;
|
|
2547
2480
|
};
|
|
2548
2481
|
};
|
|
2549
|
-
FOCUS_ON_LEGACY: {
|
|
2550
|
-
msgID?: string | undefined;
|
|
2551
|
-
data: {
|
|
2552
|
-
focusOptions: import("./types").TFocusOnOptionsLegacySerializable;
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
2482
|
SET_POLYGON_COLOR: {
|
|
2556
2483
|
msgID?: string | undefined;
|
|
2557
2484
|
data: {
|
|
@@ -2586,7 +2513,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2586
2513
|
data: {
|
|
2587
2514
|
options?: ((Omit<import("./types").TReactNativeFlatLabelAllLocations, "locations"> | Omit<import("../react-native-sdk/src").TLabelAllLocationFloatingLabelOptions, "locations"> | Omit<import("./types").TReactNativeFlatLabelAllLocationsLegacy, "locations">) & {
|
|
2588
2515
|
locations?: string[] | undefined;
|
|
2589
|
-
legacyLabels?: boolean | undefined;
|
|
2590
2516
|
flatLabels?: boolean | undefined;
|
|
2591
2517
|
}) | undefined;
|
|
2592
2518
|
};
|
|
@@ -2599,9 +2525,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2599
2525
|
msgID?: string | undefined;
|
|
2600
2526
|
data: {
|
|
2601
2527
|
polygonId: string;
|
|
2602
|
-
options:
|
|
2603
|
-
legacyLabels?: boolean | undefined;
|
|
2604
|
-
};
|
|
2528
|
+
options: import("../react-native-sdk/src").TFlatLabelPolygonOptions | import("../react-native-sdk/src").TFloatingLabelPolygonOptions;
|
|
2605
2529
|
};
|
|
2606
2530
|
};
|
|
2607
2531
|
ENABLE_BLUE_DOT: {
|
|
@@ -2614,24 +2538,6 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2614
2538
|
msgID?: string | undefined;
|
|
2615
2539
|
data: null;
|
|
2616
2540
|
};
|
|
2617
|
-
ENABLE_BEARING: {
|
|
2618
|
-
msgID?: string | undefined;
|
|
2619
|
-
data: any;
|
|
2620
|
-
};
|
|
2621
|
-
GET_NEAREST_NODE: {
|
|
2622
|
-
msgID?: string | undefined;
|
|
2623
|
-
data: any;
|
|
2624
|
-
};
|
|
2625
|
-
GET_BLUE_DOT_IS_FOLLOWING: {
|
|
2626
|
-
msgID?: string | undefined;
|
|
2627
|
-
data: any;
|
|
2628
|
-
};
|
|
2629
|
-
SET_BLUE_DOT_IS_FOLLOWING: {
|
|
2630
|
-
msgID?: string | undefined;
|
|
2631
|
-
data: {
|
|
2632
|
-
isFollowing: boolean;
|
|
2633
|
-
};
|
|
2634
|
-
};
|
|
2635
2541
|
GET_DIRECTIONS: {
|
|
2636
2542
|
msgID?: string | undefined;
|
|
2637
2543
|
data: {
|
|
@@ -2832,10 +2738,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.type
|
|
|
2832
2738
|
includeHidden?: boolean;
|
|
2833
2739
|
apiGateway?: string;
|
|
2834
2740
|
authorization?: string;
|
|
2835
|
-
/**
|
|
2836
|
-
* @deprecated 2D support will be removed in the future
|
|
2837
|
-
*/
|
|
2838
|
-
do2D?: boolean;
|
|
2839
2741
|
things?: any;
|
|
2840
2742
|
headers?: any;
|
|
2841
2743
|
};
|
|
@@ -2902,7 +2804,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2902
2804
|
mapGroups: typeof MappedinMapGroup;
|
|
2903
2805
|
themes: typeof MappedinTheme;
|
|
2904
2806
|
locationStates: typeof MappedinLocationState;
|
|
2905
|
-
locationRankings: typeof MappedinLocationRankings;
|
|
2906
2807
|
rankings: typeof MappedinRankings;
|
|
2907
2808
|
};
|
|
2908
2809
|
export type TTHINGS = keyof typeof THINGS;
|
|
@@ -2923,15 +2824,11 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2923
2824
|
mapGroups: MappedinMapGroup[];
|
|
2924
2825
|
themes: MappedinTheme[];
|
|
2925
2826
|
locationStates: MappedinLocationState[];
|
|
2926
|
-
/**
|
|
2927
|
-
* @deprecated use polygonRankings instead
|
|
2928
|
-
* TODO: remove when we know that nobody is using this
|
|
2929
|
-
*/
|
|
2930
|
-
locationRankings: MappedinLocationRankings[];
|
|
2931
2827
|
rankings?: MappedinRankings;
|
|
2932
2828
|
/**
|
|
2933
2829
|
* @hidden
|
|
2934
2830
|
* @internal
|
|
2831
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2935
2832
|
*/
|
|
2936
2833
|
_categoriesById?: {
|
|
2937
2834
|
[id: string]: MappedinCategory;
|
|
@@ -2939,6 +2836,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2939
2836
|
/**
|
|
2940
2837
|
* @hidden
|
|
2941
2838
|
* @internal
|
|
2839
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2942
2840
|
*/
|
|
2943
2841
|
_locationsById?: {
|
|
2944
2842
|
[id: string]: MappedinLocation;
|
|
@@ -2946,6 +2844,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2946
2844
|
/**
|
|
2947
2845
|
* @hidden
|
|
2948
2846
|
* @internal
|
|
2847
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2949
2848
|
*/
|
|
2950
2849
|
_vortexesById?: {
|
|
2951
2850
|
[id: string]: MappedinVortex;
|
|
@@ -2953,6 +2852,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2953
2852
|
/**
|
|
2954
2853
|
* @hidden
|
|
2955
2854
|
* @internal
|
|
2855
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2956
2856
|
*/
|
|
2957
2857
|
_mapsById?: {
|
|
2958
2858
|
[id: string]: MappedinMap;
|
|
@@ -2960,6 +2860,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2960
2860
|
/**
|
|
2961
2861
|
* @hidden
|
|
2962
2862
|
* @internal
|
|
2863
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2963
2864
|
*/
|
|
2964
2865
|
_nodesById?: {
|
|
2965
2866
|
[id: string]: MappedinNode;
|
|
@@ -2967,6 +2868,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2967
2868
|
/**
|
|
2968
2869
|
* @hidden
|
|
2969
2870
|
* @internal
|
|
2871
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2970
2872
|
*/
|
|
2971
2873
|
_polygonsById?: {
|
|
2972
2874
|
[id: string]: MappedinPolygon;
|
|
@@ -2974,6 +2876,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2974
2876
|
/**
|
|
2975
2877
|
* @hidden
|
|
2976
2878
|
* @internal
|
|
2879
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2977
2880
|
*/
|
|
2978
2881
|
_eventsById?: {
|
|
2979
2882
|
[id: string]: MappedinEvent;
|
|
@@ -2981,6 +2884,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2981
2884
|
/**
|
|
2982
2885
|
* @hidden
|
|
2983
2886
|
* @internal
|
|
2887
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2984
2888
|
*/
|
|
2985
2889
|
_mapGroupsById?: {
|
|
2986
2890
|
[id: string]: MappedinMapGroup;
|
|
@@ -2988,6 +2892,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2988
2892
|
/**
|
|
2989
2893
|
* @hidden
|
|
2990
2894
|
* @internal
|
|
2895
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2991
2896
|
*/
|
|
2992
2897
|
_locationStatesById?: {
|
|
2993
2898
|
[id: string]: MappedinLocationState;
|
|
@@ -2995,6 +2900,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
2995
2900
|
/**
|
|
2996
2901
|
* @hidden
|
|
2997
2902
|
* @internal
|
|
2903
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
2998
2904
|
*/
|
|
2999
2905
|
_locationRankingsById?: {
|
|
3000
2906
|
[id: string]: MappedinLocationRankings;
|
|
@@ -3002,6 +2908,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3002
2908
|
/**
|
|
3003
2909
|
* @hidden
|
|
3004
2910
|
* @internal
|
|
2911
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3005
2912
|
*/
|
|
3006
2913
|
_rankingsById?: {
|
|
3007
2914
|
[id: string]: MappedinRankings;
|
|
@@ -3009,6 +2916,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3009
2916
|
/**
|
|
3010
2917
|
* @hidden
|
|
3011
2918
|
* @internal
|
|
2919
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3012
2920
|
*/
|
|
3013
2921
|
_categoriesByExternalId?: {
|
|
3014
2922
|
[id: string]: MappedinCategory;
|
|
@@ -3016,6 +2924,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3016
2924
|
/**
|
|
3017
2925
|
* @hidden
|
|
3018
2926
|
* @internal
|
|
2927
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3019
2928
|
*/
|
|
3020
2929
|
_locationsByExternalId?: {
|
|
3021
2930
|
[id: string]: MappedinLocation;
|
|
@@ -3023,6 +2932,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3023
2932
|
/**
|
|
3024
2933
|
* @hidden
|
|
3025
2934
|
* @internal
|
|
2935
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3026
2936
|
*/
|
|
3027
2937
|
_vortexesByExternalId?: {
|
|
3028
2938
|
[id: string]: MappedinVortex;
|
|
@@ -3030,6 +2940,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3030
2940
|
/**
|
|
3031
2941
|
* @hidden
|
|
3032
2942
|
* @internal
|
|
2943
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3033
2944
|
*/
|
|
3034
2945
|
_mapsByExternalId?: {
|
|
3035
2946
|
[id: string]: MappedinMap;
|
|
@@ -3037,6 +2948,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3037
2948
|
/**
|
|
3038
2949
|
* @hidden
|
|
3039
2950
|
* @internal
|
|
2951
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3040
2952
|
*/
|
|
3041
2953
|
_nodesByExternalId?: {
|
|
3042
2954
|
[id: string]: MappedinNode;
|
|
@@ -3044,6 +2956,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3044
2956
|
/**
|
|
3045
2957
|
* @hidden
|
|
3046
2958
|
* @internal
|
|
2959
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3047
2960
|
*/
|
|
3048
2961
|
_polygonsByExternalId?: {
|
|
3049
2962
|
[id: string]: MappedinPolygon;
|
|
@@ -3051,6 +2964,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3051
2964
|
/**
|
|
3052
2965
|
* @hidden
|
|
3053
2966
|
* @internal
|
|
2967
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3054
2968
|
*/
|
|
3055
2969
|
_eventsByExternalId?: {
|
|
3056
2970
|
[id: string]: MappedinEvent;
|
|
@@ -3058,6 +2972,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3058
2972
|
/**
|
|
3059
2973
|
* @hidden
|
|
3060
2974
|
* @internal
|
|
2975
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3061
2976
|
*/
|
|
3062
2977
|
_mapGroupsByExternalId?: {
|
|
3063
2978
|
[id: string]: MappedinMapGroup;
|
|
@@ -3065,6 +2980,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3065
2980
|
/**
|
|
3066
2981
|
* @hidden
|
|
3067
2982
|
* @internal
|
|
2983
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3068
2984
|
*/
|
|
3069
2985
|
_locationStatesByExternalId?: {
|
|
3070
2986
|
[id: string]: MappedinLocationState;
|
|
@@ -3072,6 +2988,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3072
2988
|
/**
|
|
3073
2989
|
* @hidden
|
|
3074
2990
|
* @internal
|
|
2991
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3075
2992
|
*/
|
|
3076
2993
|
_locationRankingsByExternalId?: {
|
|
3077
2994
|
[id: string]: MappedinLocationRankings;
|
|
@@ -3079,6 +2996,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3079
2996
|
/**
|
|
3080
2997
|
* @hidden
|
|
3081
2998
|
* @internal
|
|
2999
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
3082
3000
|
*/
|
|
3083
3001
|
_rankingsByExternalId?: {
|
|
3084
3002
|
[id: string]: MappedinRankings;
|
|
@@ -3181,10 +3099,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
3181
3099
|
*/
|
|
3182
3100
|
get polygons(): MappedinPolygon[];
|
|
3183
3101
|
set polygons(polygons: MappedinPolygon[]);
|
|
3184
|
-
/**
|
|
3185
|
-
* Ranking for this location.
|
|
3186
|
-
*/
|
|
3187
|
-
get rank(): number | null;
|
|
3188
3102
|
/**
|
|
3189
3103
|
* Nodes this Location is attached to.
|
|
3190
3104
|
*
|
|
@@ -3772,6 +3686,21 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirec
|
|
|
3772
3686
|
declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoordinate' {
|
|
3773
3687
|
import { Mappedin, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
3774
3688
|
import type { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
|
|
3689
|
+
export type TMappedinCoordinateOptions = {
|
|
3690
|
+
map: MappedinMap;
|
|
3691
|
+
mappedin: Mappedin;
|
|
3692
|
+
x: number;
|
|
3693
|
+
y: number;
|
|
3694
|
+
lat?: undefined;
|
|
3695
|
+
lon?: undefined;
|
|
3696
|
+
} | {
|
|
3697
|
+
map: MappedinMap;
|
|
3698
|
+
mappedin: Mappedin;
|
|
3699
|
+
x?: undefined;
|
|
3700
|
+
y?: undefined;
|
|
3701
|
+
lat: number;
|
|
3702
|
+
lon: number;
|
|
3703
|
+
};
|
|
3775
3704
|
/**
|
|
3776
3705
|
* A {@link MappedinCoordinate} represents a coordinate on a map, created using lat/lon.
|
|
3777
3706
|
*
|
|
@@ -3789,21 +3718,24 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoord
|
|
|
3789
3718
|
* X coordinate in Mappedin Units
|
|
3790
3719
|
* @property x {number}
|
|
3791
3720
|
*/
|
|
3792
|
-
x: number;
|
|
3721
|
+
get x(): number;
|
|
3793
3722
|
/**
|
|
3794
3723
|
* Y coordinate in Mappedin Units
|
|
3795
3724
|
* @property y {number}
|
|
3796
3725
|
*/
|
|
3797
|
-
y: number;
|
|
3726
|
+
get y(): number;
|
|
3798
3727
|
/**
|
|
3799
3728
|
* Latitude
|
|
3800
3729
|
*/
|
|
3801
|
-
lat: number;
|
|
3730
|
+
get lat(): number;
|
|
3802
3731
|
/**
|
|
3803
3732
|
* Longitude
|
|
3804
3733
|
*/
|
|
3805
|
-
lon: number;
|
|
3806
|
-
|
|
3734
|
+
get lon(): number;
|
|
3735
|
+
/**
|
|
3736
|
+
* @internal
|
|
3737
|
+
*/
|
|
3738
|
+
constructor(options: TMappedinCoordinateOptions);
|
|
3807
3739
|
/**
|
|
3808
3740
|
*
|
|
3809
3741
|
* Calculate distance between a coordinate and a {@link MappedinNode} or {@link MappedinCoordinate}
|
|
@@ -3816,6 +3748,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCoord
|
|
|
3816
3748
|
* Get Nearest Node to Coordinate, which can then be used for navigation
|
|
3817
3749
|
*/
|
|
3818
3750
|
get nearestNode(): MappedinNode;
|
|
3751
|
+
toJSON(): {
|
|
3752
|
+
x: number;
|
|
3753
|
+
y: number;
|
|
3754
|
+
map: string;
|
|
3755
|
+
lat: number;
|
|
3756
|
+
lon: number;
|
|
3757
|
+
};
|
|
3819
3758
|
}
|
|
3820
3759
|
}
|
|
3821
3760
|
|
|
@@ -3887,11 +3826,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavig
|
|
|
3887
3826
|
* Calculate distance between 2 nodes, polygons or locations
|
|
3888
3827
|
*/
|
|
3889
3828
|
distanceTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options: TDirectionToOptions): number;
|
|
3890
|
-
/**
|
|
3891
|
-
*
|
|
3892
|
-
* @deprecated
|
|
3893
|
-
*/
|
|
3894
|
-
directionsToCallback(destination: MappedinNode | MappedinLocation | MappedinPolygon, options: TDirectionToOptions): MappedinDirections | undefined;
|
|
3895
3829
|
}
|
|
3896
3830
|
}
|
|
3897
3831
|
|
|
@@ -4438,6 +4372,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4438
4372
|
};
|
|
4439
4373
|
};
|
|
4440
4374
|
export type TFloatingLabelOptionsInternal = {
|
|
4375
|
+
id: string;
|
|
4441
4376
|
position?: Vector3;
|
|
4442
4377
|
polygon: MappedinPolygon;
|
|
4443
4378
|
polygonHeight?: number;
|
|
@@ -4467,6 +4402,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4467
4402
|
contextConfigured: boolean;
|
|
4468
4403
|
fillText: TDrawFn | undefined;
|
|
4469
4404
|
newStyle: {};
|
|
4405
|
+
static testId: number;
|
|
4470
4406
|
style: TStyle;
|
|
4471
4407
|
setColor: () => void;
|
|
4472
4408
|
clearColor: () => void;
|
|
@@ -4568,7 +4504,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4568
4504
|
map: MappedinMap | null;
|
|
4569
4505
|
bearing: any;
|
|
4570
4506
|
nearestNode: any;
|
|
4571
|
-
error: string | null;
|
|
4572
4507
|
};
|
|
4573
4508
|
export interface IBlueDotCore extends IPubSub {
|
|
4574
4509
|
positionUpdater: IPositionUpdater | null;
|
|
@@ -4603,11 +4538,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4603
4538
|
The direction the user is moving.
|
|
4604
4539
|
*/
|
|
4605
4540
|
bearing: any;
|
|
4606
|
-
/**
|
|
4607
|
-
The reason there's no blue dot available.
|
|
4608
|
-
@deprecated Use state.reason && state.message instead
|
|
4609
|
-
*/
|
|
4610
|
-
error: string | null;
|
|
4611
4541
|
/**
|
|
4612
4542
|
Everything in one object, for convenience.
|
|
4613
4543
|
*/
|
|
@@ -5068,7 +4998,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5068
4998
|
import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
5069
4999
|
import { E_SDK_EVENT_PAYLOAD, TCreateCustomInnerHTMLTooltipOptions, TCreateCustomTooltipOptions, TCreateMarkerOptions, TCreateTextTooltipOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TFloatingLabelPolygonOptions, TMapViewOptions, TPathOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5070
5000
|
import { E_SDK_EVENT, STATE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
5071
|
-
import FloatingLabel from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
5072
5001
|
import Marker from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Marker';
|
|
5073
5002
|
import SmartTooltip from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
5074
5003
|
import Camera from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
@@ -5076,7 +5005,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5076
5005
|
import BlueDotLayer from '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot';
|
|
5077
5006
|
import JourneyLayer from '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey';
|
|
5078
5007
|
import { ThreeJSMarkerHandle } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.MapObject';
|
|
5079
|
-
import { TCreateThreeDMarkerOptions, TFlatLabel, TFlatLabelPolygonOptions, TFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
5008
|
+
import { FloatingLabel, TCreateThreeDMarkerOptions, TFlatLabel, TFlatLabelPolygonOptions, TFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
5080
5009
|
export enum INTERNAL_EVENT {
|
|
5081
5010
|
CAMERA_MOVING = 0,
|
|
5082
5011
|
SET_BLUE_DOT_SIZE_FROM_ZOOM = 1,
|
|
@@ -5400,14 +5329,15 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView' {
|
|
|
5400
5329
|
*/
|
|
5401
5330
|
getPolygonsAtCoordinate(coordinate: MappedinCoordinate, includeNonInteractive?: boolean): MappedinPolygon[];
|
|
5402
5331
|
/**
|
|
5403
|
-
* Destroy instance and
|
|
5332
|
+
* Destroy instance and reclaim memory. Note: this does not destroy the instance of {@link Mappedin}
|
|
5333
|
+
* that was passed in. For applications that require destroying and re-creating the mapView, it is
|
|
5334
|
+
* recommended to keep the {@link Mappedin} object around.
|
|
5404
5335
|
*/
|
|
5405
5336
|
destroy(): void;
|
|
5406
5337
|
}
|
|
5407
5338
|
}
|
|
5408
5339
|
|
|
5409
5340
|
declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
5410
|
-
import Search from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Search';
|
|
5411
5341
|
import Analytics from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Analytics';
|
|
5412
5342
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
|
|
5413
5343
|
import { getVenue, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
@@ -5441,7 +5371,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5441
5371
|
*/
|
|
5442
5372
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
5443
5373
|
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';
|
|
5444
|
-
export {
|
|
5374
|
+
export { getVenue, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, Analytics, MappedinDestinationSet, MARKER_ANCHOR, labelThemes };
|
|
5445
5375
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
5446
5376
|
const setAssetManager: <T extends DefaultAssetManager>(am: T) => void;
|
|
5447
5377
|
/**
|
|
@@ -6183,7 +6113,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
6183
6113
|
rendererDomElement: any;
|
|
6184
6114
|
currentHover: null;
|
|
6185
6115
|
hoverLabel: any;
|
|
6186
|
-
hoverColor:
|
|
6116
|
+
hoverColor: number;
|
|
6187
6117
|
options: {
|
|
6188
6118
|
disableHover: boolean;
|
|
6189
6119
|
};
|
|
@@ -6228,6 +6158,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
6228
6158
|
doHoverEffect: () => void;
|
|
6229
6159
|
onPolygonHoverOut: (polygonId: any) => false | undefined;
|
|
6230
6160
|
onPolygonHoverOver: (polygon: any) => false | undefined;
|
|
6161
|
+
setHoverColor: (color: string | number) => void;
|
|
6231
6162
|
destroy(): void;
|
|
6232
6163
|
}
|
|
6233
6164
|
export default EventSystemLayer;
|
|
@@ -6473,7 +6404,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6473
6404
|
_visibilityLatch: boolean | null;
|
|
6474
6405
|
_objLoadedComplete: boolean;
|
|
6475
6406
|
_objLoaded(object: any): any;
|
|
6476
|
-
_objLoadedMerged(object: any):
|
|
6407
|
+
_objLoadedMerged(object: any): Promise<any>;
|
|
6477
6408
|
enableImageFlipping(polygonId: any, rotation: any): void;
|
|
6478
6409
|
elements: any;
|
|
6479
6410
|
boundingBox: {
|
|
@@ -6593,25 +6524,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6593
6524
|
import { FrameTaskGroup } from "@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.TaskScheduler";
|
|
6594
6525
|
}
|
|
6595
6526
|
|
|
6596
|
-
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Search' {
|
|
6597
|
-
export default Search;
|
|
6598
|
-
/**
|
|
6599
|
-
* A class to access the Mappedin Search API. This will be created for you as part of Mappedin.{{#crossLink "Mappedin/initailize:method"}}{{/crossLink}}, but you can also create one manually.
|
|
6600
|
-
*
|
|
6601
|
-
* @class Search
|
|
6602
|
-
* @type {any}
|
|
6603
|
-
* @param options {Object} A list of configuration options for the search API.
|
|
6604
|
-
@param [options.venue] {String} The venue slug to search for
|
|
6605
|
-
@param [options.key] {String} Your search key
|
|
6606
|
-
@param [options.secret] {String} Your search secret
|
|
6607
|
-
@param [options.smart] {Boolean} Whether the new Smart Search should be used.
|
|
6608
|
-
@param [options.endpoint] {String} The endpoint for search.
|
|
6609
|
-
@param [options.locations] {Array} Array of MappedinLocations for this venue. This is optional, but will enable fallback search.
|
|
6610
|
-
@param [options.categories] {Array} Array of MappedinCategorys for this venue. This is optional, but will enable fallback search.
|
|
6611
|
-
*/
|
|
6612
|
-
let Search: any;
|
|
6613
|
-
}
|
|
6614
|
-
|
|
6615
6527
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager' {
|
|
6616
6528
|
import { Texture } from 'three';
|
|
6617
6529
|
import type { MappedinMap } from '@mappedin/react-native-sdk/core/packages/renderer';
|