@opengeoweb/webmap-react 14.5.2 → 15.1.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 +956 -57
- package/package.json +4 -4
- package/src/lib/components/Clock/Clock.d.ts +6 -0
- package/src/lib/components/Clock/Clock.spec.d.ts +1 -0
- package/src/lib/components/Clock/Clock.stories.d.ts +9 -0
- package/src/lib/components/Clock/ClockContainer.d.ts +13 -0
- package/src/lib/components/Clock/clockContainerUtils.d.ts +1 -0
- package/src/lib/components/Clock/clockContainerUtils.spec.d.ts +1 -0
- package/src/lib/components/Clock/index.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +2 -0
- package/src/lib/components/OpenLayers/OlStyles.d.ts +2 -1
- package/src/lib/components/OpenLayers/OpenLayersMapView.ReferenceTimeModes.stories.d.ts +6 -0
- package/src/lib/components/OpenLayers/types/Timespan.d.ts +2 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/geotiff-layer-api/index.d.ts +2 -0
- package/src/lib/hooks/useAnimationForLayer.d.ts +2 -2
- package/src/lib/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.1.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/webmap": "
|
|
12
|
-
"@opengeoweb/theme": "
|
|
13
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/webmap": "15.1.0",
|
|
12
|
+
"@opengeoweb/theme": "15.1.0",
|
|
13
|
+
"@opengeoweb/shared": "15.1.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"ol": "^10.4.0",
|
|
16
16
|
"proj4": "^2.9.2",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { Clock } from './Clock';
|
|
3
|
+
declare const meta: Meta<typeof Clock>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Clock>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const ComponentDark: Story;
|
|
8
|
+
export declare const ComponentClosed: Story;
|
|
9
|
+
export declare const ComponentClosedDark: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Format a date to a string
|
|
4
|
+
*
|
|
5
|
+
* Expects the following props:
|
|
6
|
+
* @param {Date} inDate - date to be formatted
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const ClockContainer: FC<{
|
|
10
|
+
onButtonClick: () => void;
|
|
11
|
+
fontSize: number;
|
|
12
|
+
time: number;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateToManualFormatString: (inDate: Date | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Clock';
|
|
@@ -5,10 +5,12 @@ export interface LayerInfoTextProps {
|
|
|
5
5
|
export declare const textStyle: {
|
|
6
6
|
lineHeight: string;
|
|
7
7
|
letterSpacing: string;
|
|
8
|
+
overflowWrap: string;
|
|
8
9
|
};
|
|
9
10
|
export declare const textStyleWithMargin: {
|
|
10
11
|
marginBottom: number;
|
|
11
12
|
lineHeight: string;
|
|
12
13
|
letterSpacing: string;
|
|
14
|
+
overflowWrap: string;
|
|
13
15
|
};
|
|
14
16
|
export declare const LayerInfoText: React.FC<LayerInfoTextProps>;
|
|
@@ -43,7 +43,8 @@ export declare const geowebColorToOpenLayersColor: (color: string, opacity?: str
|
|
|
43
43
|
export declare const inlineFeatureStyle: (feature: FeatureLike) => Style[];
|
|
44
44
|
export declare const genericOpenLayersFeatureStyle: StyleFunction;
|
|
45
45
|
export declare const catmullRomSpline: (points: LineCoordType, numPoints?: number) => Coordinate[];
|
|
46
|
-
export declare const createBoxBasedOnModifiedVertex: (modifiedGeometry: Polygon, originalGeometry: Polygon) => Polygon;
|
|
46
|
+
export declare const createBoxBasedOnModifiedVertex: (modifiedGeometry: Polygon, originalGeometry: Polygon, keepSquare?: boolean) => Polygon;
|
|
47
|
+
export declare const getBoxRotateHandlePoints: (feature: FeatureLike, resolution?: number) => Coordinate[] | undefined;
|
|
47
48
|
export declare const createOval: () => GeometryFunction;
|
|
48
49
|
export declare const drawStyles: Record<DrawModeValue, StyleLike>;
|
|
49
50
|
export declare const modifyStyles: Record<DrawModeValue, Style[] | StyleLike>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { OpenLayersMapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof OpenLayersMapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof OpenLayersMapView>;
|
|
6
|
+
export declare const ReferenceTimeModes: Story;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RefTimeDimensionModes } from '@opengeoweb/webmap';
|
|
1
2
|
export interface Timespan {
|
|
2
3
|
start: number;
|
|
3
4
|
end: number;
|
|
@@ -6,4 +7,5 @@ export interface Timespan {
|
|
|
6
7
|
export interface TimeContextType {
|
|
7
8
|
isAnimating: boolean;
|
|
8
9
|
prefetchList: number[];
|
|
10
|
+
refTimeDimensionModes?: RefTimeDimensionModes;
|
|
9
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Dimension } from '@opengeoweb/webmap';
|
|
1
|
+
import type { Dimension, RefTimeDimensionModes } from '@opengeoweb/webmap';
|
|
2
2
|
import type { OpenLayersLayerProps } from '../components/OpenLayers/layers';
|
|
3
3
|
import type { TimeContextType } from '../components/OpenLayers/types/Timespan';
|
|
4
4
|
interface UseAnimationForLayerProps {
|
|
5
5
|
dimensions: Dimension[];
|
|
6
6
|
timeContext: TimeContextType;
|
|
7
7
|
}
|
|
8
|
-
export declare const useAnimationForLayer: (layerProps: OpenLayersLayerProps, intervalInMs: number, numStepsTillLatest?: number, checkForUpdatesMs?: number) => UseAnimationForLayerProps;
|
|
8
|
+
export declare const useAnimationForLayer: (layerProps: OpenLayersLayerProps, intervalInMs: number, numStepsTillLatest?: number, checkForUpdatesMs?: number, refTimeDimensionModes?: RefTimeDimensionModes) => UseAnimationForLayerProps;
|
|
9
9
|
export {};
|