@opengeoweb/soundings 16.0.0 → 17.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.
- package/index.esm.js +3637 -2542
- package/package.json +9 -9
- package/src/index.d.ts +0 -10
- package/src/lib/api/edr-api/api.d.ts +0 -7
- package/src/lib/api/edr-api/fakeApi.d.ts +0 -16
- package/src/lib/api/edr-api/hooks.d.ts +0 -43
- package/src/lib/api/edr-api/hooks.spec.d.ts +0 -1
- package/src/lib/api/edr-api/types.d.ts +0 -38
- package/src/lib/api/edr-api/utils.d.ts +0 -12
- package/src/lib/api/edr-api/utils.spec.d.ts +0 -1
- package/src/lib/components/EDRFetchAndParse.stories.d.ts +0 -14
- package/src/lib/components/Hodograph/Hodograph.d.ts +0 -6
- package/src/lib/components/Hodograph/Hodograph.spec.d.ts +0 -1
- package/src/lib/components/Hodograph/Hodograph.stories.d.ts +0 -7
- package/src/lib/components/Hodograph/HodographCollection.d.ts +0 -6
- package/src/lib/components/Hodograph/HodographCollection.spec.d.ts +0 -1
- package/src/lib/components/Hodograph/HodographLegend.d.ts +0 -2
- package/src/lib/components/Hodograph/drawUtils.d.ts +0 -53
- package/src/lib/components/Hodograph/drawUtils.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/LocationsMenu.d.ts +0 -20
- package/src/lib/components/MenuBar/LocationsMenuConnect.d.ts +0 -7
- package/src/lib/components/MenuBar/LocationsMenuConnect.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/MenuBar.d.ts +0 -15
- package/src/lib/components/MenuBar/MenuBar.stories.d.ts +0 -20
- package/src/lib/components/MenuBar/MenuBarConnect.d.ts +0 -8
- package/src/lib/components/MenuBar/MenuBarConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/MenuBarConnect.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/SoundingsMarkersSwitch.d.ts +0 -6
- package/src/lib/components/MenuBar/SoundingsMarkersSwitch.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/SoundingsSourceDialogConnect.d.ts +0 -7
- package/src/lib/components/MenuBar/SoundingsSourceDialogConnect.spec.d.ts +0 -1
- package/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +0 -16
- package/src/lib/components/Providers/Providers.d.ts +0 -12
- package/src/lib/components/SoundingPanelPlaceholder/SoundingPanelPlaceholder.d.ts +0 -5
- package/src/lib/components/SoundingPanelPlaceholder/SoundingPanelPlaceholder.spec.d.ts +0 -1
- package/src/lib/components/SoundingPanelPlaceholder/index.d.ts +0 -1
- package/src/lib/components/Soundings/DiagramTypeButton.d.ts +0 -8
- package/src/lib/components/Soundings/SharedMouseProvider.spec.d.ts +0 -1
- package/src/lib/components/Soundings/SharedMouseYProvider.d.ts +0 -13
- package/src/lib/components/Soundings/SortableAccordions.d.ts +0 -18
- package/src/lib/components/Soundings/SortableAccordions.spec.d.ts +0 -1
- package/src/lib/components/Soundings/Soundings.d.ts +0 -15
- package/src/lib/components/Soundings/Soundings.spec.d.ts +0 -1
- package/src/lib/components/Soundings/Soundings.stories.d.ts +0 -11
- package/src/lib/components/Soundings/SoundingsConnect.d.ts +0 -8
- package/src/lib/components/Soundings/SoundingsConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/Soundings/SoundingsConnect.spec.d.ts +0 -1
- package/src/lib/components/Soundings/SoundingsConnect.stories.d.ts +0 -43
- package/src/lib/components/Soundings/SoundingsLegend.d.ts +0 -8
- package/src/lib/components/Soundings/SoundingsLegend.spec.d.ts +0 -1
- package/src/lib/components/Soundings/WindBarbs.d.ts +0 -16
- package/src/lib/components/Soundings/WindBarbs.spec.d.ts +0 -1
- package/src/lib/components/Soundings/animateResizeTransform.d.ts +0 -4
- package/src/lib/components/Soundings/animateResizeTransform.spec.d.ts +0 -1
- package/src/lib/components/Soundings/constants.d.ts +0 -17
- package/src/lib/components/Soundings/drawUtils.d.ts +0 -45
- package/src/lib/components/Soundings/drawUtils.spec.d.ts +0 -1
- package/src/lib/components/Soundings/timeMismatchUtils.d.ts +0 -4
- package/src/lib/components/Soundings/types.d.ts +0 -6
- package/src/lib/components/SoundingsAccordion/SoundingsAccordion.d.ts +0 -15
- package/src/lib/components/SoundingsAccordion/SoundingsAccordion.spec.d.ts +0 -1
- package/src/lib/components/SoundingsAccordion/SoundingsAccordionStories.stories.d.ts +0 -8
- package/src/lib/components/SoundingsDemo.stories.d.ts +0 -15
- package/src/lib/components/SoundingsManager/SoundingManagerConnect.intergration.spec.d.ts +0 -1
- package/src/lib/components/SoundingsManager/SoundingManagerListItem.d.ts +0 -6
- package/src/lib/components/SoundingsManager/SoundingsManager.d.ts +0 -17
- package/src/lib/components/SoundingsManager/SoundingsManager.spec.d.ts +0 -1
- package/src/lib/components/SoundingsManager/SoundingsManagerConnect.d.ts +0 -2
- package/src/lib/components/SoundingsManager/SoundingsManagerListItem.spec.d.ts +0 -1
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.d.ts +0 -8
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.spec.d.ts +0 -1
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.stories.d.ts +0 -9
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSliderConnect.d.ts +0 -8
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSliderConnect.spec.d.ts +0 -1
- package/src/lib/components/SoundingsTimeSlider/index.d.ts +0 -2
- package/src/lib/components/SoundingsTooltip/utils.d.ts +0 -31
- package/src/lib/components/SoundingsTooltip/utils.spec.d.ts +0 -1
- package/src/lib/components/StaticLines/bijvoetUtils.d.ts +0 -6
- package/src/lib/components/StaticLines/drawDryAdiabats.d.ts +0 -23
- package/src/lib/components/StaticLines/drawIsobars.d.ts +0 -14
- package/src/lib/components/StaticLines/drawIsohumes.d.ts +0 -23
- package/src/lib/components/StaticLines/drawIsotherms.d.ts +0 -23
- package/src/lib/components/StaticLines/drawMoistAdiabats.d.ts +0 -29
- package/src/lib/components/StaticLines/utils.d.ts +0 -19
- package/src/lib/components/WindBarbs/utils.d.ts +0 -22
- package/src/lib/components/WindBarbs/utils.spec.d.ts +0 -1
- package/src/lib/components/WindBarbs/windsymbols.d.ts +0 -5
- package/src/lib/components/index.d.ts +0 -4
- package/src/lib/components/utils.d.ts +0 -1
- package/src/lib/store/reducer.d.ts +0 -24
- package/src/lib/store/reducer.spec.d.ts +0 -1
- package/src/lib/store/selectors.d.ts +0 -253
- package/src/lib/store/selectors.spec.d.ts +0 -1
- package/src/lib/store/store.d.ts +0 -23
- package/src/lib/store/types.d.ts +0 -76
- package/src/lib/store/utils.d.ts +0 -10
- package/src/lib/utils/i18n.d.ts +0 -7
- package/src/lib/utils/soundingsLookUp.d.ts +0 -9
- package/src/lib/utils/soundingsLookUp.spec.d.ts +0 -1
- package/src/lib/utils/storyUtils/SoundingsResponsiveView.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/soundings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "GeoWeb soundings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,29 +8,29 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "
|
|
11
|
+
"@opengeoweb/api": "17.0.0",
|
|
12
12
|
"@tanstack/react-query": "^5.85.5",
|
|
13
13
|
"react": "^18.3.1",
|
|
14
14
|
"d3": "^7.9.0",
|
|
15
15
|
"react-i18next": "^15.1.1",
|
|
16
16
|
"i18next": "^25.0.1",
|
|
17
|
-
"@opengeoweb/shared": "
|
|
17
|
+
"@opengeoweb/shared": "17.0.0",
|
|
18
18
|
"@mui/material": "^7.0.1",
|
|
19
|
-
"@opengeoweb/store": "
|
|
19
|
+
"@opengeoweb/store": "17.0.0",
|
|
20
20
|
"react-redux": "^9.2.0",
|
|
21
|
-
"@opengeoweb/theme": "
|
|
21
|
+
"@opengeoweb/theme": "17.0.0",
|
|
22
22
|
"@reduxjs/toolkit": "^2.6.1",
|
|
23
|
-
"@opengeoweb/time-slider": "
|
|
23
|
+
"@opengeoweb/time-slider": "17.0.0",
|
|
24
24
|
"react-window": "^2.2.6",
|
|
25
|
-
"@opengeoweb/webmap": "
|
|
25
|
+
"@opengeoweb/webmap": "17.0.0",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"@types/geojson": "^7946.0.14",
|
|
28
|
-
"@opengeoweb/webmap-react": "
|
|
28
|
+
"@opengeoweb/webmap-react": "17.0.0",
|
|
29
29
|
"react-resizable-layout": "^0.7.3",
|
|
30
30
|
"react-sortablejs": "^6.1.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"eslint-plugin-storybook": "
|
|
33
|
+
"eslint-plugin-storybook": "10.3.3"
|
|
34
34
|
},
|
|
35
35
|
"module": "./index.esm.js",
|
|
36
36
|
"type": "module",
|
package/src/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import soundingsTranslations from '../locales/soundingsTranslations.json';
|
|
2
|
-
export { soundingsTranslations };
|
|
3
|
-
export * from './lib/components';
|
|
4
|
-
export * from './lib/utils/soundingsLookUp';
|
|
5
|
-
export * from './lib/api/edr-api/types';
|
|
6
|
-
export * from './lib/store/store';
|
|
7
|
-
export * from './lib/utils/i18n';
|
|
8
|
-
export * as SoundingsTypes from './lib/store/types';
|
|
9
|
-
export { SoundingsActionOrigin } from './lib/store/types';
|
|
10
|
-
export type { SoundingsRootState } from './lib/store/types';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
-
import type { CollectionDetails, LocationsResponseFromBE, SoundingsInstances } from './types';
|
|
3
|
-
export declare const getCollectionLocations: (collectionId: string, baseUrl: string) => Promise<LocationsResponseFromBE>;
|
|
4
|
-
export declare const getCollectionInstances: (collectionId: string, baseUrl: string) => Promise<SoundingsInstances>;
|
|
5
|
-
export declare const getCollectionDetails: (collectionId: string, baseUrl: string) => Promise<CollectionDetails>;
|
|
6
|
-
export declare const getEdrCollectionForLocation: (collectionId: string, baseUrl: string, instanceId: string | undefined, locationId: string, parameters: string[], datetime: string, verticalRange: string) => Promise<CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>>;
|
|
7
|
-
export declare const getEdrCollectionForPosition: (collectionId: string, baseUrl: string, instanceId: string | undefined, coordinates: [number, number], parameters: string[], datetime: string, verticalRange: string) => Promise<CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const helsinkiLat = 60.192059;
|
|
2
|
-
export declare const helsinkiLon = 24.945831;
|
|
3
|
-
export declare const helsinki = "Helsinki";
|
|
4
|
-
export declare const mockLocations: {
|
|
5
|
-
features: {
|
|
6
|
-
id: string;
|
|
7
|
-
geometry: {
|
|
8
|
-
type: string;
|
|
9
|
-
coordinates: number[];
|
|
10
|
-
};
|
|
11
|
-
properties: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
export declare const fmiEdrCollectionsHandlers: import("msw").HttpHandler[];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { Coordinates, SoundingsCollection } from '@opengeoweb/shared';
|
|
2
|
-
import type { SoundingFeature } from './types';
|
|
3
|
-
import type { ServiceWithLocations } from '../../components/MenuBar/LocationsMenu';
|
|
4
|
-
import type { SoundingsCollectionsWithInstances } from '../../components/Soundings/types';
|
|
5
|
-
import type { SourceType } from '../../store/types';
|
|
6
|
-
export declare const sortSoundingFeatures: (data: SoundingFeature[]) => SoundingFeature[];
|
|
7
|
-
export declare const defaultParameterMappings: {
|
|
8
|
-
temperature: string;
|
|
9
|
-
windDirection: string;
|
|
10
|
-
windSpeed: string;
|
|
11
|
-
windU: string;
|
|
12
|
-
windV: string;
|
|
13
|
-
pressure: string;
|
|
14
|
-
dewpoint: string;
|
|
15
|
-
humidity: string;
|
|
16
|
-
specificHumidity: string;
|
|
17
|
-
relativeHumidity: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const getParameterMappings: (parameterMappings: Record<string, string>) => string[];
|
|
20
|
-
export declare const useMultipleSources: (sources: SourceType[], locations: Record<string, string | undefined | Coordinates>, datetime?: string, timeSelectionMode?: "exact" | "nearestWithinRange") => {
|
|
21
|
-
data: SoundingFeature[][];
|
|
22
|
-
isPending: boolean;
|
|
23
|
-
error: Error | null | undefined;
|
|
24
|
-
};
|
|
25
|
-
export declare const useTimesteps: (sourceSelections: SourceType[]) => {
|
|
26
|
-
data: string[][];
|
|
27
|
-
error: Error | null;
|
|
28
|
-
isPending: boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare const useGetCollectionsInstances: (collections?: SoundingsCollection[], isDialogOpen?: boolean) => {
|
|
31
|
-
data: SoundingsCollectionsWithInstances[] | undefined;
|
|
32
|
-
isPending: boolean;
|
|
33
|
-
error: Error | null | undefined;
|
|
34
|
-
};
|
|
35
|
-
export declare const useGetCollectionLocations: <SoundingsCollectionLike extends {
|
|
36
|
-
id: string;
|
|
37
|
-
url: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}>(collections: SoundingsCollectionLike[], enabled?: boolean) => {
|
|
40
|
-
data: ServiceWithLocations[] | undefined;
|
|
41
|
-
isPending: boolean;
|
|
42
|
-
error: Error | null | undefined;
|
|
43
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Geometry } from 'geojson';
|
|
2
|
-
import type { EDRInstance, EdrParameter } from '@opengeoweb/shared';
|
|
3
|
-
export interface FeaturesFromBE {
|
|
4
|
-
id: string;
|
|
5
|
-
type: string;
|
|
6
|
-
geometry: Geometry;
|
|
7
|
-
properties: {
|
|
8
|
-
datetime: string;
|
|
9
|
-
detail: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface LocationsResponseFromBE {
|
|
14
|
-
features: FeaturesFromBE[];
|
|
15
|
-
type: string;
|
|
16
|
-
}
|
|
17
|
-
export interface SoundingFeatureProperties {
|
|
18
|
-
time: string;
|
|
19
|
-
temp: number;
|
|
20
|
-
dewpoint: number;
|
|
21
|
-
pressure: number;
|
|
22
|
-
windSpeed: number;
|
|
23
|
-
windDirection: number;
|
|
24
|
-
}
|
|
25
|
-
export interface SoundingFeature {
|
|
26
|
-
type: 'Feature';
|
|
27
|
-
geometry: Geometry;
|
|
28
|
-
properties: SoundingFeatureProperties;
|
|
29
|
-
}
|
|
30
|
-
export type SoundingsInstance = EDRInstance;
|
|
31
|
-
export interface SoundingsInstances {
|
|
32
|
-
instances: SoundingsInstance[];
|
|
33
|
-
}
|
|
34
|
-
export interface CollectionDetails extends EDRInstance {
|
|
35
|
-
parameter_names: Record<string, EdrParameter>;
|
|
36
|
-
}
|
|
37
|
-
export declare const soundingDiagrams: readonly ["SKEWT", "BIJVOET", "EMAGRAM"];
|
|
38
|
-
export type SoundingDiagramType = (typeof soundingDiagrams)[number];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
-
import type { CollectionDetails, SoundingFeature, SoundingsInstance } from './types';
|
|
3
|
-
export declare const getWindSpeedInKts: (windSpeed: number, windSpeedUnit: string) => number;
|
|
4
|
-
export declare const getNearestTimestep: (requestedDatetime: string, availableTimesteps: string[]) => string;
|
|
5
|
-
export declare function parseCoverageCollection(response: CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>, parameterMappings: Record<string, string>, windSpeedUnit: string): SoundingFeature[];
|
|
6
|
-
/**
|
|
7
|
-
* Parse duration with repeats
|
|
8
|
-
* @param dateString e.g. 'R67/2025-04-22T09:00:00Z/PT60M'
|
|
9
|
-
* @returns Array of ISO datetime strings, e.g., ['2025-04-22T09:00:00.000Z', ...]
|
|
10
|
-
*/
|
|
11
|
-
export declare const parseDurationWithRepeats: (dateString: string) => string[];
|
|
12
|
-
export declare const getTimestepsFromInstanceOrCollection: (instanceOrCollection?: SoundingsInstance | CollectionDetails) => string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { getEdrCollectionForLocation, getEdrCollectionForPosition } from '../api/edr-api/api';
|
|
4
|
-
interface FetchVerticalProfileProps {
|
|
5
|
-
fetchRawDataCall: typeof getEdrCollectionForLocation | typeof getEdrCollectionForPosition;
|
|
6
|
-
location: string | [number, number];
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
declare const VerticalProfileFetchingExample: React.FC<FetchVerticalProfileProps>;
|
|
10
|
-
declare const meta: Meta<typeof VerticalProfileFetchingExample>;
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof VerticalProfileFetchingExample>;
|
|
13
|
-
export declare const VerticalProfileFetchingByLocExample: Story;
|
|
14
|
-
export declare const VerticalProfileFetchingByPosExample: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { HodographCollection } from './HodographCollection';
|
|
3
|
-
declare const meta: Meta<typeof HodographCollection>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof HodographCollection>;
|
|
6
|
-
export declare const HodographStory: Story;
|
|
7
|
-
export declare const HodographStoryDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as d3 from 'd3';
|
|
2
|
-
import type { ScalesType } from '../Soundings/types';
|
|
3
|
-
interface InitializeSvg {
|
|
4
|
-
svgRef: React.MutableRefObject<SVGSVGElement | null>;
|
|
5
|
-
widthHeight: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const initializeSvg: ({ svgRef, widthHeight, }: InitializeSvg) => d3.Selection<SVGSVGElement | null, unknown, null, undefined>;
|
|
8
|
-
export declare const createScales: (widthHeight: number) => [ScalesType, ScalesType];
|
|
9
|
-
interface DrawAxis {
|
|
10
|
-
svg: d3.Selection<SVGSVGElement, unknown, HTMLElement, undefined>;
|
|
11
|
-
scaleRadius: ScalesType;
|
|
12
|
-
scaleAngle: ScalesType;
|
|
13
|
-
widthHeight: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const drawAxes: ({ svg, scaleRadius, scaleAngle, widthHeight, }: DrawAxis) => void;
|
|
16
|
-
export declare const filterDomainRangeForHodograph: (pressureDomain: number[], parameterDomain: [number, number][]) => [number[], [number, number][]];
|
|
17
|
-
type PathSegments = [
|
|
18
|
-
[
|
|
19
|
-
number,
|
|
20
|
-
number
|
|
21
|
-
][],
|
|
22
|
-
[
|
|
23
|
-
number,
|
|
24
|
-
number
|
|
25
|
-
][],
|
|
26
|
-
[
|
|
27
|
-
number,
|
|
28
|
-
number
|
|
29
|
-
][],
|
|
30
|
-
[
|
|
31
|
-
number,
|
|
32
|
-
number
|
|
33
|
-
][],
|
|
34
|
-
[
|
|
35
|
-
number,
|
|
36
|
-
number
|
|
37
|
-
][]
|
|
38
|
-
];
|
|
39
|
-
export declare const altitudeBarometricFromPressure: (pressure: number) => number;
|
|
40
|
-
export declare const generateSegmentsBasedOnLevel: (pressure: number[], windValues: [number, number][]) => PathSegments;
|
|
41
|
-
export declare const HODOGRAPH_COLORS: string[];
|
|
42
|
-
export declare const getColorForSegment: (index: number) => string;
|
|
43
|
-
interface PlotHodograph {
|
|
44
|
-
windValues: [number, number][];
|
|
45
|
-
pressureValues: number[];
|
|
46
|
-
scaleAngle: ScalesType;
|
|
47
|
-
scaleRadius: ScalesType;
|
|
48
|
-
widthHeight: number;
|
|
49
|
-
svg: d3.Selection<SVGSVGElement, unknown, HTMLElement, undefined>;
|
|
50
|
-
index: number;
|
|
51
|
-
}
|
|
52
|
-
export declare const plotHodograph: ({ windValues, pressureValues, scaleAngle, scaleRadius, widthHeight, svg, index, }: PlotHodograph) => void;
|
|
53
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Coordinates } from '@opengeoweb/shared';
|
|
2
|
-
import type { LocationsResponseFromBE } from '../../api/edr-api/types';
|
|
3
|
-
export type ServiceWithLocations = LocationsResponseFromBE & {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
interface Props {
|
|
8
|
-
services: ServiceWithLocations[];
|
|
9
|
-
selectedSourcesAmount: number;
|
|
10
|
-
selectedLocations: Record<string, string | Coordinates | undefined>;
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
updateSelectedLocation: (sourceId: string, locationId: string | undefined) => void;
|
|
14
|
-
onMouseDown?: () => void;
|
|
15
|
-
order?: number;
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
error?: Error | null;
|
|
18
|
-
}
|
|
19
|
-
export declare const LocationsMenu: ({ services, selectedSourcesAmount, selectedLocations, isOpen, onClose, updateSelectedLocation, onMouseDown, order, isLoading, error, }: Props) => React.ReactElement;
|
|
20
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SoundingsCollection } from '@opengeoweb/shared';
|
|
3
|
-
interface Props {
|
|
4
|
-
soundingsCollections?: SoundingsCollection[];
|
|
5
|
-
}
|
|
6
|
-
export declare const LocationsMenuConnect: ({ soundingsCollections, }: Props) => React.ReactElement;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare enum MenuOptions {
|
|
3
|
-
soundingsManager = "Sd Manager",
|
|
4
|
-
sources = "sources",
|
|
5
|
-
locations = "locations"
|
|
6
|
-
}
|
|
7
|
-
interface SoundingsMenuBarProps {
|
|
8
|
-
handleClick: (menuType: MenuOptions) => void;
|
|
9
|
-
isOpen: Record<MenuOptions, boolean>;
|
|
10
|
-
selectedSourcesAmount?: number;
|
|
11
|
-
shouldHideMarkers: boolean;
|
|
12
|
-
toggleMarkers: (shouldHideMarkers: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const SoundingsMenuBar: ({ handleClick, isOpen, selectedSourcesAmount, shouldHideMarkers, toggleMarkers, }: SoundingsMenuBarProps) => React.ReactElement;
|
|
15
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { MenuOptions } from './MenuBar';
|
|
4
|
-
interface Props {
|
|
5
|
-
menu?: MenuOptions;
|
|
6
|
-
isDefaultOpen?: boolean;
|
|
7
|
-
selectedSourcesAmount?: number;
|
|
8
|
-
}
|
|
9
|
-
declare const SoundingsMenuBarStory: ({ menu, isDefaultOpen, selectedSourcesAmount, }: Props) => React.ReactElement;
|
|
10
|
-
declare const _default: {
|
|
11
|
-
title: string;
|
|
12
|
-
component: ({ menu, isDefaultOpen, selectedSourcesAmount, }: Props) => React.ReactElement;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
15
|
-
type Story = StoryObj<typeof SoundingsMenuBarStory>;
|
|
16
|
-
export declare const LocationsLight: Story;
|
|
17
|
-
export declare const LocationsDark: Story;
|
|
18
|
-
export declare const SourcesLight: Story;
|
|
19
|
-
export declare const SourcesDark: Story;
|
|
20
|
-
export declare const SourcesSelected: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
interface MenuBarConnectProps {
|
|
4
|
-
viewId: string;
|
|
5
|
-
source?: uiTypes.Source;
|
|
6
|
-
}
|
|
7
|
-
export declare const MenuBarConnect: ({ viewId, source, }: MenuBarConnectProps) => React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SoundingsCollection } from '@opengeoweb/shared';
|
|
3
|
-
interface SoundingsSourceDialogConnectProps {
|
|
4
|
-
soundingsCollections: SoundingsCollection[] | undefined;
|
|
5
|
-
}
|
|
6
|
-
export declare const SoundingsSourceDialogConnect: ({ soundingsCollections, }: SoundingsSourceDialogConnectProps) => React.ReactElement;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SourceSelection } from '@opengeoweb/shared';
|
|
3
|
-
import type { SoundingsCollectionsWithInstances } from '../Soundings/types';
|
|
4
|
-
interface SoundingsSourceMenuProps {
|
|
5
|
-
soundingsCollections: SoundingsCollectionsWithInstances[] | undefined;
|
|
6
|
-
isOpen?: boolean;
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
updateCollection: (sourceId: string, value: SourceSelection) => void;
|
|
9
|
-
sourceSelections: Record<string, SourceSelection>;
|
|
10
|
-
onMouseDown?: () => void;
|
|
11
|
-
order?: number;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
error?: Error | null;
|
|
14
|
-
}
|
|
15
|
-
export declare const SoundingsSourceMenu: ({ soundingsCollections, isOpen, handleClose, updateCollection, sourceSelections, onMouseDown, order, isLoading, error, }: SoundingsSourceMenuProps) => React.ReactElement;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
-
interface SoundingsTranslationsWrapperProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const SoundingsI18nProvider: React.FC<SoundingsTranslationsWrapperProps>;
|
|
6
|
-
interface SoundingsStoreWrapperProps {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
store?: Store;
|
|
9
|
-
}
|
|
10
|
-
export declare const SoundingsStoreProvider: React.FC<SoundingsStoreWrapperProps>;
|
|
11
|
-
export declare const SoundingsStoryStoreProvider: React.FC<SoundingsStoreWrapperProps>;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SoundingPanelPlaceholder';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
-
interface DiagramTypeButtonProps {
|
|
4
|
-
diagramType: SoundingDiagramType;
|
|
5
|
-
setDiagramType: (diagramType: SoundingDiagramType) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const DiagramTypeButton: ({ diagramType, setDiagramType, }: DiagramTypeButtonProps) => React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface MouseYCtx {
|
|
3
|
-
clientY: number | null;
|
|
4
|
-
}
|
|
5
|
-
export declare const useSharedMouseY: () => MouseYCtx;
|
|
6
|
-
/**
|
|
7
|
-
* Wraps the area containing Soundings + WindBarbs so both can react
|
|
8
|
-
* to the same vertical mouse position (X ignored).
|
|
9
|
-
*/
|
|
10
|
-
export declare const SharedMouseYProvider: React.FC<{
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SoundingFeature } from '../../api/edr-api/types';
|
|
3
|
-
import type { SoundingPanel } from '../../store/types';
|
|
4
|
-
interface SortableAccordionsProps {
|
|
5
|
-
soundingPanelsInOrder: SoundingPanel[];
|
|
6
|
-
data: SoundingFeature[][];
|
|
7
|
-
size: number;
|
|
8
|
-
chosenDiagramType: 'SKEWT' | 'BIJVOET' | 'EMAGRAM';
|
|
9
|
-
setChosenDiagramType: (data: 'SKEWT' | 'BIJVOET' | 'EMAGRAM') => void;
|
|
10
|
-
viewRef: React.RefObject<HTMLDivElement>;
|
|
11
|
-
onOrderChange: (newOrder: {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
isDisplayed: boolean;
|
|
15
|
-
}[]) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const SortableAccordions: ({ soundingPanelsInOrder, data, size, chosenDiagramType, setChosenDiagramType, viewRef, onOrderChange, }: SortableAccordionsProps) => React.ReactElement;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Margin } from './drawUtils';
|
|
3
|
-
import type { SoundingFeature, SoundingDiagramType } from '../../api/edr-api/types';
|
|
4
|
-
export interface SoundingProps {
|
|
5
|
-
d3GraphId: string;
|
|
6
|
-
data: SoundingFeature[][];
|
|
7
|
-
svgDimensions: {
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
margin: Margin;
|
|
11
|
-
};
|
|
12
|
-
showTooltip?: boolean;
|
|
13
|
-
diagramType?: SoundingDiagramType;
|
|
14
|
-
}
|
|
15
|
-
export declare const Soundings: React.FC<SoundingProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { Soundings } from './Soundings';
|
|
3
|
-
declare const meta: Meta<typeof Soundings>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Soundings>;
|
|
6
|
-
export declare const SoundingsSkewTExample: Story;
|
|
7
|
-
export declare const SoundingsSkewTExampleDark: Story;
|
|
8
|
-
export declare const SoundingsEmagramExample: Story;
|
|
9
|
-
export declare const SoundingsEmagramExampleDark: Story;
|
|
10
|
-
export declare const SoundingsBijvoetExample: Story;
|
|
11
|
-
export declare const SoundingsBijvoetExampleDark: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SoundingsStore } from '../../store/types';
|
|
3
|
-
interface SoundingsConnectProps {
|
|
4
|
-
viewId: string;
|
|
5
|
-
soundingsPreset?: SoundingsStore;
|
|
6
|
-
}
|
|
7
|
-
export declare const SoundingsConnect: ({ viewId, soundingsPreset, }: SoundingsConnectProps) => React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { SoundingsConnect } from '..';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
type Story = StoryObj<typeof SoundingsConnect>;
|
|
9
|
-
export declare const SoundingsConnectStory: Story;
|
|
10
|
-
export declare const SoundingsConnectStoryDark: Story;
|
|
11
|
-
export declare const SoundingsConnectWarningStory: Story;
|
|
12
|
-
export declare const SoundingsClosedWindBarbsOpenStory: Story;
|
|
13
|
-
export declare const SoundingsClosedWindBarbsOpenStoryDark: Story;
|
|
14
|
-
export declare const SoundingsConnectLoading: {
|
|
15
|
-
(): React.ReactElement;
|
|
16
|
-
parameters: {
|
|
17
|
-
msw: {
|
|
18
|
-
handlers: {
|
|
19
|
-
edr: import("msw").HttpHandler[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const SoundingsConnectError: {
|
|
25
|
-
(): React.ReactElement;
|
|
26
|
-
parameters: {
|
|
27
|
-
msw: {
|
|
28
|
-
handlers: {
|
|
29
|
-
edr: import("msw").HttpHandler[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const SoundingsDemoNoDataExample: {
|
|
35
|
-
(): React.ReactElement;
|
|
36
|
-
parameters: {
|
|
37
|
-
msw: {
|
|
38
|
-
handlers: {
|
|
39
|
-
edr: import("msw").HttpHandler[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SourceType } from '../../store/types';
|
|
3
|
-
export declare const getLegendTitle: (source: SourceType) => string;
|
|
4
|
-
interface SoundingsLegendProps {
|
|
5
|
-
sourceSelections: SourceType[];
|
|
6
|
-
}
|
|
7
|
-
export declare const SoundingsLegend: ({ sourceSelections, }: SoundingsLegendProps) => React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Margin } from './drawUtils';
|
|
3
|
-
import type { SoundingDiagramType, SoundingFeature } from '../../api/edr-api/types';
|
|
4
|
-
export interface WindBarbsProps {
|
|
5
|
-
d3GraphId: string;
|
|
6
|
-
data: SoundingFeature[][];
|
|
7
|
-
svgDimensions: {
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
margin: Margin;
|
|
11
|
-
};
|
|
12
|
-
showTooltip?: boolean;
|
|
13
|
-
diagramType?: SoundingDiagramType;
|
|
14
|
-
animateResize?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const WindBarbs: React.FC<WindBarbsProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type * as d3 from 'd3';
|
|
2
|
-
import type { MutableRefObject } from 'react';
|
|
3
|
-
import type { Margin } from './drawUtils';
|
|
4
|
-
export declare const animateResizeTransform: (svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>, marginLocal: Margin, innerHeight: number, prevInnerHeightRef: MutableRefObject<number | null>) => void;
|