From 2680d57900f50adb3f060c203228e876575a7131 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Mon, 19 Oct 2026 16:16:41 +0200 Subject: [PATCH 01/12] feat(scalarbarModel): Enable picking on scalarbar for models [skip ci] --- opengeodeweb_viewer_schemas.json | 6 + opengeodeweb_viewer_typed_schemas.d.ts | 1453 +++++++++-------- .../rpc/model/model_protocols.py | 3 + .../rpc/viewer/schemas/pick_colormap.json | 6 + .../rpc/viewer/schemas/pick_colormap.py | 3 +- .../rpc/viewer/viewer_protocols.py | 26 +- src/opengeodeweb_viewer/vtk_pipeline.py | 2 + ...l_blocks_attribute_polyhedron_protocols.py | 35 +- 8 files changed, 823 insertions(+), 711 deletions(-) diff --git a/opengeodeweb_viewer_schemas.json b/opengeodeweb_viewer_schemas.json index f93e6d99..206ebef3 100644 --- a/opengeodeweb_viewer_schemas.json +++ b/opengeodeweb_viewer_schemas.json @@ -3652,6 +3652,12 @@ "properties": { "data_id": { "type": "string" + }, + "block_ids": { + "type": "array", + "items": { + "type": "integer" + } } }, "required": [], diff --git a/opengeodeweb_viewer_typed_schemas.d.ts b/opengeodeweb_viewer_typed_schemas.d.ts index 74ff65f3..d3188ae2 100644 --- a/opengeodeweb_viewer_typed_schemas.d.ts +++ b/opengeodeweb_viewer_typed_schemas.d.ts @@ -2,1087 +2,1016 @@ import type json from "./opengeodeweb_viewer_schemas.json"; export interface GenericRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface GenericRegisterResponse { -} +export interface GenericRegisterResponse {} export interface GenericDeregisterParams { - id: string; + id: string; } -export interface GenericDeregisterResponse { -} +export interface GenericDeregisterResponse {} export interface MeshCellsAttributeCellAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeCellAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeCellAttributeResponse { -} +export interface MeshCellsAttributeCellAttributeResponse {} export interface MeshCellsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeVertexAttributeResponse { -} +export interface MeshCellsAttributeVertexAttributeResponse {} export interface MeshCellsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshCellsVisibilityResponse { -} +export interface MeshCellsVisibilityResponse {} export interface MeshCellsColorParams { - color: MeshCellsColorParamsColor; - id: string; + color: MeshCellsColorParamsColor; + id: string; } export interface MeshCellsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsColorResponse { -} +export interface MeshCellsColorResponse {} export interface MeshEdgesAttributeEdgeAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeEdgeAttributeResponse { -} +export interface MeshEdgesAttributeEdgeAttributeResponse {} export interface MeshEdgesAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeVertexAttributeResponse { -} +export interface MeshEdgesAttributeVertexAttributeResponse {} export interface MeshEdgesWidthParams { - id: string; - width: number; + id: string; + width: number; } -export interface MeshEdgesWidthResponse { -} +export interface MeshEdgesWidthResponse {} export interface MeshEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshEdgesVisibilityResponse { -} +export interface MeshEdgesVisibilityResponse {} export interface MeshEdgesColorParams { - color: MeshEdgesColorParamsColor; - id: string; + color: MeshEdgesColorParamsColor; + id: string; } export interface MeshEdgesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesColorResponse { -} +export interface MeshEdgesColorResponse {} export interface MeshPointsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsAttributeVertexAttributeResponse { -} +export interface MeshPointsAttributeVertexAttributeResponse {} export interface MeshPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsVisibilityResponse { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface MeshPointsSizeResponse { -} +export interface MeshPointsSizeResponse {} export interface MeshPointsColorParams { - color: MeshPointsColorParamsColor; - id: string; + color: MeshPointsColorParamsColor; + id: string; } export interface MeshPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsColorResponse { -} +export interface MeshPointsColorResponse {} export interface MeshPolygonsAttributePolygonAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributePolygonAttributeResponse { -} +export interface MeshPolygonsAttributePolygonAttributeResponse {} export interface MeshPolygonsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributeVertexAttributeResponse { -} +export interface MeshPolygonsAttributeVertexAttributeResponse {} export interface MeshPolygonsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolygonsVisibilityResponse { -} +export interface MeshPolygonsVisibilityResponse {} export interface MeshPolygonsColorParams { - color: MeshPolygonsColorParamsColor; - id: string; + color: MeshPolygonsColorParamsColor; + id: string; } export interface MeshPolygonsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsColorResponse { -} +export interface MeshPolygonsColorResponse {} export interface MeshPolyhedraAttributePolyhedronAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributePolyhedronAttributeResponse { -} +export interface MeshPolyhedraAttributePolyhedronAttributeResponse {} export interface MeshPolyhedraAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributeVertexAttributeResponse { -} +export interface MeshPolyhedraAttributeVertexAttributeResponse {} export interface MeshPolyhedraVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolyhedraVisibilityResponse { -} +export interface MeshPolyhedraVisibilityResponse {} export interface MeshPolyhedraColorParams { - color: MeshPolyhedraColorParamsColor; - id: string; + color: MeshPolyhedraColorParamsColor; + id: string; } export interface MeshPolyhedraColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraColorResponse { -} +export interface MeshPolyhedraColorResponse {} export interface MeshVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshVisibilityResponse { -} +export interface MeshVisibilityResponse {} export interface MeshRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface MeshRegisterResponse { -} +export interface MeshRegisterResponse {} export interface MeshHighlightParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshHighlightResponse { -} +export interface MeshHighlightResponse {} export interface MeshDeregisterParams { - id: string; + id: string; } -export interface MeshDeregisterResponse { -} +export interface MeshDeregisterResponse {} export interface MeshColorParams { - color: MeshColorParamsColor; - id: string; + color: MeshColorParamsColor; + id: string; } export interface MeshColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshColorResponse { -} +export interface MeshColorResponse {} export interface MeshApplyTexturesParams { - id: string; - textures: MeshApplyTexturesParamsTexture[]; + id: string; + textures: MeshApplyTexturesParamsTexture[]; } export interface MeshApplyTexturesParamsTexture { - id: string; - texture_name: string; + id: string; + texture_name: string; } -export interface MeshApplyTexturesResponse { -} +export interface MeshApplyTexturesResponse {} export interface ModelBlocksAttributePolyhedronAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributePolyhedronAttributeResponse { -} +export interface ModelBlocksAttributePolyhedronAttributeResponse {} export interface ModelBlocksAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributeVertexAttributeResponse { -} +export interface ModelBlocksAttributeVertexAttributeResponse {} export interface ModelBlocksVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksVisibilityResponse { -} +export interface ModelBlocksVisibilityResponse {} export interface ModelBlocksColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelBlocksColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelBlocksColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelBlocksColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export type ColorMode = "constant" | "random"; export interface ModelBlocksColorResponse { - colors: ModelBlocksColorResponseColor[]; + colors: ModelBlocksColorResponseColor[]; } export interface ModelBlocksColorResponseColor { - color: PurpleColorRGBA; - geode_id: string; - viewer_id: number; + color: PurpleColorRGBA; + geode_id: string; + viewer_id: number; } export interface PurpleColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelCornersAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelCornersAttributeVertexAttributeResponse { -} +export interface ModelCornersAttributeVertexAttributeResponse {} export interface ModelCornersVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelCornersVisibilityResponse { -} +export interface ModelCornersVisibilityResponse {} export interface ModelCornersColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelCornersColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelCornersColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelCornersColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersColorResponse { - colors: ModelCornersColorResponseColor[]; + colors: ModelCornersColorResponseColor[]; } export interface ModelCornersColorResponseColor { - color: FluffyColorRGBA; - geode_id: string; - viewer_id: number; + color: FluffyColorRGBA; + geode_id: string; + viewer_id: number; } export interface FluffyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelEdgesVisibilityResponse { -} +export interface ModelEdgesVisibilityResponse {} export interface ModelLinesAttributeEdgeAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeEdgeAttributeResponse { -} +export interface ModelLinesAttributeEdgeAttributeResponse {} export interface ModelLinesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeVertexAttributeResponse { -} +export interface ModelLinesAttributeVertexAttributeResponse {} export interface ModelLinesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesVisibilityResponse { -} +export interface ModelLinesVisibilityResponse {} export interface ModelLinesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelLinesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelLinesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelLinesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelLinesColorResponse { - colors: ModelLinesColorResponseColor[]; + colors: ModelLinesColorResponseColor[]; } export interface ModelLinesColorResponseColor { - color: TentacledColorRGBA; - geode_id: string; - viewer_id: number; + color: TentacledColorRGBA; + geode_id: string; + viewer_id: number; } export interface TentacledColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelPointsVisibilityResponse { -} +export interface ModelPointsVisibilityResponse {} export interface ModelPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface ModelPointsSizeResponse { -} +export interface ModelPointsSizeResponse {} export interface ModelVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelVisibilityResponse { -} +export interface ModelVisibilityResponse {} export interface ModelRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface ModelRegisterResponse { -} +export interface ModelRegisterResponse {} export interface ModelHighlightParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelHighlightResponse { -} +export interface ModelHighlightResponse {} export interface ModelGetBlocksBoundsParams { - block_ids: number[]; - id: string; + block_ids: number[]; + id: string; } export interface ModelGetBlocksBoundsResponse { - bounds: number[]; + bounds: number[]; } export interface ModelDeregisterParams { - id: string; + id: string; } -export interface ModelDeregisterResponse { -} +export interface ModelDeregisterResponse {} export interface ModelSurfacesAttributePolygonAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributePolygonAttributeResponse { -} +export interface ModelSurfacesAttributePolygonAttributeResponse {} export interface ModelSurfacesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributeVertexAttributeResponse { -} +export interface ModelSurfacesAttributeVertexAttributeResponse {} export interface ModelSurfacesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesVisibilityResponse { -} +export interface ModelSurfacesVisibilityResponse {} export interface ModelSurfacesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelSurfacesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelSurfacesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelSurfacesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesColorResponse { - colors: ModelSurfacesColorResponseColor[]; + colors: ModelSurfacesColorResponseColor[]; } export interface ModelSurfacesColorResponseColor { - color: StickyColorRGBA; - geode_id: string; - viewer_id: number; + color: StickyColorRGBA; + geode_id: string; + viewer_id: number; } export interface StickyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesApplyTexturesParams { - id: string; - textures: ModelSurfacesApplyTexturesParamsTexture[]; + id: string; + textures: ModelSurfacesApplyTexturesParamsTexture[]; } export interface ModelSurfacesApplyTexturesParamsTexture { - texture_file_name: string; - texture_name: string; + texture_file_name: string; + texture_name: string; } -export interface ModelSurfacesApplyTexturesResponse { -} +export interface ModelSurfacesApplyTexturesResponse {} -export interface ReleaseDatabaseParams { -} +export interface ReleaseDatabaseParams {} -export interface ReleaseDatabaseResponse { -} +export interface ReleaseDatabaseResponse {} -export interface KillParams { -} +export interface KillParams {} -export interface KillResponse { -} +export interface KillResponse {} -export interface ImportProjectParams { -} +export interface ImportProjectParams {} -export interface ImportProjectResponse { -} +export interface ImportProjectResponse {} export interface ViewerUpdateDataParams { - id: string; + id: string; } -export interface ViewerUpdateDataResponse { -} +export interface ViewerUpdateDataResponse {} export interface ViewerUpdateCameraParams { - camera_options: CameraOptions; - [property: string]: any; + camera_options: CameraOptions; + [property: string]: any; } export interface CameraOptions { - clipping_range: number[]; - focal_point: number[]; - position: number[]; - view_angle: number; - view_up: number[]; - [property: string]: any; + clipping_range: number[]; + focal_point: number[]; + position: number[]; + view_angle: number; + view_up: number[]; + [property: string]: any; } -export interface ViewerUpdateCameraResponse { -} +export interface ViewerUpdateCameraResponse {} export interface ViewerThresholdParams { - attribute?: AttributeClass; - ids: string[]; + attribute?: AttributeClass; + ids: string[]; } export interface AttributeClass { - item: number; - location: Location; - maximum: number; - minimum: number; - name: string; + item: number; + location: Location; + maximum: number; + minimum: number; + name: string; } export type Location = "point" | "cell"; -export interface ViewerThresholdResponse { -} +export interface ViewerThresholdResponse {} export interface ViewerTakeScreenshotParams { - filename: string; - include_background: boolean; - output_extension: OutputExtension; + filename: string; + include_background: boolean; + output_extension: OutputExtension; } export type OutputExtension = "png" | "jpg"; export interface ViewerTakeScreenshotResponse { - /** - * Image file content, sent as binary - */ - blob: any; + /** + * Image file content, sent as binary + */ + blob: any; } export interface ViewerSliceParams { - ids: string[]; - slices: Slice[]; + ids: string[]; + slices: Slice[]; } export interface Slice { - axis: number; - index: number; + axis: number; + index: number; } export interface ViewerSliceResponse { - max_indices: number[]; + max_indices: number[]; } export interface ViewerShrinkParams { - ids: string[]; - shrink_factor: number; + ids: string[]; + shrink_factor: number; } -export interface ViewerShrinkResponse { -} +export interface ViewerShrinkResponse {} export interface ViewerSetZScalingParams { - z_scale: number; + z_scale: number; } -export interface ViewerSetZScalingResponse { -} +export interface ViewerSetZScalingResponse {} export interface ViewerSetBackgroundColorParams { - color: ViewerSetBackgroundColorParamsColor; + color: ViewerSetBackgroundColorParamsColor; } export interface ViewerSetBackgroundColorParamsColor { - b: number; - g: number; - r: number; + b: number; + g: number; + r: number; } -export interface ViewerSetBackgroundColorResponse { -} +export interface ViewerSetBackgroundColorResponse {} export interface ViewerRulerParams { - points: Array; + points: Array; } export interface ViewerRulerResponse { - distance: number; - point1: number[]; - point2?: number[]; + distance: number; + point1: number[]; + point2?: number[]; } -export interface ViewerResetVisualizationParams { -} +export interface ViewerResetVisualizationParams {} -export interface ViewerResetVisualizationResponse { -} +export interface ViewerResetVisualizationResponse {} -export interface ViewerResetRulerParams { -} +export interface ViewerResetRulerParams {} -export interface ViewerResetRulerResponse { -} +export interface ViewerResetRulerResponse {} -export interface ViewerResetCameraParams { -} +export interface ViewerResetCameraParams {} -export interface ViewerResetCameraResponse { -} +export interface ViewerResetCameraResponse {} -export interface ViewerRenderParams { -} +export interface ViewerRenderParams {} -export interface ViewerRenderResponse { -} +export interface ViewerRenderResponse {} export interface ViewerPreviewPointsParams { - closed?: boolean; - points: Point[]; - style: Style; + closed?: boolean; + points: Point[]; + style: Style; } export interface Point { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export type Style = "points" | "curve" | "surface"; -export interface ViewerPreviewPointsResponse { -} +export interface ViewerPreviewPointsResponse {} export interface ViewerPickedIDSParams { - ids: string[]; - x: number; - y: number; + ids: string[]; + x: number; + y: number; } export interface ViewerPickedIDSResponse { - array_ids: string[]; - viewer_id?: number; + array_ids: string[]; + viewer_id?: number; } export interface ViewerPickColormapParams { - x: number; - y: number; - [property: string]: any; + x: number; + y: number; + [property: string]: any; } export interface ViewerPickColormapResponse { - data_id?: string; + block_ids?: number[]; + data_id?: string; } export interface ViewerHighlightParams { - field_type: PickedFieldType; - ids: string[]; - x: number; - y: number; + field_type: PickedFieldType; + ids: string[]; + x: number; + y: number; } export type PickedFieldType = "CELL" | "POINT"; export interface ViewerHighlightResponse { - attributes?: { [key: string]: number[] | number }; - field_type?: PickedFieldType; - geode_id?: string; - id?: string; - picked_id?: number; + attributes?: { [key: string]: number[] | number }; + field_type?: PickedFieldType; + geode_id?: string; + id?: string; + picked_id?: number; } export interface ViewerGridScaleParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerGridScaleResponse { -} +export interface ViewerGridScaleResponse {} export interface ViewerGetPointPositionParams { - x: number; - y: number; + x: number; + y: number; } export interface ViewerGetPointPositionResponse { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export interface ViewerExplodeParams { - explode_factor: number; - ids: string[]; + explode_factor: number; + ids: string[]; } -export interface ViewerExplodeResponse { -} +export interface ViewerExplodeResponse {} export interface ViewerClippingPlanesParams { - ids: string[]; - planes: Plane[]; + ids: string[]; + planes: Plane[]; } export interface Plane { - normal: number[]; - origin: number[]; + normal: number[]; + origin: number[]; } -export interface ViewerClippingPlanesResponse { -} +export interface ViewerClippingPlanesResponse {} export interface ViewerAxesParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerAxesResponse { -} +export interface ViewerAxesResponse {} export interface ErrorResponse { - code: number; - description: string; - name: string; + code: number; + description: string; + name: string; } // `__params` and `__response` only exist at type level, to infer request/response types from a schema. @@ -1095,162 +1024,288 @@ export type TypedSchema = { export interface Schemas { readonly opengeodeweb_viewer: { readonly generic: { - readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & + TypedSchema; }; readonly mesh: { readonly cells: { readonly attribute: { readonly cell: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & + TypedSchema< + MeshCellsAttributeCellAttributeParams, + MeshCellsAttributeCellAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshCellsAttributeVertexAttributeParams, + MeshCellsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & + TypedSchema; }; readonly edges: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & + TypedSchema< + MeshEdgesAttributeEdgeAttributeParams, + MeshEdgesAttributeEdgeAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshEdgesAttributeVertexAttributeParams, + MeshEdgesAttributeVertexAttributeResponse + >; }; }; - readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & TypedSchema; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & TypedSchema; + readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & + TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & + TypedSchema; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPointsAttributeVertexAttributeParams, + MeshPointsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & + TypedSchema; }; readonly polygons: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & + TypedSchema< + MeshPolygonsAttributePolygonAttributeParams, + MeshPolygonsAttributePolygonAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPolygonsAttributeVertexAttributeParams, + MeshPolygonsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & + TypedSchema; }; readonly polyhedra: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & + TypedSchema< + MeshPolyhedraAttributePolyhedronAttributeParams, + MeshPolyhedraAttributePolyhedronAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPolyhedraAttributeVertexAttributeParams, + MeshPolyhedraAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & + TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & + TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & + TypedSchema; }; readonly model: { readonly blocks: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & + TypedSchema< + ModelBlocksAttributePolyhedronAttributeParams, + ModelBlocksAttributePolyhedronAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelBlocksAttributeVertexAttributeParams, + ModelBlocksAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & + TypedSchema; }; readonly corners: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelCornersAttributeVertexAttributeParams, + ModelCornersAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & + TypedSchema; }; readonly edges: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & + TypedSchema; }; readonly lines: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & + TypedSchema< + ModelLinesAttributeEdgeAttributeParams, + ModelLinesAttributeEdgeAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelLinesAttributeVertexAttributeParams, + ModelLinesAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & + TypedSchema; }; readonly points: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & TypedSchema; - readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & + TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & + TypedSchema; + readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & + TypedSchema; readonly surfaces: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & + TypedSchema< + ModelSurfacesAttributePolygonAttributeParams, + ModelSurfacesAttributePolygonAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelSurfacesAttributeVertexAttributeParams, + ModelSurfacesAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & + TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & + TypedSchema; }; }; - readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & TypedSchema; - readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & TypedSchema; - readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & TypedSchema; + readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & + TypedSchema; + readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & + TypedSchema; + readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & + TypedSchema; readonly viewer: { - readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & TypedSchema; - readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & TypedSchema; - readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & TypedSchema; - readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & TypedSchema; - readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & TypedSchema; - readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & TypedSchema; - readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & TypedSchema; - readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & TypedSchema; - readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & TypedSchema; - readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & TypedSchema; - readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & TypedSchema; - readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & TypedSchema; - readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & TypedSchema; - readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & TypedSchema; - readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & TypedSchema; - readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & TypedSchema; - readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & TypedSchema; - readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & TypedSchema; - readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & TypedSchema; - readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & TypedSchema; - readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & TypedSchema; + readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & + TypedSchema; + readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & + TypedSchema; + readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & + TypedSchema; + readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & + TypedSchema; + readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & + TypedSchema; + readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & + TypedSchema; + readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & + TypedSchema; + readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & + TypedSchema; + readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & + TypedSchema; + readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & + TypedSchema; + readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & + TypedSchema; + readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & + TypedSchema; + readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & + TypedSchema; + readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & + TypedSchema; + readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & + TypedSchema; + readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & + TypedSchema; + readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & + TypedSchema; + readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & + TypedSchema; + readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & + TypedSchema; + readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & + TypedSchema; + readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & + TypedSchema; }; }; } diff --git a/src/opengeodeweb_viewer/rpc/model/model_protocols.py b/src/opengeodeweb_viewer/rpc/model/model_protocols.py index 4836bf39..2b390e56 100644 --- a/src/opengeodeweb_viewer/rpc/model/model_protocols.py +++ b/src/opengeodeweb_viewer/rpc/model/model_protocols.py @@ -115,6 +115,7 @@ def apply_color( def setup_model_color_map(self, pipeline: VtkPipeline) -> None: active_attrs: dict[str, BlockStyle] = {} + active_block_ids: dict[str, list[int]] = {} for block_id, style in pipeline.block_styles.items(): if style["name"]: name = style["name"] @@ -139,6 +140,7 @@ def setup_model_color_map(self, pipeline: VtkPipeline) -> None: if attr_key in active_attrs and active_attrs[attr_key]["points"] != points: attr_key = f"{attr_key} (Block {block_id})" active_attrs[attr_key] = style + active_block_ids.setdefault(attr_key, []).append(block_id) for name, style in active_attrs.items(): if name not in pipeline.scalar_bars: bar = vtkScalarBarActor() @@ -156,6 +158,7 @@ def setup_model_color_map(self, pipeline: VtkPipeline) -> None: for name, bar in pipeline.scalar_bars.items(): if name not in active_attrs: bar.VisibilityOff() + pipeline.scalar_bar_block_ids = active_block_ids self.update_scalar_bars_layout() diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.json b/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.json index 2f41e6b1..497e0836 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.json +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.json @@ -19,6 +19,12 @@ "properties": { "data_id": { "type": "string" + }, + "block_ids": { + "type": "array", + "items": { + "type": "integer" + } } }, "required": [], diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.py index fd64e4cb..6b764a23 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/pick_colormap.py @@ -1,6 +1,6 @@ from pathlib import Path from opengeodeweb_microservice.schemas import Route, load_schema -from typing import Optional +from typing import List, Optional from dataclasses_json import DataClassJsonMixin from opengeodeweb_microservice.schemas import print_dataclass from dataclasses import dataclass @@ -20,6 +20,7 @@ class PickColormapResponse(DataClassJsonMixin): def __post_init__(self) -> None: print_dataclass(self) + block_ids: Optional[List[int]] = None data_id: Optional[str] = None diff --git a/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py b/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py index e34d84ab..c250b61f 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py +++ b/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py @@ -12,7 +12,7 @@ # Third party imports from vtkmodules.vtkIOImage import vtkJPEGWriter, vtkPNGWriter -from vtkmodules.vtkRenderingAnnotation import vtkAxesActor, vtkCubeAxesActor +from vtkmodules.vtkRenderingAnnotation import vtkAxesActor, vtkCubeAxesActor, vtkScalarBarActor from vtkmodules.vtkRenderingCore import ( vtkAbstractMapper, vtkActor, @@ -210,18 +210,24 @@ def pick_colormap(self, params: schemas.PickColormap) -> schemas.PickColormapRes ny = 1.0 - (params.y / size[1]) for data_id, pipeline in self.get_data_base().items(): - bar = pipeline.scalar_bar - if bar.GetVisibility() and bar.GetLookupTable() is not None: - pos = bar.GetPositionCoordinate() - bx, by = pos.GetValue()[0], pos.GetValue()[1] - w, h = bar.GetWidth(), bar.GetHeight() - - # Check if click falls within the scalar bar bounding box - if bx <= nx <= bx + w and by <= ny <= by + h: - return schemas.PickColormapResponse(data_id=data_id) + if self.is_scalar_bar_clicked(pipeline.scalar_bar, nx, ny): + return schemas.PickColormapResponse(data_id=data_id) + # Model scalar bars: one per attribute, each coloring some of the blocks + for name, bar in pipeline.scalar_bars.items(): + if self.is_scalar_bar_clicked(bar, nx, ny): + return schemas.PickColormapResponse( + data_id=data_id, block_ids=pipeline.scalar_bar_block_ids.get(name, []) + ) return schemas.PickColormapResponse() + @staticmethod + def is_scalar_bar_clicked(bar: vtkScalarBarActor, nx: float, ny: float) -> bool: + if not bar.GetVisibility() or bar.GetLookupTable() is None: + return False + bx, by = bar.GetPositionCoordinate().GetValue()[:2] + return bool(bx <= nx <= bx + bar.GetWidth() and by <= ny <= by + bar.GetHeight()) + def compute_epsilon(self, renderer: vtkRenderer, z: float) -> float: renderer.SetDisplayPoint(0, 0, z) renderer.DisplayToWorld() diff --git a/src/opengeodeweb_viewer/vtk_pipeline.py b/src/opengeodeweb_viewer/vtk_pipeline.py index 0c20b18b..9e2ed6c9 100644 --- a/src/opengeodeweb_viewer/vtk_pipeline.py +++ b/src/opengeodeweb_viewer/vtk_pipeline.py @@ -221,6 +221,8 @@ class VtkPipeline: block_geode_ids: list[str] = field(default_factory=list) scalar_bar: vtkScalarBarActor = field(default_factory=vtkScalarBarActor) scalar_bars: dict[str, vtkScalarBarActor] = field(default_factory=dict) + # Blocks colored by each scalar bar of scalar_bars, under the same key + scalar_bar_block_ids: dict[str, list[int]] = field(default_factory=dict) block_styles: dict[int, BlockStyle] = field(default_factory=dict) pick_mapper: vtkMapper | None = None diff --git a/tests/model/blocks/attribute/polyhedron/test_model_blocks_attribute_polyhedron_protocols.py b/tests/model/blocks/attribute/polyhedron/test_model_blocks_attribute_polyhedron_protocols.py index d37899f7..dda7d1fd 100644 --- a/tests/model/blocks/attribute/polyhedron/test_model_blocks_attribute_polyhedron_protocols.py +++ b/tests/model/blocks/attribute/polyhedron/test_model_blocks_attribute_polyhedron_protocols.py @@ -9,9 +9,10 @@ from opengeodeweb_viewer.rpc.model.blocks.model_blocks_protocols import ( VtkModelBlocksView, ) -from tests.conftest import ServerMonitor # Local application imports +from opengeodeweb_viewer.rpc.viewer.viewer_protocols import VtkViewerView +from tests.conftest import ServerMonitor from tests.model.test_model_protocols import test_register_model_cube VtkModelBlocksAttributePolyhedronView = ( @@ -414,3 +415,35 @@ def test_blocks_polyhedron_color_map_rainbow( ) assert server.compare_image("model/blocks/color_map_rainbow.jpeg") + + +def test_pick_blocks_polyhedron_color_map( + server: ServerMonitor, dataset_factory: Callable[..., str] +) -> None: + + test_register_model_cube(server, dataset_factory) + + server.call( + VtkModelBlocksAttributePolyhedronView.model_blocks_attribute_polyhedron_prefix + + VtkModelBlocksAttributePolyhedronView.model_blocks_attribute_polyhedron_schemas_dict[ + "attribute" + ]["rpc"], + [ + { + "id": model_id, + "block_ids": list(range(48, 50)), + "name": "tetrahedron_vertices", + "item": 0, + "points": [0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0], + "minimum": 0.0, + "maximum": 1.0, + } + ], + ) + + # The first scalar bar is at the bottom left of the 300x300 view + pick_rpc = ( + VtkViewerView.viewer_prefix + VtkViewerView.viewer_schemas_dict["pick_colormap"]["rpc"] + ) + server.call(pick_rpc, [{"x": 81, "y": 276}]) + assert server.get_result(pick_rpc) == {"data_id": model_id, "block_ids": [48, 49]} From 7b0512d90a0dcd6f1b60252ea9c447d2caed8dbf Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Tue, 20 Oct 2026 10:11:37 +0200 Subject: [PATCH 02/12] trigger From 043768b08249c12e394db2176d3ed60d93b7469e Mon Sep 17 00:00:00 2001 From: MaxNumerique <144453705+MaxNumerique@users.noreply.github.com> Date: Tue, 20 Oct 2026 08:12:11 +0000 Subject: [PATCH 03/12] Apply prepare changes --- opengeodeweb_viewer_typed_schemas.d.ts | 1454 ++++++++++++------------ requirements.txt | 3 +- 2 files changed, 701 insertions(+), 756 deletions(-) diff --git a/opengeodeweb_viewer_typed_schemas.d.ts b/opengeodeweb_viewer_typed_schemas.d.ts index d3188ae2..294e3e5b 100644 --- a/opengeodeweb_viewer_typed_schemas.d.ts +++ b/opengeodeweb_viewer_typed_schemas.d.ts @@ -2,1016 +2,1088 @@ import type json from "./opengeodeweb_viewer_schemas.json"; export interface GenericRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface GenericRegisterResponse {} +export interface GenericRegisterResponse { +} export interface GenericDeregisterParams { - id: string; + id: string; } -export interface GenericDeregisterResponse {} +export interface GenericDeregisterResponse { +} export interface MeshCellsAttributeCellAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeCellAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeCellAttributeResponse {} +export interface MeshCellsAttributeCellAttributeResponse { +} export interface MeshCellsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeVertexAttributeResponse {} +export interface MeshCellsAttributeVertexAttributeResponse { +} export interface MeshCellsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshCellsVisibilityResponse {} +export interface MeshCellsVisibilityResponse { +} export interface MeshCellsColorParams { - color: MeshCellsColorParamsColor; - id: string; + color: MeshCellsColorParamsColor; + id: string; } export interface MeshCellsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsColorResponse {} +export interface MeshCellsColorResponse { +} export interface MeshEdgesAttributeEdgeAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeEdgeAttributeResponse {} +export interface MeshEdgesAttributeEdgeAttributeResponse { +} export interface MeshEdgesAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeVertexAttributeResponse {} +export interface MeshEdgesAttributeVertexAttributeResponse { +} export interface MeshEdgesWidthParams { - id: string; - width: number; + id: string; + width: number; } -export interface MeshEdgesWidthResponse {} +export interface MeshEdgesWidthResponse { +} export interface MeshEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshEdgesVisibilityResponse {} +export interface MeshEdgesVisibilityResponse { +} export interface MeshEdgesColorParams { - color: MeshEdgesColorParamsColor; - id: string; + color: MeshEdgesColorParamsColor; + id: string; } export interface MeshEdgesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesColorResponse {} +export interface MeshEdgesColorResponse { +} export interface MeshPointsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsAttributeVertexAttributeResponse {} +export interface MeshPointsAttributeVertexAttributeResponse { +} export interface MeshPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsVisibilityResponse { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface MeshPointsSizeResponse {} +export interface MeshPointsSizeResponse { +} export interface MeshPointsColorParams { - color: MeshPointsColorParamsColor; - id: string; + color: MeshPointsColorParamsColor; + id: string; } export interface MeshPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsColorResponse {} +export interface MeshPointsColorResponse { +} export interface MeshPolygonsAttributePolygonAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributePolygonAttributeResponse {} +export interface MeshPolygonsAttributePolygonAttributeResponse { +} export interface MeshPolygonsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributeVertexAttributeResponse {} +export interface MeshPolygonsAttributeVertexAttributeResponse { +} export interface MeshPolygonsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolygonsVisibilityResponse {} +export interface MeshPolygonsVisibilityResponse { +} export interface MeshPolygonsColorParams { - color: MeshPolygonsColorParamsColor; - id: string; + color: MeshPolygonsColorParamsColor; + id: string; } export interface MeshPolygonsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsColorResponse {} +export interface MeshPolygonsColorResponse { +} export interface MeshPolyhedraAttributePolyhedronAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributePolyhedronAttributeResponse {} +export interface MeshPolyhedraAttributePolyhedronAttributeResponse { +} export interface MeshPolyhedraAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributeVertexAttributeResponse {} +export interface MeshPolyhedraAttributeVertexAttributeResponse { +} export interface MeshPolyhedraVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolyhedraVisibilityResponse {} +export interface MeshPolyhedraVisibilityResponse { +} export interface MeshPolyhedraColorParams { - color: MeshPolyhedraColorParamsColor; - id: string; + color: MeshPolyhedraColorParamsColor; + id: string; } export interface MeshPolyhedraColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraColorResponse {} +export interface MeshPolyhedraColorResponse { +} export interface MeshVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshVisibilityResponse {} +export interface MeshVisibilityResponse { +} export interface MeshRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface MeshRegisterResponse {} +export interface MeshRegisterResponse { +} export interface MeshHighlightParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshHighlightResponse {} +export interface MeshHighlightResponse { +} export interface MeshDeregisterParams { - id: string; + id: string; } -export interface MeshDeregisterResponse {} +export interface MeshDeregisterResponse { +} export interface MeshColorParams { - color: MeshColorParamsColor; - id: string; + color: MeshColorParamsColor; + id: string; } export interface MeshColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshColorResponse {} +export interface MeshColorResponse { +} export interface MeshApplyTexturesParams { - id: string; - textures: MeshApplyTexturesParamsTexture[]; + id: string; + textures: MeshApplyTexturesParamsTexture[]; } export interface MeshApplyTexturesParamsTexture { - id: string; - texture_name: string; + id: string; + texture_name: string; } -export interface MeshApplyTexturesResponse {} +export interface MeshApplyTexturesResponse { +} export interface ModelBlocksAttributePolyhedronAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributePolyhedronAttributeResponse {} +export interface ModelBlocksAttributePolyhedronAttributeResponse { +} export interface ModelBlocksAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributeVertexAttributeResponse {} +export interface ModelBlocksAttributeVertexAttributeResponse { +} export interface ModelBlocksVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksVisibilityResponse {} +export interface ModelBlocksVisibilityResponse { +} export interface ModelBlocksColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelBlocksColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelBlocksColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelBlocksColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export type ColorMode = "constant" | "random"; export interface ModelBlocksColorResponse { - colors: ModelBlocksColorResponseColor[]; + colors: ModelBlocksColorResponseColor[]; } export interface ModelBlocksColorResponseColor { - color: PurpleColorRGBA; - geode_id: string; - viewer_id: number; + color: PurpleColorRGBA; + geode_id: string; + viewer_id: number; } export interface PurpleColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelCornersAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelCornersAttributeVertexAttributeResponse {} +export interface ModelCornersAttributeVertexAttributeResponse { +} export interface ModelCornersVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelCornersVisibilityResponse {} +export interface ModelCornersVisibilityResponse { +} export interface ModelCornersColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelCornersColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelCornersColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelCornersColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersColorResponse { - colors: ModelCornersColorResponseColor[]; + colors: ModelCornersColorResponseColor[]; } export interface ModelCornersColorResponseColor { - color: FluffyColorRGBA; - geode_id: string; - viewer_id: number; + color: FluffyColorRGBA; + geode_id: string; + viewer_id: number; } export interface FluffyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelEdgesVisibilityResponse {} +export interface ModelEdgesVisibilityResponse { +} export interface ModelLinesAttributeEdgeAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeEdgeAttributeResponse {} +export interface ModelLinesAttributeEdgeAttributeResponse { +} export interface ModelLinesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeVertexAttributeResponse {} +export interface ModelLinesAttributeVertexAttributeResponse { +} export interface ModelLinesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesVisibilityResponse {} +export interface ModelLinesVisibilityResponse { +} export interface ModelLinesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelLinesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelLinesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelLinesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelLinesColorResponse { - colors: ModelLinesColorResponseColor[]; + colors: ModelLinesColorResponseColor[]; } export interface ModelLinesColorResponseColor { - color: TentacledColorRGBA; - geode_id: string; - viewer_id: number; + color: TentacledColorRGBA; + geode_id: string; + viewer_id: number; } export interface TentacledColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelPointsVisibilityResponse {} +export interface ModelPointsVisibilityResponse { +} export interface ModelPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface ModelPointsSizeResponse {} +export interface ModelPointsSizeResponse { +} export interface ModelVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelVisibilityResponse {} +export interface ModelVisibilityResponse { +} export interface ModelRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface ModelRegisterResponse {} +export interface ModelRegisterResponse { +} export interface ModelHighlightParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelHighlightResponse {} +export interface ModelHighlightResponse { +} export interface ModelGetBlocksBoundsParams { - block_ids: number[]; - id: string; + block_ids: number[]; + id: string; } export interface ModelGetBlocksBoundsResponse { - bounds: number[]; + bounds: number[]; } export interface ModelDeregisterParams { - id: string; + id: string; } -export interface ModelDeregisterResponse {} +export interface ModelDeregisterResponse { +} export interface ModelSurfacesAttributePolygonAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributePolygonAttributeResponse {} +export interface ModelSurfacesAttributePolygonAttributeResponse { +} export interface ModelSurfacesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributeVertexAttributeResponse {} +export interface ModelSurfacesAttributeVertexAttributeResponse { +} export interface ModelSurfacesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesVisibilityResponse {} +export interface ModelSurfacesVisibilityResponse { +} export interface ModelSurfacesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelSurfacesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelSurfacesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelSurfacesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesColorResponse { - colors: ModelSurfacesColorResponseColor[]; + colors: ModelSurfacesColorResponseColor[]; } export interface ModelSurfacesColorResponseColor { - color: StickyColorRGBA; - geode_id: string; - viewer_id: number; + color: StickyColorRGBA; + geode_id: string; + viewer_id: number; } export interface StickyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesApplyTexturesParams { - id: string; - textures: ModelSurfacesApplyTexturesParamsTexture[]; + id: string; + textures: ModelSurfacesApplyTexturesParamsTexture[]; } export interface ModelSurfacesApplyTexturesParamsTexture { - texture_file_name: string; - texture_name: string; + texture_file_name: string; + texture_name: string; } -export interface ModelSurfacesApplyTexturesResponse {} +export interface ModelSurfacesApplyTexturesResponse { +} -export interface ReleaseDatabaseParams {} +export interface ReleaseDatabaseParams { +} -export interface ReleaseDatabaseResponse {} +export interface ReleaseDatabaseResponse { +} -export interface KillParams {} +export interface KillParams { +} -export interface KillResponse {} +export interface KillResponse { +} -export interface ImportProjectParams {} +export interface ImportProjectParams { +} -export interface ImportProjectResponse {} +export interface ImportProjectResponse { +} export interface ViewerUpdateDataParams { - id: string; + id: string; } -export interface ViewerUpdateDataResponse {} +export interface ViewerUpdateDataResponse { +} export interface ViewerUpdateCameraParams { - camera_options: CameraOptions; - [property: string]: any; + camera_options: CameraOptions; + [property: string]: any; } export interface CameraOptions { - clipping_range: number[]; - focal_point: number[]; - position: number[]; - view_angle: number; - view_up: number[]; - [property: string]: any; + clipping_range: number[]; + focal_point: number[]; + position: number[]; + view_angle: number; + view_up: number[]; + [property: string]: any; } -export interface ViewerUpdateCameraResponse {} +export interface ViewerUpdateCameraResponse { +} export interface ViewerThresholdParams { - attribute?: AttributeClass; - ids: string[]; + attribute?: AttributeClass; + ids: string[]; } export interface AttributeClass { - item: number; - location: Location; - maximum: number; - minimum: number; - name: string; + item: number; + location: Location; + maximum: number; + minimum: number; + name: string; } export type Location = "point" | "cell"; -export interface ViewerThresholdResponse {} +export interface ViewerThresholdResponse { +} export interface ViewerTakeScreenshotParams { - filename: string; - include_background: boolean; - output_extension: OutputExtension; + filename: string; + include_background: boolean; + output_extension: OutputExtension; } export type OutputExtension = "png" | "jpg"; export interface ViewerTakeScreenshotResponse { - /** - * Image file content, sent as binary - */ - blob: any; + /** + * Image file content, sent as binary + */ + blob: any; } export interface ViewerSliceParams { - ids: string[]; - slices: Slice[]; + ids: string[]; + slices: Slice[]; } export interface Slice { - axis: number; - index: number; + axis: number; + index: number; } export interface ViewerSliceResponse { - max_indices: number[]; + max_indices: number[]; } export interface ViewerShrinkParams { - ids: string[]; - shrink_factor: number; + ids: string[]; + shrink_factor: number; } -export interface ViewerShrinkResponse {} +export interface ViewerShrinkResponse { +} export interface ViewerSetZScalingParams { - z_scale: number; + z_scale: number; } -export interface ViewerSetZScalingResponse {} +export interface ViewerSetZScalingResponse { +} export interface ViewerSetBackgroundColorParams { - color: ViewerSetBackgroundColorParamsColor; + color: ViewerSetBackgroundColorParamsColor; } export interface ViewerSetBackgroundColorParamsColor { - b: number; - g: number; - r: number; + b: number; + g: number; + r: number; } -export interface ViewerSetBackgroundColorResponse {} +export interface ViewerSetBackgroundColorResponse { +} export interface ViewerRulerParams { - points: Array; + points: Array; } export interface ViewerRulerResponse { - distance: number; - point1: number[]; - point2?: number[]; + distance: number; + point1: number[]; + point2?: number[]; } -export interface ViewerResetVisualizationParams {} +export interface ViewerResetVisualizationParams { +} -export interface ViewerResetVisualizationResponse {} +export interface ViewerResetVisualizationResponse { +} -export interface ViewerResetRulerParams {} +export interface ViewerResetRulerParams { +} -export interface ViewerResetRulerResponse {} +export interface ViewerResetRulerResponse { +} -export interface ViewerResetCameraParams {} +export interface ViewerResetCameraParams { +} -export interface ViewerResetCameraResponse {} +export interface ViewerResetCameraResponse { +} -export interface ViewerRenderParams {} +export interface ViewerRenderParams { +} -export interface ViewerRenderResponse {} +export interface ViewerRenderResponse { +} export interface ViewerPreviewPointsParams { - closed?: boolean; - points: Point[]; - style: Style; + closed?: boolean; + points: Point[]; + style: Style; } export interface Point { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export type Style = "points" | "curve" | "surface"; -export interface ViewerPreviewPointsResponse {} +export interface ViewerPreviewPointsResponse { +} export interface ViewerPickedIDSParams { - ids: string[]; - x: number; - y: number; + ids: string[]; + x: number; + y: number; } export interface ViewerPickedIDSResponse { - array_ids: string[]; - viewer_id?: number; + array_ids: string[]; + viewer_id?: number; } export interface ViewerPickColormapParams { - x: number; - y: number; - [property: string]: any; + x: number; + y: number; + [property: string]: any; } export interface ViewerPickColormapResponse { - block_ids?: number[]; - data_id?: string; + block_ids?: number[]; + data_id?: string; } export interface ViewerHighlightParams { - field_type: PickedFieldType; - ids: string[]; - x: number; - y: number; + field_type: PickedFieldType; + ids: string[]; + x: number; + y: number; } export type PickedFieldType = "CELL" | "POINT"; export interface ViewerHighlightResponse { - attributes?: { [key: string]: number[] | number }; - field_type?: PickedFieldType; - geode_id?: string; - id?: string; - picked_id?: number; + attributes?: { [key: string]: number[] | number }; + field_type?: PickedFieldType; + geode_id?: string; + id?: string; + picked_id?: number; } export interface ViewerGridScaleParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerGridScaleResponse {} +export interface ViewerGridScaleResponse { +} export interface ViewerGetPointPositionParams { - x: number; - y: number; + x: number; + y: number; } export interface ViewerGetPointPositionResponse { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export interface ViewerExplodeParams { - explode_factor: number; - ids: string[]; + explode_factor: number; + ids: string[]; } -export interface ViewerExplodeResponse {} +export interface ViewerExplodeResponse { +} export interface ViewerClippingPlanesParams { - ids: string[]; - planes: Plane[]; + ids: string[]; + planes: Plane[]; } export interface Plane { - normal: number[]; - origin: number[]; + normal: number[]; + origin: number[]; } -export interface ViewerClippingPlanesResponse {} +export interface ViewerClippingPlanesResponse { +} export interface ViewerAxesParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerAxesResponse {} +export interface ViewerAxesResponse { +} export interface ErrorResponse { - code: number; - description: string; - name: string; + code: number; + description: string; + name: string; } // `__params` and `__response` only exist at type level, to infer request/response types from a schema. @@ -1024,288 +1096,162 @@ export type TypedSchema = { export interface Schemas { readonly opengeodeweb_viewer: { readonly generic: { - readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & - TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & TypedSchema; }; readonly mesh: { readonly cells: { readonly attribute: { readonly cell: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & - TypedSchema< - MeshCellsAttributeCellAttributeParams, - MeshCellsAttributeCellAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshCellsAttributeVertexAttributeParams, - MeshCellsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & TypedSchema; }; readonly edges: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & - TypedSchema< - MeshEdgesAttributeEdgeAttributeParams, - MeshEdgesAttributeEdgeAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshEdgesAttributeVertexAttributeParams, - MeshEdgesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & - TypedSchema; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & - TypedSchema; + readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & TypedSchema; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPointsAttributeVertexAttributeParams, - MeshPointsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & TypedSchema; }; readonly polygons: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & - TypedSchema< - MeshPolygonsAttributePolygonAttributeParams, - MeshPolygonsAttributePolygonAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPolygonsAttributeVertexAttributeParams, - MeshPolygonsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & TypedSchema; }; readonly polyhedra: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & - TypedSchema< - MeshPolyhedraAttributePolyhedronAttributeParams, - MeshPolyhedraAttributePolyhedronAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPolyhedraAttributeVertexAttributeParams, - MeshPolyhedraAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & - TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & - TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & TypedSchema; }; readonly model: { readonly blocks: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & - TypedSchema< - ModelBlocksAttributePolyhedronAttributeParams, - ModelBlocksAttributePolyhedronAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelBlocksAttributeVertexAttributeParams, - ModelBlocksAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & TypedSchema; }; readonly corners: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelCornersAttributeVertexAttributeParams, - ModelCornersAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & TypedSchema; }; readonly edges: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & TypedSchema; }; readonly lines: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & - TypedSchema< - ModelLinesAttributeEdgeAttributeParams, - ModelLinesAttributeEdgeAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelLinesAttributeVertexAttributeParams, - ModelLinesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & TypedSchema; }; readonly points: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & - TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & - TypedSchema; - readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & TypedSchema; + readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & TypedSchema; readonly surfaces: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & - TypedSchema< - ModelSurfacesAttributePolygonAttributeParams, - ModelSurfacesAttributePolygonAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelSurfacesAttributeVertexAttributeParams, - ModelSurfacesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & - TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & TypedSchema; }; }; - readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & - TypedSchema; - readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & - TypedSchema; - readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & - TypedSchema; + readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & TypedSchema; + readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & TypedSchema; + readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & TypedSchema; readonly viewer: { - readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & - TypedSchema; - readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & - TypedSchema; - readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & - TypedSchema; - readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & - TypedSchema; - readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & - TypedSchema; - readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & - TypedSchema; - readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & - TypedSchema; - readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & - TypedSchema; - readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & - TypedSchema; - readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & - TypedSchema; - readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & - TypedSchema; - readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & - TypedSchema; - readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & - TypedSchema; - readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & - TypedSchema; - readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & - TypedSchema; - readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & - TypedSchema; - readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & - TypedSchema; - readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & - TypedSchema; - readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & - TypedSchema; - readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & - TypedSchema; - readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & - TypedSchema; + readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & TypedSchema; + readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & TypedSchema; + readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & TypedSchema; + readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & TypedSchema; + readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & TypedSchema; + readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & TypedSchema; + readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & TypedSchema; + readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & TypedSchema; + readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & TypedSchema; + readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & TypedSchema; + readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & TypedSchema; + readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & TypedSchema; + readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & TypedSchema; + readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & TypedSchema; + readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & TypedSchema; + readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & TypedSchema; + readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & TypedSchema; + readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & TypedSchema; + readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & TypedSchema; + readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & TypedSchema; + readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & TypedSchema; }; }; } diff --git a/requirements.txt b/requirements.txt index a56f23d9..0d996396 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,7 +40,7 @@ numpy==2.* # matplotlib packaging==26.* # via matplotlib -pillow==12.* +pillow==13.* # via matplotlib propcache==0.* # via @@ -65,4 +65,3 @@ wslink==2.6.0 yarl==1.* # via aiohttp -opengeodeweb-microservice==1.*,>=1.3.2 From 4521b30259d4bbc78861888051a459bcc6b59b2c Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Tue, 20 Oct 2026 10:24:31 +0200 Subject: [PATCH 04/12] trigger From 80ca0ca56bacb8d85bb362fc95d4b8939a1ff90f Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Tue, 20 Oct 2026 11:03:32 +0200 Subject: [PATCH 05/12] isolate responsability for picking scalar bar for models --- .../object/object_methods.py | 18 +++++++++--------- .../rpc/model/model_protocols.py | 16 +++++++--------- .../rpc/viewer/viewer_protocols.py | 16 +++++++++------- src/opengeodeweb_viewer/vtk_pipeline.py | 11 ++++++++--- src/opengeodeweb_viewer/vtk_protocol.py | 9 ++++++--- 5 files changed, 39 insertions(+), 31 deletions(-) diff --git a/src/opengeodeweb_viewer/object/object_methods.py b/src/opengeodeweb_viewer/object/object_methods.py index cfe307e5..42b025f5 100644 --- a/src/opengeodeweb_viewer/object/object_methods.py +++ b/src/opengeodeweb_viewer/object/object_methods.py @@ -53,8 +53,8 @@ def remove_object(self, data_id: str) -> None: renderer.RemoveActor(pipeline.actor) renderer.RemoveActor(pipeline.highlight.actor) renderer.RemoveViewProp(pipeline.scalar_bar) - for bar in pipeline.scalar_bars.values(): - renderer.RemoveViewProp(bar) + for scalar_bar in pipeline.scalar_bars.values(): + renderer.RemoveViewProp(scalar_bar.actor) self.deregister_object(data_id) self.update_scalar_bars_layout() @@ -63,8 +63,8 @@ def set_visibility(self, data_id: str, *, visibility: bool) -> None: pipeline.actor.SetVisibility(visibility) if not visibility: pipeline.scalar_bar.VisibilityOff() - for bar in pipeline.scalar_bars.values(): - bar.VisibilityOff() + for scalar_bar in pipeline.scalar_bars.values(): + scalar_bar.actor.VisibilityOff() else: if ( pipeline.mapper.GetScalarVisibility() @@ -73,9 +73,9 @@ def set_visibility(self, data_id: str, *, visibility: bool) -> None: pipeline.scalar_bar.VisibilityOn() for style in pipeline.block_styles.values(): if style.get("name"): - for bar in pipeline.scalar_bars.values(): - if bar.GetLookupTable() is not None: - bar.VisibilityOn() + for scalar_bar in pipeline.scalar_bars.values(): + if scalar_bar.actor.GetLookupTable() is not None: + scalar_bar.actor.VisibilityOn() break self.update_scalar_bars_layout() @@ -166,8 +166,8 @@ def clear_colors(self, data_id: str) -> None: pipeline.clear_blocks_scalars() mapper.ScalarVisibilityOff() pipeline.scalar_bar.VisibilityOff() - for bar in pipeline.scalar_bars.values(): - bar.VisibilityOff() + for scalar_bar in pipeline.scalar_bars.values(): + scalar_bar.actor.VisibilityOff() self.update_scalar_bars_layout() def _apply_highlight_style(self, actor: vtkActor, mapper: vtkDataSetMapper) -> None: diff --git a/src/opengeodeweb_viewer/rpc/model/model_protocols.py b/src/opengeodeweb_viewer/rpc/model/model_protocols.py index 2b390e56..40f6513e 100644 --- a/src/opengeodeweb_viewer/rpc/model/model_protocols.py +++ b/src/opengeodeweb_viewer/rpc/model/model_protocols.py @@ -14,7 +14,6 @@ ) from vtkmodules.vtkFiltersCore import vtkAppendDataSets from vtkmodules.vtkIOXML import vtkXMLMultiBlockDataReader -from vtkmodules.vtkRenderingAnnotation import vtkScalarBarActor from vtkmodules.vtkRenderingCore import ( vtkCompositeDataDisplayAttributes, vtkCompositePolyDataMapper, @@ -28,7 +27,7 @@ create_color_transfer_function, deterministic_color, ) -from opengeodeweb_viewer.vtk_pipeline import BlockStyle, VtkPipeline +from opengeodeweb_viewer.vtk_pipeline import BlockStyle, ModelScalarBar, VtkPipeline from . import schemas @@ -143,10 +142,10 @@ def setup_model_color_map(self, pipeline: VtkPipeline) -> None: active_block_ids.setdefault(attr_key, []).append(block_id) for name, style in active_attrs.items(): if name not in pipeline.scalar_bars: - bar = vtkScalarBarActor() - self.get_renderer().AddViewProp(bar) - pipeline.scalar_bars[name] = bar - bar = pipeline.scalar_bars[name] + pipeline.scalar_bars[name] = ModelScalarBar() + self.get_renderer().AddViewProp(pipeline.scalar_bars[name].actor) + pipeline.scalar_bars[name].block_ids = active_block_ids[name] + bar = pipeline.scalar_bars[name].actor item = style["item"] minimum = style["minimum"] maximum = style["maximum"] @@ -155,10 +154,9 @@ def setup_model_color_map(self, pipeline: VtkPipeline) -> None: lut = create_color_transfer_function(points, minimum, maximum, item, no_data_color) bar.SetLookupTable(lut) bar.VisibilityOn() - for name, bar in pipeline.scalar_bars.items(): + for name, scalar_bar in pipeline.scalar_bars.items(): if name not in active_attrs: - bar.VisibilityOff() - pipeline.scalar_bar_block_ids = active_block_ids + scalar_bar.actor.VisibilityOff() self.update_scalar_bars_layout() diff --git a/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py b/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py index c250b61f..89a01856 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py +++ b/src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py @@ -17,6 +17,7 @@ vtkAbstractMapper, vtkActor, vtkCellPicker, + vtkCompositePolyDataMapper, vtkDataSetMapper, vtkPropPicker, vtkRenderer, @@ -210,14 +211,15 @@ def pick_colormap(self, params: schemas.PickColormap) -> schemas.PickColormapRes ny = 1.0 - (params.y / size[1]) for data_id, pipeline in self.get_data_base().items(): - if self.is_scalar_bar_clicked(pipeline.scalar_bar, nx, ny): + # A model has one scalar bar per attribute, each coloring some of its blocks + if isinstance(pipeline.mapper, vtkCompositePolyDataMapper): + for scalar_bar in pipeline.scalar_bars.values(): + if self.is_scalar_bar_clicked(scalar_bar.actor, nx, ny): + return schemas.PickColormapResponse( + data_id=data_id, block_ids=scalar_bar.block_ids + ) + elif self.is_scalar_bar_clicked(pipeline.scalar_bar, nx, ny): return schemas.PickColormapResponse(data_id=data_id) - # Model scalar bars: one per attribute, each coloring some of the blocks - for name, bar in pipeline.scalar_bars.items(): - if self.is_scalar_bar_clicked(bar, nx, ny): - return schemas.PickColormapResponse( - data_id=data_id, block_ids=pipeline.scalar_bar_block_ids.get(name, []) - ) return schemas.PickColormapResponse() diff --git a/src/opengeodeweb_viewer/vtk_pipeline.py b/src/opengeodeweb_viewer/vtk_pipeline.py index 9e2ed6c9..a8e08ec1 100644 --- a/src/opengeodeweb_viewer/vtk_pipeline.py +++ b/src/opengeodeweb_viewer/vtk_pipeline.py @@ -205,6 +205,13 @@ class BlockStyle(TypedDict): no_data_color: ColorClassProtocol | None +@dataclass +class ModelScalarBar: + actor: vtkScalarBarActor = field(default_factory=vtkScalarBarActor) + # Blocks colored by this scalar bar + block_ids: list[int] = field(default_factory=list) + + @dataclass class VtkPipeline: reader: vtkXMLReader @@ -220,9 +227,7 @@ class VtkPipeline: block_data_sets: list[vtkDataObject | None] = field(default_factory=list) block_geode_ids: list[str] = field(default_factory=list) scalar_bar: vtkScalarBarActor = field(default_factory=vtkScalarBarActor) - scalar_bars: dict[str, vtkScalarBarActor] = field(default_factory=dict) - # Blocks colored by each scalar bar of scalar_bars, under the same key - scalar_bar_block_ids: dict[str, list[int]] = field(default_factory=dict) + scalar_bars: dict[str, ModelScalarBar] = field(default_factory=dict) block_styles: dict[int, BlockStyle] = field(default_factory=dict) pick_mapper: vtkMapper | None = None diff --git a/src/opengeodeweb_viewer/vtk_protocol.py b/src/opengeodeweb_viewer/vtk_protocol.py index 9742361e..6dee5993 100644 --- a/src/opengeodeweb_viewer/vtk_protocol.py +++ b/src/opengeodeweb_viewer/vtk_protocol.py @@ -519,9 +519,12 @@ def update_scalar_bars_layout(self) -> None: attr_name = scalars.GetName() if scalars else "Attribute" visible_bars.append((pipeline.scalar_bar, attr_name, data_id, pipeline)) - for attr_name, bar in pipeline.scalar_bars.items(): - if bar.GetVisibility() and bar.GetLookupTable() is not None: - visible_bars.append((bar, attr_name, data_id, pipeline)) + for attr_name, scalar_bar in pipeline.scalar_bars.items(): + if ( + scalar_bar.actor.GetVisibility() + and scalar_bar.actor.GetLookupTable() is not None + ): + visible_bars.append((scalar_bar.actor, attr_name, data_id, pipeline)) if not visible_bars: return From adfd3fbbc8b08dc62f9fc9fdbdcce7c131da2ed6 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 21 Oct 2026 13:46:24 +0200 Subject: [PATCH 06/12] schema --- opengeodeweb_viewer_typed_schemas.d.ts | 1703 ++++++++++++------------ 1 file changed, 883 insertions(+), 820 deletions(-) diff --git a/opengeodeweb_viewer_typed_schemas.d.ts b/opengeodeweb_viewer_typed_schemas.d.ts index ad909995..95fa9a41 100644 --- a/opengeodeweb_viewer_typed_schemas.d.ts +++ b/opengeodeweb_viewer_typed_schemas.d.ts @@ -2,1262 +2,1178 @@ import type json from "./opengeodeweb_viewer_schemas.json"; export interface GenericRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface GenericRegisterResponse { -} +export interface GenericRegisterResponse {} export interface GenericDeregisterParams { - id: string; + id: string; } -export interface GenericDeregisterResponse { -} +export interface GenericDeregisterResponse {} export interface MeshCellsAttributeCellAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeCellAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeCellAttributeResponse { -} +export interface MeshCellsAttributeCellAttributeResponse {} export interface MeshCellsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeVertexAttributeResponse { -} +export interface MeshCellsAttributeVertexAttributeResponse {} export interface MeshCellsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshCellsVisibilityResponse { -} +export interface MeshCellsVisibilityResponse {} export interface MeshCellsColorParams { - color: MeshCellsColorParamsColor; - id: string; + color: MeshCellsColorParamsColor; + id: string; } export interface MeshCellsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsColorResponse { -} +export interface MeshCellsColorResponse {} export interface MeshEdgesAttributeEdgeAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeEdgeAttributeResponse { -} +export interface MeshEdgesAttributeEdgeAttributeResponse {} export interface MeshEdgesAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeVertexAttributeResponse { -} +export interface MeshEdgesAttributeVertexAttributeResponse {} export interface MeshEdgesWidthParams { - id: string; - width: number; + id: string; + width: number; } -export interface MeshEdgesWidthResponse { -} +export interface MeshEdgesWidthResponse {} export interface MeshEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshEdgesVisibilityResponse { -} +export interface MeshEdgesVisibilityResponse {} export interface MeshEdgesColorParams { - color: MeshEdgesColorParamsColor; - id: string; + color: MeshEdgesColorParamsColor; + id: string; } export interface MeshEdgesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesColorResponse { -} +export interface MeshEdgesColorResponse {} export interface MeshPointsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsAttributeVertexAttributeResponse { -} +export interface MeshPointsAttributeVertexAttributeResponse {} export interface MeshPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsVisibilityResponse { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface MeshPointsSizeResponse { -} +export interface MeshPointsSizeResponse {} export interface MeshPointsColorParams { - color: MeshPointsColorParamsColor; - id: string; + color: MeshPointsColorParamsColor; + id: string; } export interface MeshPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsColorResponse { -} +export interface MeshPointsColorResponse {} export interface MeshPolygonsAttributePolygonAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributePolygonAttributeResponse { -} +export interface MeshPolygonsAttributePolygonAttributeResponse {} export interface MeshPolygonsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributeVertexAttributeResponse { -} +export interface MeshPolygonsAttributeVertexAttributeResponse {} export interface MeshPolygonsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolygonsVisibilityResponse { -} +export interface MeshPolygonsVisibilityResponse {} export interface MeshPolygonsColorParams { - color: MeshPolygonsColorParamsColor; - id: string; + color: MeshPolygonsColorParamsColor; + id: string; } export interface MeshPolygonsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsColorResponse { -} +export interface MeshPolygonsColorResponse {} export interface MeshPolyhedraAttributePolyhedronAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributePolyhedronAttributeResponse { -} +export interface MeshPolyhedraAttributePolyhedronAttributeResponse {} export interface MeshPolyhedraAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributeVertexAttributeResponse { -} +export interface MeshPolyhedraAttributeVertexAttributeResponse {} export interface MeshPolyhedraVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolyhedraVisibilityResponse { -} +export interface MeshPolyhedraVisibilityResponse {} export interface MeshPolyhedraColorParams { - color: MeshPolyhedraColorParamsColor; - id: string; + color: MeshPolyhedraColorParamsColor; + id: string; } export interface MeshPolyhedraColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraColorResponse { -} +export interface MeshPolyhedraColorResponse {} export interface MeshVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshVisibilityResponse { -} +export interface MeshVisibilityResponse {} export interface MeshRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface MeshRegisterResponse { -} +export interface MeshRegisterResponse {} export interface MeshHighlightParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshHighlightResponse { -} +export interface MeshHighlightResponse {} export interface MeshDeregisterParams { - id: string; + id: string; } -export interface MeshDeregisterResponse { -} +export interface MeshDeregisterResponse {} export interface MeshColorParams { - color: MeshColorParamsColor; - id: string; + color: MeshColorParamsColor; + id: string; } export interface MeshColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshColorResponse { -} +export interface MeshColorResponse {} export interface MeshApplyTexturesParams { - id: string; - textures: MeshApplyTexturesParamsTexture[]; + id: string; + textures: MeshApplyTexturesParamsTexture[]; } export interface MeshApplyTexturesParamsTexture { - id: string; - texture_name: string; + id: string; + texture_name: string; } -export interface MeshApplyTexturesResponse { -} +export interface MeshApplyTexturesResponse {} export interface ModelBlocksAttributePolyhedronAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributePolyhedronAttributeResponse { -} +export interface ModelBlocksAttributePolyhedronAttributeResponse {} export interface ModelBlocksAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributeVertexAttributeResponse { -} +export interface ModelBlocksAttributeVertexAttributeResponse {} export interface ModelBlocksPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksPointsAttributeVertexAttributeResponse { -} +export interface ModelBlocksPointsAttributeVertexAttributeResponse {} export interface ModelBlocksPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksPointsVisibilityResponse { -} +export interface ModelBlocksPointsVisibilityResponse {} export interface ModelBlocksPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelBlocksPointsSizeResponse { -} +export interface ModelBlocksPointsSizeResponse {} export interface ModelBlocksPointsColorParams { - block_ids: number[]; - color: ModelBlocksPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelBlocksPointsColorParamsColor; + id: string; } export interface ModelBlocksPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksPointsColorResponse { -} +export interface ModelBlocksPointsColorResponse {} export interface ModelBlocksVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksVisibilityResponse { -} +export interface ModelBlocksVisibilityResponse {} export interface ModelBlocksColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelBlocksColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelBlocksColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelBlocksColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export type ColorMode = "constant" | "random"; export interface ModelBlocksColorResponse { - colors: ModelBlocksColorResponseColor[]; + colors: ModelBlocksColorResponseColor[]; } export interface ModelBlocksColorResponseColor { - color: PurpleColorRGBA; - geode_id: string; - viewer_id: number; + color: PurpleColorRGBA; + geode_id: string; + viewer_id: number; } export interface PurpleColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelCornersAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelCornersAttributeVertexAttributeResponse { -} +export interface ModelCornersAttributeVertexAttributeResponse {} export interface ModelCornersVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelCornersVisibilityResponse { -} +export interface ModelCornersVisibilityResponse {} export interface ModelCornersColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelCornersColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelCornersColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelCornersColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersColorResponse { - colors: ModelCornersColorResponseColor[]; + colors: ModelCornersColorResponseColor[]; } export interface ModelCornersColorResponseColor { - color: FluffyColorRGBA; - geode_id: string; - viewer_id: number; + color: FluffyColorRGBA; + geode_id: string; + viewer_id: number; } export interface FluffyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelEdgesVisibilityResponse { -} +export interface ModelEdgesVisibilityResponse {} export interface ModelLinesAttributeEdgeAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeEdgeAttributeResponse { -} +export interface ModelLinesAttributeEdgeAttributeResponse {} export interface ModelLinesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeVertexAttributeResponse { -} +export interface ModelLinesAttributeVertexAttributeResponse {} export interface ModelLinesPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesPointsAttributeVertexAttributeResponse { -} +export interface ModelLinesPointsAttributeVertexAttributeResponse {} export interface ModelLinesPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesPointsVisibilityResponse { -} +export interface ModelLinesPointsVisibilityResponse {} export interface ModelLinesPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelLinesPointsSizeResponse { -} +export interface ModelLinesPointsSizeResponse {} export interface ModelLinesPointsColorParams { - block_ids: number[]; - color: ModelLinesPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelLinesPointsColorParamsColor; + id: string; } export interface ModelLinesPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesPointsColorResponse { -} +export interface ModelLinesPointsColorResponse {} export interface ModelLinesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesVisibilityResponse { -} +export interface ModelLinesVisibilityResponse {} export interface ModelLinesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelLinesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelLinesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelLinesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelLinesColorResponse { - colors: ModelLinesColorResponseColor[]; + colors: ModelLinesColorResponseColor[]; } export interface ModelLinesColorResponseColor { - color: TentacledColorRGBA; - geode_id: string; - viewer_id: number; + color: TentacledColorRGBA; + geode_id: string; + viewer_id: number; } export interface TentacledColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelPointsVisibilityResponse { -} +export interface ModelPointsVisibilityResponse {} export interface ModelPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface ModelPointsSizeResponse { -} +export interface ModelPointsSizeResponse {} export interface ModelVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelVisibilityResponse { -} +export interface ModelVisibilityResponse {} export interface ModelRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface ModelRegisterResponse { -} +export interface ModelRegisterResponse {} export interface ModelHighlightParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelHighlightResponse { -} +export interface ModelHighlightResponse {} export interface ModelGetBlocksBoundsParams { - block_ids: number[]; - id: string; + block_ids: number[]; + id: string; } export interface ModelGetBlocksBoundsResponse { - bounds: number[]; + bounds: number[]; } export interface ModelDeregisterParams { - id: string; + id: string; } -export interface ModelDeregisterResponse { -} +export interface ModelDeregisterResponse {} export interface ModelSurfacesAttributePolygonAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributePolygonAttributeResponse { -} +export interface ModelSurfacesAttributePolygonAttributeResponse {} export interface ModelSurfacesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributeVertexAttributeResponse { -} +export interface ModelSurfacesAttributeVertexAttributeResponse {} export interface ModelSurfacesPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesPointsAttributeVertexAttributeResponse { -} +export interface ModelSurfacesPointsAttributeVertexAttributeResponse {} export interface ModelSurfacesPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesPointsVisibilityResponse { -} +export interface ModelSurfacesPointsVisibilityResponse {} export interface ModelSurfacesPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelSurfacesPointsSizeResponse { -} +export interface ModelSurfacesPointsSizeResponse {} export interface ModelSurfacesPointsColorParams { - block_ids: number[]; - color: ModelSurfacesPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelSurfacesPointsColorParamsColor; + id: string; } export interface ModelSurfacesPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesPointsColorResponse { -} +export interface ModelSurfacesPointsColorResponse {} export interface ModelSurfacesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesVisibilityResponse { -} +export interface ModelSurfacesVisibilityResponse {} export interface ModelSurfacesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelSurfacesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelSurfacesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelSurfacesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesColorResponse { - colors: ModelSurfacesColorResponseColor[]; + colors: ModelSurfacesColorResponseColor[]; } export interface ModelSurfacesColorResponseColor { - color: StickyColorRGBA; - geode_id: string; - viewer_id: number; + color: StickyColorRGBA; + geode_id: string; + viewer_id: number; } export interface StickyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesApplyTexturesParams { - id: string; - textures: ModelSurfacesApplyTexturesParamsTexture[]; + id: string; + textures: ModelSurfacesApplyTexturesParamsTexture[]; } export interface ModelSurfacesApplyTexturesParamsTexture { - texture_file_name: string; - texture_name: string; + texture_file_name: string; + texture_name: string; } -export interface ModelSurfacesApplyTexturesResponse { -} +export interface ModelSurfacesApplyTexturesResponse {} -export interface ReleaseDatabaseParams { -} +export interface ReleaseDatabaseParams {} -export interface ReleaseDatabaseResponse { -} +export interface ReleaseDatabaseResponse {} -export interface KillParams { -} +export interface KillParams {} -export interface KillResponse { -} +export interface KillResponse {} -export interface ImportProjectParams { -} +export interface ImportProjectParams {} -export interface ImportProjectResponse { -} +export interface ImportProjectResponse {} export interface ViewerUpdateDataParams { - id: string; + id: string; } -export interface ViewerUpdateDataResponse { -} +export interface ViewerUpdateDataResponse {} export interface ViewerUpdateCameraParams { - camera_options: CameraOptions; - [property: string]: any; + camera_options: CameraOptions; + [property: string]: any; } export interface CameraOptions { - clipping_range: number[]; - focal_point: number[]; - position: number[]; - view_angle: number; - view_up: number[]; - [property: string]: any; + clipping_range: number[]; + focal_point: number[]; + position: number[]; + view_angle: number; + view_up: number[]; + [property: string]: any; } -export interface ViewerUpdateCameraResponse { -} +export interface ViewerUpdateCameraResponse {} export interface ViewerThresholdParams { - attribute?: AttributeClass; - ids: string[]; + attribute?: AttributeClass; + ids: string[]; } export interface AttributeClass { - item: number; - location: Location; - maximum: number; - minimum: number; - name: string; + item: number; + location: Location; + maximum: number; + minimum: number; + name: string; } export type Location = "point" | "cell"; -export interface ViewerThresholdResponse { -} +export interface ViewerThresholdResponse {} export interface ViewerTakeScreenshotParams { - filename: string; - include_background: boolean; - output_extension: OutputExtension; + filename: string; + include_background: boolean; + output_extension: OutputExtension; } export type OutputExtension = "png" | "jpg"; export interface ViewerTakeScreenshotResponse { - /** - * Image file content, sent as binary - */ - blob: any; + /** + * Image file content, sent as binary + */ + blob: any; } export interface ViewerSliceParams { - ids: string[]; - slices: Slice[]; + ids: string[]; + slices: Slice[]; } export interface Slice { - axis: number; - index: number; + axis: number; + index: number; } export interface ViewerSliceResponse { - max_indices: number[]; + max_indices: number[]; } export interface ViewerShrinkParams { - ids: string[]; - shrink_factor: number; + ids: string[]; + shrink_factor: number; } -export interface ViewerShrinkResponse { -} +export interface ViewerShrinkResponse {} export interface ViewerSetZScalingParams { - z_scale: number; + z_scale: number; } -export interface ViewerSetZScalingResponse { -} +export interface ViewerSetZScalingResponse {} export interface ViewerSetBackgroundColorParams { - color: ViewerSetBackgroundColorParamsColor; + color: ViewerSetBackgroundColorParamsColor; } export interface ViewerSetBackgroundColorParamsColor { - b: number; - g: number; - r: number; + b: number; + g: number; + r: number; } -export interface ViewerSetBackgroundColorResponse { -} +export interface ViewerSetBackgroundColorResponse {} export interface ViewerRulerParams { - points: Array; + points: Array; } export interface ViewerRulerResponse { - distance: number; - point1: number[]; - point2?: number[]; + distance: number; + point1: number[]; + point2?: number[]; } -export interface ViewerResetVisualizationParams { -} +export interface ViewerResetVisualizationParams {} -export interface ViewerResetVisualizationResponse { -} +export interface ViewerResetVisualizationResponse {} -export interface ViewerResetRulerParams { -} +export interface ViewerResetRulerParams {} -export interface ViewerResetRulerResponse { -} +export interface ViewerResetRulerResponse {} -export interface ViewerResetCameraParams { -} +export interface ViewerResetCameraParams {} -export interface ViewerResetCameraResponse { -} +export interface ViewerResetCameraResponse {} -export interface ViewerRenderParams { -} +export interface ViewerRenderParams {} -export interface ViewerRenderResponse { -} +export interface ViewerRenderResponse {} export interface ViewerPreviewPointsParams { - closed?: boolean; - points: Point[]; - style: Style; + closed?: boolean; + points: Point[]; + style: Style; } export interface Point { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export type Style = "points" | "curve" | "surface"; -export interface ViewerPreviewPointsResponse { -} +export interface ViewerPreviewPointsResponse {} export interface ViewerPickedIDSParams { - ids: string[]; - x: number; - y: number; + ids: string[]; + x: number; + y: number; } export interface ViewerPickedIDSResponse { - array_ids: string[]; - viewer_id?: number; + array_ids: string[]; + viewer_id?: number; } export interface ViewerPickColormapParams { - x: number; - y: number; - [property: string]: any; + x: number; + y: number; + [property: string]: any; } export interface ViewerPickColormapResponse { - block_ids?: number[]; - data_id?: string; + block_ids?: number[]; + data_id?: string; } export interface ViewerHighlightParams { - field_type: PickedFieldType; - ids: string[]; - x: number; - y: number; + field_type: PickedFieldType; + ids: string[]; + x: number; + y: number; } export type PickedFieldType = "CELL" | "POINT"; export interface ViewerHighlightResponse { - attributes?: { [key: string]: number[] | number }; - field_type?: PickedFieldType; - geode_id?: string; - id?: string; - picked_id?: number; + attributes?: { [key: string]: number[] | number }; + field_type?: PickedFieldType; + geode_id?: string; + id?: string; + picked_id?: number; } export interface ViewerGridScaleParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerGridScaleResponse { -} +export interface ViewerGridScaleResponse {} export interface ViewerGetPointPositionParams { - x: number; - y: number; + x: number; + y: number; } export interface ViewerGetPointPositionResponse { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export interface ViewerExplodeParams { - explode_factor: number; - ids: string[]; + explode_factor: number; + ids: string[]; } -export interface ViewerExplodeResponse { -} +export interface ViewerExplodeResponse {} export interface ViewerClippingPlanesParams { - ids: string[]; - planes: Plane[]; + ids: string[]; + planes: Plane[]; } export interface Plane { - normal: number[]; - origin: number[]; + normal: number[]; + origin: number[]; } -export interface ViewerClippingPlanesResponse { -} +export interface ViewerClippingPlanesResponse {} export interface ViewerAxesParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerAxesResponse { -} +export interface ViewerAxesResponse {} export interface ErrorResponse { - code: number; - description: string; - name: string; + code: number; + description: string; + name: string; } // `__params` and `__response` only exist at type level, to infer request/response types from a schema. @@ -1270,192 +1186,339 @@ export type TypedSchema = { export interface Schemas { readonly opengeodeweb_viewer: { readonly generic: { - readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & + TypedSchema; }; readonly mesh: { readonly cells: { readonly attribute: { readonly cell: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & + TypedSchema< + MeshCellsAttributeCellAttributeParams, + MeshCellsAttributeCellAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshCellsAttributeVertexAttributeParams, + MeshCellsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & + TypedSchema; }; readonly edges: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & + TypedSchema< + MeshEdgesAttributeEdgeAttributeParams, + MeshEdgesAttributeEdgeAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshEdgesAttributeVertexAttributeParams, + MeshEdgesAttributeVertexAttributeResponse + >; }; }; - readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & TypedSchema; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & TypedSchema; + readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & + TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & + TypedSchema; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPointsAttributeVertexAttributeParams, + MeshPointsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & + TypedSchema; }; readonly polygons: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & + TypedSchema< + MeshPolygonsAttributePolygonAttributeParams, + MeshPolygonsAttributePolygonAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPolygonsAttributeVertexAttributeParams, + MeshPolygonsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & + TypedSchema; }; readonly polyhedra: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & + TypedSchema< + MeshPolyhedraAttributePolyhedronAttributeParams, + MeshPolyhedraAttributePolyhedronAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + MeshPolyhedraAttributeVertexAttributeParams, + MeshPolyhedraAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & + TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & + TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & + TypedSchema; }; readonly model: { readonly blocks: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & + TypedSchema< + ModelBlocksAttributePolyhedronAttributeParams, + ModelBlocksAttributePolyhedronAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelBlocksAttributeVertexAttributeParams, + ModelBlocksAttributeVertexAttributeResponse + >; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelBlocksPointsAttributeVertexAttributeParams, + ModelBlocksPointsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["size"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["size"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["color"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & + TypedSchema; }; readonly corners: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelCornersAttributeVertexAttributeParams, + ModelCornersAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & + TypedSchema; }; readonly edges: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & + TypedSchema; }; readonly lines: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & + TypedSchema< + ModelLinesAttributeEdgeAttributeParams, + ModelLinesAttributeEdgeAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelLinesAttributeVertexAttributeParams, + ModelLinesAttributeVertexAttributeResponse + >; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelLinesPointsAttributeVertexAttributeParams, + ModelLinesPointsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["size"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["size"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["color"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & + TypedSchema; }; readonly points: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & TypedSchema; - readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & + TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & + TypedSchema; + readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & + TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & + TypedSchema; readonly surfaces: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & + TypedSchema< + ModelSurfacesAttributePolygonAttributeParams, + ModelSurfacesAttributePolygonAttributeResponse + >; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelSurfacesAttributeVertexAttributeParams, + ModelSurfacesAttributeVertexAttributeResponse + >; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["attribute"]["vertex"]["attribute"] & + TypedSchema< + ModelSurfacesPointsAttributeVertexAttributeParams, + ModelSurfacesPointsAttributeVertexAttributeResponse + >; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["visibility"] & TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["size"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["color"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["visibility"] & + TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["size"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["color"] & + TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & + TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & + TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & + TypedSchema; }; }; - readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & TypedSchema; - readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & TypedSchema; - readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & TypedSchema; + readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & + TypedSchema; + readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & + TypedSchema; + readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & + TypedSchema; readonly viewer: { - readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & TypedSchema; - readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & TypedSchema; - readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & TypedSchema; - readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & TypedSchema; - readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & TypedSchema; - readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & TypedSchema; - readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & TypedSchema; - readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & TypedSchema; - readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & TypedSchema; - readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & TypedSchema; - readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & TypedSchema; - readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & TypedSchema; - readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & TypedSchema; - readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & TypedSchema; - readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & TypedSchema; - readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & TypedSchema; - readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & TypedSchema; - readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & TypedSchema; - readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & TypedSchema; - readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & TypedSchema; - readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & TypedSchema; + readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & + TypedSchema; + readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & + TypedSchema; + readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & + TypedSchema; + readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & + TypedSchema; + readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & + TypedSchema; + readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & + TypedSchema; + readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & + TypedSchema; + readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & + TypedSchema; + readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & + TypedSchema; + readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & + TypedSchema; + readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & + TypedSchema; + readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & + TypedSchema; + readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & + TypedSchema; + readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & + TypedSchema; + readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & + TypedSchema; + readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & + TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & + TypedSchema; + readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & + TypedSchema; + readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & + TypedSchema; + readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & + TypedSchema; + readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & + TypedSchema; + readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & + TypedSchema; }; }; } From 988c6bb3d484b349675beaf6b998e7d8947a180a Mon Sep 17 00:00:00 2001 From: MaxNumerique <144453705+MaxNumerique@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:47:05 +0000 Subject: [PATCH 07/12] Apply prepare changes --- opengeodeweb_viewer_typed_schemas.d.ts | 1703 ++++++++++++------------ 1 file changed, 820 insertions(+), 883 deletions(-) diff --git a/opengeodeweb_viewer_typed_schemas.d.ts b/opengeodeweb_viewer_typed_schemas.d.ts index 95fa9a41..ad909995 100644 --- a/opengeodeweb_viewer_typed_schemas.d.ts +++ b/opengeodeweb_viewer_typed_schemas.d.ts @@ -2,1178 +2,1262 @@ import type json from "./opengeodeweb_viewer_schemas.json"; export interface GenericRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface GenericRegisterResponse {} +export interface GenericRegisterResponse { +} export interface GenericDeregisterParams { - id: string; + id: string; } -export interface GenericDeregisterResponse {} +export interface GenericDeregisterResponse { +} export interface MeshCellsAttributeCellAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeCellAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeCellAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeCellAttributeResponse {} +export interface MeshCellsAttributeCellAttributeResponse { +} export interface MeshCellsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshCellsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshCellsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsAttributeVertexAttributeResponse {} +export interface MeshCellsAttributeVertexAttributeResponse { +} export interface MeshCellsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshCellsVisibilityResponse {} +export interface MeshCellsVisibilityResponse { +} export interface MeshCellsColorParams { - color: MeshCellsColorParamsColor; - id: string; + color: MeshCellsColorParamsColor; + id: string; } export interface MeshCellsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshCellsColorResponse {} +export interface MeshCellsColorResponse { +} export interface MeshEdgesAttributeEdgeAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeEdgeAttributeResponse {} +export interface MeshEdgesAttributeEdgeAttributeResponse { +} export interface MeshEdgesAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshEdgesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshEdgesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesAttributeVertexAttributeResponse {} +export interface MeshEdgesAttributeVertexAttributeResponse { +} export interface MeshEdgesWidthParams { - id: string; - width: number; + id: string; + width: number; } -export interface MeshEdgesWidthResponse {} +export interface MeshEdgesWidthResponse { +} export interface MeshEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshEdgesVisibilityResponse {} +export interface MeshEdgesVisibilityResponse { +} export interface MeshEdgesColorParams { - color: MeshEdgesColorParamsColor; - id: string; + color: MeshEdgesColorParamsColor; + id: string; } export interface MeshEdgesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshEdgesColorResponse {} +export interface MeshEdgesColorResponse { +} export interface MeshPointsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsAttributeVertexAttributeResponse {} +export interface MeshPointsAttributeVertexAttributeResponse { +} export interface MeshPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsVisibilityResponse { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } export interface MeshPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface MeshPointsSizeResponse {} +export interface MeshPointsSizeResponse { +} export interface MeshPointsColorParams { - color: MeshPointsColorParamsColor; - id: string; + color: MeshPointsColorParamsColor; + id: string; } export interface MeshPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPointsColorResponse {} +export interface MeshPointsColorResponse { +} export interface MeshPolygonsAttributePolygonAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributePolygonAttributeResponse {} +export interface MeshPolygonsAttributePolygonAttributeResponse { +} export interface MeshPolygonsAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolygonsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolygonsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsAttributeVertexAttributeResponse {} +export interface MeshPolygonsAttributeVertexAttributeResponse { +} export interface MeshPolygonsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolygonsVisibilityResponse {} +export interface MeshPolygonsVisibilityResponse { +} export interface MeshPolygonsColorParams { - color: MeshPolygonsColorParamsColor; - id: string; + color: MeshPolygonsColorParamsColor; + id: string; } export interface MeshPolygonsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolygonsColorResponse {} +export interface MeshPolygonsColorResponse { +} export interface MeshPolyhedraAttributePolyhedronAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributePolyhedronAttributeResponse {} +export interface MeshPolyhedraAttributePolyhedronAttributeResponse { +} export interface MeshPolyhedraAttributeVertexAttributeParams { - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: MeshPolyhedraAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface MeshPolyhedraAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraAttributeVertexAttributeResponse {} +export interface MeshPolyhedraAttributeVertexAttributeResponse { +} export interface MeshPolyhedraVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshPolyhedraVisibilityResponse {} +export interface MeshPolyhedraVisibilityResponse { +} export interface MeshPolyhedraColorParams { - color: MeshPolyhedraColorParamsColor; - id: string; + color: MeshPolyhedraColorParamsColor; + id: string; } export interface MeshPolyhedraColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshPolyhedraColorResponse {} +export interface MeshPolyhedraColorResponse { +} export interface MeshVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshVisibilityResponse {} +export interface MeshVisibilityResponse { +} export interface MeshRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface MeshRegisterResponse {} +export interface MeshRegisterResponse { +} export interface MeshHighlightParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface MeshHighlightResponse {} +export interface MeshHighlightResponse { +} export interface MeshDeregisterParams { - id: string; + id: string; } -export interface MeshDeregisterResponse {} +export interface MeshDeregisterResponse { +} export interface MeshColorParams { - color: MeshColorParamsColor; - id: string; + color: MeshColorParamsColor; + id: string; } export interface MeshColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface MeshColorResponse {} +export interface MeshColorResponse { +} export interface MeshApplyTexturesParams { - id: string; - textures: MeshApplyTexturesParamsTexture[]; + id: string; + textures: MeshApplyTexturesParamsTexture[]; } export interface MeshApplyTexturesParamsTexture { - id: string; - texture_name: string; + id: string; + texture_name: string; } -export interface MeshApplyTexturesResponse {} +export interface MeshApplyTexturesResponse { +} export interface ModelBlocksAttributePolyhedronAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributePolyhedronAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributePolyhedronAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributePolyhedronAttributeResponse {} +export interface ModelBlocksAttributePolyhedronAttributeResponse { +} export interface ModelBlocksAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksAttributeVertexAttributeResponse {} +export interface ModelBlocksAttributeVertexAttributeResponse { +} export interface ModelBlocksPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelBlocksPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksPointsAttributeVertexAttributeResponse {} +export interface ModelBlocksPointsAttributeVertexAttributeResponse { +} export interface ModelBlocksPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksPointsVisibilityResponse {} +export interface ModelBlocksPointsVisibilityResponse { +} export interface ModelBlocksPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelBlocksPointsSizeResponse {} +export interface ModelBlocksPointsSizeResponse { +} export interface ModelBlocksPointsColorParams { - block_ids: number[]; - color: ModelBlocksPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelBlocksPointsColorParamsColor; + id: string; } export interface ModelBlocksPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelBlocksPointsColorResponse {} +export interface ModelBlocksPointsColorResponse { +} export interface ModelBlocksVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelBlocksVisibilityResponse {} +export interface ModelBlocksVisibilityResponse { +} export interface ModelBlocksColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelBlocksColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelBlocksColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelBlocksColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export type ColorMode = "constant" | "random"; export interface ModelBlocksColorResponse { - colors: ModelBlocksColorResponseColor[]; + colors: ModelBlocksColorResponseColor[]; } export interface ModelBlocksColorResponseColor { - color: PurpleColorRGBA; - geode_id: string; - viewer_id: number; + color: PurpleColorRGBA; + geode_id: string; + viewer_id: number; } export interface PurpleColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelCornersAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelCornersAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelCornersAttributeVertexAttributeResponse {} +export interface ModelCornersAttributeVertexAttributeResponse { +} export interface ModelCornersVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelCornersVisibilityResponse {} +export interface ModelCornersVisibilityResponse { +} export interface ModelCornersColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelCornersColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelCornersColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelCornersColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelCornersColorResponse { - colors: ModelCornersColorResponseColor[]; + colors: ModelCornersColorResponseColor[]; } export interface ModelCornersColorResponseColor { - color: FluffyColorRGBA; - geode_id: string; - viewer_id: number; + color: FluffyColorRGBA; + geode_id: string; + viewer_id: number; } export interface FluffyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelEdgesVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelEdgesVisibilityResponse {} +export interface ModelEdgesVisibilityResponse { +} export interface ModelLinesAttributeEdgeAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeEdgeAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeEdgeAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeEdgeAttributeResponse {} +export interface ModelLinesAttributeEdgeAttributeResponse { +} export interface ModelLinesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesAttributeVertexAttributeResponse {} +export interface ModelLinesAttributeVertexAttributeResponse { +} export interface ModelLinesPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelLinesPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelLinesPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelLinesPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesPointsAttributeVertexAttributeResponse {} +export interface ModelLinesPointsAttributeVertexAttributeResponse { +} export interface ModelLinesPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesPointsVisibilityResponse {} +export interface ModelLinesPointsVisibilityResponse { +} export interface ModelLinesPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelLinesPointsSizeResponse {} +export interface ModelLinesPointsSizeResponse { +} export interface ModelLinesPointsColorParams { - block_ids: number[]; - color: ModelLinesPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelLinesPointsColorParamsColor; + id: string; } export interface ModelLinesPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelLinesPointsColorResponse {} +export interface ModelLinesPointsColorResponse { +} export interface ModelLinesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelLinesVisibilityResponse {} +export interface ModelLinesVisibilityResponse { +} export interface ModelLinesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelLinesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelLinesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelLinesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelLinesColorResponse { - colors: ModelLinesColorResponseColor[]; + colors: ModelLinesColorResponseColor[]; } export interface ModelLinesColorResponseColor { - color: TentacledColorRGBA; - geode_id: string; - viewer_id: number; + color: TentacledColorRGBA; + geode_id: string; + viewer_id: number; } export interface TentacledColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelPointsVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelPointsVisibilityResponse {} +export interface ModelPointsVisibilityResponse { +} export interface ModelPointsSizeParams { - id: string; - size: number; + id: string; + size: number; } -export interface ModelPointsSizeResponse {} +export interface ModelPointsSizeResponse { +} export interface ModelVisibilityParams { - id: string; - visibility: boolean; + id: string; + visibility: boolean; } -export interface ModelVisibilityResponse {} +export interface ModelVisibilityResponse { +} export interface ModelRegisterParams { - id: string; - name: string; + id: string; + name: string; } -export interface ModelRegisterResponse {} +export interface ModelRegisterResponse { +} export interface ModelHighlightParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelHighlightResponse {} +export interface ModelHighlightResponse { +} export interface ModelGetBlocksBoundsParams { - block_ids: number[]; - id: string; + block_ids: number[]; + id: string; } export interface ModelGetBlocksBoundsResponse { - bounds: number[]; + bounds: number[]; } export interface ModelDeregisterParams { - id: string; + id: string; } -export interface ModelDeregisterResponse {} +export interface ModelDeregisterResponse { +} export interface ModelSurfacesAttributePolygonAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributePolygonAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributePolygonAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributePolygonAttributeResponse {} +export interface ModelSurfacesAttributePolygonAttributeResponse { +} export interface ModelSurfacesAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesAttributeVertexAttributeResponse {} +export interface ModelSurfacesAttributeVertexAttributeResponse { +} export interface ModelSurfacesPointsAttributeVertexAttributeParams { - block_ids: number[]; - id: string; - item: number; - maximum: number; - minimum: number; - name: string; - no_data_color?: ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor; - /** - * Flat array of [value, r, g, b, ...] - */ - points: number[]; + block_ids: number[]; + id: string; + item: number; + maximum: number; + minimum: number; + name: string; + no_data_color?: ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor; + /** + * Flat array of [value, r, g, b, ...] + */ + points: number[]; } export interface ModelSurfacesPointsAttributeVertexAttributeParamsNoDataColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesPointsAttributeVertexAttributeResponse {} +export interface ModelSurfacesPointsAttributeVertexAttributeResponse { +} export interface ModelSurfacesPointsVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesPointsVisibilityResponse {} +export interface ModelSurfacesPointsVisibilityResponse { +} export interface ModelSurfacesPointsSizeParams { - block_ids: number[]; - id: string; - size: number; + block_ids: number[]; + id: string; + size: number; } -export interface ModelSurfacesPointsSizeResponse {} +export interface ModelSurfacesPointsSizeResponse { +} export interface ModelSurfacesPointsColorParams { - block_ids: number[]; - color: ModelSurfacesPointsColorParamsColor; - id: string; + block_ids: number[]; + color: ModelSurfacesPointsColorParamsColor; + id: string; } export interface ModelSurfacesPointsColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } -export interface ModelSurfacesPointsColorResponse {} +export interface ModelSurfacesPointsColorResponse { +} export interface ModelSurfacesVisibilityParams { - block_ids: number[]; - id: string; - visibility: boolean; + block_ids: number[]; + id: string; + visibility: boolean; } -export interface ModelSurfacesVisibilityResponse {} +export interface ModelSurfacesVisibilityResponse { +} export interface ModelSurfacesColorParams { - block_ids: number[]; - collection_id?: string; - color?: ModelSurfacesColorParamsColor; - color_mode: ColorMode; - id: string; + block_ids: number[]; + collection_id?: string; + color?: ModelSurfacesColorParamsColor; + color_mode: ColorMode; + id: string; } export interface ModelSurfacesColorParamsColor { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesColorResponse { - colors: ModelSurfacesColorResponseColor[]; + colors: ModelSurfacesColorResponseColor[]; } export interface ModelSurfacesColorResponseColor { - color: StickyColorRGBA; - geode_id: string; - viewer_id: number; + color: StickyColorRGBA; + geode_id: string; + viewer_id: number; } export interface StickyColorRGBA { - alpha: number; - blue: number; - green: number; - red: number; + alpha: number; + blue: number; + green: number; + red: number; } export interface ModelSurfacesApplyTexturesParams { - id: string; - textures: ModelSurfacesApplyTexturesParamsTexture[]; + id: string; + textures: ModelSurfacesApplyTexturesParamsTexture[]; } export interface ModelSurfacesApplyTexturesParamsTexture { - texture_file_name: string; - texture_name: string; + texture_file_name: string; + texture_name: string; } -export interface ModelSurfacesApplyTexturesResponse {} +export interface ModelSurfacesApplyTexturesResponse { +} -export interface ReleaseDatabaseParams {} +export interface ReleaseDatabaseParams { +} -export interface ReleaseDatabaseResponse {} +export interface ReleaseDatabaseResponse { +} -export interface KillParams {} +export interface KillParams { +} -export interface KillResponse {} +export interface KillResponse { +} -export interface ImportProjectParams {} +export interface ImportProjectParams { +} -export interface ImportProjectResponse {} +export interface ImportProjectResponse { +} export interface ViewerUpdateDataParams { - id: string; + id: string; } -export interface ViewerUpdateDataResponse {} +export interface ViewerUpdateDataResponse { +} export interface ViewerUpdateCameraParams { - camera_options: CameraOptions; - [property: string]: any; + camera_options: CameraOptions; + [property: string]: any; } export interface CameraOptions { - clipping_range: number[]; - focal_point: number[]; - position: number[]; - view_angle: number; - view_up: number[]; - [property: string]: any; + clipping_range: number[]; + focal_point: number[]; + position: number[]; + view_angle: number; + view_up: number[]; + [property: string]: any; } -export interface ViewerUpdateCameraResponse {} +export interface ViewerUpdateCameraResponse { +} export interface ViewerThresholdParams { - attribute?: AttributeClass; - ids: string[]; + attribute?: AttributeClass; + ids: string[]; } export interface AttributeClass { - item: number; - location: Location; - maximum: number; - minimum: number; - name: string; + item: number; + location: Location; + maximum: number; + minimum: number; + name: string; } export type Location = "point" | "cell"; -export interface ViewerThresholdResponse {} +export interface ViewerThresholdResponse { +} export interface ViewerTakeScreenshotParams { - filename: string; - include_background: boolean; - output_extension: OutputExtension; + filename: string; + include_background: boolean; + output_extension: OutputExtension; } export type OutputExtension = "png" | "jpg"; export interface ViewerTakeScreenshotResponse { - /** - * Image file content, sent as binary - */ - blob: any; + /** + * Image file content, sent as binary + */ + blob: any; } export interface ViewerSliceParams { - ids: string[]; - slices: Slice[]; + ids: string[]; + slices: Slice[]; } export interface Slice { - axis: number; - index: number; + axis: number; + index: number; } export interface ViewerSliceResponse { - max_indices: number[]; + max_indices: number[]; } export interface ViewerShrinkParams { - ids: string[]; - shrink_factor: number; + ids: string[]; + shrink_factor: number; } -export interface ViewerShrinkResponse {} +export interface ViewerShrinkResponse { +} export interface ViewerSetZScalingParams { - z_scale: number; + z_scale: number; } -export interface ViewerSetZScalingResponse {} +export interface ViewerSetZScalingResponse { +} export interface ViewerSetBackgroundColorParams { - color: ViewerSetBackgroundColorParamsColor; + color: ViewerSetBackgroundColorParamsColor; } export interface ViewerSetBackgroundColorParamsColor { - b: number; - g: number; - r: number; + b: number; + g: number; + r: number; } -export interface ViewerSetBackgroundColorResponse {} +export interface ViewerSetBackgroundColorResponse { +} export interface ViewerRulerParams { - points: Array; + points: Array; } export interface ViewerRulerResponse { - distance: number; - point1: number[]; - point2?: number[]; + distance: number; + point1: number[]; + point2?: number[]; } -export interface ViewerResetVisualizationParams {} +export interface ViewerResetVisualizationParams { +} -export interface ViewerResetVisualizationResponse {} +export interface ViewerResetVisualizationResponse { +} -export interface ViewerResetRulerParams {} +export interface ViewerResetRulerParams { +} -export interface ViewerResetRulerResponse {} +export interface ViewerResetRulerResponse { +} -export interface ViewerResetCameraParams {} +export interface ViewerResetCameraParams { +} -export interface ViewerResetCameraResponse {} +export interface ViewerResetCameraResponse { +} -export interface ViewerRenderParams {} +export interface ViewerRenderParams { +} -export interface ViewerRenderResponse {} +export interface ViewerRenderResponse { +} export interface ViewerPreviewPointsParams { - closed?: boolean; - points: Point[]; - style: Style; + closed?: boolean; + points: Point[]; + style: Style; } export interface Point { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export type Style = "points" | "curve" | "surface"; -export interface ViewerPreviewPointsResponse {} +export interface ViewerPreviewPointsResponse { +} export interface ViewerPickedIDSParams { - ids: string[]; - x: number; - y: number; + ids: string[]; + x: number; + y: number; } export interface ViewerPickedIDSResponse { - array_ids: string[]; - viewer_id?: number; + array_ids: string[]; + viewer_id?: number; } export interface ViewerPickColormapParams { - x: number; - y: number; - [property: string]: any; + x: number; + y: number; + [property: string]: any; } export interface ViewerPickColormapResponse { - block_ids?: number[]; - data_id?: string; + block_ids?: number[]; + data_id?: string; } export interface ViewerHighlightParams { - field_type: PickedFieldType; - ids: string[]; - x: number; - y: number; + field_type: PickedFieldType; + ids: string[]; + x: number; + y: number; } export type PickedFieldType = "CELL" | "POINT"; export interface ViewerHighlightResponse { - attributes?: { [key: string]: number[] | number }; - field_type?: PickedFieldType; - geode_id?: string; - id?: string; - picked_id?: number; + attributes?: { [key: string]: number[] | number }; + field_type?: PickedFieldType; + geode_id?: string; + id?: string; + picked_id?: number; } export interface ViewerGridScaleParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerGridScaleResponse {} +export interface ViewerGridScaleResponse { +} export interface ViewerGetPointPositionParams { - x: number; - y: number; + x: number; + y: number; } export interface ViewerGetPointPositionResponse { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export interface ViewerExplodeParams { - explode_factor: number; - ids: string[]; + explode_factor: number; + ids: string[]; } -export interface ViewerExplodeResponse {} +export interface ViewerExplodeResponse { +} export interface ViewerClippingPlanesParams { - ids: string[]; - planes: Plane[]; + ids: string[]; + planes: Plane[]; } export interface Plane { - normal: number[]; - origin: number[]; + normal: number[]; + origin: number[]; } -export interface ViewerClippingPlanesResponse {} +export interface ViewerClippingPlanesResponse { +} export interface ViewerAxesParams { - visibility: boolean; + visibility: boolean; } -export interface ViewerAxesResponse {} +export interface ViewerAxesResponse { +} export interface ErrorResponse { - code: number; - description: string; - name: string; + code: number; + description: string; + name: string; } // `__params` and `__response` only exist at type level, to infer request/response types from a schema. @@ -1186,339 +1270,192 @@ export type TypedSchema = { export interface Schemas { readonly opengeodeweb_viewer: { readonly generic: { - readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & - TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["generic"]["register"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["generic"]["deregister"] & TypedSchema; }; readonly mesh: { readonly cells: { readonly attribute: { readonly cell: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & - TypedSchema< - MeshCellsAttributeCellAttributeParams, - MeshCellsAttributeCellAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["cell"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshCellsAttributeVertexAttributeParams, - MeshCellsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["cells"]["color"] & TypedSchema; }; readonly edges: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & - TypedSchema< - MeshEdgesAttributeEdgeAttributeParams, - MeshEdgesAttributeEdgeAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["edge"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshEdgesAttributeVertexAttributeParams, - MeshEdgesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & - TypedSchema; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & - TypedSchema; + readonly width: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["width"] & TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["edges"]["color"] & TypedSchema; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPointsAttributeVertexAttributeParams, - MeshPointsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["size"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["points"]["color"] & TypedSchema; }; readonly polygons: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & - TypedSchema< - MeshPolygonsAttributePolygonAttributeParams, - MeshPolygonsAttributePolygonAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["polygon"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPolygonsAttributeVertexAttributeParams, - MeshPolygonsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polygons"]["color"] & TypedSchema; }; readonly polyhedra: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & - TypedSchema< - MeshPolyhedraAttributePolyhedronAttributeParams, - MeshPolyhedraAttributePolyhedronAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - MeshPolyhedraAttributeVertexAttributeParams, - MeshPolyhedraAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["polyhedra"]["color"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & - TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & - TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["mesh"]["visibility"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["mesh"]["register"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & TypedSchema; }; readonly model: { readonly blocks: { readonly attribute: { readonly polyhedron: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & - TypedSchema< - ModelBlocksAttributePolyhedronAttributeParams, - ModelBlocksAttributePolyhedronAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["polyhedron"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelBlocksAttributeVertexAttributeParams, - ModelBlocksAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelBlocksPointsAttributeVertexAttributeParams, - ModelBlocksPointsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["size"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["size"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["points"]["color"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["blocks"]["color"] & TypedSchema; }; readonly corners: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelCornersAttributeVertexAttributeParams, - ModelCornersAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["corners"]["color"] & TypedSchema; }; readonly edges: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["edges"]["visibility"] & TypedSchema; }; readonly lines: { readonly attribute: { readonly edge: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & - TypedSchema< - ModelLinesAttributeEdgeAttributeParams, - ModelLinesAttributeEdgeAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["edge"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelLinesAttributeVertexAttributeParams, - ModelLinesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelLinesPointsAttributeVertexAttributeParams, - ModelLinesPointsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["size"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["size"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["points"]["color"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["lines"]["color"] & TypedSchema; }; readonly points: { - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["points"]["size"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & - TypedSchema; - readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & - TypedSchema; - readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & - TypedSchema; - readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["visibility"] & TypedSchema; + readonly register: (typeof json)["opengeodeweb_viewer"]["model"]["register"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["model"]["highlight"] & TypedSchema; + readonly get_blocks_bounds: (typeof json)["opengeodeweb_viewer"]["model"]["get_blocks_bounds"] & TypedSchema; + readonly deregister: (typeof json)["opengeodeweb_viewer"]["model"]["deregister"] & TypedSchema; readonly surfaces: { readonly attribute: { readonly polygon: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & - TypedSchema< - ModelSurfacesAttributePolygonAttributeParams, - ModelSurfacesAttributePolygonAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["polygon"]["attribute"] & TypedSchema; }; readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelSurfacesAttributeVertexAttributeParams, - ModelSurfacesAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; readonly points: { readonly attribute: { readonly vertex: { - readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["attribute"]["vertex"]["attribute"] & - TypedSchema< - ModelSurfacesPointsAttributeVertexAttributeParams, - ModelSurfacesPointsAttributeVertexAttributeResponse - >; + readonly attribute: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["attribute"]["vertex"]["attribute"] & TypedSchema; }; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["visibility"] & - TypedSchema; - readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["size"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["color"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["visibility"] & TypedSchema; + readonly size: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["size"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["points"]["color"] & TypedSchema; }; - readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & - TypedSchema; - readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & - TypedSchema; - readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & - TypedSchema; + readonly visibility: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["visibility"] & TypedSchema; + readonly color: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["color"] & TypedSchema; + readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["model"]["surfaces"]["apply_textures"] & TypedSchema; }; }; - readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & - TypedSchema; - readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & - TypedSchema; - readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & - TypedSchema; + readonly release_database: (typeof json)["opengeodeweb_viewer"]["release_database"] & TypedSchema; + readonly kill: (typeof json)["opengeodeweb_viewer"]["kill"] & TypedSchema; + readonly import_project: (typeof json)["opengeodeweb_viewer"]["import_project"] & TypedSchema; readonly viewer: { - readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & - TypedSchema; - readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & - TypedSchema; - readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & - TypedSchema; - readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & - TypedSchema; - readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & - TypedSchema; - readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & - TypedSchema; - readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & - TypedSchema; - readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & - TypedSchema; - readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & - TypedSchema; - readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & - TypedSchema; - readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & - TypedSchema; - readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & - TypedSchema; - readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & - TypedSchema; - readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & - TypedSchema; - readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & - TypedSchema; - readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & - TypedSchema; - readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & - TypedSchema; - readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & - TypedSchema; - readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & - TypedSchema; - readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & - TypedSchema; - readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & - TypedSchema; - readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & - TypedSchema; + readonly update_data: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_data"] & TypedSchema; + readonly update_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["update_camera"] & TypedSchema; + readonly threshold: (typeof json)["opengeodeweb_viewer"]["viewer"]["threshold"] & TypedSchema; + readonly take_screenshot: (typeof json)["opengeodeweb_viewer"]["viewer"]["take_screenshot"] & TypedSchema; + readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & TypedSchema; + readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & TypedSchema; + readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & TypedSchema; + readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & TypedSchema; + readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & TypedSchema; + readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & TypedSchema; + readonly reset_ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_ruler"] & TypedSchema; + readonly reset_camera: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_camera"] & TypedSchema; + readonly render: (typeof json)["opengeodeweb_viewer"]["viewer"]["render"] & TypedSchema; + readonly preview_points: (typeof json)["opengeodeweb_viewer"]["viewer"]["preview_points"] & TypedSchema; + readonly picked_ids: (typeof json)["opengeodeweb_viewer"]["viewer"]["picked_ids"] & TypedSchema; + readonly pick_colormap: (typeof json)["opengeodeweb_viewer"]["viewer"]["pick_colormap"] & TypedSchema; + readonly highlight: (typeof json)["opengeodeweb_viewer"]["viewer"]["highlight"] & TypedSchema; + readonly grid_scale: (typeof json)["opengeodeweb_viewer"]["viewer"]["grid_scale"] & TypedSchema; + readonly get_point_position: (typeof json)["opengeodeweb_viewer"]["viewer"]["get_point_position"] & TypedSchema; + readonly explode: (typeof json)["opengeodeweb_viewer"]["viewer"]["explode"] & TypedSchema; + readonly clipping_planes: (typeof json)["opengeodeweb_viewer"]["viewer"]["clipping_planes"] & TypedSchema; + readonly axes: (typeof json)["opengeodeweb_viewer"]["viewer"]["axes"] & TypedSchema; }; }; } From 1205e0cd24f7fff98666652fa29b744042e72876 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 21 Oct 2026 13:55:13 +0200 Subject: [PATCH 08/12] refacto setup_model_color_map --- .../rpc/model/model_protocols.py | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/src/opengeodeweb_viewer/rpc/model/model_protocols.py b/src/opengeodeweb_viewer/rpc/model/model_protocols.py index 2ad2868d..7fe29e45 100644 --- a/src/opengeodeweb_viewer/rpc/model/model_protocols.py +++ b/src/opengeodeweb_viewer/rpc/model/model_protocols.py @@ -122,6 +122,32 @@ def apply_color( self.setup_model_color_map(pipeline) return colors + @staticmethod + def scalar_bar_key(active_attrs: dict[str, BlockStyle], style: BlockStyle, label: str) -> str: + # Styles sharing the same color map share a scalar bar, the key only grows to tell them apart + name = style["name"] + item = style["item"] + minimum = style["minimum"] + maximum = style["maximum"] + points = style["points"] + attr_key = name + if attr_key in active_attrs and ( + active_attrs[attr_key]["item"] != item + or active_attrs[attr_key]["minimum"] != minimum + or active_attrs[attr_key]["maximum"] != maximum + or active_attrs[attr_key]["points"] != points + ): + attr_key = f"{name} (Item {item + 1})" if item > 0 else name + if attr_key in active_attrs and ( + active_attrs[attr_key]["minimum"] != minimum + or active_attrs[attr_key]["maximum"] != maximum + or active_attrs[attr_key]["points"] != points + ): + attr_key = f"{attr_key} [{minimum:g}, {maximum:g}]" + if attr_key in active_attrs and active_attrs[attr_key]["points"] != points: + attr_key = f"{attr_key} (Block {label})" + return attr_key + def setup_model_color_map(self, pipeline: VtkPipeline) -> None: # Points attributes join the polygons ones, so identical color maps share one scalar bar displayed_styles = [ @@ -135,27 +161,7 @@ def setup_model_color_map(self, pipeline: VtkPipeline) -> None: active_block_ids: dict[str, list[int]] = {} for block_id, label, style in displayed_styles: if style["name"]: - name = style["name"] - item = style["item"] - minimum = style["minimum"] - maximum = style["maximum"] - points = style["points"] - attr_key = name - if attr_key in active_attrs and ( - active_attrs[attr_key]["item"] != item - or active_attrs[attr_key]["minimum"] != minimum - or active_attrs[attr_key]["maximum"] != maximum - or active_attrs[attr_key]["points"] != points - ): - attr_key = f"{name} (Item {item + 1})" if item > 0 else name - if attr_key in active_attrs and ( - active_attrs[attr_key]["minimum"] != minimum - or active_attrs[attr_key]["maximum"] != maximum - or active_attrs[attr_key]["points"] != points - ): - attr_key = f"{attr_key} [{minimum:g}, {maximum:g}]" - if attr_key in active_attrs and active_attrs[attr_key]["points"] != points: - attr_key = f"{attr_key} (Block {label})" + attr_key = self.scalar_bar_key(active_attrs, style, label) active_attrs[attr_key] = style bar_block_ids = active_block_ids.setdefault(attr_key, []) if block_id not in bar_block_ids: From b99ecb4aba7a2939e2c8a4f15a69761d74566ef7 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 21 Oct 2026 14:11:41 +0200 Subject: [PATCH 09/12] fix too long checker --- src/opengeodeweb_viewer/rpc/model/model_protocols.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/opengeodeweb_viewer/rpc/model/model_protocols.py b/src/opengeodeweb_viewer/rpc/model/model_protocols.py index 7fe29e45..ea7dd55c 100644 --- a/src/opengeodeweb_viewer/rpc/model/model_protocols.py +++ b/src/opengeodeweb_viewer/rpc/model/model_protocols.py @@ -124,7 +124,8 @@ def apply_color( @staticmethod def scalar_bar_key(active_attrs: dict[str, BlockStyle], style: BlockStyle, label: str) -> str: - # Styles sharing the same color map share a scalar bar, the key only grows to tell them apart + # Styles sharing the same color map share a scalar bar, + # the key only grows to tell them apart name = style["name"] item = style["item"] minimum = style["minimum"] From 67e019ad96f77e58662ed8b877d53f68bd3c4e3c Mon Sep 17 00:00:00 2001 From: MaxNumerique <144453705+MaxNumerique@users.noreply.github.com> Date: Wed, 21 Oct 2026 12:12:20 +0000 Subject: [PATCH 10/12] Apply prepare changes --- requirements.txt | 6 +----- ruff.toml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0d996396..92c87b23 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.12 +# This file is autogenerated by pip-compile with Python 3.14 # by the following command: # # pip-compile --output-file=./requirements.txt ./requirements.in @@ -52,10 +52,6 @@ python-dateutil==2.9.0.post0 # via matplotlib six==1.* # via python-dateutil -typing-extensions==4.* - # via - # aiohttp - # aiosignal vtk==9.6.2 # via -r requirements.in websocket-client==1.8.0 diff --git a/ruff.toml b/ruff.toml index 46d218b1..21f48b49 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,6 +1,6 @@ # https://docs.astral.sh/ruff/configuration/ -target-version = "py312" +target-version = "py314" line-length = 100 indent-width = 4 extend-exclude = ["**/schemas/**"] # generated schemas From dc4cba5bade1763ae52d1022f9ecdfaa1cc78c4b Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 21 Oct 2026 14:38:06 +0200 Subject: [PATCH 11/12] trigger From 99d35e3b8967a093b4f555cc075dfa75cf0a5761 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 21 Oct 2026 15:58:56 +0200 Subject: [PATCH 12/12] trigger