@evergis/react 3.1.1 → 3.1.3
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/components/ErrorBoundary/index.d.ts +12 -0
- package/dist/components/ErrorBoundary/styled.d.ts +1 -0
- package/dist/components/ErrorBoundary/types.d.ts +7 -0
- package/dist/components/Map/Map.d.ts +5 -0
- package/dist/components/Map/components/BuildingsLayer/BuildingsLayer.d.ts +3 -0
- package/dist/components/Map/components/BuildingsLayer/index.d.ts +2 -0
- package/dist/components/Map/components/BuildingsLayer/types.d.ts +4 -0
- package/dist/components/Map/components/Layer/Layer.d.ts +3 -0
- package/dist/components/Map/components/Layer/RasterLayer.d.ts +3 -0
- package/dist/components/Map/components/Layer/VectorLayer.d.ts +3 -0
- package/dist/components/Map/components/Layer/constants.d.ts +137 -0
- package/dist/components/Map/components/Layer/index.d.ts +2 -0
- package/dist/components/Map/components/Layer/types.d.ts +12 -0
- package/dist/components/Map/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -0
- package/dist/components/Map/components/index.d.ts +2 -0
- package/dist/components/Map/index.d.ts +3 -0
- package/dist/components/Map/styled.d.ts +4 -0
- package/dist/components/Map/types.d.ts +10 -0
- package/dist/components/MapContext/MapContext.d.ts +2 -0
- package/dist/components/MapContext/MapProvider.d.ts +3 -0
- package/dist/components/MapContext/index.d.ts +3 -0
- package/dist/components/MapContext/types.d.ts +138 -0
- package/dist/components/ResizablePanel/ResizablePanel.d.ts +3 -0
- package/dist/components/ResizablePanel/index.d.ts +2 -0
- package/dist/components/ResizablePanel/styled.d.ts +11 -0
- package/dist/components/ResizablePanel/types.d.ts +14 -0
- package/dist/components/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -0
- package/dist/components/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -0
- package/dist/components/ServerNotificationsContext/index.d.ts +3 -0
- package/dist/components/ServerNotificationsContext/types.d.ts +12 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/core/classification/findAttributeInExpression.d.ts +2 -0
- package/dist/core/classification/getActualExtrusionHeight.d.ts +2 -0
- package/dist/core/classification/index.d.ts +3 -0
- package/dist/core/classification/parseClientStyle.d.ts +2 -0
- package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -0
- package/dist/core/feature/index.d.ts +1 -0
- package/dist/core/geometrySelection/drawModeToGeometrySelectionType.d.ts +3 -0
- package/dist/core/geometrySelection/getGeometrySelectionTurfFeature.d.ts +3 -0
- package/dist/core/geometrySelection/index.d.ts +2 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/types/index.d.ts +2 -0
- package/dist/core/types/map.d.ts +5 -0
- package/dist/core/types/styling.d.ts +15 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/map/index.d.ts +22 -0
- package/dist/hooks/map/useCurrentSelectedFeature.d.ts +2 -0
- package/dist/hooks/map/useEditingFeature.d.ts +1 -0
- package/dist/hooks/map/useEwktGeometry.d.ts +1 -0
- package/dist/hooks/map/useGeometryEditor.d.ts +2 -0
- package/dist/hooks/map/useGeometrySelection.d.ts +2 -0
- package/dist/hooks/map/useGeometrySelectionBuffer.d.ts +1 -0
- package/dist/hooks/map/useMapContext.d.ts +1 -0
- package/dist/hooks/map/useMapDraw/customModes.d.ts +2 -0
- package/dist/hooks/map/useMapDraw/customStyles.d.ts +58 -0
- package/dist/hooks/map/useMapDraw/index.d.ts +1 -0
- package/dist/hooks/map/useRedrawLayer.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesCount.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesCurrentIndex.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesGeometryMasking.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesInitialized.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesLayerName.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesPagination.d.ts +4 -0
- package/dist/hooks/map/useSelectFeaturesStatisticsActive.d.ts +1 -0
- package/dist/hooks/map/useSelectFeaturesTotalCounts.d.ts +1 -0
- package/dist/hooks/map/useSelectedFeatures.d.ts +2 -0
- package/dist/hooks/map/useUpdateCurrentFeature.d.ts +2 -0
- package/dist/hooks/map/useZoomToFeatures.d.ts +2 -0
- package/dist/hooks/map/useZoomToLayer.d.ts +7 -0
- package/dist/hooks/map/useZoomToPoint.d.ts +1 -0
- package/dist/hooks/serverNotifications/index.d.ts +2 -0
- package/dist/hooks/serverNotifications/useServerNotifications.d.ts +2 -0
- package/dist/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -0
- package/dist/hooks/useResizer.d.ts +28 -0
- package/dist/hooks/useToggle.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/jest.config.d.ts +11 -0
- package/dist/react.cjs.development.js +1653 -5
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +1624 -6
- package/dist/react.esm.js.map +1 -1
- package/dist/utils/date.d.ts +2 -2
- package/dist/utils/geometryToWkt.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +30 -23
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const customStyles: ({
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
filter: (string | string[])[];
|
|
5
|
+
paint: {
|
|
6
|
+
"circle-radius": number;
|
|
7
|
+
"circle-color": string;
|
|
8
|
+
"circle-stroke-color": string;
|
|
9
|
+
"circle-stroke-width": number;
|
|
10
|
+
"circle-stroke-opacity": number;
|
|
11
|
+
"fill-color"?: undefined;
|
|
12
|
+
"fill-outline-color"?: undefined;
|
|
13
|
+
"fill-opacity"?: undefined;
|
|
14
|
+
"line-color"?: undefined;
|
|
15
|
+
"line-dasharray"?: undefined;
|
|
16
|
+
"line-width"?: undefined;
|
|
17
|
+
};
|
|
18
|
+
layout?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
filter: (string | string[])[];
|
|
23
|
+
paint: {
|
|
24
|
+
"fill-color": string;
|
|
25
|
+
"fill-outline-color": string;
|
|
26
|
+
"fill-opacity": number;
|
|
27
|
+
"circle-radius"?: undefined;
|
|
28
|
+
"circle-color"?: undefined;
|
|
29
|
+
"circle-stroke-color"?: undefined;
|
|
30
|
+
"circle-stroke-width"?: undefined;
|
|
31
|
+
"circle-stroke-opacity"?: undefined;
|
|
32
|
+
"line-color"?: undefined;
|
|
33
|
+
"line-dasharray"?: undefined;
|
|
34
|
+
"line-width"?: undefined;
|
|
35
|
+
};
|
|
36
|
+
layout?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
id: string;
|
|
39
|
+
type: string;
|
|
40
|
+
filter: (string | string[])[];
|
|
41
|
+
layout: {
|
|
42
|
+
"line-cap": string;
|
|
43
|
+
"line-join": string;
|
|
44
|
+
};
|
|
45
|
+
paint: {
|
|
46
|
+
"line-color": string;
|
|
47
|
+
"line-dasharray": number[];
|
|
48
|
+
"line-width": number;
|
|
49
|
+
"circle-radius"?: undefined;
|
|
50
|
+
"circle-color"?: undefined;
|
|
51
|
+
"circle-stroke-color"?: undefined;
|
|
52
|
+
"circle-stroke-width"?: undefined;
|
|
53
|
+
"circle-stroke-opacity"?: undefined;
|
|
54
|
+
"fill-color"?: undefined;
|
|
55
|
+
"fill-outline-color"?: undefined;
|
|
56
|
+
"fill-opacity"?: undefined;
|
|
57
|
+
};
|
|
58
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMapDraw: (triggerDeps?: Array<unknown>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useRedrawLayer: () => (layerName: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesCount: () => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesCurrentIndex: () => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesGeometryMasking: () => [boolean, (state: boolean) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesInitialized: () => [boolean, (value: boolean) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesLayerName: () => [string, (name?: string) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesStatisticsActive: () => [boolean, (state: boolean) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSelectFeaturesTotalCounts: () => [Record<string, number>, (totalCounts: Record<string, number>) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useZoomToPoint: () => (options: any, callback?: VoidFunction) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useServerNotificationsContext: () => import("../../components").ServerNotificationsContextProps;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum VerticalPosition {
|
|
2
|
+
Top = "top",
|
|
3
|
+
Bottom = "bottom"
|
|
4
|
+
}
|
|
5
|
+
export declare enum HorizontalPosition {
|
|
6
|
+
Left = "left",
|
|
7
|
+
Right = "right"
|
|
8
|
+
}
|
|
9
|
+
export interface ResizerOptions {
|
|
10
|
+
handleVerticalPosition?: VerticalPosition;
|
|
11
|
+
handleHorizontalPosition?: HorizontalPosition;
|
|
12
|
+
minWidth?: number;
|
|
13
|
+
maxWidth?: number;
|
|
14
|
+
minHeight?: number;
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
horizontal?: boolean;
|
|
17
|
+
vertical?: boolean;
|
|
18
|
+
useResize?: boolean;
|
|
19
|
+
onResize?: (width: number, height: number) => void;
|
|
20
|
+
onResizeEnd?: (width: number, height: number) => void;
|
|
21
|
+
onResizeStart?: (width: number, height: number) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const useResizer: ({ handleVerticalPosition, handleHorizontalPosition, minWidth, maxWidth, horizontal, minHeight, maxHeight, vertical, useResize, onResize, onResizeEnd, onResizeStart, }: ResizerOptions) => {
|
|
24
|
+
containerRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
25
|
+
verticalHandleRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
26
|
+
horizontalHandleRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
27
|
+
onPointerDown: () => void;
|
|
28
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useToggle: (initial?: boolean
|
|
1
|
+
export declare const useToggle: (initial?: boolean) => [boolean, VoidFunction, (value: boolean) => void];
|
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const transform: {
|
|
2
|
+
'.(ts|tsx)$': string;
|
|
3
|
+
'.(js|jsx)$': string;
|
|
4
|
+
};
|
|
5
|
+
export declare const transformIgnorePatterns: string[];
|
|
6
|
+
export declare const moduleFileExtensions: string[];
|
|
7
|
+
export declare const collectCoverageFrom: string[];
|
|
8
|
+
export declare const testMatch: string[];
|
|
9
|
+
export declare const testURL: string;
|
|
10
|
+
export declare const rootDir: string;
|
|
11
|
+
export declare const watchPlugins: string[];
|