@opengeoweb/store 9.28.0 → 9.29.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.
Files changed (116) hide show
  1. package/index.esm.js +1377 -1377
  2. package/package.json +1 -1
  3. package/src/index.d.ts +1 -1
  4. package/src/store/coreModuleConfig.d.ts +1 -1
  5. package/src/store/drawingtool/config.d.ts +4 -4
  6. package/src/store/drawingtool/index.d.ts +6 -6
  7. package/src/store/drawingtool/listener.d.ts +3 -3
  8. package/src/store/drawingtool/listener.spec.d.ts +1 -1
  9. package/src/store/drawingtool/reducer.d.ts +46 -46
  10. package/src/store/drawingtool/reducer.spec.d.ts +4 -4
  11. package/src/store/drawingtool/selectors.d.ts +43 -43
  12. package/src/store/drawingtool/selectors.spec.d.ts +1 -1
  13. package/src/store/drawingtool/testUtils.d.ts +1 -1
  14. package/src/store/drawingtool/utils.d.ts +1 -1
  15. package/src/store/drawingtool/utils.spec.d.ts +1 -1
  16. package/src/store/generic/actions.d.ts +28 -28
  17. package/src/store/generic/config.d.ts +5 -5
  18. package/src/store/generic/index.d.ts +17 -17
  19. package/src/store/generic/listener.d.ts +2 -2
  20. package/src/store/generic/listener.spec.d.ts +1 -1
  21. package/src/store/generic/loadingIndicator/constants.d.ts +1 -1
  22. package/src/store/generic/loadingIndicator/index.d.ts +3 -3
  23. package/src/store/generic/loadingIndicator/reducer.d.ts +13 -13
  24. package/src/store/generic/loadingIndicator/reducer.spec.d.ts +1 -1
  25. package/src/store/generic/loadingIndicator/selectors.d.ts +22 -22
  26. package/src/store/generic/loadingIndicator/selectors.spec.d.ts +1 -1
  27. package/src/store/generic/loadingIndicator/types.d.ts +22 -22
  28. package/src/store/generic/selectors.d.ts +12 -12
  29. package/src/store/generic/selectors.spec.d.ts +1 -1
  30. package/src/store/generic/synchronizationActions/actions.d.ts +11 -11
  31. package/src/store/generic/synchronizationActions/types.d.ts +34 -34
  32. package/src/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +2 -2
  33. package/src/store/generic/synchronizationGroups/constants.d.ts +4 -4
  34. package/src/store/generic/synchronizationGroups/index.d.ts +6 -6
  35. package/src/store/generic/synchronizationGroups/listener.d.ts +2 -2
  36. package/src/store/generic/synchronizationGroups/listener.spec.d.ts +1 -1
  37. package/src/store/generic/synchronizationGroups/reducer.d.ts +26 -26
  38. package/src/store/generic/synchronizationGroups/reducer.spec.d.ts +1 -1
  39. package/src/store/generic/synchronizationGroups/selector.d.ts +13 -13
  40. package/src/store/generic/synchronizationGroups/selectors.d.ts +64 -64
  41. package/src/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -1
  42. package/src/store/generic/synchronizationGroups/types.d.ts +100 -100
  43. package/src/store/generic/synchronizationGroups/utils.d.ts +76 -76
  44. package/src/store/generic/synchronizationGroups/utils.spec.d.ts +1 -1
  45. package/src/store/generic/types.d.ts +23 -23
  46. package/src/store/generic/utils.d.ts +9 -9
  47. package/src/store/generic/utils.spec.d.ts +1 -1
  48. package/src/store/index.d.ts +14 -14
  49. package/src/store/mapStore/config.d.ts +9 -9
  50. package/src/store/mapStore/index.d.ts +96 -96
  51. package/src/store/mapStore/layers/index.d.ts +5 -5
  52. package/src/store/mapStore/layers/listeners.d.ts +2 -2
  53. package/src/store/mapStore/layers/listeners.spec.d.ts +1 -1
  54. package/src/store/mapStore/layers/reducer.d.ts +87 -87
  55. package/src/store/mapStore/layers/reducer.spec.d.ts +1 -1
  56. package/src/store/mapStore/layers/selectors.d.ts +380 -380
  57. package/src/store/mapStore/layers/selectors.spec.d.ts +1 -1
  58. package/src/store/mapStore/layers/types.d.ts +166 -166
  59. package/src/store/mapStore/layers/utils.d.ts +23 -23
  60. package/src/store/mapStore/layers/utils.spec.d.ts +1 -1
  61. package/src/store/mapStore/map/actions.d.ts +9 -9
  62. package/src/store/mapStore/map/constants.d.ts +1 -1
  63. package/src/store/mapStore/map/enums.d.ts +3 -3
  64. package/src/store/mapStore/map/filterLayers.d.ts +10 -10
  65. package/src/store/mapStore/map/filterLayers.spec.d.ts +1 -1
  66. package/src/store/mapStore/map/index.d.ts +25 -25
  67. package/src/store/mapStore/map/listener.d.ts +4 -4
  68. package/src/store/mapStore/map/listener.spec.d.ts +1 -1
  69. package/src/store/mapStore/map/mapListenerAnimationUtils.d.ts +38 -38
  70. package/src/store/mapStore/map/mapListenerAnimationUtils.spec.d.ts +1 -1
  71. package/src/store/mapStore/map/mapUiListener.d.ts +2 -2
  72. package/src/store/mapStore/map/mapUiListener.spec.d.ts +1 -1
  73. package/src/store/mapStore/map/metronomeListener.d.ts +2 -2
  74. package/src/store/mapStore/map/reducer.d.ts +109 -109
  75. package/src/store/mapStore/map/reducer.spec.d.ts +1 -1
  76. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -7
  77. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -1
  78. package/src/store/mapStore/map/selectors.d.ts +733 -733
  79. package/src/store/mapStore/map/selectors.spec.d.ts +1 -1
  80. package/src/store/mapStore/map/types.d.ts +233 -233
  81. package/src/store/mapStore/map/utils.d.ts +85 -85
  82. package/src/store/mapStore/map/utils.spec.d.ts +1 -1
  83. package/src/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -2
  84. package/src/store/mapStore/service/index.d.ts +4 -4
  85. package/src/store/mapStore/service/listener.d.ts +5 -5
  86. package/src/store/mapStore/service/listener.spec.d.ts +1 -1
  87. package/src/store/mapStore/service/localStorage.d.ts +3 -3
  88. package/src/store/mapStore/service/localStorage.spec.d.ts +1 -1
  89. package/src/store/mapStore/service/reducer.d.ts +11 -11
  90. package/src/store/mapStore/service/reducer.spec.d.ts +1 -1
  91. package/src/store/mapStore/service/selectors.d.ts +80 -80
  92. package/src/store/mapStore/service/selectors.spec.d.ts +1 -1
  93. package/src/store/mapStore/service/types.d.ts +50 -50
  94. package/src/store/mapStore/storeTestSettings.d.ts +7 -7
  95. package/src/store/mapStore/storeTestUtils.d.ts +17 -17
  96. package/src/store/mapStore/types.d.ts +11 -11
  97. package/src/store/router/config.d.ts +4 -4
  98. package/src/store/router/index.d.ts +3 -3
  99. package/src/store/router/listener.d.ts +2 -2
  100. package/src/store/router/listener.spec.d.ts +1 -1
  101. package/src/store/router/reducer.d.ts +9 -9
  102. package/src/store/router/reducer.spec.d.ts +1 -1
  103. package/src/store/router/types.d.ts +6 -6
  104. package/src/store/router/utils.d.ts +3 -3
  105. package/src/store/testUtils/Providers.d.ts +13 -13
  106. package/src/store/types.d.ts +7 -7
  107. package/src/store/ui/config.d.ts +4 -4
  108. package/src/store/ui/index.d.ts +4 -4
  109. package/src/store/ui/reducer.d.ts +33 -33
  110. package/src/store/ui/reducer.spec.d.ts +1 -1
  111. package/src/store/ui/selectors.d.ts +102 -102
  112. package/src/store/ui/selectors.spec.d.ts +1 -1
  113. package/src/store/ui/types.d.ts +78 -78
  114. package/src/store/ui/useSetupDialog.d.ts +11 -11
  115. package/src/store/ui/useSetupDialog.spec.d.ts +1 -1
  116. package/src/store/utils.d.ts +6 -6
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,166 +1,166 @@
1
- import { Action } from '@reduxjs/toolkit';
2
- import { FeatureCollection } from 'geojson';
3
- import { LayerFoundation } from '@opengeoweb/webmap';
4
- import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
5
- import type { Dimension } from '../map/types';
6
- import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
7
- import { uiTypes } from '../../ui';
8
- export declare enum LayerStatus {
9
- default = "default",
10
- error = "error"
11
- }
12
- export declare enum LayerActionOrigin {
13
- layerManager = "layerManager",
14
- wmsLoader = "WMSLayerTreeConnect",
15
- ReactMapViewParseLayer = "ReactMapViewParseLayer",
16
- updateLayerInformationListener = "updateLayerInformationListener",
17
- toggleAutoUpdateListener = "toggleAutoUpdateListener",
18
- unregisterMapListener = "unregisterMapListener"
19
- }
20
- export interface FeatureLayer {
21
- geojson?: FeatureCollection;
22
- defaultGeoJSONProperties?: GeoJSON.GeoJsonProperties;
23
- selectedFeatureIndex?: number;
24
- isInEditMode?: boolean;
25
- drawMode?: string;
26
- }
27
- /**
28
- * ReduxLayer is used to reflect the shape of the layer in the redux layers store.
29
- * It is a subset of Layer since some properties like the styles list now come from the service store.
30
- */
31
- export interface ReduxLayer extends LayerFoundation, FeatureLayer {
32
- dimensions?: Dimension[];
33
- mapId?: string;
34
- status?: LayerStatus;
35
- useLatestReferenceTime?: boolean;
36
- }
37
- /**
38
- * Layer is used to define a layer with all its possible properties.
39
- */
40
- export interface Layer extends ReduxLayer {
41
- headers?: Headers[];
42
- }
43
- export interface AvailableBaseLayersType {
44
- byId: Record<string, ReduxLayer>;
45
- allIds: string[];
46
- }
47
- export interface LayerState {
48
- byId: Record<string, ReduxLayer>;
49
- allIds: string[];
50
- availableBaseLayers: AvailableBaseLayersType;
51
- activeLayerInfo?: {
52
- layerName: string;
53
- serviceUrl: string;
54
- };
55
- }
56
- export interface LayerPayload {
57
- layerId: string;
58
- origin?: string;
59
- }
60
- export interface SetLayersPayload {
61
- mapId: string;
62
- layers: ReduxLayer[];
63
- origin?: string;
64
- }
65
- export interface SetBaseLayersPayload {
66
- mapId: string;
67
- layers: ReduxLayer[];
68
- origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
69
- }
70
- export interface SetLayerOpacityPayload extends LayerPayload {
71
- opacity: number;
72
- mapId?: string;
73
- origin?: LayerActionOrigin;
74
- }
75
- export interface SetLayerNamePayload extends LayerPayload {
76
- name: string;
77
- mapId?: string;
78
- origin?: LayerActionOrigin;
79
- }
80
- export interface SetLayerEnabledPayload extends LayerPayload {
81
- enabled: boolean;
82
- mapId?: string;
83
- origin?: LayerActionOrigin;
84
- }
85
- export interface SetLayerDimensionPayload extends LayerPayload {
86
- dimension: Dimension;
87
- service?: string;
88
- origin?: LayerActionOrigin;
89
- mapId?: string;
90
- }
91
- export interface SetLayerGeojsonPayload extends LayerPayload {
92
- geojson: FeatureCollection;
93
- }
94
- export interface SetLayerGeojsonFromLayerPayload extends LayerPayload {
95
- sourceLayerId: string;
96
- }
97
- export interface DeleteLayerPayload extends LayerPayload {
98
- mapId: string;
99
- layerIndex?: number;
100
- origin?: LayerActionOrigin | SyncGroupActionOrigin.delete;
101
- }
102
- export interface AddLayerPayload {
103
- mapId: string;
104
- layerId: string;
105
- layer: Layer;
106
- origin: string;
107
- }
108
- export interface DuplicateMapLayerPayload {
109
- mapId: string;
110
- oldLayerId: string;
111
- newLayerId: string;
112
- origin: string;
113
- }
114
- export interface AddBaseLayerPayload {
115
- mapId: string;
116
- layerId: string;
117
- layer: Layer;
118
- origin?: string;
119
- }
120
- export interface AddAvailableBaseLayerPayload {
121
- layer: Layer;
122
- origin?: string;
123
- }
124
- export interface AddAvailableBaseLayersPayload {
125
- layers: ReduxLayer[];
126
- origin?: string;
127
- }
128
- export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPayload {
129
- mapId: string;
130
- }
131
- export interface ErrorLayerPayload extends LayerPayload {
132
- error: Error;
133
- }
134
- export interface UpdateLayerInfo extends Action {
135
- type: `layerReducer/onUpdateLayerInformation`;
136
- payload: UpdateLayerInfoPayload;
137
- }
138
- export interface SetSelectedFeaturePayload extends LayerPayload {
139
- selectedFeatureIndex?: number;
140
- }
141
- export interface UpdateFeaturePayload extends LayerPayload {
142
- geojson: GeoJSON.FeatureCollection;
143
- shouldAllowMultipleShapes?: boolean;
144
- reason?: string;
145
- geoJSONIntersectionLayerId?: string;
146
- geoJSONIntersectionBoundsLayerId?: string;
147
- selectionType?: string;
148
- }
149
- export interface UpdateFeaturePropertiesPayload extends LayerPayload {
150
- properties: GeoJSON.GeoJsonProperties;
151
- selectedFeatureIndex?: number;
152
- }
153
- export interface ToggleFeatureModePayload extends LayerPayload {
154
- isInEditMode?: boolean;
155
- drawMode?: string;
156
- }
157
- export interface ExitFeatureDrawModePayload extends LayerPayload {
158
- reason: string;
159
- shouldAllowMultipleShapes?: boolean;
160
- }
161
- export interface ShowLayerInfoPayload {
162
- serviceUrl: string;
163
- layerName: string;
164
- mapId: string;
165
- source?: uiTypes.Source;
166
- }
1
+ import { Action } from '@reduxjs/toolkit';
2
+ import { FeatureCollection } from 'geojson';
3
+ import { LayerFoundation } from '@opengeoweb/webmap';
4
+ import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
5
+ import type { Dimension } from '../map/types';
6
+ import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
7
+ import { uiTypes } from '../../ui';
8
+ export declare enum LayerStatus {
9
+ default = "default",
10
+ error = "error"
11
+ }
12
+ export declare enum LayerActionOrigin {
13
+ layerManager = "layerManager",
14
+ wmsLoader = "WMSLayerTreeConnect",
15
+ ReactMapViewParseLayer = "ReactMapViewParseLayer",
16
+ updateLayerInformationListener = "updateLayerInformationListener",
17
+ toggleAutoUpdateListener = "toggleAutoUpdateListener",
18
+ unregisterMapListener = "unregisterMapListener"
19
+ }
20
+ export interface FeatureLayer {
21
+ geojson?: FeatureCollection;
22
+ defaultGeoJSONProperties?: GeoJSON.GeoJsonProperties;
23
+ selectedFeatureIndex?: number;
24
+ isInEditMode?: boolean;
25
+ drawMode?: string;
26
+ }
27
+ /**
28
+ * ReduxLayer is used to reflect the shape of the layer in the redux layers store.
29
+ * It is a subset of Layer since some properties like the styles list now come from the service store.
30
+ */
31
+ export interface ReduxLayer extends LayerFoundation, FeatureLayer {
32
+ dimensions?: Dimension[];
33
+ mapId?: string;
34
+ status?: LayerStatus;
35
+ useLatestReferenceTime?: boolean;
36
+ }
37
+ /**
38
+ * Layer is used to define a layer with all its possible properties.
39
+ */
40
+ export interface Layer extends ReduxLayer {
41
+ headers?: Headers[];
42
+ }
43
+ export interface AvailableBaseLayersType {
44
+ byId: Record<string, ReduxLayer>;
45
+ allIds: string[];
46
+ }
47
+ export interface LayerState {
48
+ byId: Record<string, ReduxLayer>;
49
+ allIds: string[];
50
+ availableBaseLayers: AvailableBaseLayersType;
51
+ activeLayerInfo?: {
52
+ layerName: string;
53
+ serviceUrl: string;
54
+ };
55
+ }
56
+ export interface LayerPayload {
57
+ layerId: string;
58
+ origin?: string;
59
+ }
60
+ export interface SetLayersPayload {
61
+ mapId: string;
62
+ layers: ReduxLayer[];
63
+ origin?: string;
64
+ }
65
+ export interface SetBaseLayersPayload {
66
+ mapId: string;
67
+ layers: ReduxLayer[];
68
+ origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
69
+ }
70
+ export interface SetLayerOpacityPayload extends LayerPayload {
71
+ opacity: number;
72
+ mapId?: string;
73
+ origin?: LayerActionOrigin;
74
+ }
75
+ export interface SetLayerNamePayload extends LayerPayload {
76
+ name: string;
77
+ mapId?: string;
78
+ origin?: LayerActionOrigin;
79
+ }
80
+ export interface SetLayerEnabledPayload extends LayerPayload {
81
+ enabled: boolean;
82
+ mapId?: string;
83
+ origin?: LayerActionOrigin;
84
+ }
85
+ export interface SetLayerDimensionPayload extends LayerPayload {
86
+ dimension: Dimension;
87
+ service?: string;
88
+ origin?: LayerActionOrigin;
89
+ mapId?: string;
90
+ }
91
+ export interface SetLayerGeojsonPayload extends LayerPayload {
92
+ geojson: FeatureCollection;
93
+ }
94
+ export interface SetLayerGeojsonFromLayerPayload extends LayerPayload {
95
+ sourceLayerId: string;
96
+ }
97
+ export interface DeleteLayerPayload extends LayerPayload {
98
+ mapId: string;
99
+ layerIndex?: number;
100
+ origin?: LayerActionOrigin | SyncGroupActionOrigin.delete;
101
+ }
102
+ export interface AddLayerPayload {
103
+ mapId: string;
104
+ layerId: string;
105
+ layer: Layer;
106
+ origin: string;
107
+ }
108
+ export interface DuplicateMapLayerPayload {
109
+ mapId: string;
110
+ oldLayerId: string;
111
+ newLayerId: string;
112
+ origin: string;
113
+ }
114
+ export interface AddBaseLayerPayload {
115
+ mapId: string;
116
+ layerId: string;
117
+ layer: Layer;
118
+ origin?: string;
119
+ }
120
+ export interface AddAvailableBaseLayerPayload {
121
+ layer: Layer;
122
+ origin?: string;
123
+ }
124
+ export interface AddAvailableBaseLayersPayload {
125
+ layers: ReduxLayer[];
126
+ origin?: string;
127
+ }
128
+ export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPayload {
129
+ mapId: string;
130
+ }
131
+ export interface ErrorLayerPayload extends LayerPayload {
132
+ error: Error;
133
+ }
134
+ export interface UpdateLayerInfo extends Action {
135
+ type: `layerReducer/onUpdateLayerInformation`;
136
+ payload: UpdateLayerInfoPayload;
137
+ }
138
+ export interface SetSelectedFeaturePayload extends LayerPayload {
139
+ selectedFeatureIndex?: number;
140
+ }
141
+ export interface UpdateFeaturePayload extends LayerPayload {
142
+ geojson: GeoJSON.FeatureCollection;
143
+ shouldAllowMultipleShapes?: boolean;
144
+ reason?: string;
145
+ geoJSONIntersectionLayerId?: string;
146
+ geoJSONIntersectionBoundsLayerId?: string;
147
+ selectionType?: string;
148
+ }
149
+ export interface UpdateFeaturePropertiesPayload extends LayerPayload {
150
+ properties: GeoJSON.GeoJsonProperties;
151
+ selectedFeatureIndex?: number;
152
+ }
153
+ export interface ToggleFeatureModePayload extends LayerPayload {
154
+ isInEditMode?: boolean;
155
+ drawMode?: string;
156
+ }
157
+ export interface ExitFeatureDrawModePayload extends LayerPayload {
158
+ reason: string;
159
+ shouldAllowMultipleShapes?: boolean;
160
+ }
161
+ export interface ShowLayerInfoPayload {
162
+ serviceUrl: string;
163
+ layerName: string;
164
+ mapId: string;
165
+ source?: uiTypes.Source;
166
+ }
@@ -1,23 +1,23 @@
1
- import { Draft } from '@reduxjs/toolkit';
2
- import { WMJSDimension } from '@opengeoweb/webmap';
3
- import type { Dimension } from '../types';
4
- import type { LayerState } from './types';
5
- export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
6
- export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
7
- /**
8
- * For the given dimension, it creates a new draft state for all other (linked or synced) layers inside the map.
9
- * @param draft
10
- * @param dimension
11
- * @param mapId
12
- */
13
- export declare const produceDraftStateForAllLayersForDimensionWithinMap: (draft: Draft<LayerState>, dimension: Dimension, mapId: string, layerIdFromAction: string) => void;
14
- /**
15
- * Returns the list of dimensions without the time dimension
16
- * @param dimensions Dimension[]
17
- */
18
- export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
19
- /**
20
- * Returns the list of dimensions without the time dimension
21
- * @param dimensions Dimension[]
22
- */
23
- export declare const filterCurrentValueFromDimensions: (dimensions: Dimension[]) => Dimension[];
1
+ import { Draft } from '@reduxjs/toolkit';
2
+ import { WMJSDimension } from '@opengeoweb/webmap';
3
+ import type { Dimension } from '../types';
4
+ import type { LayerState } from './types';
5
+ export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
6
+ export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
7
+ /**
8
+ * For the given dimension, it creates a new draft state for all other (linked or synced) layers inside the map.
9
+ * @param draft
10
+ * @param dimension
11
+ * @param mapId
12
+ */
13
+ export declare const produceDraftStateForAllLayersForDimensionWithinMap: (draft: Draft<LayerState>, dimension: Dimension, mapId: string, layerIdFromAction: string) => void;
14
+ /**
15
+ * Returns the list of dimensions without the time dimension
16
+ * @param dimensions Dimension[]
17
+ */
18
+ export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
19
+ /**
20
+ * Returns the list of dimensions without the time dimension
21
+ * @param dimensions Dimension[]
22
+ */
23
+ export declare const filterCurrentValueFromDimensions: (dimensions: Dimension[]) => Dimension[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
1
- import { SetMapDimensionPayload } from '@opengeoweb/webmap-react';
2
- import type { SetMapPresetPayload } from './types';
3
- /**
4
- * These actions causes circular dependency if they are defined in the reducer.ts file.
5
- * Therefor they are instead added to this file
6
- * https://redux-toolkit.js.org/usage/usage-guide#exporting-and-using-slices
7
- */
8
- export declare const mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapDimensionPayload, string>;
9
- export declare const setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapPresetPayload, string>;
1
+ import { SetMapDimensionPayload } from '@opengeoweb/webmap-react';
2
+ import type { SetMapPresetPayload } from './types';
3
+ /**
4
+ * These actions causes circular dependency if they are defined in the reducer.ts file.
5
+ * Therefor they are instead added to this file
6
+ * https://redux-toolkit.js.org/usage/usage-guide#exporting-and-using-slices
7
+ */
8
+ export declare const mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapDimensionPayload, string>;
9
+ export declare const setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapPresetPayload, string>;
@@ -1 +1 @@
1
- export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
1
+ export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
@@ -1,3 +1,3 @@
1
- export declare enum MapActionOrigin {
2
- map = "map"
3
- }
1
+ export declare enum MapActionOrigin {
2
+ map = "map"
3
+ }
@@ -1,10 +1,10 @@
1
- import { layerTypes } from '../layers';
2
- export declare const filterLayers: (layers?: layerTypes.Layer[], layerParser?: (layer: layerTypes.Layer) => layerTypes.Layer) => FilteredLayerList;
3
- export declare const createEmtpyFilteredList: (existingList: []) => FilteredLayerList;
4
- export interface FilteredLayerList {
5
- mapLayers: layerTypes.Layer[];
6
- baseLayers: layerTypes.Layer[];
7
- overLayers?: layerTypes.Layer[];
8
- }
9
- export declare const parseBoolean: (value: string | boolean) => boolean;
10
- export declare const parseLayer: (layer: layerTypes.Layer) => layerTypes.Layer;
1
+ import { layerTypes } from '../layers';
2
+ export declare const filterLayers: (layers?: layerTypes.Layer[], layerParser?: (layer: layerTypes.Layer) => layerTypes.Layer) => FilteredLayerList;
3
+ export declare const createEmtpyFilteredList: (existingList: []) => FilteredLayerList;
4
+ export interface FilteredLayerList {
5
+ mapLayers: layerTypes.Layer[];
6
+ baseLayers: layerTypes.Layer[];
7
+ overLayers?: layerTypes.Layer[];
8
+ }
9
+ export declare const parseBoolean: (value: string | boolean) => boolean;
10
+ export declare const parseLayer: (layer: layerTypes.Layer) => layerTypes.Layer;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,25 +1,25 @@
1
- import * as mapTypes from './types';
2
- import * as utils from './utils';
3
- export declare const mapUtils: {
4
- replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds) => import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds;
5
- moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
6
- dateFormat: "yyyy-MM-dd'T'HH:mm:ss'Z'";
7
- createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, shouldEndtimeOverride, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
8
- checkValidLayersPayload: (layers: import("../types").Layer[], mapId: string) => boolean;
9
- getDraftMapById: (mapId: string, draft: mapTypes.WebMapState) => mapTypes.WebMap;
10
- produceDraftStateSetWebMapDimension: (draft: mapTypes.WebMapState, mapId: string, dimensionFromAction: mapTypes.Dimension, overwriteCurrentValue: boolean) => void;
11
- findMapIdFromLayerId: (mapState?: mapTypes.WebMapState | undefined, layerId?: string | undefined) => string | null;
12
- produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: mapTypes.WebMapState, layerId: string, dimension: mapTypes.Dimension) => void;
13
- getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
14
- getSpeedFactor: (speedDelay: number) => import("dist/libs/timeslider/src").SpeedFactorType;
15
- getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
16
- generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => mapTypes.WebMapAnimationList;
17
- parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
18
- };
19
- export { mapTypes };
20
- export { mapActions, reducer as webmapReducer } from './reducer';
21
- export * as mapSelectors from './selectors';
22
- export * as mapEnums from './enums';
23
- export * from './constants';
24
- export { defaultLayers } from '@opengeoweb/webmap-react';
25
- export * as filterLayers from './filterLayers';
1
+ import * as mapTypes from './types';
2
+ import * as utils from './utils';
3
+ export declare const mapUtils: {
4
+ replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds) => import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds;
5
+ moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
6
+ dateFormat: "yyyy-MM-dd'T'HH:mm:ss'Z'";
7
+ createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, shouldEndtimeOverride, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
8
+ checkValidLayersPayload: (layers: import("../types").Layer[], mapId: string) => boolean;
9
+ getDraftMapById: (mapId: string, draft: mapTypes.WebMapState) => mapTypes.WebMap;
10
+ produceDraftStateSetWebMapDimension: (draft: mapTypes.WebMapState, mapId: string, dimensionFromAction: mapTypes.Dimension, overwriteCurrentValue: boolean) => void;
11
+ findMapIdFromLayerId: (mapState?: mapTypes.WebMapState | undefined, layerId?: string | undefined) => string | null;
12
+ produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: mapTypes.WebMapState, layerId: string, dimension: mapTypes.Dimension) => void;
13
+ getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
14
+ getSpeedFactor: (speedDelay: number) => import("dist/libs/timeslider/src").SpeedFactorType;
15
+ getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
16
+ generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => mapTypes.WebMapAnimationList;
17
+ parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
18
+ };
19
+ export { mapTypes };
20
+ export { mapActions, reducer as webmapReducer } from './reducer';
21
+ export * as mapSelectors from './selectors';
22
+ export * as mapEnums from './enums';
23
+ export * from './constants';
24
+ export { defaultLayers } from '@opengeoweb/webmap-react';
25
+ export * as filterLayers from './filterLayers';
@@ -1,4 +1,4 @@
1
- import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit';
2
- import { WebMapStateModuleState } from '../types';
3
- export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
4
- export declare const mapListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, AnyAction>, unknown>;
1
+ import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit';
2
+ import { WebMapStateModuleState } from '../types';
3
+ export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
4
+ export declare const mapListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, AnyAction>, unknown>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,38 +1,38 @@
1
- import { SetTimeSyncPayload } from '../../generic/synchronizationActions/types';
2
- /**
3
- * Returns the next step for given timerId.
4
- * @param timerId The timer id
5
- * @param numberOfStepsInAnimation Animation length in steps
6
- * @param numStepsToGoForward Amount of steps to go forwards, defaults to 1. Can be positive and negative
7
- * @returns
8
- */
9
- export declare const getNextStep: (timerId: string, numberOfStepsInAnimation: number, numStepsToGoForward?: number) => number;
10
- /**
11
- * Handles dwell at the end of the animation loop sequence. The number of steps to wait till proceed can be set by the dwell parameter.
12
- * @param timerId The timer id
13
- * @param numberOfStepsInAnimation Number of steps in the animation
14
- * @param dwell The number of steps to wait at the end of the animation sequence before to continue
15
- * @returns
16
- */
17
- export declare const handleTimerDwell: (timerId: string, numberOfStepsInAnimation: number, dwell?: number) => boolean;
18
- /**
19
- * Set step for the timerId
20
- * @param timerId
21
- * @param timerStep
22
- */
23
- export declare const setStep: (timerId: string, timerStep: number) => void;
24
- /**
25
- * Gets the current step for the timer
26
- * @param timerId
27
- * @returns
28
- */
29
- export declare const getCurrentStep: (timerId: string) => number;
30
- export declare const MAX_NUMBER_STEPS_FORWARD_TO_PREFETCH = 2;
31
- /**
32
- * This prefetches all images connected to the same sync group as provided timerId
33
- * @param timerId The timerId
34
- * @param animationListValues List of animation steps in isostring to animate
35
- * @param targets List of targets to check
36
- * @returns True if all maps are ready to go forward, false if the map has no data to display yet.
37
- */
38
- export declare const prefetchAnimationTargetsForMetronome: (timerId: string, animationListValues: string[], targets: SetTimeSyncPayload[]) => boolean;
1
+ import { SetTimeSyncPayload } from '../../generic/synchronizationActions/types';
2
+ /**
3
+ * Returns the next step for given timerId.
4
+ * @param timerId The timer id
5
+ * @param numberOfStepsInAnimation Animation length in steps
6
+ * @param numStepsToGoForward Amount of steps to go forwards, defaults to 1. Can be positive and negative
7
+ * @returns
8
+ */
9
+ export declare const getNextStep: (timerId: string, numberOfStepsInAnimation: number, numStepsToGoForward?: number) => number;
10
+ /**
11
+ * Handles dwell at the end of the animation loop sequence. The number of steps to wait till proceed can be set by the dwell parameter.
12
+ * @param timerId The timer id
13
+ * @param numberOfStepsInAnimation Number of steps in the animation
14
+ * @param dwell The number of steps to wait at the end of the animation sequence before to continue
15
+ * @returns
16
+ */
17
+ export declare const handleTimerDwell: (timerId: string, numberOfStepsInAnimation: number, dwell?: number) => boolean;
18
+ /**
19
+ * Set step for the timerId
20
+ * @param timerId
21
+ * @param timerStep
22
+ */
23
+ export declare const setStep: (timerId: string, timerStep: number) => void;
24
+ /**
25
+ * Gets the current step for the timer
26
+ * @param timerId
27
+ * @returns
28
+ */
29
+ export declare const getCurrentStep: (timerId: string) => number;
30
+ export declare const MAX_NUMBER_STEPS_FORWARD_TO_PREFETCH = 2;
31
+ /**
32
+ * This prefetches all images connected to the same sync group as provided timerId
33
+ * @param timerId The timerId
34
+ * @param animationListValues List of animation steps in isostring to animate
35
+ * @param targets List of targets to check
36
+ * @returns True if all maps are ready to go forward, false if the map has no data to display yet.
37
+ */
38
+ export declare const prefetchAnimationTargetsForMetronome: (timerId: string, animationListValues: string[], targets: SetTimeSyncPayload[]) => boolean;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { CoreAppStore } from '../../types';
2
- export declare const mapUiListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;
1
+ import { CoreAppStore } from '../../types';
2
+ export declare const mapUiListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { CoreAppStore } from '../../types';
2
- export declare const metronomeListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;
1
+ import { CoreAppStore } from '../../types';
2
+ export declare const metronomeListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;