@mappedin/react-native-sdk 5.1.2 → 5.1.4
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 +40 -11
- package/dist/index.js +252 -252
- 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;
|
|
@@ -2452,6 +2466,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Core.interface
|
|
|
2452
2466
|
x: number;
|
|
2453
2467
|
y: number;
|
|
2454
2468
|
}, mapClass?: MappedinMap): MappedinCoordinate;
|
|
2469
|
+
/**
|
|
2470
|
+
* Converts a 2D x,y screen position into a 3D MappedinCoordinate using projection
|
|
2471
|
+
*/
|
|
2472
|
+
convertScreenCoordinateToMapCoordinate(x: number, y: number, map: MappedinMap): MappedinCoordinate;
|
|
2455
2473
|
setPadding(padding: {
|
|
2456
2474
|
top: number;
|
|
2457
2475
|
left: number;
|
|
@@ -2678,9 +2696,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2678
2696
|
msgID?: string | undefined;
|
|
2679
2697
|
data: {
|
|
2680
2698
|
venueData: string;
|
|
2681
|
-
format: "jsonstring";
|
|
2682
|
-
* Emitting a message and waiting for a reponse, via a promise
|
|
2683
|
-
* @hidden
|
|
2699
|
+
format: "jsonstring";
|
|
2684
2700
|
showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
|
|
2685
2701
|
prepareSearch?: boolean | undefined;
|
|
2686
2702
|
searchOptions?: Partial<import("../react-native-sdk/src").TMappedinOfflineSearchAllOptions> | undefined;
|
|
@@ -2816,6 +2832,12 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
2816
2832
|
options?: import("../react-native-sdk/src").TAddFlatLabelOptions | undefined;
|
|
2817
2833
|
};
|
|
2818
2834
|
};
|
|
2835
|
+
SET_FLAT_LABEL_HOVER_COLOR_FOR_ALL: {
|
|
2836
|
+
msgID?: string | undefined;
|
|
2837
|
+
data: {
|
|
2838
|
+
color: string;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2819
2841
|
ADD_FLOATING_LABEL: {
|
|
2820
2842
|
msgID?: string | undefined;
|
|
2821
2843
|
data: {
|
|
@@ -3645,7 +3667,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin' {
|
|
|
3645
3667
|
import { MappedinTheme } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinTheme';
|
|
3646
3668
|
import { MappedinVenue } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVenue';
|
|
3647
3669
|
import { MappedinVortex } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinVortex';
|
|
3648
|
-
import { IAnalytics } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.
|
|
3670
|
+
import { IAnalytics } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.CustomerAnalytics';
|
|
3649
3671
|
export const defaultOptions: TGetVenueOptionsInternal & TGetVenueOptions;
|
|
3650
3672
|
export enum MappedinCollectionType {
|
|
3651
3673
|
CATEGORY = "categories",
|
|
@@ -3961,6 +3983,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocat
|
|
|
3961
3983
|
tags?: string[];
|
|
3962
3984
|
externalId?: string;
|
|
3963
3985
|
showLabelWhenImagePresent?: boolean;
|
|
3986
|
+
showSmartLabelWhenImagePresent?: boolean;
|
|
3964
3987
|
picture?: TPicture;
|
|
3965
3988
|
operationHours?: TOpeningHours[] | undefined;
|
|
3966
3989
|
siblingGroups?: TSiblingGroup[] | undefined;
|
|
@@ -5170,6 +5193,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
|
|
|
5170
5193
|
labelPolygon(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id'], text: string, options?: TAddFlatLabelOptions): FlatLabel;
|
|
5171
5194
|
removeLabel(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id']): void;
|
|
5172
5195
|
setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): void;
|
|
5196
|
+
setHoverColorForAll(color: string): void;
|
|
5173
5197
|
removeAllLabels(): void;
|
|
5174
5198
|
}
|
|
5175
5199
|
export default FlatLabelController;
|
|
@@ -6087,7 +6111,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
6087
6111
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
6088
6112
|
import { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/Core.interface';
|
|
6089
6113
|
import BlueDotManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/blue-dot-manager';
|
|
6090
|
-
export const raycaster: any;
|
|
6091
6114
|
class EventSystemLayer {
|
|
6092
6115
|
mapView: MapView;
|
|
6093
6116
|
core: ICore;
|
|
@@ -6103,11 +6126,15 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/EventSy
|
|
|
6103
6126
|
constructor(mapView: MapView, core: ICore);
|
|
6104
6127
|
setBlueDotManager: (blueDotManager: any) => void;
|
|
6105
6128
|
touchCount: number;
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6129
|
+
zoomOut(): void;
|
|
6130
|
+
zoomIn(event: any): void;
|
|
6131
|
+
onPointerMove: (event: any) => void;
|
|
6132
|
+
onPointerUp: (event: any) => void;
|
|
6133
|
+
/**
|
|
6134
|
+
* We've confirmed that a map click has occured, so handle that here
|
|
6135
|
+
*/
|
|
6136
|
+
handleMapClick(event: any): void;
|
|
6137
|
+
onPointerDown: (event: any) => void;
|
|
6111
6138
|
incrementTouches: (event: any) => void;
|
|
6112
6139
|
decrementTouches: (event: any) => void;
|
|
6113
6140
|
clearMouse: () => void;
|
|
@@ -6453,7 +6480,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/MappedinTheme
|
|
|
6453
6480
|
}
|
|
6454
6481
|
}
|
|
6455
6482
|
|
|
6456
|
-
declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.
|
|
6483
|
+
declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.CustomerAnalytics' {
|
|
6457
6484
|
import { MappedinCategory, MappedinLocation } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6458
6485
|
type AnalyticsOptions = {
|
|
6459
6486
|
clientId?: string;
|
|
@@ -6604,6 +6631,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6604
6631
|
polyId: any;
|
|
6605
6632
|
map: any;
|
|
6606
6633
|
color: any;
|
|
6634
|
+
hoverColor: any;
|
|
6607
6635
|
baseColor: any;
|
|
6608
6636
|
hideOnCreate: boolean;
|
|
6609
6637
|
hoverLabelText: any;
|
|
@@ -6621,6 +6649,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
6621
6649
|
removeSelf(bulk: any): void;
|
|
6622
6650
|
doNotCreate: boolean | undefined;
|
|
6623
6651
|
setColor(textColor: any): void;
|
|
6652
|
+
setHoverColor: (color: any) => void;
|
|
6624
6653
|
clearColor(): void;
|
|
6625
6654
|
hide(): void;
|
|
6626
6655
|
show(): void;
|