@opengeoweb/soundings 12.1.2 → 12.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1950 -6
- package/package.json +13 -2
- package/src/index.d.ts +7 -1
- package/src/lib/api/edr-api/api.d.ts +6 -0
- package/src/lib/api/edr-api/crss-types.d.ts +26 -0
- package/src/lib/api/edr-api/fakeApi.d.ts +1 -0
- package/src/lib/api/edr-api/hooks.d.ts +5 -0
- package/src/lib/api/edr-api/types.d.ts +118 -0
- package/src/lib/components/DrawUtils.d.ts +39 -0
- package/src/lib/components/EDRFetchAndParse.stories.d.ts +7 -0
- package/src/lib/components/MenuBar/LocationsMenu.d.ts +13 -0
- package/src/lib/components/MenuBar/LocationsMenuConnect.d.ts +6 -0
- package/src/lib/components/MenuBar/MenuBar.d.ts +12 -0
- package/src/lib/components/MenuBar/MenuBar.stories.d.ts +20 -0
- package/src/lib/components/MenuBar/MenuBarConnect.d.ts +8 -0
- package/src/lib/components/MenuBar/MenuBarConnect.spec.d.ts +1 -0
- package/src/lib/components/MenuBar/SoundingsSourceDialogConnect.d.ts +7 -0
- package/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +12 -0
- package/src/lib/components/Providers/Providers.d.ts +12 -0
- package/src/lib/components/Soundings.d.ts +14 -0
- package/src/lib/components/Soundings.spec.d.ts +1 -0
- package/src/lib/components/Soundings.stories.d.ts +7 -0
- package/src/lib/components/SoundingsConnect.d.ts +6 -0
- package/src/lib/components/StaticLines/drawDryAdiabats.d.ts +11 -0
- package/src/lib/components/StaticLines/drawIsobars.d.ts +11 -0
- package/src/lib/components/StaticLines/drawIsohumes.d.ts +10 -0
- package/src/lib/components/StaticLines/drawIsotherms.d.ts +10 -0
- package/src/lib/components/StaticLines/drawMoistAdiabats.d.ts +16 -0
- package/src/lib/components/StaticLines/utils.d.ts +15 -0
- package/src/lib/components/WindBarbs/utils.d.ts +25 -0
- package/src/lib/components/WindBarbs/windsymbols.d.ts +5 -0
- package/src/lib/components/index.d.ts +3 -0
- package/src/lib/components/types.d.ts +5 -0
- package/src/lib/i18n.d.ts +7 -0
- package/src/lib/parser/coverages.d.ts +2 -0
- package/src/lib/store/reducer.d.ts +7 -0
- package/src/lib/store/selectors.d.ts +105 -0
- package/src/lib/store/selectors.spec.d.ts +1 -0
- package/src/lib/store/store.d.ts +9 -0
- package/src/lib/store/types.d.ts +25 -0
- package/src/lib/utils/conversions.d.ts +11 -0
- package/src/lib/utils/soundingsLookUp.d.ts +8 -0
- package/src/lib/components/Sounding.d.ts +0 -2
- package/src/lib/components/Sounding.spec.d.ts +0 -0
- package/src/lib/components/soundings.stories.d.ts +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import { UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
+
import { SoundingsModuleState } from './types';
|
|
4
|
+
export declare const soundingsReducersMap: {
|
|
5
|
+
soundings: import("redux").Reducer<import("./types").SoundingsStore>;
|
|
6
|
+
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
7
|
+
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").UnknownAction, import("dist/libs/store/src/store/ui/types").UIStoreType>;
|
|
8
|
+
};
|
|
9
|
+
export declare const createMockStore: (mockState?: SoundingsModuleState | WebMapStateModuleState | UIModuleState) => Store;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SourceType {
|
|
2
|
+
collectionId: string;
|
|
3
|
+
instanceId?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateSourcePayload {
|
|
6
|
+
sourceId: string;
|
|
7
|
+
value: SourceSelection;
|
|
8
|
+
}
|
|
9
|
+
export interface SourceSelection {
|
|
10
|
+
instanceId?: string;
|
|
11
|
+
isChecked?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface UpdateLocationPayload {
|
|
14
|
+
sourceId: string;
|
|
15
|
+
locationId: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface SoundingsStore {
|
|
18
|
+
/** key: sourceId */
|
|
19
|
+
selectedSources: Record<string, SourceSelection>;
|
|
20
|
+
/** key: sourceId, value: locationId */
|
|
21
|
+
selectedLocations: Record<string, string | undefined>;
|
|
22
|
+
}
|
|
23
|
+
export interface SoundingsModuleState {
|
|
24
|
+
soundings: SoundingsStore;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const epsilon = 0.622;
|
|
2
|
+
export declare const e0 = 611.2;
|
|
3
|
+
export declare const aConstant = 17.67;
|
|
4
|
+
export declare const bConstant = 243.5;
|
|
5
|
+
export declare const tKelvinOffset = 273.15;
|
|
6
|
+
export declare const gConstant = 461.5;
|
|
7
|
+
export declare const hConstant = 2500000;
|
|
8
|
+
export declare function dewpointFromSpecificHumidity(specificHumidity: number, // specific humidity [kg/kg]
|
|
9
|
+
pressure: number): number;
|
|
10
|
+
export declare function dewpointFromRelativeHumidity(tCelsius: number, // air temperature [°C]
|
|
11
|
+
relHumidity: number): number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const soundingsComponentType = "Soundings";
|
|
2
|
+
export interface SoundingsLookUpPayload {
|
|
3
|
+
componentType: typeof soundingsComponentType;
|
|
4
|
+
id: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
initialProps: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export declare const soundingsLookUp: (payload: SoundingsLookUpPayload) => React.JSX.Element | null;
|
|
File without changes
|