@mappedin/react-native-sdk 5.1.3 → 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 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: {
@@ -5173,6 +5193,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
5173
5193
  labelPolygon(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id'], text: string, options?: TAddFlatLabelOptions): FlatLabel;
5174
5194
  removeLabel(polygonOrPolygonId: MappedinPolygon | MappedinPolygon['id']): void;
5175
5195
  setAppearance(polygon: MappedinPolygon, appearance: TFlatLabelAppearance): void;
5196
+ setHoverColorForAll(color: string): void;
5176
5197
  removeAllLabels(): void;
5177
5198
  }
5178
5199
  export default FlatLabelController;
@@ -6610,6 +6631,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
6610
6631
  polyId: any;
6611
6632
  map: any;
6612
6633
  color: any;
6634
+ hoverColor: any;
6613
6635
  baseColor: any;
6614
6636
  hideOnCreate: boolean;
6615
6637
  hoverLabelText: any;
@@ -6627,6 +6649,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
6627
6649
  removeSelf(bulk: any): void;
6628
6650
  doNotCreate: boolean | undefined;
6629
6651
  setColor(textColor: any): void;
6652
+ setHoverColor: (color: any) => void;
6630
6653
  clearColor(): void;
6631
6654
  hide(): void;
6632
6655
  show(): void;