@opengeoweb/core 4.22.1 → 5.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.
Files changed (130) hide show
  1. package/index.js +1050 -1067
  2. package/package.json +6 -6
  3. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +4 -4
  4. package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +6 -6
  5. package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +2 -2
  6. package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +4 -5
  7. package/src/lib/components/FeatureInfo/utils.d.ts +2 -2
  8. package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +2 -2
  9. package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +2 -2
  10. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -2
  11. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +3 -3
  12. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +6 -6
  13. package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +2 -2
  14. package/src/lib/components/LayerManager/DockedLayerManagerConnect.d.ts +3 -4
  15. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +3 -3
  16. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +5 -4
  17. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +2 -2
  18. package/src/lib/components/LayerManager/LayerManager.d.ts +4 -4
  19. package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +2 -2
  20. package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -2
  21. package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
  22. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +2 -2
  23. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +3 -4
  24. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +2 -2
  25. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +2 -2
  26. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +3 -4
  27. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +3 -4
  28. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +2 -2
  29. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +6 -7
  30. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
  31. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +4 -6
  32. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +4 -4
  33. package/src/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +2 -2
  34. package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +2 -2
  35. package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +2 -2
  36. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
  37. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
  38. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
  39. package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -5
  40. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +4 -5
  41. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +2 -2
  42. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +4 -5
  43. package/src/lib/components/LayerManager/useFetchServices.d.ts +2 -2
  44. package/src/lib/components/Legend/Legend.d.ts +2 -2
  45. package/src/lib/components/Legend/LegendConnect.d.ts +3 -3
  46. package/src/lib/components/Legend/LegendDialog.d.ts +3 -4
  47. package/src/lib/components/Legend/LegendLayout.d.ts +2 -2
  48. package/src/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -2
  49. package/src/lib/components/MapDraw/useMapDrawTool.d.ts +23 -5
  50. package/src/lib/components/MapTime/MapTime.d.ts +3 -3
  51. package/src/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -3
  52. package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +2 -2
  53. package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +2 -2
  54. package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +2 -2
  55. package/src/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +3 -3
  56. package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +3 -3
  57. package/src/lib/components/MultiMapView/MultiMapViewConnect.d.ts +4 -4
  58. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  59. package/src/lib/components/ReactMapView/types.d.ts +9 -9
  60. package/src/lib/components/ReactMapView/utils.d.ts +5 -5
  61. package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +5 -5
  62. package/src/lib/components/SyncGroups/utils.d.ts +2 -2
  63. package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +2 -2
  64. package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenu.d.ts +1 -1
  65. package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +1 -1
  66. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.d.ts +10 -3
  67. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.d.ts +5 -0
  68. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
  69. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +2 -2
  70. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +9 -10
  71. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +2 -2
  72. package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +4 -3
  73. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.d.ts +3 -3
  74. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.d.ts +3 -3
  75. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeSliderLegend.d.ts +2 -2
  76. package/src/lib/components/TimeSlider/constants.d.ts +3 -0
  77. package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +14 -48
  78. package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +4 -4
  79. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +2 -2
  80. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +8 -9
  81. package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +2 -2
  82. package/src/lib/components/WMSLoader/services.d.ts +2 -2
  83. package/src/lib/hooks/useSetupDialog/useSetupDialog.d.ts +2 -3
  84. package/src/lib/index.d.ts +8 -8
  85. package/src/lib/store/coreModuleConfig.d.ts +1 -1
  86. package/src/lib/store/generic/index.d.ts +2 -2
  87. package/src/lib/store/generic/selectors.d.ts +1 -1
  88. package/src/lib/store/generic/synchronizationGroups/index.d.ts +4 -4
  89. package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +4 -4
  90. package/src/lib/store/generic/synchronizationGroups/types.d.ts +2 -2
  91. package/src/lib/store/generic/types.d.ts +2 -1
  92. package/src/lib/store/layerSelect/index.d.ts +1 -0
  93. package/src/lib/store/layerSelect/reducer.d.ts +2 -2
  94. package/src/lib/store/layerSelect/selectors.d.ts +1 -1
  95. package/src/lib/store/layerSelect/types.d.ts +1 -1
  96. package/src/lib/store/layerSelect/utils.d.ts +2 -0
  97. package/src/lib/store/mapStore/index.d.ts +2 -0
  98. package/src/lib/store/mapStore/layers/index.d.ts +1 -0
  99. package/src/lib/store/mapStore/layers/reducer.d.ts +1 -1
  100. package/src/lib/store/mapStore/layers/selectors.d.ts +2 -2
  101. package/src/lib/store/mapStore/layers/types.d.ts +1 -0
  102. package/src/lib/store/mapStore/map/constants.d.ts +4 -0
  103. package/src/lib/store/mapStore/map/enums.d.ts +37 -0
  104. package/src/lib/store/mapStore/map/index.d.ts +5 -0
  105. package/src/lib/store/mapStore/map/reducer.d.ts +5 -5
  106. package/src/lib/store/mapStore/map/selectors.d.ts +77 -76
  107. package/src/lib/store/mapStore/map/types.d.ts +9 -26
  108. package/src/lib/store/mapStore/map/utils.d.ts +35 -6
  109. package/src/lib/store/mapStore/service/index.d.ts +1 -0
  110. package/src/lib/store/mapStore/utils/helpers.d.ts +1 -1
  111. package/src/lib/store/mapStore/utils/index.d.ts +1 -0
  112. package/src/lib/store/snackbar/index.d.ts +1 -0
  113. package/src/lib/store/ui/index.d.ts +1 -0
  114. package/src/lib/store/ui/selectors.d.ts +2 -2
  115. package/src/lib/store/ui/types.d.ts +1 -1
  116. package/src/lib/storybookUtils/HelperComponents.d.ts +2 -2
  117. package/src/lib/storybookUtils/defaultStorySettings.d.ts +5 -5
  118. package/src/lib/types/types.d.ts +4 -5
  119. package/src/lib/utils/__mocks__/getCapabilities.d.ts +2 -2
  120. package/src/lib/utils/defaultTestSettings.d.ts +11 -12
  121. package/src/lib/utils/jsonPresetFilter.d.ts +8 -8
  122. package/src/lib/utils/publicLayers.d.ts +44 -44
  123. package/src/lib/utils/testLayers.d.ts +10 -10
  124. package/src/lib/utils/testUtils.d.ts +9 -9
  125. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +0 -2
  126. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +0 -12
  127. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.spec.d.ts +0 -1
  128. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +0 -5
  129. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts +0 -1
  130. /package/src/lib/components/{LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts → TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.spec.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
- import { Scale } from '../../../store/mapStore/types';
2
+ import { mapEnums } from '../../../store';
3
3
  export declare const TIME_SLIDER_LEGEND_HEIGHT = 24;
4
4
  export declare const DRAG_AREA_WIDTH = 24;
5
5
  export interface TimeSliderLegendProps {
6
6
  mapId: string;
7
7
  centerTime: number;
8
+ timeSliderWidth: number;
8
9
  secondsPerPx: number;
9
- dataScaleToSecondsPerPx?: number;
10
10
  selectedTime?: number;
11
- scale?: Scale;
11
+ span?: mapEnums.Span;
12
12
  currentTime?: number;
13
13
  dataStartTime?: number;
14
14
  dataEndTime?: number;
@@ -23,6 +23,7 @@ export interface TimeSliderLegendProps {
23
23
  onZoom?: (newSecondsPerPx: number, newCenterTime: number) => void;
24
24
  onSetAnimationStartTime?: (time: string) => void;
25
25
  onSetAnimationEndTime?: (time: string) => void;
26
+ updateCanvasWidth?: (storeWidth: number, newWidth: number) => void;
26
27
  }
27
28
  declare const TimeSliderLegend: React.FC<TimeSliderLegendProps>;
28
29
  export default TimeSliderLegend;
@@ -1,4 +1,4 @@
1
1
  import { Theme } from '@mui/material';
2
- import { Scale } from '../../../../store/mapStore/types';
3
- export declare const drawBackground: (context: CanvasRenderingContext2D, theme: Theme, visibleTimeStart: number, visibleTimeEnd: number, animationStartPx: number, animationEndPx: number, canvasWidth: number, height: number, scale: Scale, dataStartPx: number, dataEndPx: number, currentTimePx: number) => void;
4
- export declare function getColorChangeTimesteps(scale: Scale, visibleTimeStart: number, visibleTimeEnd: number): number[];
2
+ import { mapEnums } from '../../../../store';
3
+ export declare const drawBackground: (context: CanvasRenderingContext2D, theme: Theme, visibleTimeStart: number, visibleTimeEnd: number, animationStartPx: number, animationEndPx: number, canvasWidth: number, height: number, secondsPerPx: number, dataStartPx: number, dataEndPx: number, currentTimePx: number) => void;
4
+ export declare function getColorChangeTimesteps(scale: mapEnums.Scale, visibleTimeStart: number, visibleTimeEnd: number): number[];
@@ -1,8 +1,8 @@
1
1
  import { Theme } from '@mui/material';
2
2
  import moment from 'moment';
3
- import { Scale } from '../../../../store/mapStore/types';
3
+ import { mapEnums } from '../../../../store';
4
4
  export declare const roundByUnitOfTime: (timeUnix: number, scaleType: moment.unitOfTime.StartOf, roundUp?: boolean, nightTime?: boolean) => number;
5
- export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: Scale) => [number, number];
5
+ export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: mapEnums.Scale) => [number, number];
6
6
  export declare const getCustomRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, unit: string, nightTime?: boolean) => [number, number];
