@opengeoweb/core 4.3.0 → 4.4.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 +1055 -459
- package/index.umd.js +1108 -443
- package/lib/components/CanvasComponent/CanvasComponent.d.ts +6 -6
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +2 -0
- package/lib/components/LayerManager/useFetchServices.d.ts +1 -1
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +6 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -0
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +5 -5
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +9 -1
- package/lib/components/SyncGroups/selector.d.ts +6 -6
- package/lib/components/TimeSlider/TimeSlider.stories.d.ts +15 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +13 -1
- package/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButton.d.ts +10 -0
- package/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButton.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButtonConnect.d.ts +6 -0
- package/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButtonConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/HideSliderButton/HideSliderButton.d.ts +7 -0
- package/lib/components/TimeSlider/TimeSliderButtons/HideSliderButton/HideSliderButton.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.stories.d.ts +24 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +19 -18
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.d.ts +5 -0
- package/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.stories.d.ts +24 -0
- package/lib/components/TimeSlider/TimeSliderClock/TimeSliderClockConnect.d.ts +4 -0
- package/lib/components/TimeSlider/TimeSliderClock/TimeSliderClockConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderConnect.d.ts +12 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +22 -3
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailConnect.d.ts +22 -3
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +4 -1
- package/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +11 -1
- package/lib/index.d.ts +52 -52
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/generic/actions.d.ts +2 -2
- package/lib/store/generic/config.d.ts +3 -2
- package/lib/store/generic/index.d.ts +10 -10
- package/lib/store/generic/selectors.d.ts +7 -7
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +2 -2
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -13
- package/lib/store/layerSelect/config.d.ts +3 -2
- package/lib/store/layerSelect/reducer.d.ts +1 -1
- package/lib/store/layerSelect/sagas.d.ts +3 -1
- package/lib/store/layerSelect/selectors.d.ts +54 -54
- package/lib/store/mapStore/config.d.ts +3 -2
- package/lib/store/mapStore/layers/reducer.d.ts +1 -1
- package/lib/store/mapStore/layers/selectors.d.ts +129 -109
- package/lib/store/mapStore/layers/types.d.ts +2 -1
- package/lib/store/mapStore/map/actions.d.ts +2 -2
- package/lib/store/mapStore/map/reducer.d.ts +33 -33
- package/lib/store/mapStore/map/sagas.d.ts +2 -1
- package/lib/store/mapStore/map/selectors.d.ts +297 -297
- package/lib/store/mapStore/service/reducer.d.ts +1 -1
- package/lib/store/mapStore/service/selectors.d.ts +36 -36
- package/lib/store/mapStore/service/types.d.ts +1 -0
- package/lib/store/snackbar/config.d.ts +3 -2
- package/lib/store/snackbar/reducer.d.ts +1 -1
- package/lib/store/snackbar/selectors.d.ts +2 -2
- package/lib/store/ui/config.d.ts +3 -2
- package/lib/store/ui/reducer.d.ts +1 -1
- package/lib/store/ui/selectors.d.ts +30 -30
- package/lib/storybookUtils/store.d.ts +1 -1
- package/lib/utils/__mocks__/getCapabilities.d.ts +24 -22
- package/lib/utils/defaultConfigurations.d.ts +2 -2
- package/lib/utils/defaultTestSettings.d.ts +1 -1
- package/lib/utils/testUtils.d.ts +1 -1
- package/package.json +11 -9
|
@@ -24,14 +24,14 @@ interface CanvasComponentProps {
|
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
}
|
|
26
26
|
export default class CanvasComponent extends Component<CanvasComponentProps> {
|
|
27
|
-
canvas:
|
|
28
|
-
ctx:
|
|
27
|
+
canvas: HTMLCanvasElement | null;
|
|
28
|
+
ctx: CanvasRenderingContext2D | null;
|
|
29
29
|
currentWidth: number;
|
|
30
30
|
currentHeight: number;
|
|
31
|
-
canvascontaineroutside:
|
|
32
|
-
canvascontainer:
|
|
33
|
-
timer:
|
|
34
|
-
redrawTimer:
|
|
31
|
+
canvascontaineroutside: React.RefObject<HTMLDivElement> | null;
|
|
32
|
+
canvascontainer: React.RefObject<HTMLDivElement> | null;
|
|
33
|
+
timer: ReturnType<typeof setTimeout> | null;
|
|
34
|
+
redrawTimer: ReturnType<typeof setTimeout> | null;
|
|
35
35
|
loopHasStarted: boolean;
|
|
36
36
|
mounted: boolean;
|
|
37
37
|
static defaultProps: {
|
|
@@ -29,5 +29,6 @@ export interface ConfigurableMapConnectProps {
|
|
|
29
29
|
displayDimensionSelectButtonInMap?: boolean;
|
|
30
30
|
multiLegend?: boolean;
|
|
31
31
|
shouldShowLayerManager?: boolean;
|
|
32
|
+
showClock?: boolean;
|
|
32
33
|
}
|
|
33
34
|
export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ import { ReduxLayer } from '../../../../store/mapStore/types';
|
|
|
5
5
|
interface ServiceOptionsDialogProps {
|
|
6
6
|
services: ActiveServices;
|
|
7
7
|
layerSelectRemoveService?: (serviceId: string, serviceUrl: string) => void;
|
|
8
|
+
layerSelectReloadService?: (serviceUrl: string) => void;
|
|
8
9
|
selectedLayers: ReduxLayer[];
|
|
9
10
|
setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
|
|
11
|
+
isLoading?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface ServicePopupInfo {
|
|
12
14
|
isOpen: boolean;
|
|
@@ -4,5 +4,7 @@ interface ServiceOptionsDialogConnectProps {
|
|
|
4
4
|
mapId?: string;
|
|
5
5
|
setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
|
|
6
6
|
}
|
|
7
|
+
export declare const getServiceSuccesUpdateMessage: (serviceName: string) => string;
|
|
8
|
+
export declare const getServiceFailedUpdateMessage: (error: Error) => string;
|
|
7
9
|
declare const ServiceOptionsDialogConnect: React.FC<ServiceOptionsDialogConnectProps>;
|
|
8
10
|
export default ServiceOptionsDialogConnect;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActiveServices } from '../../../../store/layerSelect/types';
|
|
2
|
+
import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
|
|
2
3
|
export declare type ValidationResult = string | boolean;
|
|
3
4
|
export declare const VALIDATIONS_NAME_EXISTING = "This name already exists. Choose another name.";
|
|
4
5
|
export declare const VALIDATIONS_SERVICE_EXISTING = "URL already exists.";
|
|
@@ -6,3 +7,4 @@ export declare const VALIDATIONS_SERVICE_VALID_URL = "Not a valid URL.";
|
|
|
6
7
|
export declare const VALIDATIONS_REQUEST_FAILED = "Download failed. Check the URL.";
|
|
7
8
|
export declare const validateServiceName: (value: string, services: ActiveServices, ownServiceName?: string) => ValidationResult;
|
|
8
9
|
export declare const validateServiceUrl: (value: string, services: ActiveServices) => ValidationResult;
|
|
10
|
+
export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<SetLayersForServicePayload>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NoIdService, UserAddedServices } from '../../utils/types';
|
|
2
2
|
import { Service } from '../WMSLoader/services';
|
|
3
|
-
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[]) => void;
|
|
3
|
+
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[] | undefined) => void;
|
|
4
4
|
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
3
|
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
+
/**
|
|
5
|
+
* Custom hook to find out if the list of syncgroup id's contains a group which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
6
|
+
* @param syncGroupsIds A string array of syncgroup ids
|
|
7
|
+
* @returns True if indeed a group is included which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
8
|
+
*/
|
|
9
|
+
export declare const useHasSyncGroupWithLayerActions: (syncGroupsIds: string[] | undefined) => boolean;
|
|
4
10
|
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerAndLegendButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
11
|
export interface ModelRunIntervalProps {
|
|
6
12
|
layers?: Layer[];
|
|
@@ -125,7 +125,7 @@ export default class AdagucMapDraw extends React.PureComponent<AdagucMapDrawProp
|
|
|
125
125
|
static defaultProps: {
|
|
126
126
|
isInEditMode: boolean;
|
|
127
127
|
isInDeleteMode: boolean;
|
|
128
|
-
webmapjs:
|
|
128
|
+
webmapjs: undefined;
|
|
129
129
|
featureNrToEdit: number;
|
|
130
130
|
};
|
|
131
131
|
featureEvent: FeatureEvent;
|
|
@@ -6,4 +6,4 @@ export declare type CheckHoverFeaturesResult = {
|
|
|
6
6
|
feature: GeoJsonFeature;
|
|
7
7
|
} | null;
|
|
8
8
|
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
9
|
-
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
9
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean | undefined) => CheckHoverFeaturesResult;
|
|
@@ -36,10 +36,10 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
36
36
|
currentMapProps: {
|
|
37
37
|
children?: React.ReactNode;
|
|
38
38
|
};
|
|
39
|
-
mapTimer:
|
|
40
|
-
featureLayerUpdateTimer:
|
|
41
|
-
currentWidth:
|
|
42
|
-
currentHeight:
|
|
39
|
+
mapTimer: undefined;
|
|
40
|
+
featureLayerUpdateTimer: undefined;
|
|
41
|
+
currentWidth: undefined;
|
|
42
|
+
currentHeight: undefined;
|
|
43
43
|
adagucContainerRef: any;
|
|
44
44
|
adagucWebMapJSRef: any;
|
|
45
45
|
refetchTimer: NodeJS.Timeout;
|
|
@@ -73,7 +73,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
73
73
|
layerArrayMutated: boolean;
|
|
74
74
|
};
|
|
75
75
|
clearRefetchTimer: () => void;
|
|
76
|
-
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement) => void;
|
|
76
|
+
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined) => void;
|
|
77
77
|
checkNewProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
78
78
|
drawDebounced(): void;
|
|
79
79
|
handleWindowResize(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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: WMJSDimension[], name: string) => string;
|
|
5
|
-
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
4
|
+
export declare const getCurrentDimensionValue: (dimensions: WMJSDimension[] | undefined, name: string) => string;
|
|
5
|
+
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
@@ -7,5 +7,13 @@ interface SimpleTimeSliderConnectComponentProps {
|
|
|
7
7
|
syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
|
|
8
8
|
syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
|
|
9
9
|
}
|
|
10
|
-
export declare const SimpleTimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<SimpleTimeSliderConnectComponentProps>,
|
|
10
|
+
export declare const SimpleTimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<SimpleTimeSliderConnectComponentProps>, {
|
|
11
|
+
id: string;
|
|
12
|
+
timeValue?: string | undefined;
|
|
13
|
+
setTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/types").SetTimePayload, string> | undefined;
|
|
14
|
+
syncGroupAddSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupsAddSourcePayload, string> | undefined;
|
|
15
|
+
syncGroupRemoveSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupRemoveSourcePayload, string> | undefined;
|
|
16
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
17
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
18
|
+
}>;
|
|
11
19
|
export {};
|
|
@@ -7,12 +7,12 @@ export declare const groupTypes: {
|
|
|
7
7
|
}[];
|
|
8
8
|
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
|
|
9
9
|
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
|
-
syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
11
|
-
ui?: import("../../store/ui/types").UIStoreType;
|
|
12
|
-
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
13
|
-
services?: import("../../store/mapStore/types").ServiceState;
|
|
14
|
-
layers?: import("../../store/mapStore/types").LayerState;
|
|
15
|
-
layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType;
|
|
10
|
+
syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
11
|
+
ui?: import("../../store/ui/types").UIStoreType | undefined;
|
|
12
|
+
webmap?: import("../../store/mapStore/types").WebMapState | undefined;
|
|
13
|
+
services?: import("../../store/mapStore/types").ServiceState | undefined;
|
|
14
|
+
layers?: import("../../store/mapStore/types").LayerState | undefined;
|
|
15
|
+
layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
16
16
|
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroups, args_1: SynchronizationSources) => SyncGroupViewState & {
|
|
17
17
|
clearCache: () => void;
|
|
18
18
|
}> & {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DemoTimeSlider: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
package/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts
CHANGED
|
@@ -5,5 +5,17 @@ interface ConnectedAutoUpdateButtonProps {
|
|
|
5
5
|
isAutoUpdating?: boolean;
|
|
6
6
|
toggleAutoUpdate?: typeof mapActions.toggleAutoUpdate;
|
|
7
7
|
}
|
|
8
|
-
declare const AutoUpdateButtonConnect: import("react-redux").ConnectedComponent<import("react-redux").ConnectedComponent<({ mapId, isAutoUpdating, toggleAutoUpdate, }: ConnectedAutoUpdateButtonProps) => JSX.Element,
|
|
8
|
+
declare const AutoUpdateButtonConnect: import("react-redux").ConnectedComponent<import("react-redux").ConnectedComponent<({ mapId, isAutoUpdating, toggleAutoUpdate, }: ConnectedAutoUpdateButtonProps) => JSX.Element, {
|
|
9
|
+
mapId: string;
|
|
10
|
+
isAutoUpdating?: boolean | undefined;
|
|
11
|
+
toggleAutoUpdate?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").ToggleAutoUpdatePayload, string> | undefined;
|
|
12
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
13
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
mapId: string;
|
|
16
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
17
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
18
|
+
isAutoUpdating?: boolean | undefined;
|
|
19
|
+
toggleAutoUpdate?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").ToggleAutoUpdatePayload, string> | undefined;
|
|
20
|
+
}>;
|
|
9
21
|
export default AutoUpdateButtonConnect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BackwardForwardStepButtonProps {
|
|
3
|
+
isForwardStep?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
onClickBFButton?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const forwardTooltipTitle = "Forward";
|
|
8
|
+
export declare const backwardTooltipTitle = "Backward";
|
|
9
|
+
declare const BackwardForwardStepButton: React.FC<BackwardForwardStepButtonProps>;
|
|
10
|
+
export default BackwardForwardStepButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface BackwardForwardStepButtonConnectProps {
|
|
2
|
+
mapId: string;
|
|
3
|
+
isForwardStep?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const BackwardForwardStepButtonConnect: ({ isForwardStep, mapId, }: BackwardForwardStepButtonConnectProps) => JSX.Element;
|
|
6
|
+
export default BackwardForwardStepButtonConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/HideSliderButton/HideSliderButton.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface OptionsMenuButtonProps {
|
|
3
3
|
nowBtn?: React.ReactChild;
|
|
4
4
|
autoUpdateBtn?: React.ReactChild;
|
|
5
5
|
speedBtn?: React.ReactChild;
|
|
6
6
|
timeStepBtn?: React.ReactChild;
|
|
7
7
|
timeScaleBtn?: React.ReactChild;
|
|
8
|
+
isOpenByDefault?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const OptionsMenuButton: React.FC<OptionsMenuButtonProps>;
|
|
10
11
|
export default OptionsMenuButton;
|
package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.stories.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const OptionsMenuButtonDemoLight: {
|
|
6
|
+
(): JSX.Element;
|
|
7
|
+
storyName: string;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const OptionsMenuButtonDemoDark: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
storyName: string;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ConnectedProps } from 'react-redux';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { mapActions } from '../../../../store';
|
|
4
4
|
export declare const animationIntervalDefault = 5;
|
|
5
5
|
export interface PlayButtonConnectProps {
|
|
@@ -14,28 +14,29 @@ export interface PlayButtonConnectProps {
|
|
|
14
14
|
linkedMapAnimationInfo?: any;
|
|
15
15
|
}
|
|
16
16
|
declare const connectRedux: import("react-redux").InferableComponentEnhancerWithProps<{
|
|
17
|
-
animationStartTime: string;
|
|
18
|
-
animationEndTime: string;
|
|
19
|
-
timeStep: number;
|
|
17
|
+
animationStartTime: string | undefined;
|
|
18
|
+
animationEndTime: string | undefined;
|
|
19
|
+
timeStep: number | undefined;
|
|
20
20
|
linkedMapAnimationInfo: {
|
|
21
21
|
isAnimating: boolean;
|
|
22
22
|
id: string;
|
|
23
23
|
};
|
|
24
24
|
} & {
|
|
25
|
-
mapStartAnimation: import("@reduxjs/toolkit").
|
|
26
|
-
mapStopAnimation: import("@reduxjs/toolkit").
|
|
25
|
+
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string>;
|
|
26
|
+
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string>;
|
|
27
27
|
}, PlayButtonConnectProps>;
|
|
28
28
|
declare type Props = PlayButtonConnectProps & ConnectedProps<typeof connectRedux>;
|
|
29
|
-
declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ mapId, animationStartTime, animationEndTime, isDisabled, timeStep, linkedMapAnimationInfo, mapStartAnimation, mapStopAnimation, }: Props) => JSX.Element,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ mapId, animationStartTime, animationEndTime, isDisabled, timeStep, linkedMapAnimationInfo, mapStartAnimation, mapStopAnimation, }: Props) => JSX.Element, {
|
|
30
|
+
mapId: string;
|
|
31
|
+
isDisabled?: boolean | undefined;
|
|
32
|
+
isAnimating?: boolean | undefined;
|
|
33
|
+
animationStartTime?: string | undefined;
|
|
34
|
+
animationEndTime?: string | undefined;
|
|
35
|
+
mapStartAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string> | undefined;
|
|
36
|
+
mapStopAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
37
|
+
timeStep?: number | undefined;
|
|
38
|
+
linkedMapAnimationInfo?: any;
|
|
39
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
40
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
41
|
+
}>;
|
|
41
42
|
export default PlayButtonConnect;
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
interface TimeSliderButtonsProps {
|
|
3
3
|
optionsMenuBtn?: React.ReactChild;
|
|
4
4
|
playBtn?: React.ReactChild;
|
|
5
|
+
backwardBtn?: React.ReactChild;
|
|
6
|
+
forwardBtn?: React.ReactChild;
|
|
5
7
|
}
|
|
6
8
|
declare const TimeSliderButtons: React.FC<TimeSliderButtonsProps>;
|
|
7
9
|
export default TimeSliderButtons;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const DemoTimeSliderClockLight: {
|
|
6
|
+
(): JSX.Element;
|
|
7
|
+
storyName: string;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const DemoTimeSliderClockDark: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
storyName: string;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,5 +19,16 @@ interface TimeSliderConnectProps {
|
|
|
19
19
|
* @example
|
|
20
20
|
* ``` <TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />```
|
|
21
21
|
*/
|
|
22
|
-
declare const TimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderConnectProps>,
|
|
22
|
+
declare const TimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderConnectProps>, {
|
|
23
|
+
sourceId: string;
|
|
24
|
+
mapId: string;
|
|
25
|
+
isAlwaysVisible?: boolean | undefined;
|
|
26
|
+
isTimeSliderHoverOn?: boolean | undefined;
|
|
27
|
+
isTimeSliderVisible?: boolean | undefined;
|
|
28
|
+
toggleTimeSliderHover?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/mapStore/types").ToggleTimeSliderHoverPayload, string> | undefined;
|
|
29
|
+
toggleTimeSliderIsVisible?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/mapStore/types").ToggleTimeSliderIsVisiblePayload, string> | undefined;
|
|
30
|
+
activeWindowId?: string | undefined;
|
|
31
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
32
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
33
|
+
}>;
|
|
23
34
|
export default TimeSliderConnect;
|
|
@@ -19,5 +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 =
|
|
22
|
+
export declare const TIME_SLIDER_LEGEND_HEIGHT = 24;
|
|
23
23
|
export default TimeSliderLegend;
|
|
@@ -18,12 +18,31 @@ interface TimeSliderLegendConnectProps {
|
|
|
18
18
|
activeWindowId?: string;
|
|
19
19
|
stopMapAnimation?: typeof mapActions.mapStopAnimation;
|
|
20
20
|
setTime?: typeof genericActions.setTime;
|
|
21
|
-
syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
|
|
22
|
-
syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
|
|
23
21
|
mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
|
|
24
22
|
mapSetTimeSliderSecondsPerPx?: typeof mapActions.setTimeSliderSecondsPerPx;
|
|
25
23
|
}
|
|
26
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FC<TimeSliderLegendConnectProps>,
|
|
24
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<TimeSliderLegendConnectProps>, {
|
|
25
|
+
sourceId?: string | undefined;
|
|
26
|
+
mapId: string;
|
|
27
|
+
dimensions?: Dimension[] | undefined;
|
|
28
|
+
scale?: Scale | undefined;
|
|
29
|
+
centerTime?: number | undefined;
|
|
30
|
+
secondsPerPx?: number | undefined;
|
|
31
|
+
dataScaleToSecondsPerPx?: number | undefined;
|
|
32
|
+
layers?: Layer[] | undefined;
|
|
33
|
+
isAnimating?: boolean | undefined;
|
|
34
|
+
timeStep?: number | undefined;
|
|
35
|
+
isTimeSliderHoverOn?: boolean | undefined;
|
|
36
|
+
animationStartTime?: string | undefined;
|
|
37
|
+
animationEndTime?: string | undefined;
|
|
38
|
+
activeWindowId?: string | undefined;
|
|
39
|
+
stopMapAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
40
|
+
setTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/generic/types").SetTimePayload, string> | undefined;
|
|
41
|
+
mapSetTimeSliderCenterTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderCenterTimePayload, string> | undefined;
|
|
42
|
+
mapSetTimeSliderSecondsPerPx?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderSecondsPerPxPayload, string> | undefined;
|
|
43
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
44
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
45
|
+
}>;
|
|
27
46
|
/**
|
|
28
47
|
* TimeSliderLegend component connected to the store displaying a legend of the time slider
|
|
29
48
|
*
|
|
@@ -2,4 +2,4 @@ import { Theme } from '@mui/material';
|
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
3
|
export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: Scale) => [number, number];
|
|
4
4
|
export declare const getCustomRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, unit: string) => [number, number];
|
|
5
|
-
export declare const renderTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number, animationStartTime: number, animationEndTime: number) => void;
|
|
5
|
+
export declare const renderTimeSliderLegend: (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;
|
|
@@ -19,9 +19,28 @@ interface TimeSliderRailConnectComponentProps {
|
|
|
19
19
|
setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
|
|
20
20
|
stopMapAnimation?: typeof mapActions.mapStopAnimation;
|
|
21
21
|
setTime?: typeof genericActions.setTime;
|
|
22
|
-
syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
|
|
23
|
-
syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
|
|
24
22
|
mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
|
|
25
23
|
}
|
|
26
|
-
declare const TimeSliderRailConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderRailConnectComponentProps>,
|
|
24
|
+
declare const TimeSliderRailConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderRailConnectComponentProps>, {
|
|
25
|
+
sourceId: string;
|
|
26
|
+
mapId: string;
|
|
27
|
+
dimensions?: Dimension[] | undefined;
|
|
28
|
+
timeStep?: number | undefined;
|
|
29
|
+
layers?: Layer[] | undefined;
|
|
30
|
+
animationStartTime?: string | undefined;
|
|
31
|
+
animationEndTime?: string | undefined;
|
|
32
|
+
isAnimating?: boolean | undefined;
|
|
33
|
+
centerTime?: number | undefined;
|
|
34
|
+
secondsPerPx?: number | undefined;
|
|
35
|
+
isTimeSliderHoverOn?: boolean | undefined;
|
|
36
|
+
scale?: Scale | undefined;
|
|
37
|
+
activeWindowId?: string | undefined;
|
|
38
|
+
setAnimationStartTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetAnimationStartTimePayload, string> | undefined;
|
|
39
|
+
setAnimationEndTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetAnimationEndTimePayload, string> | undefined;
|
|
40
|
+
stopMapAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
41
|
+
setTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/generic/types").SetTimePayload, string> | undefined;
|
|
42
|
+
mapSetTimeSliderCenterTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderCenterTimePayload, string> | undefined;
|
|
43
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
44
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
45
|
+
}>;
|
|
27
46
|
export default TimeSliderRailConnect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
|
-
export declare const renderTimeSliderRailWithNeedle: (ctx: CanvasRenderingContext2D, theme: Theme, width: number, height: number, centerTime: number, selected: number, secondsPerPx: number, scale: Scale, animationStart?: number, animationEnd?: number, dataStartTime?: number, dataEndTime?: number, currentTime?: number) => void;
|
|
3
|
+
export declare const renderTimeSliderRailWithNeedle: (ctx: CanvasRenderingContext2D, theme: Theme, width: number, height: number, centerTime: number, selected: number, secondsPerPx: number, scale: Scale, animationStart?: number | undefined, animationEnd?: number | undefined, dataStartTime?: number | undefined, dataEndTime?: number | undefined, currentTime?: number | undefined) => void;
|
|
@@ -18,6 +18,7 @@ export interface TimeBounds {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
20
20
|
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
21
|
+
export declare const getSelectedTime: (timeDimension?: Dimension | undefined) => number;
|
|
21
22
|
/**
|
|
22
23
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
23
24
|
*/
|
|
@@ -36,11 +37,13 @@ export declare const timestampToPixelEdges: (timestamp: number, start: number, e
|
|
|
36
37
|
export declare const timestampToPixel: (timestamp: number, centerTime: number, widthPx: number, secondsPerPx: number) => number;
|
|
37
38
|
export declare const pixelToTimestamp: (timePx: number, centerTime: number, widthPx: number, secondsPerPx: number) => number;
|
|
38
39
|
export declare const onsetNewDateDebounced: (dateToSet: string, onSetNewDate: (newDate: string) => void) => void;
|
|
39
|
-
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
|
|
40
|
+
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
|
|
40
41
|
export declare const setNewRoundedTime: (x: number, centerTime: number, width: number, secondsPerPx: number, timeStep: number, dataStartTime: number, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
|
|
41
42
|
export declare const getDataLimitsFromLayers: (layers: Layer[]) => Array<number>;
|
|
42
43
|
export declare const getNextTimeStepvalue: (value: number, max: number) => number;
|
|
43
44
|
export declare const getPreviousTimeStepvalue: (value: number, min: number) => number;
|
|
45
|
+
export declare const setPreviousTimeStep: (timeStep: number, curTime: string, dataStartTime: number, onSetNewDate: (newDate: string) => void) => void;
|
|
46
|
+
export declare const setNextTimeStep: (timeStep: number, curTime: string, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
|
|
44
47
|
export declare const getValueFromKeyboardEvent: (event: React.KeyboardEvent<HTMLInputElement>, value: number, min: number, max: number, supportFourDirectionNavigation?: boolean) => number;
|
|
45
48
|
export declare const getTimeStepFromDataInterval: (timeInterval: DateInterval) => number;
|
|
46
49
|
export declare const getActiveLayerTimeStep: (timeDimension: Dimension) => number | null;
|
|
@@ -11,5 +11,15 @@ export interface WMSLayerTreeConnectProps {
|
|
|
11
11
|
loadedLayers?: Layer[];
|
|
12
12
|
layerType?: LayerType;
|
|
13
13
|
}
|
|
14
|
-
declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>,
|
|
14
|
+
declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
|
|
15
|
+
service: Service;
|
|
16
|
+
mapId: string;
|
|
17
|
+
layerType?: LayerType | undefined;
|
|
18
|
+
addLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").AddLayerPayload, string> | undefined;
|
|
19
|
+
setBaseLayers?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetBaseLayersPayload, string> | undefined;
|
|
20
|
+
addAvailableBaseLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").AddAvailableBaseLayerPayload, string> | undefined;
|
|
21
|
+
loadedLayers?: Layer[] | undefined;
|
|
22
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
23
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
24
|
+
}>;
|
|
15
25
|
export default WMSLayerTreeConnect;
|