@opengeoweb/soundings 14.1.0 → 14.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/soundings",
3
- "version": "14.1.0",
3
+ "version": "14.2.1",
4
4
  "description": "GeoWeb soundings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,25 +8,26 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "14.1.0",
11
+ "@opengeoweb/api": "14.2.1",
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": "14.1.0",
17
+ "@opengeoweb/shared": "14.2.1",
18
18
  "@mui/material": "^7.0.1",
19
- "@opengeoweb/store": "14.1.0",
19
+ "@opengeoweb/store": "14.2.1",
20
20
  "react-redux": "^9.2.0",
21
- "@opengeoweb/theme": "14.1.0",
21
+ "@opengeoweb/theme": "14.2.1",
22
22
  "@reduxjs/toolkit": "^2.6.1",
23
- "@opengeoweb/time-slider": "14.1.0",
23
+ "@opengeoweb/time-slider": "14.2.1",
24
24
  "react-window": "^1.8.10",
25
- "@opengeoweb/webmap": "14.1.0",
25
+ "@opengeoweb/webmap": "14.2.1",
26
26
  "lodash": "^4.17.21",
27
27
  "@types/geojson": "^7946.0.14",
28
- "@opengeoweb/webmap-react": "14.1.0",
29
- "react-resizable-layout": "^0.7.3"
28
+ "@opengeoweb/webmap-react": "14.2.1",
29
+ "react-resizable-layout": "^0.7.3",
30
+ "react-sortablejs": "^6.1.4"
30
31
  },
31
32
  "devDependencies": {
32
33
  "eslint-plugin-storybook": "9.0.17"
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SoundingFeature } from '../../api/edr-api/types';
3
+ interface SortableAccordionsProps {
4
+ data: SoundingFeature[][];
5
+ size: number;
6
+ chosenDiagramType: 'SKEWT' | 'BIJVOET' | 'EMAGRAM';
7
+ setChosenDiagramType: (data: 'SKEWT' | 'BIJVOET' | 'EMAGRAM') => void;
8
+ viewRef: React.RefObject<HTMLDivElement>;
9
+ }
10
+ export declare const SortableAccordions: ({ data, size, chosenDiagramType, setChosenDiagramType, viewRef, }: SortableAccordionsProps) => React.ReactElement;
11
+ export {};
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Margin } from './drawUtils';
3
3
  import { SoundingDiagramType, SoundingFeature } from '../../api/edr-api/types';
