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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/.build/shared/utils/response_handlers/load.js +5 -2
  2. package/app/assets/geode_objects.ts +37 -108
  3. package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
  4. package/app/components/CrsSelector.vue +6 -6
  5. package/app/components/ExtensionSelector.vue +21 -14
  6. package/app/components/MissingFilesSelector.vue +1 -1
  7. package/app/components/ObjectSelector.vue +7 -14
  8. package/app/components/ThresholdFilter.vue +1 -1
  9. package/app/components/TimeSeriesTargetSelector.vue +2 -5
  10. package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
  11. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
  12. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
  13. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
  14. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
  15. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
  16. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
  17. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
  18. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
  19. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
  20. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
  21. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
  22. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
  23. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
  24. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
  25. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
  26. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
  27. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
  28. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
  29. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
  30. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
  31. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
  32. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
  33. package/app/components/Viewer/ObjectTree/Layout.vue +2 -2
  34. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +2 -1
  35. package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
  36. package/app/components/Viewer/Options/ColorPicker.vue +3 -3
  37. package/app/components/Viewer/Options/ColoringTypeSelector.vue +8 -8
  38. package/app/components/Viewer/Options/TextureItem.vue +2 -6
  39. package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
  40. package/app/components/Viewer/OverlappingObjectsPicker.vue +3 -3
  41. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
  42. package/app/components/Viewer/Scene/BackgroundOptions.vue +2 -2
  43. package/app/components/Viewer/Scene/TextOptions.vue +2 -2
  44. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
  45. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
  46. package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
  47. package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
  48. package/app/composables/attribute_selector.ts +1 -1
  49. package/app/composables/batch_style.ts +3 -3
  50. package/app/composables/batch_style_model.ts +1 -1
  51. package/app/composables/clipping_slices.ts +2 -1
  52. package/app/composables/hover_highlight.ts +10 -7
  53. package/app/composables/live_data_item.ts +1 -1
  54. package/app/composables/model_menu_context.ts +11 -4
  55. package/app/composables/project_manager_helpers/types.ts +2 -2
  56. package/app/composables/use_overlapping_picker.ts +10 -8
  57. package/app/composables/viewer_context_menu.ts +4 -2
  58. package/app/composables/viewer_reset.ts +4 -5
  59. package/app/stores/basemap_helpers/builds.ts +2 -2
  60. package/app/stores/basemap_helpers/viewer.ts +1 -1
  61. package/app/stores/crs.ts +12 -12
  62. package/app/stores/data.ts +4 -5
  63. package/app/stores/data_helpers/mesh.ts +2 -1
  64. package/app/stores/data_style.ts +4 -3
  65. package/app/stores/menu.ts +18 -12
  66. package/app/stores/treeview.ts +5 -4
  67. package/app/types/attribute.ts +5 -21
  68. package/app/types/identifiers.ts +5 -15
  69. package/app/utils/attribute_range.ts +1 -1
  70. package/app/utils/attributes.ts +2 -1
  71. package/app/utils/clipping_planes.ts +1 -1
  72. package/app/utils/color_picker.ts +3 -3
  73. package/app/utils/crs.ts +6 -6
  74. package/app/utils/default_styles/constants.ts +17 -22
  75. package/app/utils/default_styles/index.ts +3 -3
  76. package/app/utils/default_styles/mesh_components.ts +15 -11
  77. package/app/utils/default_styles/meshes.ts +1 -1
  78. package/app/utils/default_styles/model_components.ts +14 -10
  79. package/app/utils/default_styles/models.ts +1 -1
  80. package/app/utils/import_workflow.ts +3 -1
  81. package/app/utils/legacy_data_id.ts +2 -1
  82. package/app/utils/slice.ts +2 -1
  83. package/app/utils/threshold_sources.ts +1 -1
  84. package/internal/stores/data_style/attribute_types.ts +6 -6
  85. package/internal/stores/data_style/mesh/base_style.ts +6 -7
  86. package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
  87. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
  88. package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
  89. package/internal/stores/data_style/mesh/cells/color.ts +6 -6
  90. package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
  91. package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
  92. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
  93. package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
  94. package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
  95. package/internal/stores/data_style/mesh/edges/color.ts +6 -6
  96. package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
  97. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
  98. package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
  99. package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
  100. package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
  101. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
  102. package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
  103. package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
  104. package/internal/stores/data_style/mesh/edges/width.ts +6 -6
  105. package/internal/stores/data_style/mesh/index.ts +3 -4
  106. package/internal/stores/data_style/mesh/points/color.ts +6 -6
  107. package/internal/stores/data_style/mesh/points/common.ts +1 -1
  108. package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
  109. package/internal/stores/data_style/mesh/points/size.ts +6 -6
  110. package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
  111. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
  112. package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
  113. package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
  114. package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
  115. package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
  116. package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
  117. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
  118. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
  119. package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
  120. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
  121. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
  122. package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
  123. package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
  124. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
  125. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
  126. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
  127. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
  128. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
  129. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
  130. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
  131. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
  132. package/internal/stores/data_style/model/blocks/color.ts +6 -6
  133. package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
  134. package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
  135. package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
  136. package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
  137. package/internal/stores/data_style/model/color.ts +10 -11
  138. package/internal/stores/data_style/model/common.ts +3 -4
  139. package/internal/stores/data_style/model/corners/color.ts +6 -6
  140. package/internal/stores/data_style/model/corners/index.ts +2 -2
  141. package/internal/stores/data_style/model/corners/vertex.ts +12 -9
  142. package/internal/stores/data_style/model/corners/visibility.ts +1 -1
  143. package/internal/stores/data_style/model/edges/component.ts +13 -13
  144. package/internal/stores/data_style/model/edges/visibility.ts +1 -1
  145. package/internal/stores/data_style/model/edges/width.ts +6 -6
  146. package/internal/stores/data_style/model/lines/color.ts +6 -6
  147. package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
  148. package/internal/stores/data_style/model/lines/edge.ts +12 -9
  149. package/internal/stores/data_style/model/lines/vertex.ts +12 -9
  150. package/internal/stores/data_style/model/lines/visibility.ts +1 -1
  151. package/internal/stores/data_style/model/points/component.ts +17 -13
  152. package/internal/stores/data_style/model/points/index.ts +2 -2
  153. package/internal/stores/data_style/model/points/size.ts +6 -6
  154. package/internal/stores/data_style/model/points/visibility.ts +1 -1
  155. package/internal/stores/data_style/model/surfaces/color.ts +6 -6
  156. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
  157. package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
  158. package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
  159. package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
  160. package/internal/stores/data_style/model/visibility.ts +1 -1
  161. package/internal/stores/data_style/scene.ts +5 -5
  162. package/internal/stores/data_style/time_step.ts +3 -2
  163. package/internal/stores/data_style/types.ts +3 -4
  164. package/internal/stores/hybrid_viewer/camera.ts +1 -1
  165. package/internal/stores/hybrid_viewer/filters.ts +2 -2
  166. package/internal/stores/hybrid_viewer/highlight.ts +2 -1
  167. package/internal/stores/hybrid_viewer/scene.ts +3 -3
  168. package/package.json +5 -4
  169. package/shared/utils/response_handlers/load.ts +19 -11
  170. package/app/types/style.ts +0 -13
