@opengeoweb/core 6.0.0 → 6.0.2
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.d.ts +1 -0
- package/{index.js → index.esm.js} +1010 -18490
- package/package.json +16 -17
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -2
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -0
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +4 -4
- package/src/lib/components/LayerManager/LayerManager.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +1 -3
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +1 -1
- package/src/lib/components/MapDraw/DrawingTool/{DrawingTool.d.ts → DrawingToolDialog.d.ts} +5 -4
- package/src/lib/components/MapDraw/DrawingTool/index.d.ts +2 -0
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolForm.d.ts +11 -4
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolFormConnect.d.ts +3 -1
- package/src/lib/components/MapDraw/DrawingToolForm/index.d.ts +2 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +3 -3
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +1 -1
- package/src/lib/components/MapDraw/MapDrawContext.d.ts +1 -1
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +4 -4
- package/src/lib/components/MapDraw/index.d.ts +1 -0
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +1 -1
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +3 -3
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
- package/src/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +4 -0
- package/src/lib/components/MultiMapView/MultiMapView2x2.stories.d.ts +4 -0
- package/src/lib/components/MultiMapView/MultiMapView4x3.stories.d.ts +4 -0
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +4 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.d.ts +1 -1
- package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +1 -1
- package/src/lib/components/TimeSliderLite/TimeSliderLite.d.ts +1 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackground.d.ts +1 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.d.ts +12 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.spec.d.ts +1 -0
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +4 -3
- package/src/lib/storybookUtils/HelperComponents.d.ts +1 -1
- /package/src/lib/components/MapDraw/DrawingTool/{DrawingTool.spec.d.ts → DrawingToolDialog.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
-
"module": "./index.js",
|
|
11
|
-
"main": "./index.js",
|
|
10
|
+
"module": "./index.esm.js",
|
|
12
11
|
"type": "module",
|
|
13
|
-
"
|
|
12
|
+
"main": "./index.esm.js",
|
|
14
13
|
"dependencies": {},
|
|
15
14
|
"peerDependencies": {
|
|
16
15
|
"@mui/material": "5.12.0",
|
|
17
|
-
"@mui/system": "5.
|
|
18
|
-
"@opengeoweb/api": "6.0.
|
|
19
|
-
"@opengeoweb/form-fields": "6.0.
|
|
20
|
-
"@opengeoweb/shared": "6.0.
|
|
21
|
-
"@opengeoweb/store": "6.0.
|
|
22
|
-
"@opengeoweb/theme": "6.0.
|
|
23
|
-
"@opengeoweb/webmap": "6.0.
|
|
16
|
+
"@mui/system": "5.14.5",
|
|
17
|
+
"@opengeoweb/api": "6.0.2",
|
|
18
|
+
"@opengeoweb/form-fields": "6.0.2",
|
|
19
|
+
"@opengeoweb/shared": "6.0.2",
|
|
20
|
+
"@opengeoweb/store": "6.0.2",
|
|
21
|
+
"@opengeoweb/theme": "6.0.2",
|
|
22
|
+
"@opengeoweb/webmap": "6.0.2",
|
|
24
23
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
25
24
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
26
25
|
"@reduxjs/toolkit": "1.9.5",
|
|
27
26
|
"@turf/turf": "6.5.0",
|
|
28
27
|
"axios": "1.4.0",
|
|
29
|
-
"date-fns": "2.
|
|
30
|
-
"dompurify": "3.0.
|
|
28
|
+
"date-fns": "2.30.0",
|
|
29
|
+
"dompurify": "3.0.5",
|
|
31
30
|
"immer": "9.0.21",
|
|
32
31
|
"lodash": "4.17.21",
|
|
33
32
|
"lodash.clonedeep": "4.5.0",
|
|
34
33
|
"moment": "2.29.4",
|
|
35
34
|
"proj4": "2.9.0",
|
|
36
|
-
"re-resizable": "6.9.
|
|
35
|
+
"re-resizable": "6.9.11",
|
|
37
36
|
"react": "18.2.0",
|
|
38
37
|
"react-draggable": "4.4.5",
|
|
39
|
-
"react-hook-form": "7.45.
|
|
38
|
+
"react-hook-form": "7.45.4",
|
|
40
39
|
"react-intl": "6.4.4",
|
|
41
|
-
"react-redux": "8.1.
|
|
40
|
+
"react-redux": "8.1.2",
|
|
42
41
|
"react-resize-detector": "9.1.0",
|
|
43
|
-
"react-router-dom": "6.
|
|
42
|
+
"react-router-dom": "6.15.0",
|
|
44
43
|
"react-sortablejs": "6.1.4",
|
|
45
44
|
"react-window": "1.8.9",
|
|
46
45
|
"sortablejs": "1.15.0",
|
|
@@ -10,6 +10,7 @@ interface InitialMultiMapProps {
|
|
|
10
10
|
export interface InitialMapProps {
|
|
11
11
|
mapPreset: mapTypes.MapPreset;
|
|
12
12
|
syncGroupsIds: string[];
|
|
13
|
+
mapControls?: React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
interface InitialSliderProps {
|
|
15
16
|
sliderPreset: {
|
|
@@ -17,13 +18,13 @@ interface InitialSliderProps {
|
|
|
17
18
|
};
|
|
18
19
|
syncGroupsIds: string[];
|
|
19
20
|
}
|
|
20
|
-
export
|
|
21
|
+
export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps;
|
|
21
22
|
/**
|
|
22
23
|
* The lookup table is for registering your own components with the workspace.
|
|
23
24
|
* @param payload
|
|
24
25
|
* @returns
|
|
25
26
|
*/
|
|
26
|
-
export
|
|
27
|
+
export type SupportedComponentTypes = 'Map' | 'MultiMap' | 'ModelRunInterval' | 'HarmonieTempAndPrecipPreset' | 'TimeSlider';
|
|
27
28
|
export interface ComponentsLookUpPayload {
|
|
28
29
|
componentType: SupportedComponentTypes;
|
|
29
30
|
id: string;
|
|
@@ -37,5 +37,6 @@ export interface ConfigurableMapConnectProps {
|
|
|
37
37
|
displayGetFeatureInfoButtonInMap?: boolean;
|
|
38
38
|
shouldDisplayDrawControls?: boolean;
|
|
39
39
|
children?: React.ReactNode;
|
|
40
|
+
mapControls?: React.ReactNode;
|
|
40
41
|
}
|
|
41
42
|
export declare const ConfigurableMapConnect: (props: ConfigurableMapConnectProps) => React.ReactElement;
|
|
@@ -6,3 +6,4 @@ export default _default;
|
|
|
6
6
|
export declare const ConfigurableMapDefault: () => React.ReactElement;
|
|
7
7
|
export declare const ConfigurableMapCustomized: () => React.ReactElement;
|
|
8
8
|
export declare const ConfigurableMapDrawControls: () => React.ReactElement;
|
|
9
|
+
export declare const ConfigurableMapMapControls: () => React.ReactElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DimensionSelectProps } from '../DimensionSelect/DimensionSelectConnect';
|
|
3
3
|
import { LayerManagerCustomSettings } from '../../../LayerManagerUtils';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
type Content = NonNullable<LayerManagerCustomSettings['content']>;
|
|
5
|
+
type Dimensions = NonNullable<Content['dimensions']>;
|
|
6
|
+
type DimensionsSettingsProps = Omit<Dimensions, 'nameMappings'>;
|
|
7
|
+
type CustomDimensionSelectProps = DimensionSelectProps & DimensionsSettingsProps;
|
|
8
8
|
declare const CustomDimensionSelectConnect: React.FC<CustomDimensionSelectProps>;
|
|
9
9
|
export default CustomDimensionSelectConnect;
|
|
@@ -4,7 +4,7 @@ import { layerTypes } from '@opengeoweb/store';
|
|
|
4
4
|
import type { layerSelectTypes, uiTypes } from '@opengeoweb/store';
|
|
5
5
|
import { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
6
6
|
import { Size } from './LayerManagerHeaderOptions';
|
|
7
|
-
export
|
|
7
|
+
export type Position = {
|
|
8
8
|
top: number;
|
|
9
9
|
left?: number;
|
|
10
10
|
right?: number;
|
|
@@ -7,6 +7,6 @@ interface HeaderOptionsProps {
|
|
|
7
7
|
onChangeSize: (size: Size) => void;
|
|
8
8
|
buttonSettings?: ToolbarButtonSettings;
|
|
9
9
|
}
|
|
10
|
-
export declare const areShortcutsEnabled: (activeMapId: string, mapId: string,
|
|
10
|
+
export declare const areShortcutsEnabled: (activeMapId: string, mapId: string, floatingLmOpen: boolean, isDockedLayerManager: boolean) => boolean;
|
|
11
11
|
declare const HeaderOptionsConnect: React.FC<HeaderOptionsProps>;
|
|
12
12
|
export default HeaderOptionsConnect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.FC<import("./ServicePopup").ServicePopupProps>>;
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ServicePopup").ServicePopupProps>;
|
|
4
2
|
export default _default;
|
|
5
3
|
export declare const ServicePopupAddLight: {
|
|
6
4
|
(): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serviceTypes, layerSelectTypes } from '@opengeoweb/store';
|
|
2
|
-
export
|
|
2
|
+
export type ValidationResult = string | boolean;
|
|
3
3
|
export declare const VALIDATIONS_NAME_EXISTING = "This name already exists. Choose another name.";
|
|
4
4
|
export declare const VALIDATIONS_SERVICE_EXISTING = "URL already exists.";
|
|
5
5
|
export declare const VALIDATIONS_SERVICE_VALID_URL = "Not a valid URL.";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HeaderSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
export
|
|
4
|
+
export type Size = {
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Position = {
|
|
9
9
|
top: number;
|
|
10
10
|
left?: number;
|
|
11
11
|
right?: number;
|
|
12
12
|
};
|
|
13
|
-
interface
|
|
13
|
+
interface DrawingToolDialogProps {
|
|
14
14
|
bounds?: string;
|
|
15
15
|
title?: string;
|
|
16
16
|
onClose: () => void;
|
|
@@ -25,7 +25,8 @@ interface DrawingToolProps {
|
|
|
25
25
|
startPosition?: Position;
|
|
26
26
|
setFocused?: (focused: boolean) => void;
|
|
27
27
|
headerSize?: HeaderSize;
|
|
28
|
+
children: React.ReactNode;
|
|
28
29
|
}
|
|
29
30
|
export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
|
|
30
|
-
declare const DrawingTool: React.FC<
|
|
31
|
+
declare const DrawingTool: React.FC<DrawingToolDialogProps>;
|
|
31
32
|
export default DrawingTool;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const opacityOptions: number[];
|
|
3
3
|
export declare const SAVE_AREA_BUTTON = "Save area";
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export declare const INPUT_AREA = "Area name";
|
|
5
|
+
export declare const INPUT_OPACITY = "Opacity";
|
|
6
|
+
export declare const DRAW_EXIT_MODE_MESSAGE = "press ESC to exit draw mode";
|
|
7
|
+
export interface DrawingToolFormValues {
|
|
6
8
|
areaName: string;
|
|
7
|
-
|
|
9
|
+
area: GeoJSON.FeatureCollection;
|
|
10
|
+
id: string;
|
|
8
11
|
}
|
|
9
12
|
export interface DrawingToolFormComponentProps {
|
|
10
|
-
onSubmitForm: (formValues:
|
|
13
|
+
onSubmitForm: (formValues: DrawingToolFormValues) => void;
|
|
14
|
+
areaName?: string;
|
|
15
|
+
area?: GeoJSON.FeatureCollection;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
id?: string;
|
|
11
18
|
}
|
|
12
19
|
declare const Wrapper: React.FC<DrawingToolFormComponentProps>;
|
|
13
20
|
export { Wrapper as DrawingToolForm };
|
|
@@ -2,12 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { GeoJsonProperties, GeometryObject, Position } from 'geojson';
|
|
3
3
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
4
4
|
import { GeoJsonFeatureType, GeoJsonFeature, GeoFeatureStyle, Coordinate } from './geojsonShapes';
|
|
5
|
-
|
|
5
|
+
type DrawStyle = {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
nr: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type InputEvent = {
|
|
11
11
|
leftButton: boolean;
|
|
12
12
|
mouseDown: boolean;
|
|
13
13
|
mouseX: number;
|
|
@@ -57,7 +57,7 @@ declare enum EDGE {
|
|
|
57
57
|
declare enum SNAPPEDFEATURE {
|
|
58
58
|
NONE = "NONE"
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type DrawModeExitCallback = 'escaped' | 'doubleClicked';
|
|
61
61
|
export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
62
62
|
myEditMode: EDITMODE;
|
|
63
63
|
myDrawMode: DRAWMODE;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { GeometryObject } from 'geojson';
|
|
3
3
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
4
4
|
import { DrawModeExitCallback, FeatureEvent } from './MapDraw';
|
|
5
|
-
export
|
|
5
|
+
export type FeatureLayer = {
|
|
6
6
|
id: string;
|
|
7
7
|
type: string;
|
|
8
8
|
features: [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MapDrawToolOptions, MapDrawToolProps } from './useMapDrawTool';
|
|
3
|
-
|
|
3
|
+
type MapDrawToolContextState = MapDrawToolProps;
|
|
4
4
|
export declare const drawOptions: MapDrawToolOptions;
|
|
5
5
|
interface MapDrawToolProviderProps {
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -4,16 +4,16 @@ export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
|
4
4
|
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
5
5
|
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
6
6
|
export declare const lineString: GeoJSON.FeatureCollection;
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
7
|
+
export type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
|
|
8
|
+
export type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
9
|
+
export type GeoFeatureStyle = {
|
|
10
10
|
stroke?: string;
|
|
11
11
|
fill?: string;
|
|
12
12
|
'stroke-width'?: number;
|
|
13
13
|
'stroke-opacity'?: number;
|
|
14
14
|
'fill-opacity'?: number;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type Coordinate = {
|
|
17
17
|
x: number;
|
|
18
18
|
y: number;
|
|
19
19
|
};
|
|
@@ -5,3 +5,4 @@ export * from './geojsonShapes';
|
|
|
5
5
|
export { useMapDrawTool, defaultPoint, defaultDelete, defaultPolygon, defaultBox, defaultStyleProperties, defaultIntersectionStyleProperties, } from './useMapDrawTool';
|
|
6
6
|
export type { EditMode, DrawMode, MapDrawToolOptions } from './useMapDrawTool';
|
|
7
7
|
export * from './MapDrawContext';
|
|
8
|
+
export * from './DrawingTool';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Position } from 'geojson';
|
|
2
2
|
import { Coordinate, GeoJsonFeature } from './geojsonShapes';
|
|
3
|
-
export
|
|
3
|
+
export type CheckHoverFeaturesResult = {
|
|
4
4
|
coordinateIndexInFeature: number;
|
|
5
5
|
featureIndex: number;
|
|
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
|
|
9
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
10
10
|
export interface MapDrawDrawFunctionArgs {
|
|
11
11
|
context: CanvasRenderingContext2D;
|
|
12
12
|
featureIndex: number;
|
|
@@ -18,7 +18,7 @@ export interface MapDrawDrawFunctionArgs {
|
|
|
18
18
|
mouseY: number;
|
|
19
19
|
isHovered: boolean;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
type DrawFunction = {
|
|
22
22
|
id: string;
|
|
23
23
|
drawMethod: (args: MapDrawDrawFunctionArgs) => void;
|
|
24
24
|
};
|
|
@@ -8,9 +8,9 @@ export declare const emptyPoint: GeoJSON.Feature;
|
|
|
8
8
|
export declare const emptyPolygon: GeoJSON.Feature;
|
|
9
9
|
export declare const emptyBox: GeoJSON.Feature;
|
|
10
10
|
export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
export
|
|
11
|
+
export type DrawMode = DRAWMODE | 'DELETE' | '';
|
|
12
|
+
type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
|
|
13
|
+
export type EditMode = {
|
|
14
14
|
id: string;
|
|
15
15
|
value: DrawMode;
|
|
16
16
|
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
2
6
|
export declare const ModelRunIntervalDefault: () => React.ReactElement;
|
|
3
7
|
export declare const ModelRunIntervalHourly: () => React.ReactElement;
|
|
4
8
|
export declare const ModelRunIntervalCustomStart: () => React.ReactElement;
|
|
@@ -48,7 +48,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
48
48
|
onUpdateBBoxListener(newBbox: WMBBOX): void;
|
|
49
49
|
onStartRefetchTimer: () => void;
|
|
50
50
|
clearRefetchTimer: () => void;
|
|
51
|
-
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement
|
|
51
|
+
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement) => void;
|
|
52
52
|
updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
53
53
|
drawDebounced(): void;
|
|
54
54
|
mountWMJSMap(): WMJSMap | null;
|
|
@@ -27,7 +27,7 @@ declare const connectRedux: import("react-redux").InferableComponentEnhancerWith
|
|
|
27
27
|
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/store/src/store/mapStore/types").SetMapAnimationStartPayload, "mapReducer/mapStartAnimation">;
|
|
28
28
|
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/store/src/store/mapStore/types").SetMapAnimationStopPayload, "mapReducer/mapStopAnimation">;
|
|
29
29
|
}, PlayButtonConnectProps>;
|
|
30
|
-
|
|
30
|
+
type Props = PlayButtonConnectProps & ConnectedProps<typeof connectRedux>;
|
|
31
31
|
declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ mapId, animationStartTime, animationEndTime, isDisabled, timeStep, linkedMapAnimationInfo, mapStartAnimation, mapStopAnimation, }: Props) => React.JSX.Element, {
|
|
32
32
|
mapId: string;
|
|
33
33
|
isDisabled?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type PopperPlacement = 'right' | 'left' | 'top' | 'bottom';
|
|
4
4
|
export declare const TimeSliderClock: FC<{
|
|
5
5
|
time: Moment;
|
|
6
6
|
options?: JSX.Element;
|
|
@@ -7,7 +7,7 @@ export interface TimeBounds {
|
|
|
7
7
|
startTime: number;
|
|
8
8
|
endTime: number;
|
|
9
9
|
}
|
|
10
|
-
export declare const getSelectedTime: (timeDimension?: mapTypes.Dimension
|
|
10
|
+
export declare const getSelectedTime: (timeDimension?: mapTypes.Dimension) => number;
|
|
11
11
|
/**
|
|
12
12
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
13
13
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
currentTime?: number;
|
|
4
|
+
endTime: number;
|
|
5
|
+
opacity?: number;
|
|
6
|
+
setSelectedTime: (time: number) => void;
|
|
7
|
+
startTime: number;
|
|
8
|
+
timeStep: [number, number];
|
|
9
|
+
width: number;
|
|
10
|
+
}
|
|
11
|
+
declare const TimeSliderClickableTimeline: React.FC<IProps>;
|
|
12
|
+
export default TimeSliderClickableTimeline;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -22,8 +22,9 @@ export declare const getMonthChanges: (startDate: Date, endDate: Date) => number
|
|
|
22
22
|
export declare const getSelectedTimePx: (startTime: number, endTime: number, selectedTime: number, width: number) => number;
|
|
23
23
|
export declare const boundedValue: (value: number, bounds: [number, number]) => number;
|
|
24
24
|
export declare const getSelectedTimeFromPx: (startTime: number, endTime: number, selectedTimePx: number, width: number) => number;
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
25
|
+
export declare const getNearestSelectableTime: (timeStep: [number, number], startTime: number, endTime: number, x: number, width: number, currentTime: number) => number;
|
|
26
|
+
export declare const floorLocalMinutes: (selectedTimeMinutes: number, timeStepMinutes: number, timeZoneOffsetMinutes?: number) => number;
|
|
27
|
+
export declare const floorLocalSeconds: (selectedTimeSeconds: number, timeStepSeconds: number, timeZoneOffsetSeconds?: number) => number;
|
|
27
28
|
export declare const secondsToDaysAndHours: (seconds: number) => {
|
|
28
29
|
days: number;
|
|
29
30
|
hours: number;
|
|
@@ -38,7 +39,7 @@ export declare const TIME_SLIDER_LITE_DEFAULT_MAX_OBSERVED_RANGE: number;
|
|
|
38
39
|
* @param overrideDefaultTimeRange [observedTimeRange, forecastTime] in seconds from current time
|
|
39
40
|
* @returns [startTime, endTime] in seconds
|
|
40
41
|
*/
|
|
41
|
-
export declare const defaultTimeRange: (layers: layerTypes.ReduxLayer[], currentTime?: number, overrideDefaultTimeRange?: [number, number]
|
|
42
|
+
export declare const defaultTimeRange: (layers: layerTypes.ReduxLayer[], currentTime?: number, overrideDefaultTimeRange?: [number, number]) => [number, number];
|
|
42
43
|
export declare const useDefaultTimeRange: (layers: layerTypes.ReduxLayer[], updateThreshold: number, currentTime?: number) => [number, number];
|
|
43
44
|
export declare const subTicksPerDay: (dayWidthInPixels: number) => number;
|
|
44
45
|
export declare const maxSubTicksPerDay: (dayWidthInPixels: number, timeStep: number) => number;
|
|
File without changes
|