7
7
  export declare const getCustomTimesteps: (roundedStart: number, roundedEnd: number, increment: string, nightTime?: boolean) => number[];
8
- export declare const drawTimeScale: (context: CanvasRenderingContext2D, theme: Theme, visibleTimeStart: number, visibleTimeEnd: number, canvasWidth: number, height: number, scale: Scale, dataScaleToSecondsPerPx: number) => void;
8
+ export declare const drawTimeScale: (context: CanvasRenderingContext2D, theme: Theme, visibleTimeStart: number, visibleTimeEnd: number, canvasWidth: number, height: number, secondsPerPx: number) => void;
@@ -1,3 +1,3 @@
1
1
  import { Theme } from '@mui/material';
2
- import { Scale } from '../../../../store/mapStore/types';
3
- export declare const drawTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number, animationStartTime: number, animationEndTime: number, dataStartTime: number, dataEndTime: number) => void;
2
+ import { mapEnums } from '../../../../store';
3
+ export declare const drawTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, selectedTimeUnix: number, span: mapEnums.Span, currentTimeUnix: number, animationStartTime: number, animationEndTime: number, dataStartTime: number, dataEndTime: number) => void;
@@ -0,0 +1,3 @@
1
+ import type { mapTypes } from '../../store';
2
+ export declare const millisecondsInSecond = 1000;
3
+ export declare const speedFactors: mapTypes.SpeedFactorType[];
@@ -1,27 +1,17 @@
1
1
  import moment from 'moment';
