@evergis/react 3.1.6 → 3.1.8
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 +2 -28
- 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 -8
- package/dist/components/index.d.ts +2 -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/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 +681 -5
- package/dist/index.js.map +1 -0
- package/dist/react.esm.js +537 -824
- package/dist/react.esm.js.map +1 -1
- 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 +29 -47
- package/dist/components/ErrorBoundary/index.d.ts +0 -12
- package/dist/components/ErrorBoundary/types.d.ts +0 -7
- package/dist/jest.config.d.ts +0 -11
- package/dist/react.cjs.development.js +0 -975
- 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
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Everpoint
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
# @evergis/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`, но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
npm start # or yarn start
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
|
|
10
|
-
|
|
11
|
-
Then run either example playground or storybook.
|
|
12
|
-
|
|
13
|
-
### Storybook
|
|
14
|
-
|
|
15
|
-
Run inside another terminal:
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
yarn storybook
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
This loads the stories from `./stories`.
|
|
22
|
-
|
|
23
|
-
> NOTE: Stories should reference the components as if using the library. This means importing from the root project directory.
|
|
24
|
-
> This has been aliased in the tsconfig and the storybook webpack config as a helper.
|
|
25
|
-
|
|
26
|
-
### Tests
|
|
27
|
-
|
|
28
|
-
Jest tests are set up to run with `npm test` or `yarn test`. This runs the test watcher (Jest) in an interactive mode.
|
|
29
|
-
By default, runs tests related to files changed since the last commit.
|
|
30
|
-
|
|
31
|
-
> TODO: MOVE style to separate @evergis/style
|
|
5
|
+
***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей от `@evergis/uilib-gl`, а также системы поддержки мультиязычности `Evergis Online`!
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { LayerProps } from
|
|
3
|
-
export declare const Layer: FC<LayerProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LayerProps } from './types';
|
|
3
|
+
export declare const Layer: FC<LayerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { LayerProps } from
|
|
3
|
-
export declare const RasterLayer: FC<Omit<LayerProps, "layerType" | "onMount" | "getLayerTempStyle">>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LayerProps } from './types';
|
|
3
|
+
export declare const RasterLayer: FC<Omit<LayerProps, "layerType" | "onMount" | "getLayerTempStyle">>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { LayerProps } from
|
|
3
|
-
export declare const VectorLayer: FC<Omit<LayerProps, "layerType" | "onMount">>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LayerProps } from './types';
|
|
3
|
+
export declare const VectorLayer: FC<Omit<LayerProps, "layerType" | "onMount">>;
|
|
@@ -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 '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 '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 'react';
|
|
2
|
+
export declare const MapWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
3
|
+
$zIndex?: CSSProperties["zIndex"];
|
|
4
|
+
}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from
|
|
2
|
-
import { MapProps as MapGLProps } from
|
|
3
|
-
export interface MapProps extends MapGLProps {
|
|
4
|
-
zIndex?: CSSProperties["zIndex"];
|
|
5
|
-
lowerSiblings?: ReactNode;
|
|
6
|
-
upperSiblings?: ReactNode;
|
|
7
|
-
onError?: (error: any) => void;
|
|
8
|
-
}
|
|
1
|
+
import { CSSProperties, ReactNode } from '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,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from "./Map";
|
|
1
|
+
export * from './Layer';
|
|
2
|
+
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('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 '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 '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('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 '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 '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';
|
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 {};
|