@geode/opengeodeweb-front 11.2.2-rc.1 → 12.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.build/shared/utils/response_handlers/load.js +5 -2
  2. package/.build/tests/browser/helpers/object_trees/main_object_tree.js +3 -3
  3. package/.build/tests/browser/helpers/object_trees/model_components_object_tree.js +2 -2
  4. package/.build/tests/browser/suites/model/surfaces.js +1 -1
  5. package/app/app.config.ts +28 -0
  6. package/app/assets/css/main.css +11 -0
  7. package/app/assets/geode_objects.ts +37 -108
  8. package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
  9. package/app/components/ActionButton.vue +9 -2
  10. package/app/components/CameraManager/List.vue +6 -6
  11. package/app/components/CameraManager.vue +0 -1
  12. package/app/components/CameraOrientation.vue +12 -7
  13. package/app/components/ChromeTheme.vue +20 -0
  14. package/app/components/ClippingPlaneCard.vue +2 -3
  15. package/app/components/ClippingPlanes.vue +2 -2
  16. package/app/components/CrsSelector.vue +8 -8
  17. package/app/components/DeleteDialog.vue +12 -16
  18. package/app/components/DragAndDropInternal/DragAndDropInline.vue +7 -7
  19. package/app/components/DragAndDropInternal/DragAndDropOverlay.vue +87 -82
  20. package/app/components/ExtensionSelector.vue +21 -14
  21. package/app/components/FactorFilterPanel.vue +0 -1
  22. package/app/components/FeedBack/ErrorBanner.vue +8 -9
  23. package/app/components/FeedBack/Snackers.vue +5 -7
  24. package/app/components/FileUploader.vue +13 -21
  25. package/app/components/GlassCard.vue +3 -1
  26. package/app/components/HybridRenderingView.vue +2 -0
  27. package/app/components/HybridViewerTooltip.vue +4 -4
  28. package/app/components/Launcher.vue +1 -1
  29. package/app/components/Loading/EcoMessages.vue +17 -11
  30. package/app/components/Loading/Footer.vue +2 -2
  31. package/app/components/Loading/Header.vue +9 -4
  32. package/app/components/Loading/Progress.vue +7 -3
  33. package/app/components/Loading.vue +54 -46
  34. package/app/components/MissingFilesSelector.vue +5 -5
  35. package/app/components/ObjectSelector.vue +8 -15
  36. package/app/components/PackagesVersions.vue +1 -3
  37. package/app/components/ProjectCrs.vue +1 -1
  38. package/app/components/Screenshot.vue +23 -15
  39. package/app/components/SearchBar.vue +1 -3
  40. package/app/components/SliceCard.vue +1 -2
  41. package/app/components/Step.vue +1 -1
  42. package/app/components/Stepper.vue +13 -11
  43. package/app/components/ThresholdCard.vue +1 -1
  44. package/app/components/ThresholdFilter.vue +2 -2
  45. package/app/components/TimeSeriesTargetSelector.vue +3 -6
  46. package/app/components/ToolPanel.vue +3 -9
  47. package/app/components/Viewer/Basemap/CropOptions.vue +1 -1
  48. package/app/components/Viewer/Basemap/OpacityOptions.vue +1 -1
  49. package/app/components/Viewer/ContextMenu/CenterButton.vue +9 -3
  50. package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
  51. package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +17 -6
  52. package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -13
  53. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
  54. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
  55. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
  56. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
  57. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
  58. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
  59. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
  60. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
  61. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
  62. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
  63. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
  64. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
  65. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
  66. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
  67. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
  68. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
  69. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
  70. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
  71. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
  72. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
  73. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
  74. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
  75. package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +4 -4
  76. package/app/components/Viewer/ObjectTree/Base/ComponentRelations.vue +1 -1
  77. package/app/components/Viewer/ObjectTree/Base/Controls.vue +22 -18
  78. package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +11 -11
  79. package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +3 -3
  80. package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +6 -9
  81. package/app/components/Viewer/ObjectTree/Box.vue +20 -21
  82. package/app/components/Viewer/ObjectTree/Layout.vue +28 -25
  83. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +4 -3
  84. package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +1 -1
  85. package/app/components/Viewer/Options/AttributeRangeSelector.vue +1 -1
  86. package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
  87. package/app/components/Viewer/Options/ColorMapList.vue +7 -9
  88. package/app/components/Viewer/Options/ColorMapPicker.vue +2 -2
  89. package/app/components/Viewer/Options/ColorPicker.vue +9 -9
  90. package/app/components/Viewer/Options/ColoringTypeSelector.vue +9 -9
  91. package/app/components/Viewer/Options/NoDataColorInfo.vue +4 -4
  92. package/app/components/Viewer/Options/Sliders/Opacity.vue +1 -1
  93. package/app/components/Viewer/Options/Sliders/Slider.vue +1 -1
  94. package/app/components/Viewer/Options/TextureItem.vue +11 -8
  95. package/app/components/Viewer/Options/TexturesSelector.vue +3 -3
  96. package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
  97. package/app/components/Viewer/OrientationCompass.vue +223 -0
  98. package/app/components/Viewer/OrientationGlobe.vue +376 -0
  99. package/app/components/Viewer/OrientationOverlay.vue +47 -0
  100. package/app/components/Viewer/OverlappingObjectsPicker.vue +10 -7
  101. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
  102. package/app/components/Viewer/Scene/BackgroundOptions.vue +3 -3
  103. package/app/components/Viewer/Scene/OrientationWidgetOptions.vue +1 -1
  104. package/app/components/Viewer/Scene/TextOptions.vue +3 -3
  105. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
  106. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
  107. package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
  108. package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
  109. package/app/components/Viewer/ToolActiveChip.vue +1 -1
  110. package/app/components/Viewer/Ui.vue +2 -2
  111. package/app/components/csv-preview/CsvPreviewer.vue +17 -24
  112. package/app/components/csv-preview/CsvSettings.vue +6 -6
  113. package/app/components/csv-preview/CsvTable.vue +11 -9
  114. package/app/composables/attribute_selector.ts +1 -1
  115. package/app/composables/batch_style.ts +3 -3
  116. package/app/composables/batch_style_model.ts +1 -1
  117. package/app/composables/chrome_theme.ts +23 -0
  118. package/app/composables/clipping_slices.ts +2 -1
  119. package/app/composables/hover_highlight.ts +10 -7
  120. package/app/composables/live_data_item.ts +1 -1
  121. package/app/composables/model_menu_context.ts +11 -4
  122. package/app/composables/orientation_overlay.ts +133 -0
  123. package/app/composables/project_manager_helpers/reset.ts +2 -0
  124. package/app/composables/project_manager_helpers/types.ts +2 -2
  125. package/app/composables/use_adaptive_styles.ts +42 -21
  126. package/app/composables/use_overlapping_picker.ts +10 -8
  127. package/app/composables/view_toolbar_options.ts +7 -7
  128. package/app/composables/view_toolbar_tool_options.ts +9 -11
  129. package/app/composables/viewer_context_menu.ts +4 -2
  130. package/app/composables/viewer_reset.ts +54 -0
  131. package/app/plugins/chrome_theme.ts +10 -0
  132. package/app/plugins/phosphor_icons.ts +13 -0
  133. package/app/plugins/scene_colors.ts +10 -0
  134. package/app/stores/basemap_helpers/builds.ts +2 -2
  135. package/app/stores/basemap_helpers/viewer.ts +1 -1
  136. package/app/stores/crs.ts +12 -12
  137. package/app/stores/data.ts +4 -5
  138. package/app/stores/data_helpers/mesh.ts +2 -1
  139. package/app/stores/data_style.ts +4 -3
  140. package/app/stores/hybrid_viewer.ts +5 -3
  141. package/app/stores/menu.ts +18 -12
  142. package/app/stores/treeview.ts +5 -4
  143. package/app/stores/viewer.ts +2 -0
  144. package/app/types/attribute.ts +5 -21
  145. package/app/types/identifiers.ts +5 -15
  146. package/app/utils/attribute_range.ts +1 -1
  147. package/app/utils/attributes.ts +2 -1
  148. package/app/utils/clipping_planes.ts +1 -1
  149. package/app/utils/color_picker.ts +3 -3
  150. package/app/utils/crs.ts +6 -6
  151. package/app/utils/default_styles/constants.ts +17 -22
  152. package/app/utils/default_styles/index.ts +24 -3
  153. package/app/utils/default_styles/mesh_components.ts +15 -11
  154. package/app/utils/default_styles/meshes.ts +1 -1
  155. package/app/utils/default_styles/model_components.ts +14 -10
  156. package/app/utils/default_styles/models.ts +1 -1
  157. package/app/utils/import_workflow.ts +3 -1
  158. package/app/utils/legacy_data_id.ts +2 -1
  159. package/app/utils/orientation_compass.ts +103 -0
  160. package/app/utils/orientation_gizmo.ts +73 -0
  161. package/app/utils/orientation_globe.ts +145 -0
  162. package/app/utils/orientation_strata.ts +119 -0
  163. package/app/utils/phosphor_icons.ts +105 -0
  164. package/app/utils/slice.ts +2 -1
  165. package/app/utils/threshold_sources.ts +1 -1
  166. package/internal/stores/data_style/attribute_types.ts +6 -6
  167. package/internal/stores/data_style/mesh/base_style.ts +6 -7
  168. package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
  169. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
  170. package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
  171. package/internal/stores/data_style/mesh/cells/color.ts +6 -6
  172. package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
  173. package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
  174. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
  175. package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
  176. package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
  177. package/internal/stores/data_style/mesh/edges/color.ts +6 -6
  178. package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
  179. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
  180. package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
  181. package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
  182. package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
  183. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
  184. package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
  185. package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
  186. package/internal/stores/data_style/mesh/edges/width.ts +6 -6
  187. package/internal/stores/data_style/mesh/index.ts +3 -4
  188. package/internal/stores/data_style/mesh/points/color.ts +6 -6
  189. package/internal/stores/data_style/mesh/points/common.ts +1 -1
  190. package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
  191. package/internal/stores/data_style/mesh/points/size.ts +6 -6
  192. package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
  193. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
  194. package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
  195. package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
  196. package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
  197. package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
  198. package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
  199. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
  200. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
  201. package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
  202. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
  203. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
  204. package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
  205. package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
  206. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
  207. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
  208. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
  209. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
  210. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
  211. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
  212. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
  213. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
  214. package/internal/stores/data_style/model/blocks/color.ts +6 -6
  215. package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
  216. package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
  217. package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
  218. package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
  219. package/internal/stores/data_style/model/color.ts +10 -11
  220. package/internal/stores/data_style/model/common.ts +3 -4
  221. package/internal/stores/data_style/model/corners/color.ts +6 -6
  222. package/internal/stores/data_style/model/corners/index.ts +2 -2
  223. package/internal/stores/data_style/model/corners/vertex.ts +12 -9
  224. package/internal/stores/data_style/model/corners/visibility.ts +1 -1
  225. package/internal/stores/data_style/model/edges/component.ts +13 -13
  226. package/internal/stores/data_style/model/edges/visibility.ts +1 -1
  227. package/internal/stores/data_style/model/edges/width.ts +6 -6
  228. package/internal/stores/data_style/model/lines/color.ts +6 -6
  229. package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
  230. package/internal/stores/data_style/model/lines/edge.ts +12 -9
  231. package/internal/stores/data_style/model/lines/vertex.ts +12 -9
  232. package/internal/stores/data_style/model/lines/visibility.ts +1 -1
  233. package/internal/stores/data_style/model/points/component.ts +17 -13
  234. package/internal/stores/data_style/model/points/index.ts +2 -2
  235. package/internal/stores/data_style/model/points/size.ts +6 -6
  236. package/internal/stores/data_style/model/points/visibility.ts +1 -1
  237. package/internal/stores/data_style/model/surfaces/color.ts +6 -6
  238. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
  239. package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
  240. package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
  241. package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
  242. package/internal/stores/data_style/model/visibility.ts +1 -1
  243. package/internal/stores/data_style/scene.ts +31 -19
  244. package/internal/stores/data_style/time_step.ts +3 -2
  245. package/internal/stores/data_style/types.ts +3 -4
  246. package/internal/stores/hybrid_viewer/brightness.ts +14 -7
  247. package/internal/stores/hybrid_viewer/camera.ts +1 -1
  248. package/internal/stores/hybrid_viewer/constants.ts +1 -12
  249. package/internal/stores/hybrid_viewer/filters.ts +2 -2
  250. package/internal/stores/hybrid_viewer/highlight.ts +2 -1
  251. package/internal/stores/hybrid_viewer/scene.ts +11 -4
  252. package/nuxt.config.ts +9 -1
  253. package/package.json +4 -2
  254. package/shared/utils/response_handlers/load.ts +19 -11
  255. package/tests/browser/helpers/object_trees/main_object_tree.ts +3 -3
  256. package/tests/browser/helpers/object_trees/model_components_object_tree.ts +2 -2
  257. package/tests/browser/suites/model/surfaces.ts +1 -1
  258. package/tests/unit/helpers/phosphor_glyphs.ts +46 -0
  259. package/app/assets/viewer_svgs/camera-bookmark.svg +0 -64
  260. package/app/types/style.ts +0 -13
