diff --git a/opengeodeweb_viewer_schemas.json b/opengeodeweb_viewer_schemas.json index 9dc7d248..ffc673e0 100644 --- a/opengeodeweb_viewer_schemas.json +++ b/opengeodeweb_viewer_schemas.json @@ -440,81 +440,6 @@ ], "additionalProperties": false }, - "vertex_scalar_range": { - "$id": "opengeodeweb_viewer.mesh.points.vertex_scalar_range", - "rpc": "vertex_scalar_range", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "minimum": { - "type": "number" - }, - "maximum": { - "type": "number" - } - }, - "required": [ - "id", - "minimum", - "maximum" - ], - "additionalProperties": false - }, - "vertex_color_map": { - "$id": "opengeodeweb_viewer.mesh.points.color_map", - "rpc": "color_map", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "points": { - "type": "array", - "description": "Flat array of [value, r, g, b, ...]", - "items": { - "type": "number" - }, - "minItems": 8 - }, - "minimum": { - "type": "number" - }, - "maximum": { - "type": "number" - } - }, - "required": [ - "id", - "points", - "minimum", - "maximum" - ], - "additionalProperties": false - }, - "vertex_attribute": { - "$id": "opengeodeweb_viewer.mesh.points.vertex_attribute", - "rpc": "vertex_attribute", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false - }, "size": { "$id": "opengeodeweb_viewer.mesh.points.size", "rpc": "size", diff --git a/package.json b/package.json index 5da3d5f8..210fe01f 100644 --- a/package.json +++ b/package.json @@ -2,38 +2,38 @@ "name": "@geode/opengeodeweb-viewer", "version": "0.0.0", "description": "", - "scripts": { - "json": "npx opengeodeweb-microservice-generate opengeodeweb_viewer rpc rpc .", - "test": "npm run json", - "build": "npm run json" + "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer", + "bugs": { + "url": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/issues" }, - "dependencies": { - "@geode/opengeodeweb-microservice": "0.0.0" + "license": "MIT", + "author": { + "name": "Geode-solutions", + "email": "contact@geode-solutions.com", + "url": "https://geode-solutions.com/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Geode-solutions/OpenGeodeWeb-Viewer.git" }, + "files": [ + "opengeodeweb_viewer_schemas.json" + ], "exports": { "./opengeodeweb_viewer_schemas.json": { "import": "./opengeodeweb_viewer_schemas.json", "require": "./opengeodeweb_viewer_schemas.json" } }, - "repository": { - "type": "git", - "url": "git+https://github.com/Geode-solutions/OpenGeodeWeb-Viewer.git" - }, - "author": { - "name": "Geode-solutions", - "email": "contact@geode-solutions.com", - "url": "https://geode-solutions.com/" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/issues" - }, - "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer", "publishConfig": { "access": "public" }, - "files": [ - "opengeodeweb_viewer_schemas.json" - ] -} \ No newline at end of file + "scripts": { + "json": "npx opengeodeweb-microservice-generate --startDir src/opengeodeweb_viewer/rpc --key rpc --separator .", + "test": "npm run json", + "build": "npm run json" + }, + "dependencies": { + "@geode/opengeodeweb-microservice": "0.0.0" + } +} diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/__init__.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/__init__.py index 54bc771d..231578e0 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/__init__.py +++ b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/__init__.py @@ -1,6 +1,3 @@ from .visibility import * -from .vertex_scalar_range import * -from .vertex_color_map import * -from .vertex_attribute import * from .size import * from .color import * diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.json b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.json deleted file mode 100644 index 9eb5de68..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "rpc": "vertex_attribute", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false -} \ No newline at end of file diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py deleted file mode 100644 index 64f7c2d0..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py +++ /dev/null @@ -1,11 +0,0 @@ -from dataclasses_json import DataClassJsonMixin -from dataclasses import dataclass - - -@dataclass -class VertexAttribute(DataClassJsonMixin): - def __post_init__(self) -> None: - print(self, flush=True) - - id: str - name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.json b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.json deleted file mode 100644 index 95737cc6..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rpc": "color_map", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "points": { - "type": "array", - "description": "Flat array of [value, r, g, b, ...]", - "items": { - "type": "number" - }, - "minItems": 8 - }, - "minimum": { - "type": "number" - }, - "maximum": { - "type": "number" - } - }, - "required": ["id", "points", "minimum", "maximum"], - "additionalProperties": false -} diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.py deleted file mode 100644 index 14239388..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_color_map.py +++ /dev/null @@ -1,15 +0,0 @@ -from dataclasses_json import DataClassJsonMixin -from dataclasses import dataclass -from typing import List - - -@dataclass -class VertexColorMap(DataClassJsonMixin): - def __post_init__(self) -> None: - print(self, flush=True) - - id: str - maximum: float - minimum: float - points: List[float] - """Flat array of [value, r, g, b, ...]""" diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.json b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.json deleted file mode 100644 index 68a8cabe..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rpc": "vertex_scalar_range", - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "minimum": { - "type": "number" - }, - "maximum": { - "type": "number" - } - }, - "required": [ - "id", - "minimum", - "maximum" - ], - "additionalProperties": false -} diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.py deleted file mode 100644 index 735ba2a4..00000000 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_scalar_range.py +++ /dev/null @@ -1,12 +0,0 @@ -from dataclasses_json import DataClassJsonMixin -from dataclasses import dataclass - - -@dataclass -class VertexScalarRange(DataClassJsonMixin): - def __post_init__(self) -> None: - print(self, flush=True) - - id: str - maximum: float - minimum: float