@mappedin/viewer 0.52.3-3235a14.0 → 0.52.3-e96fd64.0
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.
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { Area } from '../../lib/sdk';
|
|
2
2
|
type TAreaMarkerProps = {
|
|
3
3
|
area: Area;
|
|
4
|
+
icon?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Avoid this if you can help it, otherwise make sure to sanitize the HTML.
|
|
7
|
+
* This let's us render stringified SVGs into the marker without using
|
|
8
|
+
* `react-inlinesvg`, because `react-inlinesvg` is async and thus not compatible
|
|
9
|
+
* with `renderToString`.
|
|
10
|
+
*/
|
|
11
|
+
dangerouslySetInnerHTML?: {
|
|
12
|
+
__html: string;
|
|
13
|
+
};
|
|
4
14
|
};
|
|
5
15
|
declare const AreaMarker: React.FC<TAreaMarkerProps>;
|
|
6
16
|
export default AreaMarker;
|
|
@@ -26,8 +26,9 @@ type TGenerateGlobalClassNamesOptions = {
|
|
|
26
26
|
darkMode: boolean;
|
|
27
27
|
departureMode: E_DEPARTURE_MODE;
|
|
28
28
|
safetyMode: boolean;
|
|
29
|
+
areaZoomed: boolean;
|
|
29
30
|
};
|
|
30
|
-
export declare const generateGlobalClassNames: ({ state, selectedPlaces, departures, droppedPinHoverVisible, darkMode, departureMode, safetyMode, }: TGenerateGlobalClassNamesOptions) => string;
|
|
31
|
+
export declare const generateGlobalClassNames: ({ state, selectedPlaces, departures, droppedPinHoverVisible, darkMode, departureMode, safetyMode, areaZoomed, }: TGenerateGlobalClassNamesOptions) => string;
|
|
31
32
|
/**
|
|
32
33
|
* Low level utility to generate class name selectors. Do not use this directly.
|
|
33
34
|
*/
|
|
@@ -129,4 +130,10 @@ export declare const isDepartureMode: (mode: E_DEPARTURE_MODE) => ((...args: any
|
|
|
129
130
|
* {@link generateGlobalClassNames} to be used to apply the correct class names to the root element.
|
|
130
131
|
*/
|
|
131
132
|
export declare const isSafetyMode: (safetyMode: boolean) => ((...args: any) => string);
|
|
133
|
+
/**
|
|
134
|
+
* A utility function returning css that only applies when the camera is zoomed in past the area zoom
|
|
135
|
+
* threshold. Requires {@link generateGlobalClassNames} to be used to apply the correct class names
|
|
136
|
+
* to the root element.
|
|
137
|
+
*/
|
|
138
|
+
export declare const isAreaZoomed: (zoomed: boolean) => ((...args: any) => string);
|
|
132
139
|
export {};
|
|
@@ -20,7 +20,7 @@ declare class MarkersController {
|
|
|
20
20
|
private reactionDisposers;
|
|
21
21
|
private markersVisible;
|
|
22
22
|
private sdkMarkersByKey;
|
|
23
|
-
|
|
23
|
+
hideLabelsInAreas: boolean;
|
|
24
24
|
constructor({ rootStore, mapStore }: {
|
|
25
25
|
rootStore: RootStore;
|
|
26
26
|
mapStore: MapStore;
|