2
2
  import React from 'react';
3
- import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/types';
3
+ import { layerTypes, mapEnums, mapTypes } from '../../store';
4
4
  import CanvasComponent from '../CanvasComponent/CanvasComponent';
5
- export declare const millisecondsInSecond = 1000;
6
- export declare const defaultAnimationDelayAtStart = 250;
7
- export declare const defaultDelay = 1000;
8
- export declare const defaultTimeStep = 60;
9
- export declare const speedFactors: SpeedFactorType[];
10
5
  export interface TimeBounds {
11
6
  selectedTime: number;
12
7
  startTime: number;
13
8
  endTime: number;
14
9
  }
15
- /**
16
- * Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
17
- */
18
- export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
19
- export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
20
- export declare const getSelectedTime: (timeDimension?: Dimension | undefined) => number;
10
+ export declare const getSelectedTime: (timeDimension?: mapTypes.Dimension | undefined) => number;
21
11
  /**
22
12
  * Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
23
13
  */
24
- export declare const getTimeBounds: (dimensions: Dimension[]) => TimeBounds;
14
+ export declare const getTimeBounds: (dimensions: mapTypes.Dimension[]) => TimeBounds;
25
15
  export interface MomentTimeBounds {
26
16
  selectedTime: moment.Moment;
27
17
  startTime: moment.Moment;
@@ -30,15 +20,14 @@ export interface MomentTimeBounds {
30
20
  /**
31
21
  * Returns time bounds as *Moment* time instances from the given dimension. If no time dimension given, current time is returned as default
32
22
  */
33
- export declare const getMomentTimeBounds: (dimensions: Dimension[]) => MomentTimeBounds;
23
+ export declare const getMomentTimeBounds: (dimensions: mapTypes.Dimension[]) => MomentTimeBounds;
34
24
  export declare const scalingCoefficient: (end: number, start: number, width: number) => number;
35
25
  export declare const timestampToPixelEdges: (timestamp: number, start: number, end: number, width: number) => number;
36
26
  export declare const timestampToPixel: (timestamp: number, centerTime: number, widthPx: number, secondsPerPx: number) => number;
37
27
  export declare const pixelToTimestamp: (timePx: number, centerTime: number, widthPx: number, secondsPerPx: number) => number;
38
28
  export declare const onsetNewDateDebounced: (dateToSet: string, onSetNewDate: (newDate: string) => void) => void;
39
- export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
40
29
  export declare const setNewRoundedTime: (x: number, centerTime: number, width: number, secondsPerPx: number, timeStep: number, dataStartTime: number, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
41
- export declare const getDataLimitsFromLayers: (layers: Layer[]) => Array<number>;
30
+ export declare const getDataLimitsFromLayers: (layers: layerTypes.Layer[]) => Array<number>;
42
31
  export declare const setPreviousTimeStep: (timeStep: number, currentTime: number, dataStartTime: number, onSetNewDate: (newDate: string) => void) => void;
43
32
  export declare const setNextTimeStep: (timeStep: number, currentTime: number, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
44
33
  /**
@@ -48,46 +37,22 @@ export declare const setNextTimeStep: (timeStep: number, currentTime: number, da
48
37
  */
49
38
  export declare const moveSelectedTimePx: (x: number, canvasWidth: number, centerTime: number, dataStartTime: number, dataEndTime: number, secondsPerPx: number, timeStep: number, unfilteredSelectedTime: number, setUnfilteredSelectedTime: (unfilteredSelectedTime: number) => void, onSetNewDate: (newDate: string) => void) => void;
50
39
  /**
51
- * This function calculates a suitable secondsPerpx value,
52
- * when a data scale is selected. secondsPerPx is different for every data set
53
- * and is calculated here with a function getDataLimitsfromLayers.
54
- * There in the function the largest time range of all layers is selected.
40
+ * This function gets the length in seconds of the data layers
55
41
  * @param layers
56
- * @returns secondsPerPx for data sets of layers calculated 60*2*3,
57
- * where 3 is found by trying how to get the whole data range
58
- * to fit in the time slider
59
- */
60
- export declare const getScaleToSecondsPerPxForDataScale: (layers: Layer[]) => number;
61
- /**
62
- * In this Map collection all fundamental scales
63
- * (Scale.Minutes5 ... Scale.Year) are mapped with their corresponding
64
- * secondsPerPx numbers. A Scale.DataScale is not included since its
65
- * secondsPerPx number is different for every data set.
66
- * @returns a Map including information explained above
42
+ * @returns dataSpanSeconds,
67
43
  */
68
- export declare const secondsPerPxToScale: Map<number, Scale>;
69
- /**
70
- * Here secondsPerPxToScale is converted to an iterator object and
71
- * then keys are turned to values and values turned to keys
72
- * to make it easier in some parts GeoWeb to fetch a secondsPerpx for
73
- * a certain fundamental scale (Scale.Minutes5 ... Scale.year)
74
- * @returns an Object, where names are fundamental scale values (0 - 7) and
75
- * values are their corresponding secondsPerPx numbers.
76
- */
77
- export declare const scaleToSecondsPerPx: {
78
- [x in Scale]: number;
79
- };
44
+ export declare const getDataSpanSeconds: (layers: layerTypes.Layer[]) => number;
80
45
  /**
81
46
  * This function creates and returns an array where there is secondsPerPx
82
- * number of the data set added for a data scale (dataScaleToSecondsPerPx)
47
+ * number of the data set added for a data scale (secondsPerPx)
83
48
  * to secondsPerPxToScale.
84
- * @param dataScaleToSecondsPerPx
49
+ * @param secondsPerPx
85
50
  * @returns an array containing secondsPerPx numbers.
86
51
  * The secondsPerPx number for a data scale is included
87
52
  * contrary to secondsPerPxToScale.
88
53
  */
89
- export declare const secondsPerPxValues: (dataScaleToSecondsPerPx: number) => number[];
90
- export declare const defaultDataScaleToSecondsPerPx = 43200;
54
+ export declare const secondsPerPxValues: (secondsPerPx: number) => number[];
55
+ export declare const secondsPerPxFromCanvasWidth: (canvasWidth: number, spanInSeconds: number) => number;
91
56
  export declare const getNewCenterOfFixedPointZoom: (fixedTimePoint: number, oldSecondsPerPx: number, newSecondsPerPx: number, oldCenterTime: number) => number;
92
57
  /**
93
58
  * Move the time slider such that a given time point (timePoint)
@@ -112,7 +77,7 @@ export declare const needleGeom: {
112
77
  lineWidth: number;
113
78
  };
114
79
  export declare const AUTO_MOVE_AREA_PADDING = 1;
115
- export declare const getAutoMoveAreaWidth: (scale: Scale) => number;
80
+ export declare const getAutoMoveAreaWidth: (scale: mapEnums.Scale) => number;
116
81
  /** Reusable business logic for how to handle events that set time to now (closest).
117
82
  * Used in NowButton and TimeSliderLegend.
118
83
  */
@@ -130,3 +95,4 @@ export declare enum TimeInMinutes {
130
95
  * @returns the two highest values in the format yr(s) mo(s) d h m
131
96
  */
132
97
  export declare const minutesToDescribedDuration: (minutes: number) => string;
98
+ export declare const getFundamentalScale: (secondsPerPx: number) => mapEnums.Scale;
@@ -1,5 +1,5 @@
1
1
  import { ElementType, ReactNode } from 'react';
2
- import { ReduxLayer } from '../../store/mapStore/types';
2
+ import { layerTypes } from '../../store';
3
3
  export declare const DAY_TO_MILLISECOND: number;
4
4
  export declare const DAY_TO_SECOND = 86400;
5
5
  export declare const HOUR_TO_SECOND = 3600;
@@ -29,13 +29,13 @@ export declare const TIME_SLIDER_LITE_DEFAULT_MAX_FORECAST_RANGE: number;
29
29
  export declare const TIME_SLIDER_LITE_DEFAULT_MAX_OBSERVED_RANGE: number;
30
30
  /**
31
31
  * Checks which layers have observed/forecasted data and returns a default time range
32
- * @param layers ReduxLayer[] Map layers
32
+ * @param layers layerTypes.ReduxLayer[] Map layers
33
33
  * @param currentTime Current time in seconds
34
34
  * @param overrideDefaultTimeRange [observedTimeRange, forecastTime] in seconds from current time
35
35
  * @returns [startTime, endTime] in seconds
36
36
  */
37
- export declare const defaultTimeRange: (layers: ReduxLayer[], currentTime?: number, overrideDefaultTimeRange?: [number, number] | undefined) => [number, number];
38
- export declare const useDefaultTimeRange: (layers: ReduxLayer[], updateThreshold: number, currentTime?: number) => [number, number];
37
+ export declare const defaultTimeRange: (layers: layerTypes.ReduxLayer[], currentTime?: number, overrideDefaultTimeRange?: [number, number] | undefined) => [number, number];
38
+ export declare const useDefaultTimeRange: (layers: layerTypes.ReduxLayer[], updateThreshold: number, currentTime?: number) => [number, number];
39
39
  export declare const subTicksPerDay: (dayWidthInPixels: number) => number;
40
40
  export declare const maxSubTicksPerDay: (dayWidthInPixels: number, timeStep: number) => number;
41
41
  export declare const getRemainingHours: (maxHours: number | undefined, days: number) => number;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { Service } from '../services';
3
- import { Layer } from '../../../store/mapStore/layers/types';
3
+ import { layerTypes } from '../../../store';
4
4
  interface WMSLayerTreeProps {
5
5
  service: Service;
6
6
  onClickLayer: (serviceURL: string, layerName: string) => void;
7
- highlightedLayers: Layer[];
7
+ highlightedLayers: layerTypes.Layer[];
8
8
  }
9
9
  declare const WMSLayerTree: React.FC<WMSLayerTreeProps>;
10
10
  export default WMSLayerTree;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { Layer, LayerType } from '../../../store/mapStore/types';
3
- import { layerActions } from '../../../store';
2
+ import { layerActions, layerTypes } from '../../../store';
4
3
  import { Service } from '../services';
5
4
  export interface WMSLayerTreeConnectProps {
6
5
  service: Service;
@@ -8,17 +7,17 @@ export interface WMSLayerTreeConnectProps {
8
7
  setBaseLayers?: typeof layerActions.setBaseLayers;
9
8
  addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
10
9
  mapId: string;
11
- loadedLayers?: Layer[];
12
- layerType?: LayerType;
10
+ loadedLayers?: layerTypes.Layer[];
11
+ layerType?: layerTypes.LayerType;
13
12
  }
14
13
  declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
15
14
  service: Service;
16
15
  mapId: string;
17
- layerType?: LayerType | undefined;
18
- addLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").AddLayerPayload, "layerReducer/addLayer"> | undefined;
19
- setBaseLayers?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetBaseLayersPayload, "layerReducer/setBaseLayers"> | undefined;
20
- addAvailableBaseLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").AddAvailableBaseLayerPayload, "layerReducer/addAvailableBaseLayer"> | undefined;
21
- loadedLayers?: Layer[] | undefined;
16
+ layerType?: layerTypes.LayerType | undefined;
17
+ addLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<layerTypes.AddLayerPayload, "layerReducer/addLayer"> | undefined;
18
+ setBaseLayers?: import("@reduxjs/toolkit").ActionCreatorWithPayload<layerTypes.SetBaseLayersPayload, "layerReducer/setBaseLayers"> | undefined;
19
+ addAvailableBaseLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<layerTypes.AddAvailableBaseLayerPayload, "layerReducer/addAvailableBaseLayer"> | undefined;
20
+ loadedLayers?: layerTypes.Layer[] | undefined;
22
21
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
23
22
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
24
23
  }>;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { Service } from './services';
3
- import { LayerType } from '../../store/mapStore/types';
3
+ import { layerTypes } from '../../store';
4
4
  interface WMSLoaderConnectProps {
5
5
  mapId: string;
6
6
  preloadedServices?: Service[];
7
- layerType?: LayerType;
7
+ layerType?: layerTypes.LayerType;
8
8
  tooltip?: string;
9
9
  }
10
10
  /**
@@ -1,8 +1,8 @@
1
- import { ServiceScope } from '../../store/mapStore/types';
1
+ import { serviceTypes } from '../../store';
2
2
  export interface Service {
3
3
  name: string;
4
4
  url: string;
5
5
  id: string;
6
- scope?: ServiceScope;
6
+ scope?: serviceTypes.ServiceScope;
7
7
  abstract?: string;
8
8
  }
@@ -1,5 +1,4 @@
1
- import type { uiTypes } from '../..';
2
- import { Source } from '../../store/ui/types';
1
+ import { uiTypes } from '../../store';
3
2
  export interface SetupDialogReturnValue {
4
3
  setDialogOrder: () => void;
5
4
  dialogOrder: number;
@@ -10,4 +9,4 @@ export interface SetupDialogReturnValue {
10
9
  uiError: string;
11
10
  setFocused: (focused: boolean) => void;
12
11
  }
13
- export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: Source) => SetupDialogReturnValue;
12
+ export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: uiTypes.Source) => SetupDialogReturnValue;
@@ -1,8 +1,7 @@
1
- import { mapSelectors, webmapReducer, uiActions, uiSelectors, uiReducer, layerActions, genericActions, snackbarActions, routerActions, appActions, layerSelectors, serviceSelectors, genericSelectors, syncGroupsSelectors } from './store';
1
+ import * as mapStoreActions from './store';
2
2
  import * as mapTypes from './store/mapStore/types';
3
3
  import * as layerTypes from './store/mapStore/layers/types';
4
4
  import * as mapUtils from './store/mapStore/map/utils';
5
- import * as uiTypes from './store/ui/types';
6
5
  import { reducer as layerReducer } from './store/mapStore/layers/reducer';
7
6
  import synchronizationGroupConfig from './store/generic/config';
8
7
  import * as SyncGroups from './store/generic/synchronizationGroups';
@@ -20,9 +19,9 @@ export { TimeSlider, TimeSliderConnect, TimeSliderButtonsConnect, TimeSliderOpti
20
19
  export { TimeSliderLite } from './components/TimeSliderLite';
21
20
  export { MapControls } from './components/MapControls';
22
21
  export declare const mapActions: {
23
- serviceSetLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetLayersForServicePayload, "serviceReducer/serviceSetLayers">;
24
- mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.MapStoreRemoveServicePayload, "serviceReducer/mapStoreRemoveService">;
25
- fetchInitialServices: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.FetchInitialServicesPayload, "serviceReducer/fetchInitialServices">;
22
+ serviceSetLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapStoreActions.serviceTypes.SetLayersForServicePayload, "serviceReducer/serviceSetLayers">;
23
+ mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapStoreActions.serviceTypes.MapStoreRemoveServicePayload, "serviceReducer/mapStoreRemoveService">;
24
+ fetchInitialServices: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapStoreActions.serviceTypes.FetchInitialServicesPayload, "serviceReducer/fetchInitialServices">;
26
25
  setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapPresetPayload, string>;
27
26
  mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapDimensionPayload, string>;
28
27
  registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -35,7 +34,7 @@ export declare const mapActions: {
35
34
  mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.UpdateAllMapDimensionsPayload, "mapReducer/mapUpdateAllMapDimensions">;
36
35
  mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapAnimationStartPayload, "mapReducer/mapStartAnimation">;
37
36
  mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapAnimationStopPayload, "mapReducer/mapStopAnimation">;
38
- setTimeSliderScale: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderScalePayload, "mapReducer/setTimeSliderScale">;
37
+ setTimeSliderSpan: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderSpanPayload, "mapReducer/setTimeSliderSpan">;
39
38
  setTimeStep: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeStepPayload, "mapReducer/setTimeStep">;
40
39
  setAnimationStartTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAnimationStartTimePayload, "mapReducer/setAnimationStartTime">;
41
40
  setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAnimationEndTimePayload, "mapReducer/setAnimationEndTime">;
@@ -50,10 +49,10 @@ export declare const mapActions: {
50
49
  mapId: string;
51
50
  autoUpdateLayerId: string | undefined;
52
51
  }, "mapReducer/setAutoUpdateLayerId">;
52
+ setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
53
53
  setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
54
54
  setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderUnfilteredSelectedTimePayload, "mapReducer/setTimeSliderUnfilteredSelectedTime">;
55
55
  setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
56
- setTimeSliderDataScaleToSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderDataScaleToSecondsPerPxPayload, "mapReducer/setTimeSliderDataScaleToSecondsPerPx">;
57
56
  toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
58
57
  setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
59
58
  toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.ToggleTimestepAutoPayload, "mapReducer/toggleTimestepAuto">;
@@ -84,7 +83,8 @@ export declare const mapActions: {
84
83
  onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.UpdateLayerInfoPayload, "layerReducer/onUpdateLayerInformation">;
85
84
  setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetSelectedFeaturePayload, "layerReducer/setSelectedFeature">;
86
85
  };
87
- export { mapSelectors, webmapReducer, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiReducer, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, serviceSelectors, routerActions, genericSelectors, syncGroupsSelectors, };
86
+ export { mapSelectors, mapEnums, webmapReducer, uiActions, uiSelectors, uiReducer, uiTypes, layerActions, genericActions as syncGroupActions, snackbarActions, routerActions, appActions, layerSelectors, serviceSelectors, genericSelectors, syncGroupsSelectors, } from './store';
87
+ export { mapTypes, mapUtils, layerTypes, layerReducer };
88
88
  export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
89
89
  export * from './components/ComponentsLookUp';
90
90
  export * from './components/ConfigurableMap';
@@ -1,2 +1,2 @@
1
- declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore/types").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>>)[];
1
+ 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>>)[];
2
2
  export default coreModuleConfig;
@@ -1,4 +1,3 @@
1
- import { syncGroupsSelectors } from './synchronizationGroups';
2
1
  export declare const genericActions: {
3
2
  setTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimePayload, string>;
4
3
  setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBboxPayload, string>;
@@ -13,4 +12,5 @@ export declare const genericActions: {
13
12
  syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
14
13
  };
15
14
  export * as genericSelectors from './selectors';
16
- export { syncGroupsSelectors };
15
+ export { syncGroupsSelectors, syncGroupsTypes } from './synchronizationGroups';
16
+ export * as genericTypes from './types';
@@ -1,4 +1,4 @@
1
- import { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
1
+ import type { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
2
2
  export declare const getSynchronizationGroupStore: ((state: {
3
3
  syncronizationGroupStore?: SynchronizationGroupState | undefined;
4
4
  ui?: import("../ui/types").UIStoreType | undefined;
@@ -1,5 +1,5 @@
1
- import { actions, initialState } from './reducer';
2
- import * as constants from './constants';
3
- import * as types from './types';
4
- export { actions, constants, types, initialState };
1
+ export { actions, initialState } from './reducer';
2
+ export * as constants from './constants';
3
+ export * as types from './types';
5
4
  export * as syncGroupsSelectors from './selectors';
5
+ export * as syncGroupsTypes from './types';
@@ -1,7 +1,7 @@
1
- import { AppStore } from '../../../types/types';
2
- import { GenericSyncActionPayload } from '../synchronizationActions/types';
3
- import { GenericActionPayload } from '../types';
4
- import { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
1
+ import type { AppStore } from '../../../types/types';
2
+ import type { GenericSyncActionPayload } from '../synchronizationActions/types';
3
+ import type { GenericActionPayload } from '../types';
4
+ import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
5
5
  export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupState;
6
6
  /**
7
7
  * Gets synchronization group state
@@ -1,6 +1,6 @@
1
- import { GenericActionPayload } from '../types';
1
+ import type { GenericActionPayload } from '../types';
2
2
  import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
3
- import { SyncGroupViewState } from '../../../components/SyncGroups/types';
3
+ import type { SyncGroupViewState } from '../../../components/SyncGroups/types';
4
4
  export interface SynchronizationGroup {
5
5
  type: SyncType;
6
6
  title?: string;
@@ -1,4 +1,5 @@
1
- import { AddLayerPayload, DeleteLayerPayload, MapActionOrigin, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
1
+ import { MapActionOrigin } from '../mapStore/map/enums';
2
+ import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
2
3
  export interface SetTimePayload {
3
4
  sourceId: string;
4
5
  origin: string;
@@ -1,2 +1,3 @@
1
1
  export { layerSelectActions } from './reducer';
2
2
  export * as layerSelectSelectors from './selectors';
3
+ export * as layerSelectTypes from './types';
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { DialogTypes } from '../ui/types';
2
+ import { uiTypes } from '../ui';
3
3
  import { DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
4
  export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
5
5
  export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
@@ -17,5 +17,5 @@ export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerA
17
17
  toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
18
18
  enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
19
19
  setActiveLayerInfo: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
20
- }, DialogTypes.LayerSelect>;
20
+ }, uiTypes.DialogTypes.LayerSelect>;
21
21
  export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
@@ -1,4 +1,4 @@
1
- import { AppStore } from '../../types/types';
1
+ import type { AppStore } from '../../types/types';
2
2
  import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject } from './types';
3
3
  /**
4
4
  * Returns search filter string
@@ -1,5 +1,5 @@
1
1
  import { EntityState } from '@reduxjs/toolkit';
2
- import { ServiceLayer, ServiceScope } from '../mapStore/types';
2
+ import type { ServiceLayer, ServiceScope } from '../mapStore/types';
3
3
  export interface ActiveLayerObject extends ServiceLayer {
4
4
  serviceName: string;
5
5
  }
@@ -1,4 +1,6 @@
1
1
  import { EntityAdapter, Draft } from '@reduxjs/toolkit';
2
2
  import { Filter, FilterType, LayerSelectStoreType } from './types';
3
+ import { serviceTypes } from '../mapStore';
3
4
  export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
4
5
  export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter>) => void;
6
+ export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => serviceTypes.ServiceLayer[];
@@ -1,3 +1,5 @@
1
1
  export * from './service';
2
2
  export * from './map';
3
3
  export * from './layers';
4
+ export type { WebMapStateModuleState } from './types';
5
+ export * from './utils';
@@ -1,2 +1,3 @@
1
1
  export { layerActions } from './reducer';
2
2
  export * as layerSelectors from './selectors';
3
+ export * as layerTypes from './types';
@@ -1,6 +1,6 @@
1
1
  import { Draft, PayloadAction } from '@reduxjs/toolkit';
2
2
  import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, SetLayerDimensionsPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, UpdateLayerInfoPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload } from './types';
3
- export declare const createLayer: ({ id, opacity, enabled, layerType, status, ...props }: Layer) => Layer;
3
+ export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, ...props }: Layer) => Layer;
4
4
  export declare const initialState: LayerState;
5
5
  export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
6
6
  addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
@@ -1,5 +1,5 @@
1
- import { AppStore } from '../../../types/types';
2
- import { Dimension, ReduxLayer } from '../types';
1
+ import type { AppStore } from '../../../types/types';
2
+ import type { Dimension, ReduxLayer } from '../types';
3
3
  import { LayerState, Layer, LayerStatus } from './types';
4
4
  /**
5
5
  * Gets a layer from the layers part of the store by its Id
@@ -47,6 +47,7 @@ export interface ReduxLayer {
47
47
  format?: string;
48
48
  geojson?: FeatureCollection;
49
49
  selectedFeatureIndex?: number;
50
+ acceptanceTimeInMinutes?: number;
50
51
  }
51
52
  /**
52
53
  * Layer is used to define a layer with all its possible properties.
@@ -0,0 +1,4 @@
1
+ export declare const defaultAnimationDelayAtStart = 250;
2
+ export declare const defaultDelay = 1000;
3
+ export declare const defaultTimeStep = 60;
4
+ export declare const defaultSecondsPerPx = 80;
@@ -0,0 +1,37 @@
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 Span {
12
+ Hour = 0,
13
+ Hours3 = 1,
14
+ Hours6 = 2,
15
+ Hours12 = 3,
16
+ Day = 4,
17
+ Days2 = 5,
18
+ Week = 6,
19
+ Weeks2 = 7,
20
+ Month = 8,
21
+ Months3 = 9,
22
+ Year = 10,
23
+ DataSpan = 11
24
+ }
25
+ export declare enum AnimationLength {
26
+ Minutes15 = 15,
27
+ Minutes30 = 30,
28
+ Hours1 = 60,
29
+ Hours2 = 120,
30
+ Hours3 = 180,
31
+ Hours6 = 360,
32
+ Hours12 = 720,
33
+ Hours24 = 1440
34
+ }
35
+ export declare enum MapActionOrigin {
36
+ map = "map"
37
+ }
@@ -1,2 +1,7 @@
1
+ import * as mapTypes from './types';
2
+ export { mapTypes };
1
3
  export { mapActions, reducer as webmapReducer } from './reducer';
2
4
  export * as mapSelectors from './selectors';
5
+ export * as mapEnums from './enums';
6
+ export * as mapUtils from './utils';
7
+ export * as mapConstants from './constants';