@opengeoweb/core 4.2.0 → 4.3.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 (56) hide show
  1. package/index.esm.js +999 -810
  2. package/index.umd.js +989 -804
  3. package/lib/components/CanvasComponent/CanvasComponent.d.ts +1 -0
  4. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +12 -16
  5. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +10 -0
  6. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.spec.d.ts} +0 -0
  7. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +6 -5
  8. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +9 -0
  9. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +7 -1
  10. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +4 -5
  11. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
  12. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListDimensions.d.ts +7 -0
  13. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -0
  14. package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +4 -0
  15. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +8 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +75 -0
  17. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +12 -16
  18. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +24 -32
  19. package/lib/components/Legend/LegendLayout.d.ts +13 -0
  20. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.spec.d.ts → Legend/LegendLayout.spec.d.ts} +0 -0
  21. package/lib/components/MapControls/MapControlButton.d.ts +1 -1
  22. package/lib/components/ReactMapView/ReactMapView.d.ts +2 -1
  23. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  24. package/lib/components/TimeSlider/TimeSlider.d.ts +0 -1
  25. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.d.ts +8 -0
  26. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.spec.d.ts +1 -0
  27. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.d.ts +9 -0
  28. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.spec.d.ts +1 -0
  29. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +2 -0
  30. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.d.ts +1 -0
  31. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +11 -0
  32. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.spec.d.ts +1 -0
  33. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +4 -0
  34. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts +1 -0
  35. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +6 -0
  36. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.d.ts +1 -0
  37. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +12 -16
  38. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +10 -16
  39. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +1 -0
  40. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +5 -0
  41. package/lib/components/WMSLoader/services.d.ts +2 -1
  42. package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -2
  43. package/lib/store/layerSelect/selectors.d.ts +18 -0
  44. package/lib/store/layerSelect/types.d.ts +3 -3
  45. package/lib/store/mapStore/map/sagas.d.ts +1 -1
  46. package/lib/store/mapStore/service/selectors.d.ts +0 -27
  47. package/lib/store/mapStore/service/types.d.ts +9 -2
  48. package/lib/store/ui/selectors.d.ts +5 -5
  49. package/lib/store/ui/types.d.ts +11 -3
  50. package/lib/store/utils.d.ts +2 -0
  51. package/lib/utils/__mocks__/getCapabilities.d.ts +2 -14
  52. package/lib/utils/defaultTestSettings.d.ts +3 -1
  53. package/package.json +10 -9
  54. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.d.ts +0 -12
  55. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +0 -13
  56. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.d.ts +0 -24
@@ -21,6 +21,7 @@ interface CanvasComponentProps {
21
21
  loop?: boolean;
22
22
  redrawInterval?: number;
23
23
  resizeCallback?: (newWidth: number) => void;
24
+ children?: React.ReactNode;
24
25
  }
25
26
  export default class CanvasComponent extends Component<CanvasComponentProps> {
26
27
  canvas: any;
@@ -5,25 +5,21 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const KeywordFilterResultsLight: {
7
7
  (): React.ReactElement;
8
- story: {
9
- name: string;
10
- parameters: {
11
- zeplinLink: {
12
- name: string;
13
- link: string;
14
- }[];
15
- };
8
+ storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
16
14
  };
17
15
  };
18
16
  export declare const KeywordFilterResultsDark: {
19
17
  (): React.ReactElement;
20
- story: {
21
- name: string;
22
- parameters: {
23
- zeplinLink: {
24
- name: string;
25
- link: string;
26
- }[];
27
- };
18
+ storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
28
24
  };
29
25
  };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Dimension } from '../../../../store/mapStore/types';
3
+ export interface LayerInfoLegendProps {
4
+ title: string;
5
+ name: string;
6
+ dimensions: Dimension[];
7
+ legendURL: string;
8
+ }
9
+ declare const LayerInfoLegend: React.FC<LayerInfoLegendProps>;
10
+ export default LayerInfoLegend;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
+ export declare type ListItem = {
3
+ label: string;
4
+ value: string;
5
+ icon: React.ReactElement;
6
+ };
2
7
  export interface LayerInfoListProps {
3
8
  label: string;
4
- list: {
5
- name: string;
6
- value: string;
7
- icon: React.ReactElement;
8
- }[];
9
+ list: ListItem[];
9
10
  }
