@opengeoweb/store 7.0.0 → 8.1.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.
- package/index.esm.js +1635 -1064
- package/package.json +5 -4
- package/src/store/coreModuleConfig.d.ts +1 -1
- package/src/store/drawingtool/index.d.ts +3 -1
- package/src/store/drawingtool/reducer.d.ts +10 -9
- package/src/store/drawingtool/reducer.spec.d.ts +3 -2
- package/src/store/drawingtool/selectors.d.ts +12 -2
- package/src/store/drawingtool/utils.d.ts +3 -0
- package/src/store/generic/sagas.d.ts +1 -0
- package/src/store/generic/synchronizationGroups/index.d.ts +1 -1
- package/src/store/index.d.ts +1 -1
- package/src/store/mapStore/config.d.ts +5 -0
- package/src/store/mapStore/index.d.ts +1 -0
- package/src/store/mapStore/layers/reducer.d.ts +3 -1
- package/src/store/mapStore/layers/selectors.d.ts +13 -0
- package/src/store/mapStore/layers/types.d.ts +7 -1
- package/src/store/mapStore/map/index.d.ts +1 -0
- package/src/store/mapStore/map/selectors.d.ts +11 -1
- package/src/store/mapStore/map/types.d.ts +2 -0
- package/src/store/mapStore/map/utils.d.ts +1 -0
- package/src/store/mapStore/service/types.d.ts +2 -1
- package/src/store/types.d.ts +1 -2
- package/src/store/ui/types.d.ts +2 -1
- package/src/store/drawings/config.d.ts +0 -4
- package/src/store/drawings/index.d.ts +0 -4
- package/src/store/drawings/reducer.d.ts +0 -9
- package/src/store/drawings/selectors.d.ts +0 -3
- package/src/store/drawings/selectors.spec.d.ts +0 -1
- package/src/store/drawings/testUtils.d.ts +0 -1
- package/src/store/drawings/types.d.ts +0 -21
- /package/src/store/{drawings/reducer.spec.d.ts → drawingtool/utils.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
"main": "./index.esm.js",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/shared": "
|
|
16
|
-
"@opengeoweb/webmap": "
|
|
17
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
+
"@opengeoweb/shared": "8.1.0",
|
|
16
|
+
"@opengeoweb/webmap": "8.1.0",
|
|
17
|
+
"@opengeoweb/webmap-react": "8.1.0",
|
|
18
18
|
"@redux-eggs/core": "2.2.0",
|
|
19
19
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
20
20
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
21
21
|
"@reduxjs/toolkit": "1.9.5",
|
|
22
|
+
"date-fns": "2.30.0",
|
|
22
23
|
"immer": "9.0.21",
|
|
23
24
|
"lodash": "4.17.21",
|
|
24
25
|
"moment": "2.29.4",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./layerSelect/types").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./
|
|
1
|
+
export declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./layerSelect/types").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawingtool").DrawtoolModuleStore, import("redux").AnyAction>>)[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { drawtoolActions } from './reducer';
|
|
2
2
|
export * as drawtoolSelectors from './selectors';
|
|
3
3
|
export * from './config';
|
|
4
|
-
export type {
|
|
4
|
+
export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export { reducer as drawtoolReducer } from './reducer';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { PayloadAction, Draft, EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
|
|
3
|
-
drawModeId: string;
|
|
4
|
-
value: 'POLYGON' | 'BOX' | 'MULTIPOINT' | 'POINT' | 'LINESTRING' | 'DELETE';
|
|
5
|
-
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
6
|
-
title: string;
|
|
7
|
-
isSelectable: boolean;
|
|
8
|
-
};
|
|
2
|
+
import { DrawMode } from '@opengeoweb/webmap-react';
|
|
9
3
|
export interface DrawToolItem {
|
|
10
4
|
drawToolId: string;
|
|
11
5
|
geoJSONLayerId: string;
|
|
@@ -17,17 +11,24 @@ export interface DrawtoolModuleStore {
|
|
|
17
11
|
drawingtools?: DrawingToolState;
|
|
18
12
|
}
|
|
19
13
|
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem>;
|
|
20
|
-
export declare const getDrawLayerId: (drawToolId: string) => string;
|
|
21
14
|
export declare const initialState: DrawingToolState;
|
|
22
15
|
export declare const reducer: import("redux").Reducer<DrawingToolState, import("redux").AnyAction>;
|
|
23
16
|
export declare const drawtoolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
17
|
registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
25
|
-
mapId: string;
|
|
26
18
|
drawModes: DrawMode[];
|
|
27
19
|
drawToolId: string;
|
|
20
|
+
mapId?: string;
|
|
21
|
+
geoJSONLayerId?: string;
|
|
22
|
+
}>) => void;
|
|
23
|
+
unregisterDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
24
|
+
drawToolId: string;
|
|
28
25
|
}>) => void;
|
|
29
26
|
changeDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
30
27
|
drawToolId: string;
|
|
31
28
|
drawModeId: string;
|
|
32
29
|
}>) => void;
|
|
30
|
+
updateGeoJSONLayerId: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
31
|
+
drawToolId: string;
|
|
32
|
+
geoJSONLayerId: string;
|
|
33
|
+
}>) => void;
|
|
33
34
|
}, "draw">;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { DRAWMODE } from '@opengeoweb/webmap-react';
|
|
1
2
|
export declare const testDefaultPoint: {
|
|
2
3
|
drawModeId: string;
|
|
3
|
-
value:
|
|
4
|
+
value: DRAWMODE;
|
|
4
5
|
title: string;
|
|
5
6
|
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
6
7
|
isSelectable: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const testDefaultPolygon: {
|
|
9
10
|
drawModeId: string;
|
|
10
|
-
value:
|
|
11
|
+
value: DRAWMODE;
|
|
11
12
|
title: string;
|
|
12
13
|
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
13
14
|
isSelectable: boolean;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { DrawingToolState, DrawtoolModuleStore } from './reducer';
|
|
2
2
|
export declare const getDrawingtoolStore: (store: DrawtoolModuleStore) => DrawingToolState;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("
|
|
3
|
+
export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./reducer").DrawToolItem | undefined, selectAllDrawingTools: (state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[];
|
|
4
|
+
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined, args_1: string) => import("dist/libs/webmap-react/src").DrawMode | undefined, {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
}> & {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => string) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined) => string, {
|
|
10
|
+
clearCache: () => void;
|
|
11
|
+
}> & {
|
|
12
|
+
clearCache: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => string) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined) => string, {
|
|
5
15
|
clearCache: () => void;
|
|
6
16
|
}> & {
|
|
7
17
|
clearCache: () => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DrawMode } from '@opengeoweb/webmap-react';
|
|
2
|
+
export declare const getSingularDrawtoolDrawLayerId: (mapId: string) => string;
|
|
3
|
+
export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
|
|
@@ -6,6 +6,7 @@ export declare function setTimeSaga({ payload, }: ReturnType<typeof setTime>): S
|
|
|
6
6
|
export declare function setBBoxSaga({ payload, }: ReturnType<typeof setBbox>): SagaIterator;
|
|
7
7
|
export declare function layerActionsSaga({ payload, type, }: LayerActions): SagaIterator;
|
|
8
8
|
export declare function addLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.addLayer>): SagaIterator;
|
|
9
|
+
export declare function duplicateMapLayerActionsSaga({ payload, }: ReturnType<typeof layerActions.duplicateMapLayer>): SagaIterator;
|
|
9
10
|
export declare function deleteLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
|
10
11
|
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof mapActions.layerMoveLayer>): SagaIterator;
|
|
11
12
|
export declare function setAutoLayerIdActionsSaga({ payload, type, }: ReturnType<typeof mapActions.setAutoLayerId>): SagaIterator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { actions as syncGroupsActions, initialState } from './reducer';
|
|
1
|
+
export { actions as syncGroupsActions, initialState, reducer as syncGroupsReducer, } from './reducer';
|
|
2
2
|
export * as syncConstants from './constants';
|
|
3
3
|
export * as types from './types';
|
|
4
4
|
export * as syncGroupsSelectors from './selectors';
|
package/src/store/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ export * from './mapStore';
|
|
|
2
2
|
export * from './layerSelect';
|
|
3
3
|
export * from './ui';
|
|
4
4
|
export * from './generic';
|
|
5
|
+
export { rootSaga as genericSaga } from './generic/sagas';
|
|
5
6
|
export * from './snackbar';
|
|
6
7
|
export * from './router';
|
|
7
8
|
export * from './app';
|
|
8
|
-
export * from './drawings';
|
|
9
9
|
export * from './drawingtool';
|
|
10
10
|
export * from './types';
|
|
11
11
|
export * as storeTestUtils from './mapStore/storeTestUtils';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Egg } from '@redux-eggs/core';
|
|
2
2
|
import { Store } from '@reduxjs/toolkit';
|
|
3
3
|
import { WebMapStateModuleState } from './types';
|
|
4
|
+
export declare const mapStoreReducers: {
|
|
5
|
+
webmap: import("redux").Reducer<import("./types").WebMapState, import("redux").AnyAction>;
|
|
6
|
+
services: import("redux").Reducer<import("./types").ServiceState, import("redux").AnyAction>;
|
|
7
|
+
layers: import("redux").Reducer<import("./types").LayerState, import("redux").AnyAction>;
|
|
8
|
+
};
|
|
4
9
|
export declare const mapStoreModuleConfig: Egg<Store<WebMapStateModuleState>>;
|
|
@@ -45,6 +45,7 @@ export declare const mapStoreActions: {
|
|
|
45
45
|
toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleMapPinIsVisiblePayload, "mapReducer/toggleMapPinIsVisible">;
|
|
46
46
|
setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetDockedLayerManagerSize, "mapReducer/setDockedLayerManagerSize">;
|
|
47
47
|
addLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddLayerPayload, "layerReducer/addLayer">;
|
|
48
|
+
duplicateMapLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DuplicateMapLayerPayload, "layerReducer/duplicateMapLayer">;
|
|
48
49
|
layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerDimensionPayload, "layerReducer/layerChangeDimension">;
|
|
49
50
|
layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerEnabledPayload, "layerReducer/layerChangeEnabled">;
|
|
50
51
|
layerChangeOpacity: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerOpacityPayload, "layerReducer/layerChangeOpacity">;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload } from './types';
|
|
3
|
+
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload } from './types';
|
|
4
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, ...props }: Layer) => Layer;
|
|
5
5
|
export declare const initialState: LayerState;
|
|
6
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
7
7
|
addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
|
|
8
|
+
duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
|
|
8
9
|
layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
|
|
9
10
|
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
10
11
|
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
@@ -35,6 +36,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
35
36
|
export declare const reducer: import("redux").Reducer<LayerState, import("redux").AnyAction>;
|
|
36
37
|
export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
37
38
|
addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
|
|
39
|
+
duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
|
|
38
40
|
layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
|
|
39
41
|
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
40
42
|
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
@@ -146,6 +146,19 @@ export declare const getLayerTimeDimension: ((state: CoreAppStore, layerId?: str
|
|
|
146
146
|
}> & {
|
|
147
147
|
clearCache: () => void;
|
|
148
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* Returns a boolean indicating whether the layer has a time dimension
|
|
151
|
+
*
|
|
152
|
+
* Example: layerHasTimeDimension = getLayerHasTimeDimension(store, 'layerId_1')
|
|
153
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
154
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
155
|
+
* @returns {boolean} returnType: boolean - boolean indicating whether the layer has a time dimension
|
|
156
|
+
*/
|
|
157
|
+
export declare const getLayerHasTimeDimension: ((state: CoreAppStore, layerId?: string | undefined) => boolean) & import("reselect").OutputSelectorFields<(args_0: Dimension | undefined) => boolean, {
|
|
158
|
+
clearCache: () => void;
|
|
159
|
+
}> & {
|
|
160
|
+
clearCache: () => void;
|
|
161
|
+
};
|
|
149
162
|
export declare const getLayerCurrentTime: ((state: CoreAppStore, layerId?: string | undefined) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: Dimension | undefined) => string | undefined, {
|
|
150
163
|
clearCache: () => void;
|
|
151
164
|
}> & {
|
|
@@ -95,6 +95,12 @@ export interface AddLayerPayload {
|
|
|
95
95
|
layer: Layer;
|
|
96
96
|
origin: string;
|
|
97
97
|
}
|
|
98
|
+
export interface DuplicateMapLayerPayload {
|
|
99
|
+
mapId: string;
|
|
100
|
+
oldLayerId: string;
|
|
101
|
+
newLayerId: string;
|
|
102
|
+
origin: string;
|
|
103
|
+
}
|
|
98
104
|
export interface AddBaseLayerPayload {
|
|
99
105
|
mapId: string;
|
|
100
106
|
layerId: string;
|
|
@@ -120,7 +126,7 @@ export interface UpdateLayerInfo extends Action {
|
|
|
120
126
|
payload: UpdateLayerInfoPayload;
|
|
121
127
|
}
|
|
122
128
|
export interface SetSelectedFeaturePayload extends LayerPayload {
|
|
123
|
-
selectedFeatureIndex
|
|
129
|
+
selectedFeatureIndex?: number;
|
|
124
130
|
}
|
|
125
131
|
export interface UpdateFeaturePayload extends LayerPayload {
|
|
126
132
|
geojson: GeoJSON.FeatureCollection;
|
|
@@ -13,6 +13,7 @@ export declare const mapUtils: {
|
|
|
13
13
|
getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
|
|
14
14
|
getActiveLayerTimeStep: (timeDimension: mapTypes.Dimension | undefined) => number | undefined;
|
|
15
15
|
getSpeedFactor: (speedDelay: number) => mapTypes.SpeedFactorType;
|
|
16
|
+
getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
16
17
|
getSpeedDelay: (speedFactor: mapTypes.SpeedFactorType) => number;
|
|
17
18
|
roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
|
|
18
19
|
secondsPerPxToScale: Map<number, import("./enums").Scale>;
|
|
@@ -165,6 +165,16 @@ export declare const getMapDimension: ((state: CoreAppStore, _mapId: string, dim
|
|
|
165
165
|
}> & {
|
|
166
166
|
clearCache: () => void;
|
|
167
167
|
};
|
|
168
|
+
export declare const getSelectedTime: ((state: CoreAppStore, mapId: string) => number) & import("reselect").OutputSelectorFields<(args_0: import("./types").Dimension | undefined) => number, {
|
|
169
|
+
clearCache: () => void;
|
|
170
|
+
}> & {
|
|
171
|
+
clearCache: () => void;
|
|
172
|
+
};
|
|
173
|
+
export declare const getDataLimitsFromLayers: ((state: CoreAppStore, mapId: string) => number[]) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[]) => number[], {
|
|
174
|
+
clearCache: () => void;
|
|
175
|
+
}> & {
|
|
176
|
+
clearCache: () => void;
|
|
177
|
+
};
|
|
168
178
|
/**
|
|
169
179
|
* Gets map srs
|
|
170
180
|
*
|
|
@@ -617,7 +627,7 @@ export declare const getLegendId: ((state: CoreAppStore | undefined, mapId: stri
|
|
|
617
627
|
* @param {string} mapId mapId: string - Id of the map
|
|
618
628
|
* @returns {MapPreset} returnType: MapPreset
|
|
619
629
|
*/
|
|
620
|
-
export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15:
|
|
630
|
+
export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string | undefined, args_16: string | undefined, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
|
|
621
631
|
clearCache: () => void;
|
|
622
632
|
}> & {
|
|
623
633
|
clearCache: () => void;
|
|
@@ -158,10 +158,12 @@ export interface SetAnimationDelayPayload {
|
|
|
158
158
|
export interface SetAnimationStartTimePayload {
|
|
159
159
|
mapId: string;
|
|
160
160
|
animationStartTime: string;
|
|
161
|
+
origin?: MapActionOrigin;
|
|
161
162
|
}
|
|
162
163
|
export interface SetAnimationEndTimePayload {
|
|
163
164
|
mapId: string;
|
|
164
165
|
animationEndTime: string;
|
|
166
|
+
origin?: MapActionOrigin;
|
|
165
167
|
}
|
|
166
168
|
export interface ToggleTimestepAutoPayload {
|
|
167
169
|
mapId: string;
|
|
@@ -70,6 +70,7 @@ export declare function moveArrayElements(array: string[], oldIndex: number, new
|
|
|
70
70
|
export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
|
|
71
71
|
export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number | undefined;
|
|
72
72
|
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
73
|
+
export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
73
74
|
/**
|
|
74
75
|
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
75
76
|
*/
|
|
@@ -11,6 +11,7 @@ export interface Services {
|
|
|
11
11
|
}
|
|
12
12
|
export type ServiceScope = 'user' | 'system';
|
|
13
13
|
export interface ReduxService {
|
|
14
|
+
id?: string;
|
|
14
15
|
name?: string;
|
|
15
16
|
serviceUrl?: string;
|
|
16
17
|
active?: boolean;
|
|
@@ -18,7 +19,7 @@ export interface ReduxService {
|
|
|
18
19
|
scope?: ServiceScope;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
|
|
22
|
+
Used in the services object of webmap to keep a list of available layers in the service
|
|
22
23
|
*/
|
|
23
24
|
export type ServiceLayer = LayerProps;
|
|
24
25
|
export interface ServiceState {
|
package/src/store/types.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ import type { WebMapStateModuleState } from './mapStore/types';
|
|
|
2
2
|
import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
|
|
3
3
|
import type { uiTypes, layerSelectTypes } from '.';
|
|
4
4
|
import type { DrawtoolModuleStore } from './drawingtool';
|
|
5
|
-
|
|
6
|
-
export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawtoolModuleStore, DrawModuleStore {
|
|
5
|
+
export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawtoolModuleStore {
|
|
7
6
|
}
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export declare enum DialogTypes {
|
|
|
15
15
|
DrawingTool = "drawingTool",
|
|
16
16
|
DockedLayerManager = "dockedLayerManager",
|
|
17
17
|
DockedDrawingTool = "dockedDrawingTool",
|
|
18
|
-
|
|
18
|
+
ObjectManager = "objectManager",
|
|
19
|
+
PublicWarnings = "publicWarnings"
|
|
19
20
|
}
|
|
20
21
|
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
21
22
|
export type { Source };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
3
|
-
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
|
|
4
|
-
export declare const initialState: DrawState;
|
|
5
|
-
export declare const reducer: import("redux").Reducer<DrawState, import("redux").AnyAction>;
|
|
6
|
-
export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
-
setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
|
|
8
|
-
submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
|
|
9
|
-
}, "draw">;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DrawModuleStore, DrawState } from './types';
|
|
2
|
-
export declare const getDrawStore: (store: DrawModuleStore) => DrawState;
|
|
3
|
-
export declare const selectDrawByMapId: (state: DrawModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").DrawItem | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
export interface DrawItem {
|
|
3
|
-
id: string;
|
|
4
|
-
area: GeoJSON.FeatureCollection;
|
|
5
|
-
areaName: string;
|
|
6
|
-
mapId: string;
|
|
7
|
-
}
|
|
8
|
-
export type DrawState = EntityState<DrawItem>;
|
|
9
|
-
export interface DrawModuleStore {
|
|
10
|
-
drawings?: DrawState;
|
|
11
|
-
}
|
|
12
|
-
export type DrawingScope = 'user';
|
|
13
|
-
export type SetDrawValuesPayload = DrawItem;
|
|
14
|
-
export type SubmitDrawValuesPayload = {
|
|
15
|
-
id?: string;
|
|
16
|
-
area: GeoJSON.FeatureCollection;
|
|
17
|
-
name: string;
|
|
18
|
-
mapId: string;
|
|
19
|
-
lastUpdatedTime?: string;
|
|
20
|
-
scope: DrawingScope;
|
|
21
|
-
};
|
|
File without changes
|