@evergis/react 3.1.5 → 3.1.7
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/LICENSE +2 -2
- package/README.md +1 -29
- package/dist/assets/index-CTzhzVha.css +90 -0
- package/dist/assets/react.esm-CTzhzVha.css +90 -0
- package/dist/components/ErrorBoundary/index.d.ts +12 -12
- package/dist/components/ErrorBoundary/types.d.ts +7 -7
- package/dist/components/Layer/Layer.d.ts +3 -3
- package/dist/components/Layer/RasterLayer.d.ts +3 -3
- package/dist/components/Layer/VectorLayer.d.ts +3 -3
- package/dist/components/Layer/constants.d.ts +5 -137
- package/dist/components/Layer/index.d.ts +3 -3
- package/dist/components/Layer/types.d.ts +12 -12
- package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -3
- package/dist/components/Map/Map.d.ts +3 -5
- package/dist/components/Map/index.d.ts +2 -2
- package/dist/components/Map/styled.d.ts +4 -4
- package/dist/components/Map/types.d.ts +8 -9
- package/dist/components/index.d.ts +3 -3
- package/dist/contexts/MapContext/MapContext.d.ts +2 -2
- package/dist/contexts/MapContext/MapProvider.d.ts +3 -3
- package/dist/contexts/MapContext/index.d.ts +3 -3
- package/dist/contexts/MapContext/types.d.ts +31 -31
- package/dist/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -2
- package/dist/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -3
- package/dist/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -2
- package/dist/contexts/ServerNotificationsContext/index.d.ts +3 -3
- package/dist/contexts/ServerNotificationsContext/types.d.ts +12 -12
- package/dist/contexts/index.d.ts +2 -2
- package/dist/core/classification/findAttributeInExpression.d.ts +2 -2
- package/dist/core/classification/getActualExtrusionHeight.d.ts +2 -2
- package/dist/core/classification/index.d.ts +3 -3
- package/dist/core/classification/parseClientStyle.d.ts +2 -2
- package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -3
- package/dist/core/feature/index.d.ts +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/dist/react.esm.d.ts +99 -0
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/map/index.d.ts +5 -5
- package/dist/hooks/map/useMapContext.d.ts +1 -1
- package/dist/hooks/map/useMapDraw/customModes.d.ts +7 -7
- package/dist/hooks/map/useMapDraw/customStyles.d.ts +58 -58
- package/dist/hooks/map/useMapDraw/index.d.ts +1 -1
- package/dist/hooks/map/useRedrawLayer.d.ts +1 -1
- package/dist/hooks/map/useZoomToFeatures.d.ts +2 -2
- package/dist/hooks/map/useZoomToPoint.d.ts +1 -1
- package/dist/hooks/serverNotifications/index.d.ts +1 -1
- package/dist/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -1
- package/dist/hooks/useDebouncedCallback.d.ts +1 -1
- package/dist/hooks/useToggle.d.ts +1 -1
- package/dist/hooks/useWindowResize.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7963 -5
- package/dist/index.js.map +1 -0
- package/dist/react.esm.js +7792 -796
- package/dist/react.esm.js.map +1 -1
- package/dist/src/components/ErrorBoundary/index.d.ts +12 -0
- package/dist/src/components/ErrorBoundary/types.d.ts +7 -0
- package/dist/src/components/Layer/Layer.d.ts +3 -0
- package/dist/src/components/Layer/RasterLayer.d.ts +3 -0
- package/dist/src/components/Layer/VectorLayer.d.ts +3 -0
- package/dist/src/components/Layer/constants.d.ts +5 -0
- package/dist/src/components/Layer/index.d.ts +3 -0
- package/dist/src/components/Layer/types.d.ts +12 -0
- package/dist/src/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -0
- package/dist/src/components/Map/Map.d.ts +3 -0
- package/dist/src/components/Map/index.d.ts +2 -0
- package/dist/src/components/Map/styled.d.ts +4 -0
- package/dist/src/components/Map/types.d.ts +8 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/contexts/MapContext/MapContext.d.ts +2 -0
- package/dist/src/contexts/MapContext/MapProvider.d.ts +3 -0
- package/dist/src/contexts/MapContext/index.d.ts +3 -0
- package/dist/src/contexts/MapContext/types.d.ts +31 -0
- package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -0
- package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -0
- package/dist/src/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -0
- package/dist/src/contexts/ServerNotificationsContext/index.d.ts +3 -0
- package/dist/src/contexts/ServerNotificationsContext/types.d.ts +12 -0
- package/dist/src/contexts/index.d.ts +2 -0
- package/dist/src/core/classification/findAttributeInExpression.d.ts +2 -0
- package/dist/src/core/classification/getActualExtrusionHeight.d.ts +2 -0
- package/dist/src/core/classification/index.d.ts +3 -0
- package/dist/src/core/classification/parseClientStyle.d.ts +2 -0
- package/dist/src/core/feature/convertSpToTurfFeature.d.ts +3 -0
- package/dist/src/core/feature/index.d.ts +1 -0
- package/dist/src/core/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts +5 -0
- package/dist/src/hooks/map/index.d.ts +5 -0
- package/dist/src/hooks/map/useMapContext.d.ts +1 -0
- package/dist/src/hooks/map/useMapDraw/customModes.d.ts +7 -0
- package/dist/src/hooks/map/useMapDraw/customStyles.d.ts +58 -0
- package/dist/src/hooks/map/useMapDraw/index.d.ts +1 -0
- package/dist/src/hooks/map/useRedrawLayer.d.ts +1 -0
- package/dist/src/hooks/map/useZoomToFeatures.d.ts +2 -0
- package/dist/src/hooks/map/useZoomToPoint.d.ts +1 -0
- package/dist/src/hooks/serverNotifications/index.d.ts +1 -0
- package/dist/src/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -0
- package/dist/src/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/src/hooks/useToggle.d.ts +1 -0
- package/dist/src/hooks/useWindowResize.d.ts +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/types/attribute.d.ts +20 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/styling.d.ts +15 -0
- package/dist/src/utils/date.d.ts +16 -0
- package/dist/src/utils/debounce.d.ts +1 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/isNumeric.d.ts +1 -0
- package/dist/src/utils/isObject.d.ts +1 -0
- package/dist/types/attribute.d.ts +20 -20
- package/dist/types/index.d.ts +2 -2
- package/dist/types/styling.d.ts +15 -15
- package/dist/utils/date.d.ts +16 -16
- package/dist/utils/debounce.d.ts +1 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/isNumeric.d.ts +1 -1
- package/dist/utils/isObject.d.ts +1 -1
- package/package.json +18 -37
- package/dist/jest.config.d.ts +0 -11
- package/dist/react.cjs.development.js +0 -973
- package/dist/react.cjs.development.js.map +0 -1
- package/dist/react.cjs.production.min.js +0 -2
- package/dist/react.cjs.production.min.js.map +0 -1
|
@@ -1,137 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"circle-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
7
|
-
"circle-blur"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
8
|
-
"circle-blur-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
9
|
-
"circle-opacity"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
10
|
-
"circle-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
11
|
-
"circle-translate"?: import("mapbox-gl").PropertyValueSpecification<[number, number]>;
|
|
12
|
-
"circle-translate-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
13
|
-
"circle-translate-anchor"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
14
|
-
"circle-pitch-scale"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
15
|
-
"circle-pitch-alignment"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
16
|
-
"circle-stroke-width"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
17
|
-
"circle-stroke-width-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
18
|
-
"circle-stroke-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
19
|
-
"circle-stroke-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
20
|
-
"circle-stroke-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
21
|
-
"circle-stroke-opacity"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
22
|
-
"circle-stroke-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
23
|
-
"circle-emissive-strength"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
24
|
-
"circle-emissive-strength-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
25
|
-
};
|
|
26
|
-
export declare const DEFAULT_FILL_PAINT: {
|
|
27
|
-
"fill-antialias"?: import("mapbox-gl").PropertyValueSpecification<boolean>;
|
|
28
|
-
"fill-opacity"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
29
|
-
"fill-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
30
|
-
"fill-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
31
|
-
"fill-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
32
|
-
"fill-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
33
|
-
"fill-outline-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
34
|
-
"fill-outline-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
35
|
-
"fill-outline-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
36
|
-
"fill-translate"?: import("mapbox-gl").PropertyValueSpecification<[number, number]>;
|
|
37
|
-
"fill-translate-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
38
|
-
"fill-translate-anchor"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
39
|
-
"fill-pattern"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
40
|
-
"fill-pattern-cross-fade"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
41
|
-
"fill-emissive-strength"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
42
|
-
"fill-emissive-strength-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
43
|
-
"fill-z-offset"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
44
|
-
"fill-z-offset-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
45
|
-
"fill-bridge-guard-rail-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
46
|
-
"fill-bridge-guard-rail-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
47
|
-
"fill-bridge-guard-rail-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
48
|
-
"fill-tunnel-structure-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
49
|
-
"fill-tunnel-structure-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
50
|
-
"fill-tunnel-structure-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
51
|
-
};
|
|
52
|
-
export declare const DEFAULT_FILL_EXTRUSION_PAINT: {
|
|
53
|
-
"fill-extrusion-opacity"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
54
|
-
"fill-extrusion-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
55
|
-
"fill-extrusion-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
56
|
-
"fill-extrusion-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
57
|
-
"fill-extrusion-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
58
|
-
"fill-extrusion-translate"?: import("mapbox-gl").PropertyValueSpecification<[number, number]>;
|
|
59
|
-
"fill-extrusion-translate-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
60
|
-
"fill-extrusion-translate-anchor"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
61
|
-
"fill-extrusion-pattern"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
62
|
-
"fill-extrusion-pattern-cross-fade"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
63
|
-
"fill-extrusion-height"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
64
|
-
"fill-extrusion-height-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
65
|
-
"fill-extrusion-base"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
66
|
-
"fill-extrusion-base-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
67
|
-
"fill-extrusion-height-alignment"?: "terrain" | "flat";
|
|
68
|
-
"fill-extrusion-base-alignment"?: "terrain" | "flat";
|
|
69
|
-
"fill-extrusion-vertical-gradient"?: import("mapbox-gl").PropertyValueSpecification<boolean>;
|
|
70
|
-
"fill-extrusion-ambient-occlusion-intensity"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
71
|
-
"fill-extrusion-ambient-occlusion-intensity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
72
|
-
"fill-extrusion-ambient-occlusion-radius"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
73
|
-
"fill-extrusion-ambient-occlusion-radius-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
74
|
-
"fill-extrusion-ambient-occlusion-wall-radius"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
75
|
-
"fill-extrusion-ambient-occlusion-wall-radius-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
76
|
-
"fill-extrusion-ambient-occlusion-ground-radius"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
77
|
-
"fill-extrusion-ambient-occlusion-ground-radius-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
78
|
-
"fill-extrusion-ambient-occlusion-ground-attenuation"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
79
|
-
"fill-extrusion-ambient-occlusion-ground-attenuation-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
80
|
-
"fill-extrusion-flood-light-color"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
81
|
-
"fill-extrusion-flood-light-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
82
|
-
"fill-extrusion-flood-light-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
83
|
-
"fill-extrusion-flood-light-intensity"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
84
|
-
"fill-extrusion-flood-light-intensity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
85
|
-
"fill-extrusion-flood-light-wall-radius"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
86
|
-
"fill-extrusion-flood-light-wall-radius-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
87
|
-
"fill-extrusion-flood-light-ground-radius"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
88
|
-
"fill-extrusion-flood-light-ground-radius-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
89
|
-
"fill-extrusion-flood-light-ground-attenuation"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
90
|
-
"fill-extrusion-flood-light-ground-attenuation-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
91
|
-
"fill-extrusion-vertical-scale"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
92
|
-
"fill-extrusion-vertical-scale-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
93
|
-
"fill-extrusion-rounded-roof"?: import("mapbox-gl").PropertyValueSpecification<boolean>;
|
|
94
|
-
"fill-extrusion-cutoff-fade-range"?: import("mapbox-gl").ExpressionSpecification;
|
|
95
|
-
"fill-extrusion-emissive-strength"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
96
|
-
"fill-extrusion-emissive-strength-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
97
|
-
"fill-extrusion-line-width"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
98
|
-
"fill-extrusion-line-width-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
99
|
-
"fill-extrusion-cast-shadows"?: boolean;
|
|
100
|
-
};
|
|
101
|
-
export declare const DEFAULT_LINE_PAINT: {
|
|
102
|
-
"line-opacity"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
103
|
-
"line-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
104
|
-
"line-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
105
|
-
"line-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
106
|
-
"line-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
107
|
-
"line-translate"?: import("mapbox-gl").PropertyValueSpecification<[number, number]>;
|
|
108
|
-
"line-translate-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
109
|
-
"line-translate-anchor"?: import("mapbox-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
110
|
-
"line-width"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
111
|
-
"line-width-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
112
|
-
"line-gap-width"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
113
|
-
"line-gap-width-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
114
|
-
"line-offset"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
115
|
-
"line-offset-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
116
|
-
"line-blur"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
117
|
-
"line-blur-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
118
|
-
"line-dasharray"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number[]>;
|
|
119
|
-
"line-pattern"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
120
|
-
"line-pattern-cross-fade"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
121
|
-
"line-gradient"?: import("mapbox-gl").ExpressionSpecification;
|
|
122
|
-
"line-gradient-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
123
|
-
"line-trim-offset"?: [number, number];
|
|
124
|
-
"line-trim-fade-range"?: import("mapbox-gl").PropertyValueSpecification<[number, number]>;
|
|
125
|
-
"line-trim-color"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
126
|
-
"line-trim-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
127
|
-
"line-trim-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
128
|
-
"line-emissive-strength"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
129
|
-
"line-emissive-strength-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
130
|
-
"line-border-width"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<number>;
|
|
131
|
-
"line-border-width-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
132
|
-
"line-border-color"?: import("mapbox-gl").DataDrivenPropertyValueSpecification<string>;
|
|
133
|
-
"line-border-color-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
134
|
-
"line-border-color-use-theme"?: import("mapbox-gl").PropertyValueSpecification<string>;
|
|
135
|
-
"line-occlusion-opacity"?: import("mapbox-gl").PropertyValueSpecification<number>;
|
|
136
|
-
"line-occlusion-opacity-transition"?: import("mapbox-gl").TransitionSpecification;
|
|
137
|
-
};
|
|
1
|
+
import { CirclePaint, FillPaint, FillExtrusionPaint, LinePaint } from 'mapbox-gl';
|
|
2
|
+
export declare const DEFAULT_CIRCLE_PAINT: CirclePaint;
|
|
3
|
+
export declare const DEFAULT_FILL_PAINT: FillPaint;
|
|
4
|
+
export declare const DEFAULT_FILL_EXTRUSION_PAINT: FillExtrusionPaint;
|
|
5
|
+
export declare const DEFAULT_LINE_PAINT: LinePaint;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './Layer';
|
|
3
|
+
export * from './types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EffectCallback } from
|
|
2
|
-
import { FeatureLayerServiceInfoDc, QueryLayerServiceInfoDc } from
|
|
3
|
-
import { ClientStyle, ClientStyleItem } from
|
|
4
|
-
export interface LayerProps {
|
|
5
|
-
tileUrl: string;
|
|
6
|
-
layer?: FeatureLayerServiceInfoDc | QueryLayerServiceInfoDc;
|
|
7
|
-
layerType?: string;
|
|
8
|
-
visible?: boolean;
|
|
9
|
-
beforeId?: string;
|
|
10
|
-
getLayerTempStyle?: ((layerName: string, type: ClientStyleItem["type"]) => Pick<ClientStyleItem, "layout" | "paint"> & Pick<ClientStyle, "settings">);
|
|
11
|
-
onMount?: EffectCallback;
|
|
12
|
-
}
|
|
1
|
+
import { EffectCallback } from '../../../node_modules/@types/react';
|
|
2
|
+
import { FeatureLayerServiceInfoDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
|
+
import { ClientStyle, ClientStyleItem } from '../../types';
|
|
4
|
+
export interface LayerProps {
|
|
5
|
+
tileUrl: string;
|
|
6
|
+
layer?: FeatureLayerServiceInfoDc | QueryLayerServiceInfoDc;
|
|
7
|
+
layerType?: string;
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
beforeId?: string;
|
|
10
|
+
getLayerTempStyle?: ((layerName: string, type: ClientStyleItem["type"]) => Pick<ClientStyleItem, "layout" | "paint"> & Pick<ClientStyle, "settings">);
|
|
11
|
+
onMount?: EffectCallback;
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GeometryType } from
|
|
2
|
-
import { ClientStyleItem } from
|
|
3
|
-
export declare const getClientStyleItemPrefixSuffix: (geometryType: GeometryType, type: ClientStyleItem["type"]) => [string, string];
|
|
1
|
+
import { GeometryType } from '@evergis/api';
|
|
2
|
+
import { ClientStyleItem } from '../../../types';
|
|
3
|
+
export declare const getClientStyleItemPrefixSuffix: (geometryType: GeometryType, type: ClientStyleItem["type"]) => [string, string];
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import "mapbox-gl/dist/mapbox-gl.css";
|
|
5
|
-
export declare const Map: FC<MapProps>;
|
|
1
|
+
import { FC } from '../../../node_modules/@types/react';
|
|
2
|
+
import { MapProps } from './types';
|
|
3
|
+
export declare const Map: FC<MapProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Map';
|
|
2
|
+
export * from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from
|
|
2
|
-
export declare const MapWrapper: import(
|
|
3
|
-
$zIndex?: CSSProperties["zIndex"];
|
|
4
|
-
}, never>;
|
|
1
|
+
import { CSSProperties } from '../../../node_modules/@types/react';
|
|
2
|
+
export declare const MapWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
3
|
+
$zIndex?: CSSProperties["zIndex"];
|
|
4
|
+
}, never>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from
|
|
2
|
-
import { MapProps as MapGLProps } from
|
|
3
|
-
export interface MapProps extends MapGLProps {
|
|
4
|
-
zIndex?: CSSProperties["zIndex"];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { CSSProperties, ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
+
import { MapProps as MapGLProps } from 'react-map-gl/mapbox';
|
|
3
|
+
export interface MapProps extends MapGLProps {
|
|
4
|
+
zIndex?: CSSProperties["zIndex"];
|
|
5
|
+
lowerSiblings?: ReactNode;
|
|
6
|
+
upperSiblings?: ReactNode;
|
|
7
|
+
onError?: (error: any) => void;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './ErrorBoundary';
|
|
2
|
+
export * from './Layer';
|
|
3
|
+
export * from './Map';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MapContextProps } from
|
|
2
|
-
export declare const MapContext: import(
|
|
1
|
+
import { MapContextProps } from './types';
|
|
2
|
+
export declare const MapContext: import('../../../node_modules/@types/react').Context<MapContextProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { MapProviderProps } from
|
|
3
|
-
export declare const MapProvider: FC<MapProviderProps>;
|
|
1
|
+
import { FC } from '../../../node_modules/@types/react';
|
|
2
|
+
import { MapProviderProps } from './types';
|
|
3
|
+
export declare const MapProvider: FC<MapProviderProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './MapContext';
|
|
2
|
+
export * from './MapProvider';
|
|
3
|
+
export * from './types';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, PropsWithChildren, SetStateAction } from
|
|
2
|
-
import { Map as MapboxGLMap } from
|
|
3
|
-
import MapboxDraw from
|
|
4
|
-
export declare enum BaseMapTheme {
|
|
5
|
-
Light = "light",
|
|
6
|
-
Dark = "dark"
|
|
7
|
-
}
|
|
8
|
-
export interface BaseMapItem {
|
|
9
|
-
name: string;
|
|
10
|
-
source: string;
|
|
11
|
-
preview?: string;
|
|
12
|
-
imgSrc?: string;
|
|
13
|
-
title: string;
|
|
14
|
-
theme?: BaseMapTheme;
|
|
15
|
-
opacity?: number;
|
|
16
|
-
color?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface MapContextProps {
|
|
19
|
-
map?: MutableRefObject<MapboxGLMap>;
|
|
20
|
-
draw?: MutableRefObject<Omit<MapboxDraw, "getDefaultPosition">>;
|
|
21
|
-
loaded?: boolean;
|
|
22
|
-
setLoaded?: Dispatch<SetStateAction<boolean>>;
|
|
23
|
-
basemapItems?: BaseMapItem[];
|
|
24
|
-
basemapName?: string;
|
|
25
|
-
setBasemapName?: Dispatch<SetStateAction<string>>;
|
|
26
|
-
defaultBasemap?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface MapProviderProps extends PropsWithChildren {
|
|
29
|
-
basemapItems: BaseMapItem[];
|
|
30
|
-
defaultBasemap: string;
|
|
31
|
-
}
|
|
1
|
+
import { Dispatch, MutableRefObject, PropsWithChildren, SetStateAction } from '../../../node_modules/@types/react';
|
|
2
|
+
import { Map as MapboxGLMap } from 'mapbox-gl';
|
|
3
|
+
import { default as MapboxDraw } from '@mapbox/mapbox-gl-draw';
|
|
4
|
+
export declare enum BaseMapTheme {
|
|
5
|
+
Light = "light",
|
|
6
|
+
Dark = "dark"
|
|
7
|
+
}
|
|
8
|
+
export interface BaseMapItem {
|
|
9
|
+
name: string;
|
|
10
|
+
source: string;
|
|
11
|
+
preview?: string;
|
|
12
|
+
imgSrc?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
theme?: BaseMapTheme;
|
|
15
|
+
opacity?: number;
|
|
16
|
+
color?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface MapContextProps {
|
|
19
|
+
map?: MutableRefObject<MapboxGLMap>;
|
|
20
|
+
draw?: MutableRefObject<Omit<MapboxDraw, "getDefaultPosition">>;
|
|
21
|
+
loaded?: boolean;
|
|
22
|
+
setLoaded?: Dispatch<SetStateAction<boolean>>;
|
|
23
|
+
basemapItems?: BaseMapItem[];
|
|
24
|
+
basemapName?: string;
|
|
25
|
+
setBasemapName?: Dispatch<SetStateAction<string>>;
|
|
26
|
+
defaultBasemap?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface MapProviderProps extends PropsWithChildren {
|
|
29
|
+
basemapItems: BaseMapItem[];
|
|
30
|
+
defaultBasemap: string;
|
|
31
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ServerNotificationsContextProps } from
|
|
2
|
-
export declare const ServerNotificationsContext: import(
|
|
1
|
+
import { ServerNotificationsContextProps } from './types';
|
|
2
|
+
export declare const ServerNotificationsContext: import('../../../node_modules/@types/react').Context<ServerNotificationsContextProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { ServerNotificationsProviderProps } from
|
|
3
|
-
export declare const ServerNotificationsProvider: FC<ServerNotificationsProviderProps>;
|
|
1
|
+
import { FC } from '../../../node_modules/@types/react';
|
|
2
|
+
import { ServerNotificationsProviderProps } from './types';
|
|
3
|
+
export declare const ServerNotificationsProvider: FC<ServerNotificationsProviderProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HubConnection } from
|
|
2
|
-
export declare const useServerNotifications: (url: string, initialized: boolean) => HubConnection | null;
|
|
1
|
+
import { HubConnection } from '@microsoft/signalr';
|
|
2
|
+
export declare const useServerNotifications: (url: string, initialized: boolean) => HubConnection | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './ServerNotificationsContext';
|
|
2
|
+
export * from './ServerNotificationsProvider';
|
|
3
|
+
export * from './types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PropsWithChildren } from
|
|
2
|
-
import { HubConnection } from
|
|
3
|
-
export interface ServerNotificationsContextProps {
|
|
4
|
-
connection?: HubConnection | null;
|
|
5
|
-
addSubscription?: <T>(payload?: T) => Promise<string | null>;
|
|
6
|
-
updateSubscription?: <T>(id: string | null, payload?: T) => Promise<void>;
|
|
7
|
-
unsubscribeById?: (id: string | null) => void;
|
|
8
|
-
}
|
|
9
|
-
export interface ServerNotificationsProviderProps extends PropsWithChildren {
|
|
10
|
-
url: string;
|
|
11
|
-
initialized?: boolean;
|
|
12
|
-
}
|
|
1
|
+
import { PropsWithChildren } from '../../../node_modules/@types/react';
|
|
2
|
+
import { HubConnection } from '@microsoft/signalr';
|
|
3
|
+
export interface ServerNotificationsContextProps {
|
|
4
|
+
connection?: HubConnection | null;
|
|
5
|
+
addSubscription?: <T>(payload?: T) => Promise<string | null>;
|
|
6
|
+
updateSubscription?: <T>(id: string | null, payload?: T) => Promise<void>;
|
|
7
|
+
unsubscribeById?: (id: string | null) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ServerNotificationsProviderProps extends PropsWithChildren {
|
|
10
|
+
url: string;
|
|
11
|
+
initialized?: boolean;
|
|
12
|
+
}
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './MapContext';
|
|
2
|
+
export * from './ServerNotificationsContext';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ExpressionSpecification } from
|
|
2
|
-
export declare const findAttributeInExpression: (expression: ExpressionSpecification) => string[];
|
|
1
|
+
import { ExpressionSpecification } from 'mapbox-gl';
|
|
2
|
+
export declare const findAttributeInExpression: (expression: ExpressionSpecification) => string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnyPaint } from
|
|
2
|
-
export declare const getActualExtrusionHeight: (paint: AnyPaint) => any;
|
|
1
|
+
import { AnyPaint } from 'mapbox-gl';
|
|
2
|
+
export declare const getActualExtrusionHeight: (paint: AnyPaint) => any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './findAttributeInExpression';
|
|
2
|
+
export * from './getActualExtrusionHeight';
|
|
3
|
+
export * from './parseClientStyle';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ClientStyle } from
|
|
2
|
-
export declare const parseClientStyle: (style?: ClientStyle) => string[];
|
|
1
|
+
import { ClientStyle } from '../../types';
|
|
2
|
+
export declare const parseClientStyle: (style?: ClientStyle) => string[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FeatureDc } from
|
|
2
|
-
import { Feature } from
|
|
3
|
-
export declare const convertSpToTurfFeature: (geometry?: FeatureDc["geometry"]) => Feature<any> | undefined;
|
|
1
|
+
import { FeatureDc } from '@evergis/api';
|
|
2
|
+
import { Feature } from 'geojson';
|
|
3
|
+
export declare const convertSpToTurfFeature: (geometry?: FeatureDc["geometry"]) => Feature<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './convertSpToTurfFeature';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './classification';
|
|
2
|
+
export * from './feature';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { default as r } from '../node_modules/@types/react';
|
|
2
|
+
export var BaseMapTheme: any;
|
|
3
|
+
export const DEFAULT_CIRCLE_PAINT: {
|
|
4
|
+
"circle-radius": number;
|
|
5
|
+
"circle-color": string;
|
|
6
|
+
"circle-opacity": number;
|
|
7
|
+
"circle-stroke-width": number;
|
|
8
|
+
"circle-stroke-color": string;
|
|
9
|
+
"circle-stroke-opacity": number;
|
|
10
|
+
};
|
|
11
|
+
export const DEFAULT_FILL_EXTRUSION_PAINT: {
|
|
12
|
+
"fill-extrusion-base": number;
|
|
13
|
+
"fill-extrusion-vertical-gradient": boolean;
|
|
14
|
+
"fill-extrusion-color": string;
|
|
15
|
+
"fill-extrusion-opacity": number;
|
|
16
|
+
"fill-extrusion-height": number;
|
|
17
|
+
};
|
|
18
|
+
export const DEFAULT_FILL_PAINT: {
|
|
19
|
+
"fill-color": string;
|
|
20
|
+
"fill-opacity": number;
|
|
21
|
+
};
|
|
22
|
+
export const DEFAULT_LINE_PAINT: {
|
|
23
|
+
"line-color": string;
|
|
24
|
+
"line-width": number;
|
|
25
|
+
"line-opacity": number;
|
|
26
|
+
};
|
|
27
|
+
export var DateFormat: any;
|
|
28
|
+
export class ErrorBoundary extends r.Component<any, any, any> {
|
|
29
|
+
static getDerivedStateFromError(): {
|
|
30
|
+
hasError: boolean;
|
|
31
|
+
};
|
|
32
|
+
constructor(props: any);
|
|
33
|
+
constructor(props: any, context: any);
|
|
34
|
+
state: {
|
|
35
|
+
hasError: boolean;
|
|
36
|
+
};
|
|
37
|
+
componentDidCatch(error: any): void;
|
|
38
|
+
render(): r.ReactElement<any, string | r.JSXElementConstructor<any>>;
|
|
39
|
+
}
|
|
40
|
+
export function Layer({ layer, layerType, visible, beforeId, tileUrl, getLayerTempStyle, onMount, }: {
|
|
41
|
+
layer: any;
|
|
42
|
+
layerType: any;
|
|
43
|
+
visible: any;
|
|
44
|
+
beforeId: any;
|
|
45
|
+
tileUrl: any;
|
|
46
|
+
getLayerTempStyle: any;
|
|
47
|
+
onMount?: () => any;
|
|
48
|
+
}): r.ReactElement<any, string | r.JSXElementConstructor<any>>;
|
|
49
|
+
declare function Map$1({ zIndex, lowerSiblings, upperSiblings, onError, children, ...rest }: {
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
zIndex: any;
|
|
52
|
+
lowerSiblings: any;
|
|
53
|
+
upperSiblings: any;
|
|
54
|
+
onError: any;
|
|
55
|
+
children: any;
|
|
56
|
+
}): r.ReactElement<any, string | r.JSXElementConstructor<any>>;
|
|
57
|
+
export const MapContext: r.Context<{}>;
|
|
58
|
+
export function MapProvider({ basemapItems, defaultBasemap, children }: {
|
|
59
|
+
basemapItems: any;
|
|
60
|
+
defaultBasemap: any;
|
|
61
|
+
children: any;
|
|
62
|
+
}): r.ReactElement<any, string | r.JSXElementConstructor<any>>;
|
|
63
|
+
export const NO_CONTENT_VALUE: "\u2014";
|
|
64
|
+
export const ServerNotificationsContext: r.Context<{}>;
|
|
65
|
+
export function ServerNotificationsProvider({ url, initialized, children }: {
|
|
66
|
+
url: any;
|
|
67
|
+
initialized: any;
|
|
68
|
+
children: any;
|
|
69
|
+
}): r.ReactElement<any, string | r.JSXElementConstructor<any>>;
|
|
70
|
+
export function convertSpToTurfFeature(geometry: any): import('geojson').Feature<import('geojson').Point, {
|
|
71
|
+
[name: string]: any;
|
|
72
|
+
}> | import('geojson').Feature<import('geojson').MultiPoint, {
|
|
73
|
+
[name: string]: any;
|
|
74
|
+
}> | import('geojson').Feature<import('geojson').MultiLineString, {
|
|
75
|
+
[name: string]: any;
|
|
76
|
+
}> | import('geojson').Feature<import('geojson').Polygon, {
|
|
77
|
+
[name: string]: any;
|
|
78
|
+
}>;
|
|
79
|
+
export function debounce(callback: any, delay: any): (...args: any[]) => void;
|
|
80
|
+
export function findAttributeInExpression(expression: any): any;
|
|
81
|
+
export function formatDate(date: any, { dateFormat, defaultValue }?: {
|
|
82
|
+
dateFormat?: any;
|
|
83
|
+
defaultValue?: string;
|
|
84
|
+
}): any;
|
|
85
|
+
export function getActualExtrusionHeight(paint: any): any;
|
|
86
|
+
export function getDate(rawDate: any): any;
|
|
87
|
+
export function isNumeric(number: any): boolean;
|
|
88
|
+
export function isObject(value: any): boolean;
|
|
89
|
+
export function parseClientStyle(style: any): any;
|
|
90
|
+
export function useDebouncedCallback(interval: any): (...args: any[]) => void;
|
|
91
|
+
export function useMapContext(): {};
|
|
92
|
+
export function useMapDraw(triggerDeps?: any[]): void;
|
|
93
|
+
export function useRedrawLayer(): (layerName: any) => void;
|
|
94
|
+
export function useServerNotificationsContext(): {};
|
|
95
|
+
export function useToggle(initial: any): any[];
|
|
96
|
+
export function useWindowResize(callback: any, delay: any): void;
|
|
97
|
+
export function useZoomToFeatures(): (features: any, padding: any) => void;
|
|
98
|
+
export function useZoomToPoint(): (options: any, callback: any) => void;
|
|
99
|
+
export { Map$1 as Map };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './map';
|
|
2
|
+
export * from './serverNotifications';
|
|
3
|
+
export * from './useDebouncedCallback';
|
|
4
|
+
export * from './useToggle';
|
|
5
|
+
export * from './useWindowResize';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './useMapDraw';
|
|
2
|
+
export * from './useMapContext';
|
|
3
|
+
export * from './useRedrawLayer';
|
|
4
|
+
export * from './useZoomToFeatures';
|
|
5
|
+
export * from './useZoomToPoint';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useMapContext: () => import(
|
|
1
|
+
export declare const useMapContext: () => import('../../contexts').MapContextProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import MapboxDraw,
|
|
2
|
-
interface ExtendedMapboxDrawModes extends MapboxDraw.Modes {
|
|
3
|
-
[key: string]: DrawCustomMode;
|
|
4
|
-
static: DrawCustomMode;
|
|
5
|
-
}
|
|
6
|
-
export declare const customModes: ExtendedMapboxDrawModes;
|
|
7
|
-
export {};
|
|
1
|
+
import { default as MapboxDraw, DrawCustomMode } from '@mapbox/mapbox-gl-draw';
|
|
2
|
+
interface ExtendedMapboxDrawModes extends MapboxDraw.Modes {
|
|
3
|
+
[key: string]: DrawCustomMode;
|
|
4
|
+
static: DrawCustomMode;
|
|
5
|
+
}
|
|
6
|
+
export declare const customModes: ExtendedMapboxDrawModes;
|
|
7
|
+
export {};
|