4
4
  export interface SoundingProps {
5
+ d3GraphId: string;
5
6
  data: SoundingFeature[][];
6
7
  svgDimensions: {
7
8
  width: number;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { Margin } from './drawUtils';
3
+ import { 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
+ }
15
+ export declare const WindBarbs: React.FC<WindBarbsProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -15,6 +15,7 @@ interface InitializeSvg {
15
15
  height: number;
16
16
  margin: Margin;
17
17
  diagramType: SoundingDiagramType;
18
+ d3GraphId: string;
18
19
  }
19
20
  interface DrawAxis {
20
21
  svg: d3.Selection<SVGElement, unknown, HTMLElement, undefined>;
@@ -35,7 +36,7 @@ interface PlotSounding {
35
36
  diagramType: SoundingDiagramType;
36
37
  }
37
38
  export declare const getDiagramName: (t: TFunction<"soundings", i18n>, diagramType: SoundingDiagramType) => string;
38
- export declare const initializeSvg: ({ svgRef, width, height, margin, diagramType, }: InitializeSvg) => d3.Selection<SVGGElement, unknown, null, undefined>;
39
+ export declare const initializeSvg: ({ svgRef, width, height, margin, diagramType, d3GraphId, }: InitializeSvg) => d3.Selection<SVGGElement, unknown, null, undefined>;
39
40
  export declare const createScales: (diagramType: SoundingDiagramType, width: number, height: number, minPressure: number, maxPressure: number, minTemperature: number, maxTemperature: number) => [ScalesType, ScalesType];
40
41
  export declare const drawAxes: ({ svg, xScale, yScale, height, diagramType, }: DrawAxis) => void;
41
42
  export declare const mapToPlot: (diagramType: SoundingDiagramType, filteredPressureValues: number[], filteredTemperatureValues: number[], xScale: ScalesType, yScale: ScalesType, height: number) => [number, number][];
@@ -5,6 +5,7 @@ export interface SoundingsAccordionProps {
5
5
  maxWidth?: number;
6
6
  accordionIsOpen?: boolean;
7
7
  diagramTypeButton?: React.ReactElement;
8
+ handleButtonComponent?: React.ReactElement;
8
9
  children?: React.ReactNode;
9
10
  }
10
11
  export declare const SoundingsAccordion: React.ForwardRefExoticComponent<SoundingsAccordionProps & React.RefAttributes<HTMLDivElement>>;
@@ -20,10 +20,10 @@ interface DrawSoundingsTooltipProps {
20
20
  svgRectangle: DOMRect;
21
21
  margin: Margin;
22
22
  width: number;
23
- pressureRefd3: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
24
- tempRefd3: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
25
- dewpointRefd3: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
26
- windRefd3: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
23
+ pressureRefd3?: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
24
+ tempRefd3?: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
25
+ dewpointRefd3?: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
26
+ windRefd3?: d3.Selection<HTMLDivElement | null, unknown, null, undefined>;
27
27
  tooltipData: DrawSoundingsTooltipData[];
28
28
  diagramType: SoundingDiagramType;
29
29
  }
@@ -9,13 +9,15 @@ interface DrawDryAdiabatsProps {
9
9
  dp: number;
10
10
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
11
11
  diagramType: SoundingDiagramType;
12
+ d3GraphId: string;
12
13
  }
13
- export declare const drawDryAdiabats: ({ staticPressureArray, height, xScale, yScale, svg, dp, diagramType, }: DrawDryAdiabatsProps) => void;
14
+ export declare const drawDryAdiabats: ({ staticPressureArray, height, xScale, yScale, svg, dp, diagramType, d3GraphId, }: DrawDryAdiabatsProps) => void;
14
15
  interface DrawDryAdiabatsBijvoetProps {
15
16
  staticPressureArray: number[];
16
17
  xScale: ScalesType;
17
18
  yScale: ScalesType;
18
19
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
20
+ d3GraphId: string;
19
21
  }
20
- export declare const drawDryAdiabatsBijvoet: ({ staticPressureArray, xScale, yScale, svg, }: DrawDryAdiabatsBijvoetProps) => void;
22
+ export declare const drawDryAdiabatsBijvoet: ({ staticPressureArray, xScale, yScale, svg, d3GraphId, }: DrawDryAdiabatsBijvoetProps) => void;
21
23
  export {};
@@ -8,14 +8,16 @@ interface DrawIsohumesProps {
8
8
  yScale: ScalesType;
9
9
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
10
10
  diagramType: SoundingDiagramType;
11
+ d3GraphId: string;
11
12
  }
12
- export declare const drawIsohumes: ({ staticPressureArray, height, xScale, yScale, svg, diagramType, }: DrawIsohumesProps) => void;
13
+ export declare const drawIsohumes: ({ staticPressureArray, height, xScale, yScale, svg, diagramType, d3GraphId, }: DrawIsohumesProps) => void;
13
14
  interface DrawIsohumesBijvoetProps {
14
15
  staticPressureArray: number[];
15
16
  height: number;
16
17
  xScale: ScalesType;
17
18
  yScale: ScalesType;
18
19
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
20
+ d3GraphId: string;
19
21
  }
20
- export declare const drawIsohumesBijvoet: ({ staticPressureArray, height, xScale, yScale, svg, }: DrawIsohumesBijvoetProps) => void;
22
+ export declare const drawIsohumesBijvoet: ({ staticPressureArray, height, xScale, yScale, svg, d3GraphId, }: DrawIsohumesBijvoetProps) => void;
21
23
  export {};
@@ -8,14 +8,16 @@ interface DrawIsothermsProps {
8
8
  yScale: ScalesType;
9
9
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
10
10
  diagramType: SoundingDiagramType;
11
+ d3GraphId: string;
11
12
  }
12
- export declare const drawIsotherms: ({ staticPressureArray, height, xScale, yScale, svg, diagramType, }: DrawIsothermsProps) => void;
13
+ export declare const drawIsotherms: ({ staticPressureArray, height, xScale, yScale, svg, diagramType, d3GraphId, }: DrawIsothermsProps) => void;
13
14
  interface DrawIsothermsBijvoetProps {
14
15
  staticPressureArray: number[];
15
16
  xScale: ScalesType;
16
17
  yScale: ScalesType;
17
18
  height: number;
18
19
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
20
+ d3GraphId: string;
19
21
  }
20
- export declare const drawIsothermsBijvoet: ({ staticPressureArray, xScale, yScale, svg, height, }: DrawIsothermsBijvoetProps) => void;
22
+ export declare const drawIsothermsBijvoet: ({ staticPressureArray, xScale, yScale, svg, height, d3GraphId, }: DrawIsothermsBijvoetProps) => void;
21
23
  export {};
@@ -14,14 +14,16 @@ interface DrawMoistAdiabatsProps {
14
14
  yScale: ScalesType;
15
15
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
16
16
  diagramType: SoundingDiagramType;
17
+ d3GraphId: string;
17
18
  }
18
- export declare const drawMoistAdiabats: ({ staticPressureArray, minTemperature, maxTemperature, minPressure, maxPressure, width, height, xScale, yScale, svg, dp, diagramType, }: DrawMoistAdiabatsProps) => void;
19
+ export declare const drawMoistAdiabats: ({ staticPressureArray, minTemperature, maxTemperature, minPressure, maxPressure, width, height, xScale, yScale, svg, dp, diagramType, d3GraphId, }: DrawMoistAdiabatsProps) => void;
19
20
  interface DrawMoistAdiabatsBijvoetProps {
20
21
  minPressure: number;
21
22
  maxPressure: number;
22
23
  xScale: ScalesType;
23
24
  yScale: ScalesType;
24
25
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
26
+ d3GraphId: string;
25
27
  }
26
- export declare const drawMoistAdiabatsBijvoet: ({ minPressure, maxPressure, xScale, yScale, svg, }: DrawMoistAdiabatsBijvoetProps) => void;
28
+ export declare const drawMoistAdiabatsBijvoet: ({ minPressure, maxPressure, xScale, yScale, svg, d3GraphId, }: DrawMoistAdiabatsBijvoetProps) => void;
27
29
  export {};
@@ -13,6 +13,7 @@ interface DrawStaticLinesProps {
13
13
  xScale: ScalesType;
14
14
  yScale: ScalesType;
15
15
  svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>;
16
+ d3GraphId: string;
16
17
  }
17
- export declare const drawStaticLines: ({ diagramType, dp, staticPressureArray, minTemperature, maxTemperature, height, width, xScale, yScale, minPressure, maxPressure, svg, }: DrawStaticLinesProps) => void;
18
+ export declare const drawStaticLines: ({ diagramType, dp, staticPressureArray, minTemperature, maxTemperature, height, width, xScale, yScale, minPressure, maxPressure, svg, d3GraphId, }: DrawStaticLinesProps) => void;
18
19
  export {};