@opengeoweb/store 12.12.0 → 13.0.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 +497 -305
- package/package.json +6 -6
- package/src/store/generic/linking/constants.d.ts +2 -1
- package/src/store/generic/selectors.d.ts +7 -28
- package/src/store/generic/synchronizationActions/types.d.ts +10 -1
- package/src/store/generic/types.d.ts +2 -1
- package/src/store/map/layer/reducer.d.ts +3 -1
- package/src/store/map/layer/selectors.d.ts +310 -0
- package/src/store/map/layer/types.d.ts +7 -1
- package/src/store/map/map/index.d.ts +2 -1
- package/src/store/map/map/reducer.d.ts +3 -3
- package/src/store/map/map/selectors.d.ts +151 -1
- package/src/store/map/map/types.d.ts +2 -1
- package/src/store/map/map/utils.d.ts +3 -1
- package/src/store/map/service/selectors.d.ts +90 -0
|
@@ -953,9 +953,38 @@ export declare const isAnimating: (store: CoreAppStore, mapId: string) => boolea
|
|
|
953
953
|
* @param {string} mapId mapId: string - Id of the map
|
|
954
954
|
* @returns {object} returnType: object - object containing isAnimating boolean and id string
|
|
955
955
|
*/
|
|
956
|
-
export declare const linkedMapAnimationInfo: (
|
|
956
|
+
export declare const linkedMapAnimationInfo: ((state: CoreAppStore, mapId: string) => {
|
|
957
957
|
isAnimating: boolean;
|
|
958
958
|
id: string;
|
|
959
|
+
}) & {
|
|
960
|
+
clearCache: () => void;
|
|
961
|
+
resultsCount: () => number;
|
|
962
|
+
resetResultsCount: () => void;
|
|
963
|
+
} & {
|
|
964
|
+
resultFunc: (resultFuncArgs_0: WebMapState | undefined, resultFuncArgs_1: import("../../generic/syncGroups/types").SynchronizationGroupState, resultFuncArgs_2: WebMap | undefined) => {
|
|
965
|
+
isAnimating: boolean;
|
|
966
|
+
id: string;
|
|
967
|
+
};
|
|
968
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMapState | undefined, resultFuncArgs_1: import("../../generic/syncGroups/types").SynchronizationGroupState, resultFuncArgs_2: WebMap | undefined) => {
|
|
969
|
+
isAnimating: boolean;
|
|
970
|
+
id: string;
|
|
971
|
+
}) & {
|
|
972
|
+
clearCache: () => void;
|
|
973
|
+
resultsCount: () => number;
|
|
974
|
+
resetResultsCount: () => void;
|
|
975
|
+
};
|
|
976
|
+
lastResult: () => {
|
|
977
|
+
isAnimating: boolean;
|
|
978
|
+
id: string;
|
|
979
|
+
};
|
|
980
|
+
dependencies: [(store: CoreAppStore) => WebMapState | undefined, (store: CoreAppStore) => import("../../generic/syncGroups/types").SynchronizationGroupState, (store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
981
|
+
recomputations: () => number;
|
|
982
|
+
resetRecomputations: () => void;
|
|
983
|
+
dependencyRecomputations: () => number;
|
|
984
|
+
resetDependencyRecomputations: () => void;
|
|
985
|
+
} & {
|
|
986
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
987
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
959
988
|
};
|
|
960
989
|
/**
|
|
961
990
|
* Gets start time of animation
|
|
@@ -2882,6 +2911,127 @@ export declare const getAnimationList: ((state: CoreAppStore, mapId: string) =>
|
|
|
2882
2911
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2883
2912
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2884
2913
|
};
|
|
2914
|
+
export declare const getAnimationListAsEpochTimes: ((state: CoreAppStore, mapId: string) => number[]) & {
|
|
2915
|
+
clearCache: () => void;
|
|
2916
|
+
resultsCount: () => number;
|
|
2917
|
+
resetResultsCount: () => void;
|
|
2918
|
+
} & {
|
|
2919
|
+
resultFunc: (resultFuncArgs_0: WebMapAnimationList) => number[];
|
|
2920
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMapAnimationList) => number[]) & {
|
|
2921
|
+
clearCache: () => void;
|
|
2922
|
+
resultsCount: () => number;
|
|
2923
|
+
resetResultsCount: () => void;
|
|
2924
|
+
};
|
|
2925
|
+
lastResult: () => number[];
|
|
2926
|
+
dependencies: [((state: CoreAppStore, mapId: string) => WebMapAnimationList) & {
|
|
2927
|
+
clearCache: () => void;
|
|
2928
|
+
resultsCount: () => number;
|
|
2929
|
+
resetResultsCount: () => void;
|
|
2930
|
+
} & {
|
|
2931
|
+
resultFunc: (resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: WebMap | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: number) => WebMapAnimationList;
|
|
2932
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: WebMap | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: number) => WebMapAnimationList) & {
|
|
2933
|
+
clearCache: () => void;
|
|
2934
|
+
resultsCount: () => number;
|
|
2935
|
+
resetResultsCount: () => void;
|
|
2936
|
+
};
|
|
2937
|
+
lastResult: () => WebMapAnimationList;
|
|
2938
|
+
dependencies: [((state: CoreAppStore) => Record<string, ReduxLayer> | null) & {
|
|
2939
|
+
clearCache: () => void;
|
|
2940
|
+
resultsCount: () => number;
|
|
2941
|
+
resetResultsCount: () => void;
|
|
2942
|
+
} & {
|
|
2943
|
+
resultFunc: (resultFuncArgs_0: import("../types").LayerState | undefined) => Record<string, ReduxLayer> | null;
|
|
2944
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../types").LayerState | undefined) => Record<string, ReduxLayer> | null) & {
|
|
2945
|
+
clearCache: () => void;
|
|
2946
|
+
resultsCount: () => number;
|
|
2947
|
+
resetResultsCount: () => void;
|
|
2948
|
+
};
|
|
2949
|
+
lastResult: () => Record<string, ReduxLayer> | null;
|
|
2950
|
+
dependencies: [(store: CoreAppStore) => import("../types").LayerState | undefined];
|
|
2951
|
+
recomputations: () => number;
|
|
2952
|
+
resetRecomputations: () => void;
|
|
2953
|
+
dependencyRecomputations: () => number;
|
|
2954
|
+
resetDependencyRecomputations: () => void;
|
|
2955
|
+
} & {
|
|
2956
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2957
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2958
|
+
}, (store: CoreAppStore, mapId: string) => WebMap | undefined, ((state: CoreAppStore, mapId: string) => string | undefined) & {
|
|
2959
|
+
clearCache: () => void;
|
|
2960
|
+
resultsCount: () => number;
|
|
2961
|
+
resetResultsCount: () => void;
|
|
2962
|
+
} & {
|
|
2963
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => string | undefined;
|
|
2964
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => string | undefined) & {
|
|
2965
|
+
clearCache: () => void;
|
|
2966
|
+
resultsCount: () => number;
|
|
2967
|
+
resetResultsCount: () => void;
|
|
2968
|
+
};
|
|
2969
|
+
lastResult: () => string | undefined;
|
|
2970
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2971
|
+
recomputations: () => number;
|
|
2972
|
+
resetRecomputations: () => void;
|
|
2973
|
+
dependencyRecomputations: () => number;
|
|
2974
|
+
resetDependencyRecomputations: () => void;
|
|
2975
|
+
} & {
|
|
2976
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2977
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2978
|
+
}, ((state: CoreAppStore, mapId: string) => string | undefined) & {
|
|
2979
|
+
clearCache: () => void;
|
|
2980
|
+
resultsCount: () => number;
|
|
2981
|
+
resetResultsCount: () => void;
|
|
2982
|
+
} & {
|
|
2983
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => string | undefined;
|
|
2984
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => string | undefined) & {
|
|
2985
|
+
clearCache: () => void;
|
|
2986
|
+
resultsCount: () => number;
|
|
2987
|
+
resetResultsCount: () => void;
|
|
2988
|
+
};
|
|
2989
|
+
lastResult: () => string | undefined;
|
|
2990
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2991
|
+
recomputations: () => number;
|
|
2992
|
+
resetRecomputations: () => void;
|
|
2993
|
+
dependencyRecomputations: () => number;
|
|
2994
|
+
resetDependencyRecomputations: () => void;
|
|
2995
|
+
} & {
|
|
2996
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2997
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2998
|
+
}, ((state: CoreAppStore, mapId: string) => number) & {
|
|
2999
|
+
clearCache: () => void;
|
|
3000
|
+
resultsCount: () => number;
|
|
3001
|
+
resetResultsCount: () => void;
|
|
3002
|
+
} & {
|
|
3003
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => number;
|
|
3004
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => number) & {
|
|
3005
|
+
clearCache: () => void;
|
|
3006
|
+
resultsCount: () => number;
|
|
3007
|
+
resetResultsCount: () => void;
|
|
3008
|
+
};
|
|
3009
|
+
lastResult: () => number;
|
|
3010
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
3011
|
+
recomputations: () => number;
|
|
3012
|
+
resetRecomputations: () => void;
|
|
3013
|
+
dependencyRecomputations: () => number;
|
|
3014
|
+
resetDependencyRecomputations: () => void;
|
|
3015
|
+
} & {
|
|
3016
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3017
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3018
|
+
}];
|
|
3019
|
+
recomputations: () => number;
|
|
3020
|
+
resetRecomputations: () => void;
|
|
3021
|
+
dependencyRecomputations: () => number;
|
|
3022
|
+
resetDependencyRecomputations: () => void;
|
|
3023
|
+
} & {
|
|
3024
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3025
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3026
|
+
}];
|
|
3027
|
+
recomputations: () => number;
|
|
3028
|
+
resetRecomputations: () => void;
|
|
3029
|
+
dependencyRecomputations: () => number;
|
|
3030
|
+
resetDependencyRecomputations: () => void;
|
|
3031
|
+
} & {
|
|
3032
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3033
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3034
|
+
};
|
|
2885
3035
|
/**
|
|
2886
3036
|
* @param {object} store store: object - store object
|
|
2887
3037
|
* @param {string} mapId mapId: string - Id of the map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { SpeedFactorType } from '@opengeoweb/
|
|
3
|
+
import { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
4
4
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
5
5
|
import { MapActionOrigin } from './enums';
|
|
6
6
|
export interface Dimension {
|
|
@@ -109,6 +109,7 @@ export interface MapPreset {
|
|
|
109
109
|
timeSliderSpan?: number;
|
|
110
110
|
toggleTimeSpanAuto?: boolean;
|
|
111
111
|
shouldShowDataExplorer?: boolean;
|
|
112
|
+
defaultOverlayer?: string;
|
|
112
113
|
}
|
|
113
114
|
export interface MapPresetInitialProps {
|
|
114
115
|
mapPreset: MapPreset;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import { SpeedFactorType } from '@opengeoweb/
|
|
2
|
+
import { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
3
|
+
import { Draft } from 'immer';
|
|
3
4
|
import { Bbox, Dimension } from './types';
|
|
4
5
|
import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
|
|
5
6
|
import type { Layer } from '../layer/types';
|
|
@@ -83,3 +84,4 @@ export declare const generateAnimationList: (unixAnimationStart: number, unixAni
|
|
|
83
84
|
* @returns An array of ISO8601 intervals
|
|
84
85
|
*/
|
|
85
86
|
export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
|
|
87
|
+
export declare const produceTimeSliderTimeSpan: (draft: Draft<WebMapState>, mapId: string, timeSliderSpan: number) => void;
|
|
@@ -294,3 +294,93 @@ export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string,
|
|
|
294
294
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
295
295
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
296
296
|
};
|
|
297
|
+
/**
|
|
298
|
+
* Gets the layer title from the servicestore using the serviceUrl and layerName
|
|
299
|
+
*
|
|
300
|
+
* Example: layerStyles = getLayerTitle(store, layerService, layerName);
|
|
301
|
+
* @param {object} store store: object - store from which the layers state will be extracted
|
|
302
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
303
|
+
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
304
|
+
* @returns {array} returnType: string - string containing layer title
|
|
305
|
+
*/
|
|
306
|
+
export declare const getLayerTitle: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => string | undefined) & {
|
|
307
|
+
clearCache: () => void;
|
|
308
|
+
resultsCount: () => number;
|
|
309
|
+
resetResultsCount: () => void;
|
|
310
|
+
} & {
|
|
311
|
+
resultFunc: (resultFuncArgs_0: LayerProps | undefined) => string | undefined;
|
|
312
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerProps | undefined) => string | undefined) & {
|
|
313
|
+
clearCache: () => void;
|
|
314
|
+
resultsCount: () => number;
|
|
315
|
+
resetResultsCount: () => void;
|
|
316
|
+
};
|
|
317
|
+
lastResult: () => string | undefined;
|
|
318
|
+
dependencies: [((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
|
|
319
|
+
clearCache: () => void;
|
|
320
|
+
resultsCount: () => number;
|
|
321
|
+
resetResultsCount: () => void;
|
|
322
|
+
} & {
|
|
323
|
+
resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
|
|
324
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
|
|
325
|
+
clearCache: () => void;
|
|
326
|
+
resultsCount: () => number;
|
|
327
|
+
resetResultsCount: () => void;
|
|
328
|
+
};
|
|
329
|
+
lastResult: () => LayerProps | undefined;
|
|
330
|
+
dependencies: [((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
|
|
331
|
+
clearCache: () => void;
|
|
332
|
+
resultsCount: () => number;
|
|
333
|
+
resetResultsCount: () => void;
|
|
334
|
+
} & {
|
|
335
|
+
resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
|
|
336
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
|
|
337
|
+
clearCache: () => void;
|
|
338
|
+
resultsCount: () => number;
|
|
339
|
+
resetResultsCount: () => void;
|
|
340
|
+
};
|
|
341
|
+
lastResult: () => LayerProps[];
|
|
342
|
+
dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
343
|
+
clearCache: () => void;
|
|
344
|
+
resultsCount: () => number;
|
|
345
|
+
resetResultsCount: () => void;
|
|
346
|
+
} & {
|
|
347
|
+
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
348
|
+
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
349
|
+
clearCache: () => void;
|
|
350
|
+
resultsCount: () => number;
|
|
351
|
+
resetResultsCount: () => void;
|
|
352
|
+
};
|
|
353
|
+
lastResult: () => ReduxService | undefined;
|
|
354
|
+
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
355
|
+
recomputations: () => number;
|
|
356
|
+
resetRecomputations: () => void;
|
|
357
|
+
dependencyRecomputations: () => number;
|
|
358
|
+
resetDependencyRecomputations: () => void;
|
|
359
|
+
} & {
|
|
360
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
361
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
362
|
+
}];
|
|
363
|
+
recomputations: () => number;
|
|
364
|
+
resetRecomputations: () => void;
|
|
365
|
+
dependencyRecomputations: () => number;
|
|
366
|
+
resetDependencyRecomputations: () => void;
|
|
367
|
+
} & {
|
|
368
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
369
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
370
|
+
}, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
|
|
371
|
+
recomputations: () => number;
|
|
372
|
+
resetRecomputations: () => void;
|
|
373
|
+
dependencyRecomputations: () => number;
|
|
374
|
+
resetDependencyRecomputations: () => void;
|
|
375
|
+
} & {
|
|
376
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
377
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
378
|
+
}];
|
|
379
|
+
recomputations: () => number;
|
|
380
|
+
resetRecomputations: () => void;
|
|
381
|
+
dependencyRecomputations: () => number;
|
|
382
|
+
resetDependencyRecomputations: () => void;
|
|
383
|
+
} & {
|
|
384
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
385
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
386
|
+
};
|