@@ -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);
@@ -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 UseMeshPolyhedraVertexAttributeStyleReturn {
18
20
  meshPolyhedraVertexAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshPolyhedraVertexAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshPolyhedraVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshPolyhedraVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshPolyhedraVertexAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshPolyhedraVertexAttributeStyleReturn };
@@ -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 useMeshPolyhedraVertexAttributeConfig(): UseMeshPolyhedraVertexAttribut
89
88
  interface UseMeshPolyhedraVertexAttributeConfigValuesReturn {
90
89
  meshPolyhedraVertexAttributeRange: (meshId: MeshId) => AttributeRange;
91
90
  meshPolyhedraVertexAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
92
- meshPolyhedraVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
91
+ meshPolyhedraVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
93
92
  }
94
93
 
95
94
  function useMeshPolyhedraVertexAttributeConfigValues(): UseMeshPolyhedraVertexAttributeConfigValuesReturn {
@@ -110,7 +109,7 @@ function useMeshPolyhedraVertexAttributeConfigValues(): UseMeshPolyhedraVertexAt
110
109
  const storedConfig = meshPolyhedraVertexAttributeStoredConfig(meshId, name, item);
111
110
  return storedConfig.colorMap;
112
111
  }
113
- function meshPolyhedraVertexAttributeNoDataColor(meshId: MeshId): RGBAColor {
112
+ function meshPolyhedraVertexAttributeNoDataColor(meshId: MeshId): ColorRGBA {
114
113
  const name = meshPolyhedraVertexAttributeName(meshId);
115
114
  const item = meshPolyhedraVertexAttributeItem(meshId);
116
115
  const storedConfig = meshPolyhedraVertexAttributeStoredConfig(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 { useMeshPolyhedraCommonStyle } from "./common";
8
8
  import { useViewerStore } from "@ogw_front/stores/viewer";
9
9
 
@@ -1,5 +1,5 @@
1
1
  import type { BlockId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
4
4
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
5
5
  import { useDataStore } from "@ogw_front/stores/data";
@@ -13,11 +13,11 @@ const schema = viewer_schemas.opengeodeweb_viewer.model.blocks.color;
13
13
 
14
14
  export function useModelBlocksColor(): {
15
15
  modelBlockColoring: (modelId: ModelId, block_id?: BlockId) => StyleValues;
16
- modelBlockColor: (modelId: ModelId, block_id?: BlockId) => RGBAColor | undefined;
16
+ modelBlockColor: (modelId: ModelId, block_id?: BlockId) => ColorRGBA | undefined;
17
17
  setModelBlocksColor: (
18
18
  modelId: ModelId,
19
19
  blocks_ids: BlockId[],
20
- color: RGBAColor | undefined,
20
+ color: ColorRGBA | undefined,
21
21
  activeColoring?: string,
22
22
  collectionId?: string,
23
23
  ) => Promise<unknown>;
@@ -40,15 +40,15 @@ export function useModelBlocksColor(): {
40
40
  return modelBlocksCommonStyle.modelBlockStyle(modelId, block_id).coloring as StyleValues;
41
41
  }
42
42
 
43
- function modelBlockColor(modelId: ModelId, block_id?: BlockId): RGBAColor | undefined {
43
+ function modelBlockColor(modelId: ModelId, block_id?: BlockId): ColorRGBA | undefined {
44
44
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
45
- return modelBlockColoring(modelId, block_id).constant as RGBAColor | undefined;
45
+ return modelBlockColoring(modelId, block_id).constant as ColorRGBA | undefined;
46
46
  }
47
47
 
48
48
  async function setModelBlocksColor(
49
49
  modelId: ModelId,
50
50
  blocks_ids: BlockId[],
51
- color: RGBAColor | undefined,
51
+ color: ColorRGBA | undefined,
52
52
  activeColoring = "constant",
53
53
  collectionId?: string,
54
54
  ): Promise<unknown> {
@@ -1,9 +1,9 @@
1
1
  import type { BlockId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
4
4
 
5
5
  interface ColorGroup {
6
- color: RGBAColor | undefined;
6
+ color: ColorRGBA | undefined;
7
7
  blocks_ids: BlockId[];
8
8
  }
9
9
 
@@ -1,11 +1,7 @@
1
1
  // oxlint-disable eslint/max-lines
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
- AttributeRangeMaximum,
8
- AttributeRangeMinimum,
9
5
  AttributeTimeStep,
10
6
  } from "@ogw_front/types/attribute";
11
7
  import type {
@@ -14,8 +10,15 @@ import type {
14
10
  AttributeStoredConfig,
15
11
  ValidAttributeInput,
16
12
  } from "@ogw_internal/stores/data_style/attribute_types";
13
+ import type {
14
+ AttributeItem,
15
+ AttributeName,
16
+ AttributeRangeMaximum,
17
+ AttributeRangeMinimum,
18
+ ColorRGBA,
19
+ } from "@geode/opengeodeweb-viewer/schema_types";
17
20
  import type { BlockId, ModelId } from "@ogw_front/types/identifiers";
18
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
21
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
19
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
20
23
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
21
24
  // Third party imports
@@ -87,11 +90,11 @@ interface UseModelBlocksPolyhedronAttributeReturn {
87
90
  blockIds: BlockId[],
88
91
  colorMap: AttributeColorMap | undefined,
89
92
  ) => Promise<boolean>;
90
- modelBlocksPolyhedronAttributeNoDataColor: (modelId: ModelId, blockId?: BlockId) => RGBAColor;
93
+ modelBlocksPolyhedronAttributeNoDataColor: (modelId: ModelId, blockId?: BlockId) => ColorRGBA;
91
94
  setModelBlocksPolyhedronAttributeNoDataColor: (
92
95
  modelId: ModelId,
93
96
  blockIds: BlockId[],
94
- no_data_color: RGBAColor,
97
+ no_data_color: ColorRGBA,
95
98
  ) => Promise<boolean>;
96
99
  }
97
100
 
@@ -182,7 +185,7 @@ function useModelBlocksPolyhedronAttributeGetters(
182
185
  function modelBlocksPolyhedronAttributeNoDataColor(
183
186
  modelId: ModelId,
184
187
  blockId?: BlockId,
185
- ): RGBAColor {
188
+ ): ColorRGBA {
186
189
  const name = modelBlocksPolyhedronAttributeName(modelId, blockId);
187
190
  const item = modelBlocksPolyhedronAttributeItem(modelId, blockId);
188
191
  const storedConfig = modelBlocksPolyhedronAttributeStoredConfig(modelId, blockId, name, item);
@@ -416,7 +419,7 @@ function useModelBlocksPolyhedronAttribute(): UseModelBlocksPolyhedronAttributeR
416
419
  async function setModelBlocksPolyhedronAttributeNoDataColor(
417
420
  modelId: ModelId,
418
421
  blockIds: BlockId[],
419
- no_data_color: RGBAColor,
422
+ no_data_color: ColorRGBA,
420
423
  ): Promise<boolean> {
421
424
  const name = modelBlocksPolyhedronAttributeName(modelId, blockIds[0]);
422
425
  const item = modelBlocksPolyhedronAttributeItem(modelId, blockIds[0]);