10
11
  declare const LayerInfoList: React.FC<LayerInfoListProps>;
11
12
  export default LayerInfoList;
@@ -3,5 +3,14 @@ export interface LayerInfoTextProps {
3
3
  label: string;
4
4
  value: string;
5
5
  }
6
+ export declare const textStyle: {
7
+ lineHeight: string;
8
+ letterSpacing: string;
9
+ };
10
+ export declare const textStyleWithMargin: {
11
+ marginBottom: number;
12
+ lineHeight: string;
13
+ letterSpacing: string;
14
+ };
6
15
  declare const LayerInfoText: React.FC<LayerInfoTextProps>;
7
16
  export default LayerInfoText;
@@ -1,4 +1,10 @@
1
+ import React from 'react';
2
+ import { Dimension } from '../../../../store/mapStore/types';
1
3
  import { ActiveLayerObject } from '../../../../store/layerSelect/types';
4
+ import { ListItem } from './LayerInfoList';
2
5
  export declare const getLayerStyles: (layer: ActiveLayerObject) => string;
3
- export declare const getDimensionValue: (name: string, layer: ActiveLayerObject, breakAt: string, includeUnit?: boolean) => string;
6
+ export declare const getDimensionValue: (name: string, dimensions: Dimension[]) => string;
4
7
  export declare const getLayerBbox: (layer: ActiveLayerObject) => string;
8
+ export declare const getDimensionIcon: (name: string, dimensions: Dimension[]) => React.ReactElement;
9
+ export declare const getDimensionLabel: (name: string) => string;
10
+ export declare const getDimensionsList: (dimensions: Dimension[]) => ListItem[];
@@ -1,11 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { ReduxLayer } from '../../../../store/mapStore/layers/types';
3
- import { Services } from '../../../../store/mapStore/service/types';
3
+ import { ActiveLayerObject } from '../../../../store/layerSelect/types';
4
+ import { Services } from '../../../../store/mapStore/types';
4
5
  export interface LayerListProps {
5
6
  services: Services;
6
- serviceIds: string[];
7
+ filteredLayers: ActiveLayerObject[];
7
8
  layerSelectHeight: number;
8
9
  serviceListHeight: number;
10
+ layerSelectWidth: number;
9
11
  addLayer: ({ serviceUrl, layerName }: {
10
12
  serviceUrl: any;
11
13
  layerName: any;
@@ -14,10 +16,7 @@ export interface LayerListProps {
14
16
  layerId: any;
15
17
  layerIndex: any;
16
18
  }) => void;
17
- searchString: string;
18
19
  mapLayers: ReduxLayer[];
19
- filterIds: string[];
20
- allFiltersActive: boolean;
21
20
  mapId: string;
22
21
  }
23
22
  declare const LayerList: React.FC<LayerListProps>;
@@ -3,6 +3,7 @@ interface LayerListConnectProps {
3
3
  mapId: string;
4
4
  layerSelectHeight: number;
5
5
  serviceListHeight: number;
6
+ layerSelectWidth: number;
6
7
  }
7
8
  declare const LayerListConnect: React.FC<LayerListConnectProps>;
8
9
  export default LayerListConnect;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ListItem } from '../LayerInfo/LayerInfoList';
3
+ interface LayerListDimensionsProps {
4
+ dimensions: ListItem[];
5
+ }
6
+ declare const LayerListDimensions: React.FC<LayerListDimensionsProps>;
7
+ export default LayerListDimensions;
@@ -14,6 +14,7 @@ interface LayerListRowProps {
14
14
  }) => void;
15
15
  mapLayers: ReduxLayer[];
16
16
  mapId: string;
17
+ layerSelectWidth: number;
17
18
  }
18
19
  declare const LayerListRow: React.FC<LayerListRowProps>;
19
20
  export default LayerListRow;
@@ -9,6 +9,10 @@ interface LayerSelectProps {
9
9
  isOpen: boolean;
10
10
  order?: number;
11
11
  source?: Source;
12
+ startSize?: {
13
+ width: number;
14
+ height: number;
15
+ };
12
16
  }
13
17
  declare const LayerSelect: React.FC<LayerSelectProps>;
14
18
  export default LayerSelect;
