@mappedin/react-native-sdk 5.1.3 → 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 +61 -4
- package/dist/index.js +206 -204
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -995,6 +995,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
995
995
|
* Optional color in hexadecimal string e.g. `#2e2e2e`.
|
|
996
996
|
*/
|
|
997
997
|
color?: string;
|
|
998
|
+
/**
|
|
999
|
+
* Optional hover color in hexadecimal string e.g. `#2e2e2e`.
|
|
1000
|
+
*/
|
|
1001
|
+
hoverColor?: string;
|
|
998
1002
|
/**
|
|
999
1003
|
* Size of the font in pixels.
|
|
1000
1004
|
* @default 12
|
|
@@ -1518,6 +1522,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLa
|
|
|
1518
1522
|
* provided polygon does not have a label already, this is a no-op.
|
|
1519
1523
|
*/
|
|
1520
1524
|
setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): T;
|
|
1525
|
+
/**
|
|
1526
|
+
* Sets the color for hovering over labels
|
|
1527
|
+
*/
|
|
1528
|
+
setHoverColorForAll(color: string): T;
|
|
1521
1529
|
}
|
|
1522
1530
|
export class FlatLabels implements IFlatLabels {
|
|
1523
1531
|
#private;
|
|
@@ -1530,6 +1538,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLa
|
|
|
1530
1538
|
remove(polygon: MappedinPolygon): void;
|
|
1531
1539
|
removeAll(): void;
|
|
1532
1540
|
setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): void;
|
|
1541
|
+
setHoverColorForAll(color: string): void;
|
|
1533
1542
|
}
|
|
1534
1543
|
}
|
|
1535
1544
|
|
|
@@ -1798,6 +1807,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
|
1798
1807
|
FLOATING_LABEL_ALL_LOCATIONS = "FLOATING_LABEL_ALL_LOCATIONS",
|
|
1799
1808
|
REMOVE_ALL_FLAT_LABELS = "REMOVE_ALL_FLAT_LABELS",
|
|
1800
1809
|
REMOVE_ALL_FLOATING_LABELS = "REMOVE_ALL_FLOATING_LABELS",
|
|
1810
|
+
SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL = "SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL",
|
|
1801
1811
|
ADD_FLAT_LABEL = "ADD_FLAT_LABEL",
|
|
1802
1812
|
ADD_FLOATING_LABEL = "ADD_FLOATING_LABEL",
|
|
1803
1813
|
REMOVE_FLAT_LABEL = "REMOVE_FLAT_LABEL",
|
|
@@ -2059,6 +2069,9 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2059
2069
|
text: string;
|
|
2060
2070
|
options?: TAddFlatLabelOptions;
|
|
2061
2071
|
};
|
|
2072
|
+
[EVENT.SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL]: {
|
|
2073
|
+
color: string;
|
|
2074
|
+
};
|
|
2062
2075
|
[EVENT.ADD_FLOATING_LABEL]: {
|
|
2063
2076
|
polygonOrNode: TSerializedPolygon | TSerializedNode;
|
|
2064
2077
|
text: string;
|
|
@@ -2318,6 +2331,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Core.interface
|
|
|
2318
2331
|
minZoom?: number;
|
|
2319
2332
|
padding?: TPadding;
|
|
2320
2333
|
points?: any[];
|
|
2334
|
+
callback: () => void;
|
|
2321
2335
|
};
|
|
2322
2336
|
export interface ICore {
|
|
2323
2337
|
new (container: HTMLElement, venue: Mappedin, options?: TMapViewOptions): ICore;
|
|
@@ -2818,6 +2832,12 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2818
2832
|
options?: import("../react-native-sdk/src").TAddFlatLabelOptions | undefined;
|
|
2819
2833
|
};
|
|
2820
2834
|
};
|
|
2835
|
+
SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL: {
|
|
2836
|
+
msgID?: string | undefined;
|
|
2837
|
+
data: {
|
|
2838
|
+
color: string;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2821
2841
|
ADD_FLOATING_LABEL: {
|
|
2822
2842
|
msgID?: string | undefined;
|
|
2823
2843
|
data: {
|
|
@@ -3264,6 +3284,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
3264
3284
|
get totalMarkerSize(): number;
|
|
3265
3285
|
get strategies(): TColliderStrategy[];
|
|
3266
3286
|
getCachedSymbol(orientation: any, textAlign: any, xCoordinate: any): any;
|
|
3287
|
+
invalidate(): void;
|
|
3267
3288
|
colliderDidMount(): void;
|
|
3268
3289
|
colliderDidUpdatePosition(pos: any): void;
|
|
3269
3290
|
setPriority(priority: any): void;
|
|
@@ -3540,6 +3561,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot
|
|
|
3540
3561
|
* @private
|
|
3541
3562
|
*/
|
|
3542
3563
|
constructor(mapView: MapView, core: ICore, eventsLayer: EventSystemLayer);
|
|
3564
|
+
on(eventName: any, fn: any): void;
|
|
3565
|
+
off(eventName: any, fn: any): void;
|
|
3543
3566
|
/**
|
|
3544
3567
|
* Enables Blue Dot. BlueDot then emits {@link TBlueDotStateChange} and {@link TBlueDotPositionUpdate} events via {@link E_BLUEDOT_EVENT}
|
|
3545
3568
|
*/
|
|
@@ -3920,7 +3943,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
3920
3943
|
import type { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode';
|
|
3921
3944
|
import type { MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolygon';
|
|
3922
3945
|
import type { MappedinCategory } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinCategory';
|
|
3923
|
-
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';
|
|
3924
3947
|
export function getCurrentLocationState(location: MappedinLocation, states: MappedinLocationState[], date?: Date): MappedinLocationState | undefined;
|
|
3925
3948
|
export type TOperationHoursMap = {
|
|
3926
3949
|
[key in string]: TOpeningHours[];
|
|
@@ -4005,6 +4028,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
4005
4028
|
get nodeOperationHours(): TOperationHoursMap;
|
|
4006
4029
|
static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
|
|
4007
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;
|
|
4008
4038
|
toJSON(): any;
|
|
4009
4039
|
}
|
|
4010
4040
|
}
|
|
@@ -4013,7 +4043,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolyg
|
|
|
4013
4043
|
import type { Mappedin } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin';
|
|
4014
4044
|
import type { MappedinLocation } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
|
|
4015
4045
|
import type { MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode';
|
|
4016
|
-
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';
|
|
4017
4047
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
|
|
4018
4048
|
/**
|
|
4019
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.
|
|
@@ -4131,6 +4161,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolyg
|
|
|
4131
4161
|
} | null;
|
|
4132
4162
|
static hydrate(polygons: any, mappedin: Mappedin): MappedinPolygon[];
|
|
4133
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;
|
|
4134
4171
|
toJSON(): any;
|
|
4135
4172
|
}
|
|
4136
4173
|
}
|
|
@@ -4140,7 +4177,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode'
|
|
|
4140
4177
|
import type { MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinPolygon';
|
|
4141
4178
|
import type { MappedinLocation } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
|
|
4142
4179
|
import type { TOpeningHours } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.types';
|
|
4143
|
-
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';
|
|
4144
4181
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinMap';
|
|
4145
4182
|
/**
|
|
4146
4183
|
* A {@link MappedinNode} represents a position, anchored to a specific {@link MappedinMap}.
|
|
@@ -4207,6 +4244,13 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNode'
|
|
|
4207
4244
|
get polygon(): MappedinPolygon;
|
|
4208
4245
|
static hydrate(nodes: any, mappedin: Mappedin): MappedinNode[];
|
|
4209
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;
|
|
4210
4254
|
toJSON(): any;
|
|
4211
4255
|
}
|
|
4212
4256
|
}
|
|
@@ -4466,7 +4510,6 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue
|
|
|
4466
4510
|
latitude?: number;
|
|
4467
4511
|
logo?: TLogo;
|
|
4468
4512
|
longitude?: number;
|
|
4469
|
-
metadata?: any;
|
|
4470
4513
|
name: string;
|
|
4471
4514
|
operationHours?: TOpeningHours[];
|
|
4472
4515
|
postal: string;
|
|
@@ -4478,6 +4521,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue
|
|
|
4478
4521
|
utcOffset: string;
|
|
4479
4522
|
website: string;
|
|
4480
4523
|
constructor(mappedin: Mappedin, data: any);
|
|
4524
|
+
get metadata(): any;
|
|
4525
|
+
set metadata(value: any);
|
|
4481
4526
|
static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
|
|
4482
4527
|
static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
|
|
4483
4528
|
get isMultiBuilding(): any;
|
|
@@ -5164,6 +5209,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5164
5209
|
};
|
|
5165
5210
|
class FlatLabelController {
|
|
5166
5211
|
#private;
|
|
5212
|
+
mapView: MapView;
|
|
5167
5213
|
constructor(mapView: MapView, core: ICore);
|
|
5168
5214
|
flatLabels: {
|
|
5169
5215
|
[key in MappedinPolygon['id']]: FlatLabel;
|
|
@@ -5173,6 +5219,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5173
5219
|
labelPolygon(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id'], text: string, options?: TAddFlatLabelOptions): FlatLabel;
|
|
5174
5220
|
removeLabel(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id']): void;
|
|
5175
5221
|
setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): void;
|
|
5222
|
+
setHoverColorForAll(color: string): void;
|
|
5176
5223
|
removeAllLabels(): void;
|
|
5177
5224
|
}
|
|
5178
5225
|
export default FlatLabelController;
|
|
@@ -5193,6 +5240,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5193
5240
|
};
|
|
5194
5241
|
class FloatingLabelController {
|
|
5195
5242
|
#private;
|
|
5243
|
+
mapView: MapView;
|
|
5196
5244
|
constructor(mapView: MapView, core: ICore);
|
|
5197
5245
|
addLabel(polygonOrNode: MappedinPolygon | MappedinNode, text: string, options?: TAddFloatingLabelOptions): FloatingLabel | FloatingLabel[] | null;
|
|
5198
5246
|
removeLabel(polygonOrNode: MappedinPolygon | MappedinNode, bulk?: boolean): void;
|
|
@@ -6011,6 +6059,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-
|
|
|
6011
6059
|
The current zoom level, so new dots can be added at the proper size.
|
|
6012
6060
|
*/
|
|
6013
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;
|
|
6014
6067
|
updateBlueDotSize(): void;
|
|
6015
6068
|
setBlueDotSizeFromZoom(cameraX: any): void;
|
|
6016
6069
|
/**
|
|
@@ -6042,6 +6095,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-
|
|
|
6042
6095
|
blueDots: any[] | undefined;
|
|
6043
6096
|
positionTween: any;
|
|
6044
6097
|
currentPositionLatLon: any;
|
|
6098
|
+
animateBearing(fromBearing: any, toBearing: any): void;
|
|
6099
|
+
setBearing(bearing: any): void;
|
|
6045
6100
|
getBlueDotForMap(mapOrMapId: any): any;
|
|
6046
6101
|
/**
|
|
6047
6102
|
* Remove the 3D blue dot from the maps.
|
|
@@ -6610,6 +6665,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6610
6665
|
polyId: any;
|
|
6611
6666
|
map: any;
|
|
6612
6667
|
color: any;
|
|
6668
|
+
hoverColor: any;
|
|
6613
6669
|
baseColor: any;
|
|
6614
6670
|
hideOnCreate: boolean;
|
|
6615
6671
|
hoverLabelText: any;
|
|
@@ -6627,6 +6683,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6627
6683
|
removeSelf(bulk: any): void;
|
|
6628
6684
|
doNotCreate: boolean | undefined;
|
|
6629
6685
|
setColor(textColor: any): void;
|
|
6686
|
+
setHoverColor: (color: any) => void;
|
|
6630
6687
|
clearColor(): void;
|
|
6631
6688
|
hide(): void;
|
|
6632
6689
|
show(): void;
|