@opengeoweb/store 9.10.2 → 9.12.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 +5379 -4761
- package/package.json +4 -2
- package/src/store/generic/index.d.ts +1 -0
- package/src/store/generic/loadingIndicator/constants.d.ts +1 -0
- package/src/store/generic/loadingIndicator/index.d.ts +3 -0
- package/src/store/generic/loadingIndicator/reducer.d.ts +13 -0
- package/src/store/generic/loadingIndicator/selectors.d.ts +22 -0
- package/src/store/generic/loadingIndicator/types.d.ts +22 -0
- package/src/store/index.d.ts +0 -1
- package/src/store/mapStore/index.d.ts +0 -1
- package/src/store/mapStore/layers/types.d.ts +1 -1
- package/src/store/mapStore/map/constants.d.ts +0 -5
- package/src/store/mapStore/map/enums.d.ts +0 -20
- package/src/store/mapStore/map/index.d.ts +2 -15
- package/src/store/mapStore/map/listener.d.ts +2 -0
- package/src/store/mapStore/map/{mapSagaAnimationUtils.d.ts → mapListenerAnimationUtils.d.ts} +1 -1
- package/src/store/mapStore/map/mapListenerAnimationUtils.spec.d.ts +1 -0
- package/src/store/mapStore/map/reducer.d.ts +1 -3
- package/src/store/mapStore/map/sagas.d.ts +1 -17
- package/src/store/mapStore/map/selectors.d.ts +0 -14
- package/src/store/mapStore/map/types.d.ts +1 -6
- package/src/store/mapStore/map/utils.d.ts +2 -24
- package/src/store/types.d.ts +2 -1
- package/src/store/ui/selectors.d.ts +17 -1
- package/src/store/app/config.d.ts +0 -4
- package/src/store/app/index.d.ts +0 -2
- package/src/store/app/reducer.d.ts +0 -15
- package/src/store/app/types.d.ts +0 -6
- /package/src/store/{app → generic/loadingIndicator}/reducer.spec.d.ts +0 -0
- /package/src/store/{mapStore/map/mapSagaAnimationUtils.spec.d.ts → generic/loadingIndicator/selectors.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"immer": "^10.0.3",
|
|
19
19
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
20
20
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
21
|
-
"lodash": "^4.17.21"
|
|
21
|
+
"lodash": "^4.17.21",
|
|
22
|
+
"@opengeoweb/metronome": "*",
|
|
23
|
+
"@opengeoweb/timeslider": "*"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
26
|
"react": "18"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ANY_EDR_SERVICE = "any_edr";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PayloadAction, EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
import { LoadingIndicatorType, SetIsEDRLoadingPayload, SetIsGetCapabilitiesLoadingPayload, SetIsGetMapLoadingPayload } from './types';
|
|
3
|
+
export declare const loadingIndicatorAdapter: import("@reduxjs/toolkit").EntityAdapter<LoadingIndicatorType>;
|
|
4
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<EntityState<LoadingIndicatorType>, {
|
|
5
|
+
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
6
|
+
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
7
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
8
|
+
}, "loadingIndicatorReducer">;
|
|
9
|
+
export declare const loadingIndicatorActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
|
+
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
11
|
+
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
12
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
13
|
+
}, "loadingIndicatorReducer">, loadingIndicatorReducer: import("redux").Reducer<EntityState<LoadingIndicatorType>, import("redux").AnyAction>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LoadingIndicatorModuleState, LoadingIndicatorType } from './types';
|
|
2
|
+
export declare const selectLoadingIndicatorById: (state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => LoadingIndicatorType | undefined;
|
|
3
|
+
export declare const isGetMapLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: LoadingIndicatorType | undefined) => boolean, {
|
|
4
|
+
clearCache: () => void;
|
|
5
|
+
}> & {
|
|
6
|
+
clearCache: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const isGetCapabilitiesLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: LoadingIndicatorType | undefined) => boolean, {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
}> & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const isEDRLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: LoadingIndicatorType | undefined) => boolean, {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
}> & {
|
|
16
|
+
clearCache: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const isLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean, args_1: boolean, args_2: boolean, args_3: boolean) => boolean, {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
}> & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export interface LoadingIndicatorType {
|
|
3
|
+
id: string;
|
|
4
|
+
isGetMapLoading: boolean;
|
|
5
|
+
isGetCapabilitiesLoading: boolean;
|
|
6
|
+
isEDRLoading: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface LoadingIndicatorModuleState {
|
|
9
|
+
loadingIndicatorStore?: EntityState<LoadingIndicatorType>;
|
|
10
|
+
}
|
|
11
|
+
export interface SetIsGetMapLoadingPayload {
|
|
12
|
+
id: string;
|
|
13
|
+
isGetMapLoading: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface SetIsGetCapabilitiesLoadingPayload {
|
|
16
|
+
id: string;
|
|
17
|
+
isGetCapabilitiesLoading: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface SetIsEDRLoadingPayload {
|
|
20
|
+
id: string;
|
|
21
|
+
isEDRLoading: boolean;
|
|
22
|
+
}
|
package/src/store/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './ui';
|
|
|
3
3
|
export * from './generic';
|
|
4
4
|
export { rootSaga as genericSaga } from './generic/sagas';
|
|
5
5
|
export * from './router';
|
|
6
|
-
export * from './app';
|
|
7
6
|
export * from './drawingtool';
|
|
8
7
|
export * from './types';
|
|
9
8
|
export * as storeTestUtils from './mapStore/storeTestUtils';
|
|
@@ -32,7 +32,6 @@ export declare const mapStoreActions: {
|
|
|
32
32
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
33
33
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
34
34
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
35
|
-
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderUnfilteredSelectedTimePayload, "mapReducer/setTimeSliderUnfilteredSelectedTime">;
|
|
36
35
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
37
36
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
38
37
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
@@ -88,7 +88,7 @@ export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
|
88
88
|
}
|
|
89
89
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
90
90
|
mapId: string;
|
|
91
|
-
layerIndex
|
|
91
|
+
layerIndex?: number;
|
|
92
92
|
origin?: LayerActionOrigin | SyncGroupActionOrigin.delete;
|
|
93
93
|
}
|
|
94
94
|
export interface AddLayerPayload {
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export declare const defaultAnimationDelayAtStart = 250;
|
|
2
|
-
export declare const defaultDelay = 1000;
|
|
3
|
-
export declare const defaultTimeStep = 60;
|
|
4
|
-
export declare const defaultSecondsPerPx = 80;
|
|
5
|
-
export declare const defaultTimeSpan: number;
|
|
6
1
|
export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
export declare enum Scale {
|
|
2
|
-
Minutes5 = 0,
|
|
3
|
-
Hour = 1,
|
|
4
|
-
Hours3 = 2,
|
|
5
|
-
Hours6 = 3,
|
|
6
|
-
Day = 4,
|
|
7
|
-
Week = 5,
|
|
8
|
-
Month = 6,
|
|
9
|
-
Year = 7
|
|
10
|
-
}
|
|
11
|
-
export declare enum AnimationLength {
|
|
12
|
-
Minutes15 = 15,
|
|
13
|
-
Minutes30 = 30,
|
|
14
|
-
Hours1 = 60,
|
|
15
|
-
Hours2 = 120,
|
|
16
|
-
Hours3 = 180,
|
|
17
|
-
Hours6 = 360,
|
|
18
|
-
Hours12 = 720,
|
|
19
|
-
Hours24 = 1440
|
|
20
|
-
}
|
|
21
1
|
export declare enum MapActionOrigin {
|
|
22
2
|
map = "map"
|
|
23
3
|
}
|
|
@@ -11,26 +11,13 @@ export declare const mapUtils: {
|
|
|
11
11
|
findMapIdFromLayerId: (mapState?: mapTypes.WebMapState | undefined, layerId?: string | undefined) => string | null;
|
|
12
12
|
produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: mapTypes.WebMapState, layerId: string, dimension: mapTypes.Dimension) => void;
|
|
13
13
|
getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
|
|
14
|
-
getSpeedFactor: (speedDelay: number) =>
|
|
14
|
+
getSpeedFactor: (speedDelay: number) => import("dist/libs/timeslider/src").SpeedFactorType;
|
|
15
15
|
getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
16
|
-
getSpeedDelay: (speedFactor: mapTypes.SpeedFactorType) => number;
|
|
17
|
-
roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
|
|
18
|
-
secondsPerPxToScale: Map<number, import("./enums").Scale>;
|
|
19
|
-
scaleToSecondsPerPx: {
|
|
20
|
-
0: number;
|
|
21
|
-
1: number;
|
|
22
|
-
2: number;
|
|
23
|
-
3: number;
|
|
24
|
-
4: number;
|
|
25
|
-
5: number;
|
|
26
|
-
6: number;
|
|
27
|
-
7: number;
|
|
28
|
-
};
|
|
29
16
|
};
|
|
30
17
|
export { mapTypes };
|
|
31
18
|
export { mapActions, reducer as webmapReducer } from './reducer';
|
|
32
19
|
export * as mapSelectors from './selectors';
|
|
33
20
|
export * as mapEnums from './enums';
|
|
34
|
-
export *
|
|
21
|
+
export * from './constants';
|
|
35
22
|
export { defaultLayers } from '@opengeoweb/webmap-react';
|
|
36
23
|
export * as filterLayers from './filterLayers';
|
package/src/store/mapStore/map/{mapSagaAnimationUtils.d.ts → mapListenerAnimationUtils.d.ts}
RENAMED
|
@@ -27,4 +27,4 @@ export declare const MAX_NUMBER_STEPS_FORWARD_TO_PREFETCH = 2;
|
|
|
27
27
|
* @param targets List of targets to check
|
|
28
28
|
* @returns True if all maps are ready to go forward, false if the map has no data to display yet.
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const prefetchAnimationTargetsForMetronome: (timerId: string, animationListValues: string[], targets: SetTimeSyncPayload[]) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { MapPinLocationPayload, SetBboxPayload, SetStepBackWardOrForward, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
3
|
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
|
|
4
|
-
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload
|
|
4
|
+
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Checks if the layer id is already taken in one of the maps.
|
|
7
7
|
* @param state The WebMapState
|
|
@@ -39,7 +39,6 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
39
39
|
}>) => void;
|
|
40
40
|
setTimeSliderWidth: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderWidthPayload>) => void;
|
|
41
41
|
setTimeSliderCenterTime: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
42
|
-
setTimeSliderUnfilteredSelectedTime: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderUnfilteredSelectedTimePayload>) => void;
|
|
43
42
|
setTimeSliderSecondsPerPx: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
44
43
|
toggleAutoUpdate: (draft: Draft<WebMapState>, action: PayloadAction<ToggleAutoUpdatePayload>) => void;
|
|
45
44
|
setEndTimeOverriding: (draft: Draft<WebMapState>, action: PayloadAction<SetEndTimeOverriding>) => void;
|
|
@@ -88,7 +87,6 @@ export declare const mapActions: {
|
|
|
88
87
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
89
88
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
90
89
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
91
|
-
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderUnfilteredSelectedTimePayload, "mapReducer/setTimeSliderUnfilteredSelectedTime">;
|
|
92
90
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
93
91
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
94
92
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { mapActions } from '.';
|
|
3
3
|
import { layerActions } from '../layers';
|
|
4
4
|
import { Layer } from '../layers/types';
|
|
@@ -14,21 +14,5 @@ export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[])
|
|
|
14
14
|
export declare function setMapPresetSaga({ payload, }: ReturnType<typeof mapActions.setMapPreset>): SagaIterator;
|
|
15
15
|
export declare function unregisterMapSaga({ payload, }: ReturnType<typeof mapActions.unregisterMap>): Generator;
|
|
16
16
|
export declare function setStepBackwardOrForwardSaga({ payload, }: ReturnType<typeof mapActions.setStepBackwardOrForward>): Generator;
|
|
17
|
-
/**
|
|
18
|
-
* This saga is triggered by the metronome. An array of timerIds is given as argument.
|
|
19
|
-
* It will update the animation loop of multiple maps and sliders
|
|
20
|
-
* It will prefetch images for maps
|
|
21
|
-
* @param timerIds string[] array of timerIds
|
|
22
|
-
*/
|
|
23
|
-
export declare function metronomeSaga(timerIds: string[]): SagaIterator;
|
|
24
|
-
/**
|
|
25
|
-
* Creates a channel for the metronome
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
export declare function metronomeTicker(): EventChannel<string[]>;
|
|
29
|
-
/**
|
|
30
|
-
* Makes a saga channel for the metronome ticker
|
|
31
|
-
*/
|
|
32
|
-
export declare function metronomeSagaWithChannel(): SagaIterator;
|
|
33
17
|
export declare function rootSaga(): SagaIterator;
|
|
34
18
|
export default rootSaga;
|
|
@@ -414,20 +414,6 @@ export declare const getMapTimeSliderCenterTime: ((state: any, mapId: any) => nu
|
|
|
414
414
|
}> & {
|
|
415
415
|
clearCache: () => void;
|
|
416
416
|
};
|
|
417
|
-
/**
|
|
418
|
-
* Returns the unfiltered selected time of time slider
|
|
419
|
-
* This is not used to set the selected time itself, which is controlled by TimeBounds where values are rounded.
|
|
420
|
-
*
|
|
421
|
-
* Example: selectedTime = getTimeSliderUnfliteredSelectedTime(store, 'mapid_1')
|
|
422
|
-
* @param {object} store store: object - store object
|
|
423
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
424
|
-
* @returns {number} returnType: number - unfiltered selected time as a unix timestamp
|
|
425
|
-
*/
|
|
426
|
-
export declare const getTimeSliderUnfilteredSelectedTime: ((state: any, mapId: any) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined, args_1: number) => number | undefined, {
|
|
427
|
-
clearCache: () => void;
|
|
428
|
-
}> & {
|
|
429
|
-
clearCache: () => void;
|
|
430
|
-
};
|
|
431
417
|
/**
|
|
432
418
|
* Returns the number of seconds per pixel on the time slider
|
|
433
419
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
3
|
+
import { SpeedFactorType } from '@opengeoweb/timeslider';
|
|
3
4
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
4
5
|
import { MapActionOrigin } from './enums';
|
|
5
6
|
export interface Dimension {
|
|
@@ -39,7 +40,6 @@ export interface WebMap {
|
|
|
39
40
|
animationDelay?: number;
|
|
40
41
|
timeSliderWidth?: number;
|
|
41
42
|
timeSliderCenterTime?: number;
|
|
42
|
-
timeSliderUnfilteredSelectedTime?: number;
|
|
43
43
|
timeSliderSecondsPerPx?: number;
|
|
44
44
|
isTimestepAuto?: boolean;
|
|
45
45
|
isTimeSpanAuto?: boolean;
|
|
@@ -73,7 +73,6 @@ export declare enum AnimationLength {
|
|
|
73
73
|
Hours12 = 720,
|
|
74
74
|
Hours24 = 1440
|
|
75
75
|
}
|
|
76
|
-
export type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
77
76
|
export interface AnimationPayloadType {
|
|
78
77
|
duration?: number;
|
|
79
78
|
interval?: number;
|
|
@@ -197,10 +196,6 @@ export interface SetTimeSliderCenterTimePayload {
|
|
|
197
196
|
mapId: string;
|
|
198
197
|
timeSliderCenterTime: number;
|
|
199
198
|
}
|
|
200
|
-
export interface SetTimeSliderUnfilteredSelectedTimePayload {
|
|
201
|
-
mapId: string;
|
|
202
|
-
timeSliderUnfilteredSelectedTime: number;
|
|
203
|
-
}
|
|
204
199
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
205
200
|
mapId: string;
|
|
206
201
|
timeSliderSecondsPerPx: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
+
import { SpeedFactorType } from '@opengeoweb/timeslider';
|
|
2
3
|
import { Bbox, Dimension } from './types';
|
|
3
|
-
import {
|
|
4
|
-
import type { WebMapState, WebMap, SpeedFactorType } from '../types';
|
|
4
|
+
import type { WebMapState, WebMap } from '../types';
|
|
5
5
|
import type { Layer } from '../layers/types';
|
|
6
6
|
export declare const dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z";
|
|
7
7
|
export interface CreateMapProps {
|
|
@@ -70,25 +70,3 @@ export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIn
|
|
|
70
70
|
export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
|
|
71
71
|
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
72
72
|
export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
73
|
-
/**
|
|
74
|
-
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
75
|
-
*/
|
|
76
|
-
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
77
|
-
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
|
|
78
|
-
/**
|
|
79
|
-
* In this Map collection all fundamental scales
|
|
80
|
-
* (Scale.Minutes5 ... Scale.Year) are mapped with their corresponding
|
|
81
|
-
* secondsPerPx numbers.
|
|
82
|
-
* @returns a Map including information explained above
|
|
83
|
-
*/
|
|
84
|
-
export declare const secondsPerPxToScale: Map<number, Scale>;
|
|
85
|
-
/**
|
|
86
|
-
* Creates a reverse mapping of scales to their corresponding secondsPerPx
|
|
87
|
-
* values to make it easier in some parts GeoWeb to fetch a secondsPerpx for
|
|
88
|
-
* a certain fundamental scale (Scale.Minutes5 ... Scale.year)
|
|
89
|
-
* @returns an Object, where names are fundamental scale values (0 - 7) and
|
|
90
|
-
* values are their corresponding secondsPerPx numbers.
|
|
91
|
-
*/
|
|
92
|
-
export declare const scaleToSecondsPerPx: {
|
|
93
|
-
[x in Scale]: number;
|
|
94
|
-
};
|
package/src/store/types.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import type { WebMapStateModuleState } from './mapStore/types';
|
|
|
2
2
|
import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
|
|
3
3
|
import type { uiTypes } from '.';
|
|
4
4
|
import type { DrawtoolModuleStore } from './drawingtool';
|
|
5
|
-
|
|
5
|
+
import type { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
|
|
6
|
+
export interface CoreAppStore extends SynchronizationGroupModuleState, LoadingIndicatorModuleState, uiTypes.UIModuleState, WebMapStateModuleState, DrawtoolModuleStore {
|
|
6
7
|
}
|
|
@@ -70,7 +70,23 @@ export declare const getDialogSource: ((state: CoreAppStore, dialogType: string)
|
|
|
70
70
|
* @param {object} store store object from which the window state will be extracted
|
|
71
71
|
* @returns {string} active window id
|
|
72
72
|
*/
|
|
73
|
-
export declare const getActiveWindowId: (
|
|
73
|
+
export declare const getActiveWindowId: ((state: CoreAppStore) => string) & import("reselect").OutputSelectorFields<(args_0: UIStoreType) => string, {
|
|
74
|
+
clearCache: () => void;
|
|
75
|
+
}> & {
|
|
76
|
+
clearCache: () => void;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Gets if this is the active window
|
|
80
|
+
*
|
|
81
|
+
* Example: getIsActiveWindowId(store, viewId)
|
|
82
|
+
* @param {object} store store object from which the window state will be extracted
|
|
83
|
+
* @returns {string} active window id
|
|
84
|
+
*/
|
|
85
|
+
export declare const getIsActiveWindowId: ((state: CoreAppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIStoreType, args_1: string) => boolean, {
|
|
86
|
+
clearCache: () => void;
|
|
87
|
+
}> & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
};
|
|
74
90
|
export declare const getDialogIsLoading: ((state: CoreAppStore, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
75
91
|
clearCache: () => void;
|
|
76
92
|
}> & {
|
package/src/store/app/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Draft } from '@reduxjs/toolkit';
|
|
2
|
-
interface InitialState {
|
|
3
|
-
isInitialised: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const initialState: {
|
|
6
|
-
isInitialised: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const reducer: import("redux").Reducer<{
|
|
9
|
-
isInitialised: boolean;
|
|
10
|
-
}, import("redux").AnyAction>;
|
|
11
|
-
export declare const appActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
12
|
-
initialiseApp: (draft: Draft<InitialState>) => void;
|
|
13
|
-
}, "app">;
|
|
14
|
-
export type AppActions = ReturnType<typeof appActions.initialiseApp>;
|
|
15
|
-
export {};
|
package/src/store/app/types.d.ts
DELETED
|
File without changes
|
|
File without changes
|