@@ -19,3 +19,11 @@ export declare const LayerSelectDemoDarkTheme: {
19
19
  }[];
20
20
  };
21
21
  };
22
+ export declare const LayerSelectDemoSmallLightTheme: {
23
+ (): React.ReactElement;
24
+ storyName: string;
25
+ };
26
+ export declare const LayerSelectDemoSmallDarkTheme: {
27
+ (): React.ReactElement;
28
+ storyName: string;
29
+ };
@@ -0,0 +1,75 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const layerSelectColumnsLarge: {
3
+ column1: {
4
+ width: number;
5
+ };
6
+ column2: {
7
+ marginTop: string;
8
+ width: string;
9
+ height: string;
10
+ paddingLeft: string;
11
+ };
12
+ column3: {
13
+ height: string;
14
+ };
15
+ column4: {
16
+ height: string;
17
+ };
18
+ column5: {
19
+ height: string;
20
+ width: number;
21
+ };
22
+ column6: {
23
+ height: string;
24
+ width: string;
25
+ };
26
+ column7: {
27
+ height: string;
28
+ width: number;
29
+ marginRight: number;
30
+ marginLeft: number;
31
+ };
32
+ column8: {
33
+ width: string;
34
+ };
35
+ column9: {
36
+ width: string;
37
+ };
38
+ };
39
+ export declare const layerSelectColumnsSmall: {
40
+ column1: {
41
+ width: string;
42
+ };
43
+ column2: {
44
+ marginTop: string;
45
+ width: string;
46
+ };
47
+ column3: {
48
+ height: string;
49
+ };
50
+ column4: {
51
+ height: string;
52
+ };
53
+ column5: {
54
+ height: string;
55
+ width: string;
56
+ };
57
+ column6: {
58
+ height: string;
59
+ width: string;
60
+ };
61
+ column7: {
62
+ height: string;
63
+ width: number;
64
+ marginRight: number;
65
+ marginLeft: number;
66
+ };
67
+ column8: {
68
+ width: string;
69
+ };
70
+ column9: {
71
+ width: string;
72
+ };
73
+ };
74
+ export declare const widthToColumns: (width: number) => Record<string, CSSProperties>;
75
+ export declare const widthToRowHeight: (width: number) => number;
@@ -5,25 +5,21 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const ServiceOptionsDialogLight: {
7
7
  (): React.ReactElement;
8
- story: {
9
- name: string;
10
- parameters: {
11
- zeplinLink: {
12
- name: string;
13
- link: string;
14
- }[];
15
- };
8
+ storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
16
14
  };
17
15
  };
18
16
  export declare const ServiceOptionsDialogDark: {
19
17
  (): React.ReactElement;
20
- story: {
21
- name: string;
22
- parameters: {
23
- zeplinLink: {
24
- name: string;
25
- link: string;
26
- }[];
27
- };
18
+ storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
28
24
  };
29
25
  };
@@ -4,50 +4,42 @@ declare const _default: ComponentMeta<React.FC<import("./ServicePopup").ServiceP
4
4
  export default _default;
5
5
  export declare const ServicePopupAddLight: {
6
6
  (): JSX.Element;
7
- story: {
8
- name: string;
9
- parameters: {
10
- zeplinLink: {
11
- name: string;
12
- link: string;
13
- }[];
14
- };
7
+ storyName: string;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
15
13
  };
16
14
  };
17
15
  export declare const ServicePopupAddDark: {
18
16
  (): JSX.Element;
19
- story: {
20
- name: string;
21
- parameters: {
22
- zeplinLink: {
23
- name: string;
24
- link: string;
25
- }[];
26
- };
17
+ storyName: string;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
27
23
  };
28
24
  };
