@geode/opengeodeweb-viewer 1.39.1 → 1.40.0-rc.2

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": "@geode/opengeodeweb-viewer",
3
- "version": "1.39.1",
3
+ "version": "1.40.0-rc.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer",
6
6
  "bugs": {
@@ -19,7 +19,10 @@
19
19
  "files": [
20
20
  "opengeodeweb_viewer_schemas.json",
21
21
  "opengeodeweb_viewer_typed_schemas.js",
22
- "opengeodeweb_viewer_typed_schemas.d.ts"
22
+ "opengeodeweb_viewer_typed_schemas.d.ts",
23
+ "src/opengeodeweb_viewer/schema_types.json",
24
+ "src/opengeodeweb_viewer/schema_types.d.ts",
25
+ "src/opengeodeweb_viewer/schema_types.py"
23
26
  ],
24
27
  "exports": {
25
28
  "./opengeodeweb_viewer_schemas.json": {
@@ -29,6 +32,9 @@
29
32
  "./opengeodeweb_viewer_typed_schemas.js": {
30
33
  "types": "./opengeodeweb_viewer_typed_schemas.d.ts",
31
34
  "default": "./opengeodeweb_viewer_typed_schemas.js"
35
+ },
36
+ "./schema_types": {
37
+ "types": "./src/opengeodeweb_viewer/schema_types.d.ts"
32
38
  }
33
39
  },
34
40
  "publishConfig": {
@@ -40,6 +46,6 @@
40
46
  "build": "npm run json"
41
47
  },
42
48
  "dependencies": {
43
- "@geode/opengeodeweb-microservice": "latest"
49
+ "@geode/opengeodeweb-microservice": "next"
44
50
  }
45
51
  }
@@ -0,0 +1,30 @@
1
+ // Generated by generate_schema_types.js from schema_types.json: do not edit
2
+
3
+ export type ViewerId = number;
4
+ export type AttributeName = string;
5
+ export type Filename = string;
6
+ export type BlockIds = ViewerId[];
7
+ export type Visibility = boolean;
8
+ export type Opacity = number;
9
+ export type PointSize = number;
10
+ export type EdgeWidth = number;
11
+ export type ColorMapPoints = number[];
12
+ export type AttributeItem = number;
13
+ export type AttributeRangeMinimum = number;
14
+ export type AttributeRangeMaximum = number;
15
+
16
+ export interface Point3D {
17
+ x: number;
18
+ y: number;
19
+ z: number;
20
+ }
21
+
22
+ export interface ColorRGB {
23
+ blue: number;
24
+ green: number;
25
+ red: number;
26
+ }
27
+
28
+ export interface ColorRGBA extends ColorRGB {
29
+ alpha: number;
30
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "ViewerId": {
3
+ "type": "integer"
4
+ },
5
+ "AttributeName": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "Filename": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "Point3D": {
14
+ "type": "object",
15
+ "properties": {
16
+ "x": {
17
+ "type": "number"
18
+ },
19
+ "y": {
20
+ "type": "number"
21
+ },
22
+ "z": {
23
+ "type": "number"
24
+ }
25
+ },
26
+ "required": [
27
+ "x",
28
+ "y",
29
+ "z"
30
+ ],
31
+ "additionalProperties": false
32
+ },
33
+ "BlockIds": {
34
+ "type": "array",
35
+ "items": {
36
+ "title": "ViewerId"
37
+ },
38
+ "minItems": 1
39
+ },
40
+ "Visibility": {
41
+ "type": "boolean"
42
+ },
43
+ "Opacity": {
44
+ "type": "number",
45
+ "minimum": 0,
46
+ "maximum": 1
47
+ },
48
+ "PointSize": {
49
+ "type": "number"
50
+ },
51
+ "EdgeWidth": {
52
+ "type": "number"
53
+ },
54
+ "ColorRGB": {
55
+ "type": "object",
56
+ "properties": {
57
+ "red": {
58
+ "type": "integer",
59
+ "minimum": 0,
60
+ "maximum": 255
61
+ },
62
+ "green": {
63
+ "type": "integer",
64
+ "minimum": 0,
65
+ "maximum": 255
66
+ },
67
+ "blue": {
68
+ "type": "integer",
69
+ "minimum": 0,
70
+ "maximum": 255
71
+ }
72
+ },
73
+ "required": [
74
+ "red",
75
+ "green",
76
+ "blue"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "ColorRGBA": {
81
+ "extends": "ColorRGB",
82
+ "properties": {
83
+ "alpha": {
84
+ "type": "number",
85
+ "minimum": 0,
86
+ "maximum": 1
87
+ }
88
+ },
89
+ "required": [
90
+ "alpha"
91
+ ]
92
+ },
93
+ "ColorMapPoints": {
94
+ "description": "Flat array of [value, r, g, b, ...]",
95
+ "type": "array",
96
+ "items": {
97
+ "type": "number"
98
+ },
99
+ "minItems": 8
100
+ },
101
+ "AttributeItem": {
102
+ "type": "integer",
103
+ "minimum": 0
104
+ },
105
+ "AttributeRangeMinimum": {
106
+ "type": "number"
107
+ },
108
+ "AttributeRangeMaximum": {
109
+ "type": "number"
110
+ }
111
+ }
@@ -0,0 +1,63 @@
1
+ """Generated by generate_schema_types.js from schema_types.json: do not edit"""
2
+
3
+ from dataclasses import dataclass
4
+
5
+ from dataclasses_json import DataClassJsonMixin
6
+ from opengeodeweb_microservice.schemas import print_dataclass
7
+
8
+ ViewerId = int
9
+ AttributeName = str
10
+ Filename = str
11
+ BlockIds = list[ViewerId]
12
+ Visibility = bool
13
+ Opacity = float
14
+ PointSize = float
15
+ EdgeWidth = float
16
+ ColorMapPoints = list[float]
17
+ AttributeItem = int
18
+ AttributeRangeMinimum = float
19
+ AttributeRangeMaximum = float
20
+
21
+
22
+ @dataclass
23
+ class Point3D(DataClassJsonMixin):
24
+ def __post_init__(self) -> None:
25
+ print_dataclass(self)
26
+
27
+ x: float
28
+ y: float
29
+ z: float
30
+
31
+
32
+ @dataclass
33
+ class ColorRGB(DataClassJsonMixin):
34
+ def __post_init__(self) -> None:
35
+ print_dataclass(self)
36
+
37
+ blue: int
38
+ green: int
39
+ red: int
40
+
41
+
42
+ @dataclass
43
+ class ColorRGBA(ColorRGB):
44
+ alpha: float
45
+
46
+
47
+ __all__ = [
48
+ "AttributeItem",
49
+ "AttributeName",
50
+ "AttributeRangeMaximum",
51
+ "AttributeRangeMinimum",
52
+ "BlockIds",
53
+ "ColorMapPoints",
54
+ "ColorRGB",
55
+ "ColorRGBA",
56
+ "EdgeWidth",
57
+ "Filename",
58
+ "Opacity",
59
+ "Point3D",
60
+ "PointSize",
61
+ "ViewerId",
62
+ "Visibility",
63
+ ]