@mappedin/react-native-sdk 5.1.4 → 5.1.5
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 +38 -4
- package/dist/index.js +206 -204
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3284,6 +3284,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
3284
3284
|
get totalMarkerSize(): number;
|
|
3285
3285
|
get strategies(): TColliderStrategy[];
|
|
3286
3286
|
getCachedSymbol(orientation: any, textAlign: any, xCoordinate: any): any;
|
|
3287
|
+
invalidate(): void;
|
|
3287
3288
|
colliderDidMount(): void;
|
|
3288
3289
|
colliderDidUpdatePosition(pos: any): void;
|
|
3289
3290
|
setPriority(priority: any): void;
|
|
@@ -3560,6 +3561,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot
|
|
|
3560
3561
|
* @private
|
|
3561
3562
|
*/
|
|
3562
3563
|
constructor(mapView: MapView, core: ICore, eventsLayer: EventSystemLayer);
|
|
3564
|
+
on(eventName: any, fn: any): void;
|
|
3565
|
+
off(eventName: any, fn: any): void;
|
|
3563
3566
|
/**
|
|
3564
3567
|
* Enables Blue Dot. BlueDot then emits {@link TBlueDotStateChange} and {@link TBlueDotPositionUpdate} events via {@link E_BLUEDOT_EVENT}
|
|
3565
3568
|
*/
|
|
@@ -3940,7 +3943,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
3940
3943
|
import type { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode';
|
|
3941
3944
|
import type { MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolygon';
|
|
3942
3945
|
import type { MappedinCategory } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCategory';
|
|
3943
|
-
import { MappedinNavigatable } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
3946
|
+
import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
3944
3947
|
export function getCurrentLocationState(location: MappedinLocation, states: MappedinLocationState[], date?: Date): MappedinLocationState | undefined;
|
|
3945
3948
|
export type TOperationHoursMap = {
|
|
3946
3949
|
[key in string]: TOpeningHours[];
|
|
@@ -4025,6 +4028,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
4025
4028
|
get nodeOperationHours(): TOperationHoursMap;
|
|
4026
4029
|
static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
|
|
4027
4030
|
static fetch(mappedin: Mappedin): Promise<MappedinLocation[]>;
|
|
4031
|
+
/**
|
|
4032
|
+
*
|
|
4033
|
+
* Get Directions to a node, polygon, or location
|
|
4034
|
+
*/
|
|
4035
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4036
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4037
|
+
distanceTo(destination: any, options: any): number;
|
|
4028
4038
|
toJSON(): any;
|
|
4029
4039
|
}
|
|
4030
4040
|
}
|
|
@@ -4033,7 +4043,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolyg
|
|
|
4033
4043
|
import type { Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
|
|
4034
4044
|
import type { MappedinLocation } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
|
|
4035
4045
|
import type { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode';
|
|
4036
|
-
import { MappedinNavigatable } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
4046
|
+
import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
4037
4047
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
|
|
4038
4048
|
/**
|
|
4039
4049
|
* The {@link MappedinPolygon} class represents the 3D shape of a {@link MappedinLocation} on a {{@link MappedinMap}. Polygons have access to Locations they belong to, and any entrances to the Polygon.
|
|
@@ -4151,6 +4161,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolyg
|
|
|
4151
4161
|
} | null;
|
|
4152
4162
|
static hydrate(polygons: any, mappedin: Mappedin): MappedinPolygon[];
|
|
4153
4163
|
static fetch(mappedin: Mappedin): Promise<MappedinPolygon[]>;
|
|
4164
|
+
/**
|
|
4165
|
+
*
|
|
4166
|
+
* Get Directions to a node, polygon, or location
|
|
4167
|
+
*/
|
|
4168
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4169
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4170
|
+
distanceTo(destination: any, options: any): number;
|
|
4154
4171
|
toJSON(): any;
|
|
4155
4172
|
}
|
|
4156
4173
|
}
|
|
@@ -4160,7 +4177,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode'
|
|
|
4160
4177
|
import type { MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolygon';
|
|
4161
4178
|
import type { MappedinLocation } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
|
|
4162
4179
|
import type { TOpeningHours } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.types';
|
|
4163
|
-
import { MappedinNavigatable } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
4180
|
+
import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
|
|
4164
4181
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
|
|
4165
4182
|
/**
|
|
4166
4183
|
* A {@link MappedinNode} represents a position, anchored to a specific {@link MappedinMap}.
|
|
@@ -4227,6 +4244,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode'
|
|
|
4227
4244
|
get polygon(): MappedinPolygon;
|
|
4228
4245
|
static hydrate(nodes: any, mappedin: Mappedin): MappedinNode[];
|
|
4229
4246
|
static fetch(mappedin: Mappedin): Promise<MappedinNode[]>;
|
|
4247
|
+
/**
|
|
4248
|
+
*
|
|
4249
|
+
* Get Directions to a node, polygon, or location
|
|
4250
|
+
*/
|
|
4251
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4252
|
+
directionsTo(destination: any, options?: TDirectionToOptions): any;
|
|
4253
|
+
distanceTo(destination: any, options: any): number;
|
|
4230
4254
|
toJSON(): any;
|
|
4231
4255
|
}
|
|
4232
4256
|
}
|
|
@@ -4486,7 +4510,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue
|
|
|
4486
4510
|
latitude?: number;
|
|
4487
4511
|
logo?: TLogo;
|
|
4488
4512
|
longitude?: number;
|
|
4489
|
-
metadata?: any;
|
|
4490
4513
|
name: string;
|
|
4491
4514
|
operationHours?: TOpeningHours[];
|
|
4492
4515
|
postal: string;
|
|
@@ -4498,6 +4521,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue
|
|
|
4498
4521
|
utcOffset: string;
|
|
4499
4522
|
website: string;
|
|
4500
4523
|
constructor(mappedin: Mappedin, data: any);
|
|
4524
|
+
get metadata(): any;
|
|
4525
|
+
set metadata(value: any);
|
|
4501
4526
|
static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
|
|
4502
4527
|
static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
|
|
4503
4528
|
get isMultiBuilding(): any;
|
|
@@ -5184,6 +5209,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5184
5209
|
};
|
|
5185
5210
|
class FlatLabelController {
|
|
5186
5211
|
#private;
|
|
5212
|
+
mapView: MapView;
|
|
5187
5213
|
constructor(mapView: MapView, core: ICore);
|
|
5188
5214
|
flatLabels: {
|
|
5189
5215
|
[key in MappedinPolygon['id']]: FlatLabel;
|
|
@@ -5214,6 +5240,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5214
5240
|
};
|
|
5215
5241
|
class FloatingLabelController {
|
|
5216
5242
|
#private;
|
|
5243
|
+
mapView: MapView;
|
|
5217
5244
|
constructor(mapView: MapView, core: ICore);
|
|
5218
5245
|
addLabel(polygonOrNode: MappedinPolygon | MappedinNode, text: string, options?: TAddFloatingLabelOptions): FloatingLabel | FloatingLabel[] | null;
|
|
5219
5246
|
removeLabel(polygonOrNode: MappedinPolygon | MappedinNode, bulk?: boolean): void;
|
|
@@ -6032,6 +6059,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-
|
|
|
6032
6059
|
The current zoom level, so new dots can be added at the proper size.
|
|
6033
6060
|
*/
|
|
6034
6061
|
currentX: any;
|
|
6062
|
+
/**
|
|
6063
|
+
* Calculates the new radius given the candidate value as well as other relevant parameters. @see constructor
|
|
6064
|
+
* @param {number} candidateRadius
|
|
6065
|
+
*/
|
|
6066
|
+
computeNewRadius(candidateRadius: number): number;
|
|
6035
6067
|
updateBlueDotSize(): void;
|
|
6036
6068
|
setBlueDotSizeFromZoom(cameraX: any): void;
|
|
6037
6069
|
/**
|
|
@@ -6063,6 +6095,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-
|
|
|
6063
6095
|
blueDots: any[] | undefined;
|
|
6064
6096
|
positionTween: any;
|
|
6065
6097
|
currentPositionLatLon: any;
|
|
6098
|
+
animateBearing(fromBearing: any, toBearing: any): void;
|
|
6099
|
+
setBearing(bearing: any): void;
|
|
6066
6100
|
getBlueDotForMap(mapOrMapId: any): any;
|
|
6067
6101
|
/**
|
|
6068
6102
|
* Remove the 3D blue dot from the maps.
|