29
25
  export declare const ServicePopupShowLight: {
30
26
  (): JSX.Element;
31
- story: {
32
- name: string;
33
- parameters: {
34
- zeplinLink: {
35
- name: string;
36
- link: string;
37
- }[];
38
- };
27
+ storyName: string;
28
+ parameters: {
29
+ zeplinLink: {
30
+ name: string;
31
+ link: string;
32
+ }[];
39
33
  };
40
34
  };
41
35
  export declare const ServicePopupShowDark: {
42
36
  (): JSX.Element;
43
- story: {
44
- name: string;
45
- parameters: {
46
- zeplinLink: {
47
- name: string;
48
- link: string;
49
- }[];
50
- };
37
+ storyName: string;
38
+ parameters: {
39
+ zeplinLink: {
40
+ name: string;
41
+ link: string;
42
+ }[];
51
43
  };
52
44
  };
53
45
  export declare const ServicePopupWithInvalidUrl: () => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Dimension } from '../../store/mapStore/types';
3
+ interface LegendLayoutProps {
4
+ title: string;
5
+ name: string;
6
+ dimensions: Dimension[];
7
+ children: React.ReactNode;
8
+ height?: number;
9
+ width?: number;
10
+ minWidth?: number;
11
+ }
12
+ declare const LegendLayout: React.FC<LegendLayoutProps>;
13
+ export default LegendLayout;
@@ -5,7 +5,7 @@ interface MapControlButtonProps extends ToolButtonProps {
5
5
  onClick: () => void;
6
6
  isActive?: boolean;
7
7
  placement?: TooltipProps['placement'];
8
- children: React.ReactElement;
8
+ children: React.ReactNode;
9
9
  }
10
10
  declare const MapControlButton: React.FC<MapControlButtonProps>;
11
11
  export default MapControlButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import * as React from 'react';
2
3
  import { WMJSMap, WMLayer, WMBBOX } from '@opengeoweb/webmap';
3
4
  import { FeatureLayer } from './AdagucMapDrawContainer';
@@ -41,7 +42,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
41
42
  currentHeight: any;
42
43
  adagucContainerRef: any;
43
44
  adagucWebMapJSRef: any;
44
- refetchTimer: any;
45
+ refetchTimer: NodeJS.Timeout;
45
46
  static defaultProps: {
46
47
  srs: string;
47
48
  bbox: {
@@ -1,5 +1,5 @@
1
- import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
1
+ import { WMLayer, WMJSMap, WMJSDimension } from '@opengeoweb/webmap';
2
2
  import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
3
3
  import { MapViewProps } from '../MapView/types';
4
- export declare const getCurrentDimensionValue: (dimensions: any[], name: string) => string;
4
+ export declare const getCurrentDimensionValue: (dimensions: WMJSDimension[], name: string) => string;
5
5
  export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  export interface TimeSliderProps {
3
3
  buttons?: React.ReactChild;
4
4
  rail?: React.ReactChild;
5
- scaleSlider?: React.ReactChild;
6
5
  legend?: React.ReactChild;
7
6
  mapIsActive?: boolean;
8
7
  onToggleTimeSlider?: (isVisible: boolean) => void;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export declare const title = "Now";
3
+ interface NowButtonProps {
4
+ onSetNow?: () => void;
5
+ disabled?: boolean;
6
+ }
7
+ declare const NowButton: React.FC<NowButtonProps>;
8
+ export default NowButton;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export declare const defaultAnimationDuration = 6;
3
+ export interface NowButtonConnectProps {
4
+ sourceId: string;
5
+ mapId: string;
6
+ isDisabled?: boolean;
7
+ }
8
+ declare const NowButtonConnect: React.FC<NowButtonConnectProps>;
9
+ export default NowButtonConnect;
@@ -1,8 +1,10 @@
1
1
  import * as React from 'react';
2
2
  interface OptionsMenuButtonProps {
3
+ nowBtn?: React.ReactChild;
3
4
  autoUpdateBtn?: React.ReactChild;
4
5
  speedBtn?: React.ReactChild;
5
6
  timeStepBtn?: React.ReactChild;
7
+ timeScaleBtn?: React.ReactChild;
6
8
  }
7
9
  declare const OptionsMenuButton: React.FC<OptionsMenuButtonProps>;
8
10
  export default OptionsMenuButton;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface OptionsMenuButtonConnectProps {
3
+ sourceId: string;
3
4
  mapId: string;
4
5
  }
5
6
  /**
@@ -0,0 +1,11 @@
1
+ import { Layer, Scale } from '../../../../store/mapStore/types';
2
+ interface TimeScaleButtonProps {
3
+ layers?: Layer[];
4
+ timeSliderScale: Scale;
5
+ centerTime: number;
6
+ secondsPerPx: number;
7
+ selectedTime: number;
8
+ onChangeTimeSliderScale: (scale: number, newCenterTime: number, dataScalePerPx: number) => void;
9
+ }
10
+ export declare const TimeScaleButton: ({ layers, timeSliderScale, centerTime, secondsPerPx, selectedTime, onChangeTimeSliderScale, }: TimeScaleButtonProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface TimeScaleButtonConnectProps {
2
+ mapId: string;
3
+ }
4
+ export declare const TimeScaleButtonConnect: ({ mapId, }: TimeScaleButtonConnectProps) => JSX.Element;
@@ -2,4 +2,10 @@ import * as React from 'react';
2
2
  export declare const TimeSliderButtonsDemo: {
3
3
  (): React.ReactElement;
4
4
  storyName: string;
5
+ parameters: {
6
+ zeplinLink: {
7
+ name: string;
8
+ link: string;
9
+ }[];
10
+ };
5
11
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface TimeSliderButtonsConnectProps {
3
+ sourceId: string;
3
4
  mapId: string;
4
5
  }
5
6
  /**
@@ -4,25 +4,21 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const TimeSliderMenuDemoLight: {
6
6
  (): JSX.Element;
7
- story: {
8
- name: string;
9
- parameters: {
10
- zeplinLink: {
11
- name: string;
12
- link: string;
13
- }[];
14
- };
7
+ storyName: string;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
15
13
  };
16
14
  };
17
15
  export declare const TimeSliderMenuDemoDark: {
18
16
  (): JSX.Element;
19
- story: {
20
- name: string;
21
- parameters: {
22
- zeplinLink: {
23
- name: string;
24
- link: string;
25
- }[];
26
- };
17
+ storyName: string;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
27
23
  };
28
24
  };
@@ -5,26 +5,20 @@ export default _default;
5
5
  export declare const TimeStepButtonDemoLight: {
6
6
  (): JSX.Element;
7
7
  storyName: string;
8
- story: {
9
- name: string;
10
- parameters: {
11
- zeplinLink: {
12
- name: string;
13
- link: string;
14
- }[];
15
- };
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
16
13
  };
17
14
  };
18
15
  export declare const TimeStepButtonDemoDark: {
19
16
  (): JSX.Element;
20
17
  storyName: string;
21
- story: {
22
- name: string;
23
- parameters: {
24
- zeplinLink: {
25
- name: string;
26
- link: string;
27
- }[];
28
- };
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
29
23
  };
30
24
  };
@@ -19,4 +19,5 @@ export interface TimeSliderLegendProps {
19
19
  onZoom?: (newSecondsPerPx: number, newCenterTime: number) => void;
20
20
  }
21
21
  declare const TimeSliderLegend: React.FC<TimeSliderLegendProps>;
22
+ export declare const TIME_SLIDER_LEGEND_HEIGHT = 50;
22
23
  export default TimeSliderLegend;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { DateInterval } from '@opengeoweb/webmap';
4
4
  import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/types';
5
5
  import CanvasComponent from '../CanvasComponent/CanvasComponent';
6
+ export declare const millisecondsInSecond = 1000;
6
7
  export declare const defaultAnimationDelayAtStart = 250;
7
8
  export declare const defaultDelay = 1000;
8
9
  export declare const defaultTimeStep = 5;
@@ -109,3 +110,7 @@ export declare const needleGeom: {
109
110
  };
110
111
  export declare const AUTO_MOVE_AREA_PADDING = 1;
111
112
  export declare const getAutoMoveAreaWidth: (scale: Scale) => number;
113
+ /** Reusable business logic for how to handle events that set time to now (closest).
114
+ * Used in NowButton and TimeSliderLegend.
115
+ */
116
+ export declare const handleSetNowEvent: (timeStep: number, dataStartTime: number, dataEndTime: number, currentTime: number, onSetNewDate: (newDate: string) => void, onSetCenterTime: (newTime: number) => void) => void;
@@ -1,7 +1,8 @@
1
+ import { ServiceScope } from '../../store/mapStore/types';
1
2
  export interface Service {
2
3
  name: string;
3
4
  url: string;
4
5
  id: string;
5
- isUserAddedService?: boolean;
6
+ scope?: ServiceScope;
6
7
  abstract?: string;
7
8
  }