@opengeoweb/shared 12.5.0 → 12.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.0",
|
|
4
4
|
"description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/theme": "12.
|
|
11
|
+
"@opengeoweb/theme": "12.6.0",
|
|
12
12
|
"react-draggable": "^4.4.6",
|
|
13
13
|
"re-resizable": "^6.9.11",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface Referencing {
|
|
2
|
+
coordinates: string[];
|
|
3
|
+
system: CRSSystem;
|
|
4
|
+
}
|
|
5
|
+
interface GeographicCRS {
|
|
6
|
+
type: 'GeographicCRS';
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
interface ProjectedCRS {
|
|
10
|
+
type: 'ProjectedCRS';
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
interface VerticalCRS {
|
|
14
|
+
type: 'VerticalCRS';
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
interface EngineeringCRS {
|
|
18
|
+
type: 'EngineeringCRS';
|
|
19
|
+
id?: string;
|
|
20
|
+
}
|
|
21
|
+
interface TemporalRS {
|
|
22
|
+
type: 'TemporalRS';
|
|
23
|
+
calendar: string;
|
|
24
|
+
}
|
|
25
|
+
type CRSSystem = GeographicCRS | ProjectedCRS | VerticalCRS | EngineeringCRS | TemporalRS;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Referencing } from './crss-types';
|
|
2
|
+
interface AxisValues {
|
|
3
|
+
values: number[] | string[];
|
|
4
|
+
}
|
|
5
|
+
interface SingleValueAxis {
|
|
6
|
+
values: [number];
|
|
7
|
+
}
|
|
8
|
+
interface SingleTimeValueAxis {
|
|
9
|
+
values: [string];
|
|
10
|
+
}
|
|
11
|
+
interface VerticalProfileAxes {
|
|
12
|
+
x: SingleValueAxis;
|
|
13
|
+
y: SingleValueAxis;
|
|
14
|
+
z: AxisValues;
|
|
15
|
+
t?: SingleTimeValueAxis;
|
|
16
|
+
}
|
|
17
|
+
export interface VerticalProfileDomain {
|
|
18
|
+
type: 'Domain';
|
|
19
|
+
domainType: 'VerticalProfile';
|
|
20
|
+
axes: VerticalProfileAxes;
|
|
21
|
+
referencing?: Referencing[];
|
|
22
|
+
}
|
|
23
|
+
interface NdArray {
|
|
24
|
+
type: 'NdArray';
|
|
25
|
+
dataType: 'float' | 'integer' | 'string';
|
|
26
|
+
axisNames?: string[];
|
|
27
|
+
shape?: number[];
|
|
28
|
+
values: number[] | string[];
|
|
29
|
+
}
|
|
30
|
+
type Ranges = Record<string, NdArray>;
|
|
31
|
+
type Description = Record<string, string>;
|
|
32
|
+
type Label = Record<string, string>;
|
|
33
|
+
interface Parameter {
|
|
34
|
+
type: 'Parameter';
|
|
35
|
+
id?: string;
|
|
36
|
+
label?: Label;
|
|
37
|
+
description?: Description;
|
|
38
|
+
unit?: {
|
|
39
|
+
label?: Label;
|
|
40
|
+
symbol?: Record<string, string>;
|
|
41
|
+
};
|
|
42
|
+
observedProperty: {
|
|
43
|
+
id?: string;
|
|
44
|
+
label: Label;
|
|
45
|
+
description?: Description;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface Coverage {
|
|
49
|
+
type: 'Coverage';
|
|
50
|
+
domain: VerticalProfileDomain;
|
|
51
|
+
ranges: Ranges;
|
|
52
|
+
}
|
|
53
|
+
export interface CoverageCollection {
|
|
54
|
+
type: 'CoverageCollection';
|
|
55
|
+
domainType: VerticalProfileDomain;
|
|
56
|
+
parameters: Record<string, Parameter>;
|
|
57
|
+
ranges: Record<string, NdArray>;
|
|
58
|
+
coverages: Coverage[];
|
|
59
|
+
referencing: Referencing[];
|
|
60
|
+
}
|
|
61
|
+
export {};
|
package/src/lib/types/index.d.ts
CHANGED