@@ -3,7 +3,7 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed
3
3
 
4
4
  // Local imports
5
5
  import type { MeshId } from "@ogw_front/types/identifiers";
6
- import type { Size } from "@ogw_front/types/style";
6
+ import type { PointSize } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import { useMeshPointsCommonStyle } from "./common";
8
8
  import { useViewerStore } from "@ogw_front/stores/viewer";
9
9
 
@@ -11,17 +11,17 @@ import { useViewerStore } from "@ogw_front/stores/viewer";
11
11
  const schema = viewer_schemas.opengeodeweb_viewer.mesh.points.size;
12
12
 
13
13
  export function useMeshPointsSizeStyle(): {
14
- meshPointsSize: (meshId: MeshId) => Size | undefined;
15
- setMeshPointsSize: (meshId: MeshId, size: Size) => Promise<unknown>;
14
+ meshPointsSize: (meshId: MeshId) => PointSize | undefined;
15
+ setMeshPointsSize: (meshId: MeshId, size: PointSize) => Promise<unknown>;
16
16
  } {
17
17
  const viewerStore = useViewerStore();
18
18
  const meshPointsCommonStyle = useMeshPointsCommonStyle();
19
19
 
20
- function meshPointsSize(meshId: MeshId): Size | undefined {
20
+ function meshPointsSize(meshId: MeshId): PointSize | undefined {
21
21
  // oxlint-disable-next-line no-unsafe-type-assertion -- size is defined as number in the data style schema.
22
- return meshPointsCommonStyle.meshPointsStyle(meshId).size as Size | undefined;
22
+ return meshPointsCommonStyle.meshPointsStyle(meshId).size as PointSize | undefined;
23
23
  }
24
- async function setMeshPointsSize(meshId: MeshId, size: Size): Promise<unknown> {
24
+ async function setMeshPointsSize(meshId: MeshId, size: PointSize): Promise<unknown> {
25
25
  const params = { id: meshId, size };
26
26
  const result = await viewerStore.request(
27
27
  {
@@ -1,17 +1,17 @@
1
+ import type { AttributeColorMap, AttributeTimeStep } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
5
  AttributeRangeMaximum,
6
6
  AttributeRangeMinimum,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
9
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
7
+ ColorRGBA,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { MeshId } from "@ogw_front/types/identifiers";
11
11
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
12
- import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
13
12
  // Third party imports
14
13
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
14
+ import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
15
15
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
16
16
 
17
17
  // Local imports
@@ -167,7 +167,7 @@ function useMeshPointsVertexAttributeStyle(): UseMeshPointsVertexAttributeStyleR
167
167
  }
168
168
  async function setMeshPointsVertexAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshPointsVertexAttributeName(meshId);
173
173
  const item = meshPointsVertexAttributeItem(meshId);
@@ -1,18 +1,20 @@
1
1
  import type {
2
2
  AttributeColorMap,
3
+ AttributeRange,
4
+ AttributeTimeStep,
5
+ } from "@ogw_front/types/attribute";
6
+ import type {
3
7
  AttributeItem,
4
8
  AttributeName,
5
- AttributeRange,
6
9
  AttributeRangeMaximum,
7
10
  AttributeRangeMinimum,
8
- AttributeTimeStep,
9
- } from "@ogw_front/types/attribute";
11
+ ColorRGBA,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import type {
11
14
  AttributeStoredConfig,
12
15
  ValidAttributeInput,
13
16
  } from "@ogw_internal/stores/data_style/attribute_types";
14
17
  import type { MeshId } from "@ogw_front/types/identifiers";
15
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
16
18
 
17
19
  interface UseMeshPointsVertexAttributeStyleReturn {
18
20
  meshPointsVertexAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshPointsVertexAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshPointsVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshPointsVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshPointsVertexAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshPointsVertexAttributeStyleReturn };
@@ -1,15 +1,14 @@
1
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import type {
8
8
  AttributeState,
9
9
  AttributeStoredConfig,
10
10
  } from "@ogw_internal/stores/data_style/attribute_types";
11
11
  import type { MeshId } from "@ogw_front/types/identifiers";
12
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
12
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
14
13
 
15
14
  // Local imports
@@ -86,7 +85,7 @@ function useMeshPointsVertexAttributeConfig(): UseMeshPointsVertexAttributeConfi
86
85
  interface UseMeshPointsVertexAttributeConfigValuesReturn {
87
86
  meshPointsVertexAttributeRange: (meshId: MeshId) => AttributeRange;
88
87
  meshPointsVertexAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
89
- meshPointsVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
88
+ meshPointsVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
90
89
  }
91
90
 
92
91
  function useMeshPointsVertexAttributeConfigValues(): UseMeshPointsVertexAttributeConfigValuesReturn {
@@ -107,7 +106,7 @@ function useMeshPointsVertexAttributeConfigValues(): UseMeshPointsVertexAttribut
107
106
  const storedConfig = meshPointsVertexAttributeStoredConfig(meshId, name, item);
108
107
  return storedConfig.colorMap;
109
108
  }
110
- function meshPointsVertexAttributeNoDataColor(meshId: MeshId): RGBAColor {
109
+ function meshPointsVertexAttributeNoDataColor(meshId: MeshId): ColorRGBA {
111
110
  const name = meshPointsVertexAttributeName(meshId);
112
111
  const item = meshPointsVertexAttributeItem(meshId);
113
112
  const storedConfig = meshPointsVertexAttributeStoredConfig(meshId, name, item);
@@ -3,7 +3,7 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed
3
3
 
4
4
  // Local imports
5
5
  import type { MeshId } from "@ogw_front/types/identifiers";
6
- import type { Visibility } from "@ogw_front/types/style";
6
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import { useMeshPointsCommonStyle } from "./common";
8
8
  import { useViewerStore } from "@ogw_front/stores/viewer";
9
9
 
@@ -1,5 +1,5 @@
1
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import type { MeshId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
3
3
  // Third party imports
4
4
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
5
5
 
@@ -12,17 +12,17 @@ import { useViewerStore } from "@ogw_front/stores/viewer";
12
12
  const schema = viewer_schemas.opengeodeweb_viewer.mesh.polygons.color;
13
13
 
14
14
  export function useMeshPolygonsColorStyle(): ReturnType<typeof useMeshPolygonsOpacityStyle> & {
15
- meshPolygonsColor: (meshId: MeshId) => RGBAColor | undefined;
16
- setMeshPolygonsColor: (meshId: MeshId, color: RGBAColor) => Promise<unknown>;
15
+ meshPolygonsColor: (meshId: MeshId) => ColorRGBA | undefined;
16
+ setMeshPolygonsColor: (meshId: MeshId, color: ColorRGBA) => Promise<unknown>;
17
17
  } {
18
18
  const viewerStore = useViewerStore();
19
19
  const meshPolygonsCommonStyle = useMeshPolygonsCommonStyle();
20
20
 
21
- function meshPolygonsColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshPolygonsColor(meshId: MeshId): ColorRGBA | undefined {
22
22
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
23
- return meshPolygonsCommonStyle.meshPolygonsColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshPolygonsCommonStyle.meshPolygonsColoring(meshId).constant as ColorRGBA | undefined;
24
24
  }
25
- async function setMeshPolygonsColor(meshId: MeshId, color: RGBAColor): Promise<unknown> {
25
+ async function setMeshPolygonsColor(meshId: MeshId, color: ColorRGBA): Promise<unknown> {
26
26
  const params = { id: meshId, color };
27
27
  const result = await viewerStore.request(
28
28
  {
@@ -1,6 +1,5 @@
1
+ import type { ColorRGBA, Opacity } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import type { MeshId } from "@ogw_front/types/identifiers";
2
- import type { Opacity } from "@ogw_front/types/style";
3
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
4
3
  // Third party imports
5
4
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
6
5
 
@@ -19,9 +18,9 @@ export function useMeshPolygonsOpacityStyle(): {
19
18
  const viewerStore = useViewerStore();
20
19
  const meshPolygonsCommonStyle = useMeshPolygonsCommonStyle();
21
20
 
22
- function meshPolygonsConstantColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshPolygonsConstantColor(meshId: MeshId): ColorRGBA | undefined {
23
22
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
24
- return meshPolygonsCommonStyle.meshPolygonsColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshPolygonsCommonStyle.meshPolygonsColoring(meshId).constant as ColorRGBA | undefined;
25
24
  }
26
25
  function meshPolygonsOpacity(meshId: MeshId): Opacity | undefined {
27
26
  return meshPolygonsConstantColor(meshId)?.alpha;
@@ -1,17 +1,17 @@
1
+ import type { AttributeColorMap, AttributeTimeStep } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
5
  AttributeRangeMaximum,
6
6
  AttributeRangeMinimum,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
9
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
7
+ ColorRGBA,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { MeshId } from "@ogw_front/types/identifiers";
11
11
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
12
- import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
13
12
  // Third party imports
14
13
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
14
+ import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
15
15
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
16
16
 
17
17
  // Local imports
@@ -167,7 +167,7 @@ function useMeshPolygonsPolygonAttributeStyle(): UseMeshPolygonsPolygonAttribute
167
167
  }
168
168
  async function setMeshPolygonsPolygonAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshPolygonsPolygonAttributeName(meshId);
173
173
  const item = meshPolygonsPolygonAttributeItem(meshId);
@@ -1,18 +1,20 @@
1
1
  import type {
2
2
  AttributeColorMap,
3
+ AttributeRange,
4
+ AttributeTimeStep,
5
+ } from "@ogw_front/types/attribute";
6
+ import type {
3
7
  AttributeItem,
4
8
  AttributeName,
5
- AttributeRange,
6
9
  AttributeRangeMaximum,
7
10
  AttributeRangeMinimum,
8
- AttributeTimeStep,
9
- } from "@ogw_front/types/attribute";
11
+ ColorRGBA,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import type {
11
14
  AttributeStoredConfig,
12
15
  ValidAttributeInput,
13
16
  } from "@ogw_internal/stores/data_style/attribute_types";
14
17
  import type { MeshId } from "@ogw_front/types/identifiers";
15
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
16
18
 
17
19
  interface UseMeshPolygonsPolygonAttributeStyleReturn {
18
20
  meshPolygonsPolygonAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshPolygonsPolygonAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshPolygonsPolygonAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshPolygonsPolygonAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshPolygonsPolygonAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshPolygonsPolygonAttributeStyleReturn };
@@ -1,15 +1,14 @@
1
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import type {
8
8
  AttributeState,
9
9
  AttributeStoredConfig,
10
10
  } from "@ogw_internal/stores/data_style/attribute_types";
11
11
  import type { MeshId } from "@ogw_front/types/identifiers";
12
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
12
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
14
13
 
15
14
  // Local imports
@@ -89,7 +88,7 @@ function useMeshPolygonsPolygonAttributeConfig(): UseMeshPolygonsPolygonAttribut
89
88
  interface UseMeshPolygonsPolygonAttributeConfigValuesReturn {
90
89
  meshPolygonsPolygonAttributeRange: (meshId: MeshId) => AttributeRange;
91
90
  meshPolygonsPolygonAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
92
- meshPolygonsPolygonAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
91
+ meshPolygonsPolygonAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
93
92
  }
94
93
 
95
94
  function useMeshPolygonsPolygonAttributeConfigValues(): UseMeshPolygonsPolygonAttributeConfigValuesReturn {
@@ -110,7 +109,7 @@ function useMeshPolygonsPolygonAttributeConfigValues(): UseMeshPolygonsPolygonAt
110
109
  const storedConfig = meshPolygonsPolygonAttributeStoredConfig(meshId, name, item);
111
110
  return storedConfig.colorMap;
112
111
  }
113
- function meshPolygonsPolygonAttributeNoDataColor(meshId: MeshId): RGBAColor {
112
+ function meshPolygonsPolygonAttributeNoDataColor(meshId: MeshId): ColorRGBA {
114
113
  const name = meshPolygonsPolygonAttributeName(meshId);
115
114
  const item = meshPolygonsPolygonAttributeItem(meshId);
116
115
  const storedConfig = meshPolygonsPolygonAttributeStoredConfig(meshId, name, item);
@@ -1,17 +1,17 @@
1
+ import type { AttributeColorMap, AttributeTimeStep } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
5
  AttributeRangeMaximum,
6
6
  AttributeRangeMinimum,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
9
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
7
+ ColorRGBA,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { MeshId } from "@ogw_front/types/identifiers";
11
11
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
12
- import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
13
12
  // Third party imports
14
13
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
14
+ import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
15
15
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
16
16
 
17
17
  // Local imports
@@ -167,7 +167,7 @@ function useMeshPolygonsVertexAttributeStyle(): UseMeshPolygonsVertexAttributeSt
167
167
  }
168
168
  async function setMeshPolygonsVertexAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshPolygonsVertexAttributeName(meshId);
173
173
  const item = meshPolygonsVertexAttributeItem(meshId);
@@ -1,18 +1,20 @@
1
1
  import type {
2
2
  AttributeColorMap,
3
+ AttributeRange,
4
+ AttributeTimeStep,
5
+ } from "@ogw_front/types/attribute";
6
+ import type {
3
7
  AttributeItem,
4
8
  AttributeName,
5
- AttributeRange,
6
9
  AttributeRangeMaximum,
7
10
  AttributeRangeMinimum,
8
- AttributeTimeStep,
9
- } from "@ogw_front/types/attribute";
11
+ ColorRGBA,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import type {
11
14
  AttributeStoredConfig,
12
15
  ValidAttributeInput,
13
16
  } from "@ogw_internal/stores/data_style/attribute_types";
14
17
  import type { MeshId } from "@ogw_front/types/identifiers";
15
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
16
18
 
17
19
  interface UseMeshPolygonsVertexAttributeStyleReturn {
18
20
  meshPolygonsVertexAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshPolygonsVertexAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshPolygonsVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshPolygonsVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshPolygonsVertexAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshPolygonsVertexAttributeStyleReturn };
@@ -1,15 +1,14 @@
1
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import type {
8
8
  AttributeState,
9
9
  AttributeStoredConfig,
10
10
  } from "@ogw_internal/stores/data_style/attribute_types";
11
11
  import type { MeshId } from "@ogw_front/types/identifiers";
12
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
12
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
14
13
 
15
14
  // Local imports
@@ -89,7 +88,7 @@ function useMeshPolygonsVertexAttributeConfig(): UseMeshPolygonsVertexAttributeC
89
88
  interface UseMeshPolygonsVertexAttributeConfigValuesReturn {
90
89
  meshPolygonsVertexAttributeRange: (meshId: MeshId) => AttributeRange;
91
90
  meshPolygonsVertexAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
92
- meshPolygonsVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
91
+ meshPolygonsVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
93
92
  }
94
93
 
95
94
  function useMeshPolygonsVertexAttributeConfigValues(): UseMeshPolygonsVertexAttributeConfigValuesReturn {
@@ -110,7 +109,7 @@ function useMeshPolygonsVertexAttributeConfigValues(): UseMeshPolygonsVertexAttr
110
109
  const storedConfig = meshPolygonsVertexAttributeStoredConfig(meshId, name, item);
111
110
  return storedConfig.colorMap;
112
111
  }
113
- function meshPolygonsVertexAttributeNoDataColor(meshId: MeshId): RGBAColor {
112
+ function meshPolygonsVertexAttributeNoDataColor(meshId: MeshId): ColorRGBA {
114
113
  const name = meshPolygonsVertexAttributeName(meshId);
115
114
  const item = meshPolygonsVertexAttributeItem(meshId);
116
115
  const storedConfig = meshPolygonsVertexAttributeStoredConfig(meshId, name, item);
@@ -3,7 +3,7 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed
3
3
 
4
4
  // Local imports
5
5
  import type { MeshId } from "@ogw_front/types/identifiers";
6
- import type { Visibility } from "@ogw_front/types/style";
6
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import { useMeshPolygonsCommonStyle } from "./common";
8
8
  import { useViewerStore } from "@ogw_front/stores/viewer";
9
9
 
@@ -1,5 +1,5 @@
1
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import type { MeshId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
3
3
  // Third party imports
4
4
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
5
5
 
@@ -12,17 +12,17 @@ import { useViewerStore } from "@ogw_front/stores/viewer";
12
12
  const schema = viewer_schemas.opengeodeweb_viewer.mesh.polyhedra.color;
13
13
 
14
14
  export function useMeshPolyhedraColorStyle(): ReturnType<typeof useMeshPolyhedraOpacityStyle> & {
15
- meshPolyhedraColor: (meshId: MeshId) => RGBAColor | undefined;
16
- setMeshPolyhedraColor: (meshId: MeshId, color: RGBAColor) => Promise<unknown>;
15
+ meshPolyhedraColor: (meshId: MeshId) => ColorRGBA | undefined;
16
+ setMeshPolyhedraColor: (meshId: MeshId, color: ColorRGBA) => Promise<unknown>;
17
17
  } {
18
18
  const viewerStore = useViewerStore();
19
19
  const meshPolyhedraCommonStyle = useMeshPolyhedraCommonStyle();
20
20
 
21
- function meshPolyhedraColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshPolyhedraColor(meshId: MeshId): ColorRGBA | undefined {
22
22
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
23
- return meshPolyhedraCommonStyle.meshPolyhedraColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshPolyhedraCommonStyle.meshPolyhedraColoring(meshId).constant as ColorRGBA | undefined;
24
24
  }
25
- async function setMeshPolyhedraColor(meshId: MeshId, color: RGBAColor): Promise<unknown> {
25
+ async function setMeshPolyhedraColor(meshId: MeshId, color: ColorRGBA): Promise<unknown> {
26
26
  const params = { id: meshId, color };
27
27
  const result = await viewerStore.request(
28
28
  {
@@ -1,6 +1,5 @@
1
+ import type { ColorRGBA, Opacity } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import type { MeshId } from "@ogw_front/types/identifiers";
2
- import type { Opacity } from "@ogw_front/types/style";
3
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
4
3
  // Third party imports
5
4
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
6
5
 
@@ -19,9 +18,9 @@ export function useMeshPolyhedraOpacityStyle(): {
19
18
  const viewerStore = useViewerStore();
20
19
  const meshPolyhedraCommonStyle = useMeshPolyhedraCommonStyle();
21
20
 
22
- function meshPolyhedraConstantColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshPolyhedraConstantColor(meshId: MeshId): ColorRGBA | undefined {
23
22
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
24
- return meshPolyhedraCommonStyle.meshPolyhedraColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshPolyhedraCommonStyle.meshPolyhedraColoring(meshId).constant as ColorRGBA | undefined;
25
24
  }
26
25
  function meshPolyhedraOpacity(meshId: MeshId): Opacity | undefined {
27
26
  return meshPolyhedraConstantColor(meshId)?.alpha;
@@ -1,17 +1,17 @@
1
+ import type { AttributeColorMap, AttributeTimeStep } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
5
  AttributeRangeMaximum,
6
6
  AttributeRangeMinimum,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
9
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
7
+ ColorRGBA,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { MeshId } from "@ogw_front/types/identifiers";
11
11
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
12
- import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
13
12
  // Third party imports
14
13
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
14
+ import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
15
15
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
16
16
 
17
17
  // Local imports
@@ -167,7 +167,7 @@ function useMeshPolyhedraPolyhedronAttributeStyle(): UseMeshPolyhedraPolyhedronA
167
167
  }
168
168
  async function setMeshPolyhedraPolyhedronAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshPolyhedraPolyhedronAttributeName(meshId);
173
173
  const item = meshPolyhedraPolyhedronAttributeItem(meshId);
@@ -1,18 +1,20 @@
1
1
  import type {
2
2
  AttributeColorMap,
3
+ AttributeRange,
4
+ AttributeTimeStep,
5
+ } from "@ogw_front/types/attribute";
6
+ import type {
3
7
  AttributeItem,
4
8
  AttributeName,
5
- AttributeRange,
6
9
  AttributeRangeMaximum,
7
10
  AttributeRangeMinimum,
8
- AttributeTimeStep,
9
- } from "@ogw_front/types/attribute";
11
+ ColorRGBA,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import type {
11
14
  AttributeStoredConfig,
12
15
  ValidAttributeInput,
13
16
  } from "@ogw_internal/stores/data_style/attribute_types";
14
17
  import type { MeshId } from "@ogw_front/types/identifiers";
15
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
16
18
 
17
19
  interface UseMeshPolyhedraPolyhedronAttributeStyleReturn {
18
20
  meshPolyhedraPolyhedronAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -50,10 +52,10 @@ interface UseMeshPolyhedraPolyhedronAttributeStyleReturn {
50
52
  meshId: MeshId,
51
53
  colorMap: AttributeColorMap | undefined,
52
54
  ) => Promise<unknown>;
53
- meshPolyhedraPolyhedronAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
55
+ meshPolyhedraPolyhedronAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
54
56
  setMeshPolyhedraPolyhedronAttributeNoDataColor: (
55
57
  meshId: MeshId,
56
- no_data_color: RGBAColor,
58
+ no_data_color: ColorRGBA,
57
59
  ) => Promise<unknown>;
58
60
  }
59
61
  export type { UseMeshPolyhedraPolyhedronAttributeStyleReturn };
@@ -1,15 +1,14 @@
1
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ } from "@geode/opengeodeweb-viewer/schema_types";
7
7
  import type {
8
8
  AttributeState,
9
9
  AttributeStoredConfig,
10
10
  } from "@ogw_internal/stores/data_style/attribute_types";
11
11
  import type { MeshId } from "@ogw_front/types/identifiers";
12
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
12
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
14
13
 
15
14
  // Local imports
@@ -92,7 +91,7 @@ function useMeshPolyhedraPolyhedronAttributeConfig(): UseMeshPolyhedraPolyhedron
92
91
  interface UseMeshPolyhedraPolyhedronAttributeConfigValuesReturn {
93
92
  meshPolyhedraPolyhedronAttributeRange: (meshId: MeshId) => AttributeRange;
94
93
  meshPolyhedraPolyhedronAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
95
- meshPolyhedraPolyhedronAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
94
+ meshPolyhedraPolyhedronAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
96
95
  }
97
96
 
98
97
  function useMeshPolyhedraPolyhedronAttributeConfigValues(): UseMeshPolyhedraPolyhedronAttributeConfigValuesReturn {
@@ -113,7 +112,7 @@ function useMeshPolyhedraPolyhedronAttributeConfigValues(): UseMeshPolyhedraPoly
113
112
  const storedConfig = meshPolyhedraPolyhedronAttributeStoredConfig(meshId, name, item);
114
113
  return storedConfig.colorMap;
115
114
  }
116
- function meshPolyhedraPolyhedronAttributeNoDataColor(meshId: MeshId): RGBAColor {
115
+ function meshPolyhedraPolyhedronAttributeNoDataColor(meshId: MeshId): ColorRGBA {
117
116
  const name = meshPolyhedraPolyhedronAttributeName(meshId);
118
117
  const item = meshPolyhedraPolyhedronAttributeItem(meshId);
119
118
  const storedConfig = meshPolyhedraPolyhedronAttributeStoredConfig(meshId, name, item);
@@ -1,17 +1,17 @@
1
+ import type { AttributeColorMap, AttributeTimeStep } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeItem,
4
4
  AttributeName,
5
5
  AttributeRangeMaximum,
6
6
  AttributeRangeMinimum,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
9
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
7
+ ColorRGBA,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { MeshId } from "@ogw_front/types/identifiers";
11
11
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
12
- import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
13
12
  // Third party imports
14
13
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
14
+ import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
15
15
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
16
16
 
17
17
  // Local imports
@@ -167,7 +167,7 @@ function useMeshPolyhedraVertexAttributeStyle(): UseMeshPolyhedraVertexAttribute
167
167
  }
168
168
  async function setMeshPolyhedraVertexAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshPolyhedraVertexAttributeName(meshId);
173
173
  const item = meshPolyhedraVertexAttributeItem(meshId);