@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,9 +1,4 @@
1
- interface RGBAColor {
2
- red: number;
3
- green: number;
4
- blue: number;
5
- alpha: number;
6
- }
1
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
7
2
 
8
3
  interface AttributeConfig {
9
4
  name: string | undefined;
@@ -13,7 +8,7 @@ interface AttributeConfig {
13
8
  // How a component of a data is colored: by a constant color or by the attribute of its vertices
14
9
  interface ComponentColoring {
15
10
  active: string;
16
- constant: RGBAColor;
11
+ constant: ColorRGBA;
17
12
  vertex: AttributeConfig;
18
13
  }
19
14
 
@@ -21,52 +16,52 @@ interface ComponentColoring {
21
16
  const MESH_DEFAULT_ACTIVE_COLORING = "constant";
22
17
  const POINTS_DEFAULT_VISIBILITY = true;
23
18
  const POINTS_DEFAULT_SIZE = 10;
24
- const POINTS_DEFAULT_COLOR: RGBAColor = { red: 20, green: 20, blue: 20, alpha: 1 };
19
+ const POINTS_DEFAULT_COLOR: ColorRGBA = { red: 20, green: 20, blue: 20, alpha: 1 };
25
20
  const EDGES_DEFAULT_VISIBILITY = true;
26
21
  const EDGES_DEFAULT_WIDTH = 2;
27
- const EDGES_DEFAULT_COLOR: RGBAColor = { red: 20, green: 20, blue: 20, alpha: 1 };
22
+ const EDGES_DEFAULT_COLOR: ColorRGBA = { red: 20, green: 20, blue: 20, alpha: 1 };
28
23
  const CELLS_DEFAULT_VISIBILITY = true;
29
- const CELLS_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
24
+ const CELLS_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
30
25
  const POLYGONS_DEFAULT_VISIBILITY = true;
31
- const POLYGONS_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
26
+ const POLYGONS_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
32
27
  const POLYHEDRA_DEFAULT_VISIBILITY = true;
33
- const POLYHEDRA_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
28
+ const POLYHEDRA_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
34
29
 
35
30
  // Model
36
- const MODEL_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
31
+ const MODEL_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
37
32
  const MODEL_DEFAULT_ACTIVE_COLORING = "constant";
38
33
 
39
34
  const CORNERS_DEFAULT_VISIBILITY = true;
40
- const CORNERS_DEFAULT_COLOR: RGBAColor = { red: 20, green: 20, blue: 20, alpha: 1 };
35
+ const CORNERS_DEFAULT_COLOR: ColorRGBA = { red: 20, green: 20, blue: 20, alpha: 1 };
41
36
  const CORNERS_DEFAULT_ACTIVE_COLORING = "constant";
42
37
  const LINES_DEFAULT_VISIBILITY = true;
43
- const LINES_DEFAULT_COLOR: RGBAColor = { red: 20, green: 20, blue: 20, alpha: 1 };
38
+ const LINES_DEFAULT_COLOR: ColorRGBA = { red: 20, green: 20, blue: 20, alpha: 1 };
44
39
  const LINES_DEFAULT_ACTIVE_COLORING = "constant";
45
40
  const SURFACES_DEFAULT_VISIBILITY = true;
46
- const SURFACES_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
41
+ const SURFACES_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
47
42
  const SURFACES_DEFAULT_ACTIVE_COLORING = "constant";
48
43
  const BLOCKS_DEFAULT_VISIBILITY = true;
49
- const BLOCKS_DEFAULT_COLOR: RGBAColor = { red: 255, green: 255, blue: 255, alpha: 1 };
44
+ const BLOCKS_DEFAULT_COLOR: ColorRGBA = { red: 255, green: 255, blue: 255, alpha: 1 };
50
45
  const BLOCKS_DEFAULT_ACTIVE_COLORING = "constant";
51
46
 
52
47
  const MESH_COMPONENT_TYPES = ["Corner", "Line", "Surface", "Block"];
53
48
 
54
- const DEFAULT_MODEL_COMPONENT_TYPE_COLORS: Record<string, RGBAColor> = {
49
+ const DEFAULT_MODEL_COMPONENT_TYPE_COLORS: Record<string, ColorRGBA> = {
55
50
  Corner: CORNERS_DEFAULT_COLOR,
56
51
  Line: LINES_DEFAULT_COLOR,
57
52
  Surface: SURFACES_DEFAULT_COLOR,
58
53
  Block: BLOCKS_DEFAULT_COLOR,
59
54
  };
60
55
 
61
- const DEFAULT_NO_DATA_COLOR: RGBAColor = { red: 128, green: 128, blue: 128, alpha: 1 };
56
+ const DEFAULT_NO_DATA_COLOR: ColorRGBA = { red: 128, green: 128, blue: 128, alpha: 1 };
62
57
 
63
58
  // Scene
64
- const SCENE_DEFAULT_BACKGROUND_COLOR: RGBAColor = { red: 180, green: 180, blue: 180, alpha: 1 };
65
- const SCENE_DEFAULT_TEXT_COLOR: RGBAColor = { red: 0, green: 0, blue: 0, alpha: 1 };
59
+ const SCENE_DEFAULT_BACKGROUND_COLOR: ColorRGBA = { red: 180, green: 180, blue: 180, alpha: 1 };
60
+ const SCENE_DEFAULT_TEXT_COLOR: ColorRGBA = { red: 0, green: 0, blue: 0, alpha: 1 };
66
61
  const SCENE_DEFAULT_FONT_FAMILY = "arial";
67
62
  const SCENE_DEFAULT_ORIENTATION_WIDGET = "axes";
68
63
 
69
- export type { RGBAColor, AttributeConfig, ComponentColoring };
64
+ export type { AttributeConfig, ComponentColoring };
70
65
  export {
71
66
  POINTS_DEFAULT_VISIBILITY,
72
67
  POINTS_DEFAULT_SIZE,
@@ -1,5 +1,4 @@
1
1
  import {
2
- type RGBAColor,
3
2
  SCENE_DEFAULT_BACKGROUND_COLOR,
4
3
  SCENE_DEFAULT_FONT_FAMILY,
5
4
  SCENE_DEFAULT_ORIENTATION_WIDGET,
@@ -21,6 +20,7 @@ import {
21
20
  solidDefaultStyle,
22
21
  surfaceDefaultStyle,
23
22
  } from "./meshes";
23
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
24
24
  import type { SceneStyle } from "@ogw_internal/stores/data_style/types";
25
25
 
26
26
  function default_styles(): Record<string, unknown> {
@@ -59,8 +59,8 @@ function getDefaultStyle(type: string): unknown {
59
59
  }
60
60
 
61
61
  interface SceneColors {
62
- background?: RGBAColor;
63
- text?: RGBAColor;
62
+ background?: ColorRGBA;
63
+ text?: ColorRGBA;
64
64
  }
65
65
 
66
66
  // The app's own scene colors (`ogwFront.sceneColors` in app.config.ts), set at startup by plugins/scene_colors.ts.
@@ -14,9 +14,13 @@ import {
14
14
  POLYGONS_DEFAULT_VISIBILITY,
15
15
  POLYHEDRA_DEFAULT_COLOR,
16
16
  POLYHEDRA_DEFAULT_VISIBILITY,
17
- type RGBAColor,
18
17
  } from "./constants";
19
- import type { Size, Visibility, Width } from "@ogw_front/types/style";
18
+ import type {
19
+ ColorRGBA,
20
+ EdgeWidth,
21
+ PointSize,
22
+ Visibility,
23
+ } from "@geode/opengeodeweb-viewer/schema_types";
20
24
  import type { MeshApplyTexturesParams } from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
21
25
 
22
26
  function emptyAttributeConfig(): AttributeConfig {
@@ -44,13 +48,13 @@ interface MeshPolyhedraColoring extends ComponentColoring {
44
48
  interface MeshPointsStyle {
45
49
  visibility: Visibility;
46
50
  coloring: ComponentColoring;
47
- size: Size;
51
+ size: PointSize;
48
52
  }
49
53
 
50
54
  interface MeshEdgesStyle {
51
55
  visibility: Visibility;
52
56
  coloring: MeshEdgesColoring;
53
- width: Width;
57
+ width: EdgeWidth;
54
58
  }
55
59
 
56
60
  interface MeshCellsStyle {
@@ -70,8 +74,8 @@ interface MeshPolyhedraStyle {
70
74
 
71
75
  function meshPointsDefaultStyle(
72
76
  visibility: Visibility = POINTS_DEFAULT_VISIBILITY,
73
- size: Size = POINTS_DEFAULT_SIZE,
74
- constant: RGBAColor = POINTS_DEFAULT_COLOR,
77
+ size: PointSize = POINTS_DEFAULT_SIZE,
78
+ constant: ColorRGBA = POINTS_DEFAULT_COLOR,
75
79
  ): MeshPointsStyle {
76
80
  return {
77
81
  visibility,
@@ -86,8 +90,8 @@ function meshPointsDefaultStyle(
86
90
 
87
91
  function meshEdgesDefaultStyle(
88
92
  visibility: Visibility = EDGES_DEFAULT_VISIBILITY,
89
- width: Width = EDGES_DEFAULT_WIDTH,
90
- constant: RGBAColor = EDGES_DEFAULT_COLOR,
93
+ width: EdgeWidth = EDGES_DEFAULT_WIDTH,
94
+ constant: ColorRGBA = EDGES_DEFAULT_COLOR,
91
95
  ): MeshEdgesStyle {
92
96
  return {
93
97
  visibility,
@@ -103,7 +107,7 @@ function meshEdgesDefaultStyle(
103
107
 
104
108
  function meshCellsDefaultStyle(
105
109
  visibility: Visibility = CELLS_DEFAULT_VISIBILITY,
106
- constant: RGBAColor = CELLS_DEFAULT_COLOR,
110
+ constant: ColorRGBA = CELLS_DEFAULT_COLOR,
107
111
  ): MeshCellsStyle {
108
112
  return {
109
113
  visibility,
@@ -119,7 +123,7 @@ function meshCellsDefaultStyle(
119
123
 
120
124
  function meshPolygonsDefaultStyle(
121
125
  visibility: Visibility = POLYGONS_DEFAULT_VISIBILITY,
122
- constant: RGBAColor = POLYGONS_DEFAULT_COLOR,
126
+ constant: ColorRGBA = POLYGONS_DEFAULT_COLOR,
123
127
  ): MeshPolygonsStyle {
124
128
  return {
125
129
  visibility,
@@ -135,7 +139,7 @@ function meshPolygonsDefaultStyle(
135
139
 
136
140
  function meshPolyhedraDefaultStyle(
137
141
  visibility: Visibility = POLYHEDRA_DEFAULT_VISIBILITY,
138
- constant: RGBAColor = POLYHEDRA_DEFAULT_COLOR,
142
+ constant: ColorRGBA = POLYHEDRA_DEFAULT_COLOR,
139
143
  ): MeshPolyhedraStyle {
140
144
  return {
141
145
  visibility,
@@ -10,7 +10,7 @@ import {
10
10
  meshPolygonsDefaultStyle,
11
11
  meshPolyhedraDefaultStyle,
12
12
  } from "./mesh_components";
13
- import type { Visibility } from "@ogw_front/types/style";
13
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
14
14
 
15
15
  interface PointSetStyle {
16
16
  visibility: Visibility;
@@ -14,12 +14,16 @@ import {
14
14
  LINES_DEFAULT_VISIBILITY,
15
15
  POINTS_DEFAULT_SIZE,
16
16
  POINTS_DEFAULT_VISIBILITY,
17
- type RGBAColor,
18
17
  SURFACES_DEFAULT_ACTIVE_COLORING,
19
18
  SURFACES_DEFAULT_COLOR,
20
19
  SURFACES_DEFAULT_VISIBILITY,
21
20
  } from "./constants";
22
- import type { Size, Visibility, Width } from "@ogw_front/types/style";
21
+ import type {
22
+ ColorRGBA,
23
+ EdgeWidth,
24
+ PointSize,
25
+ Visibility,
26
+ } from "@geode/opengeodeweb-viewer/schema_types";
23
27
 
24
28
  function emptyAttributeConfig(): AttributeConfig {
25
29
  return { name: undefined, storedConfigs: {} };
@@ -59,17 +63,17 @@ interface ModelBlocksStyle {
59
63
 
60
64
  interface ModelPointsStyle {
61
65
  visibility: Visibility;
62
- size: Size;
66
+ size: PointSize;
63
67
  }
64
68
 
65
69
  interface ModelEdgesStyle {
66
70
  visibility: Visibility;
67
- width: Width;
71
+ width: EdgeWidth;
68
72
  }
69
73
 
70
74
  function modelCornersDefaultStyle(
71
75
  visibility: Visibility = CORNERS_DEFAULT_VISIBILITY,
72
- constant: RGBAColor = CORNERS_DEFAULT_COLOR,
76
+ constant: ColorRGBA = CORNERS_DEFAULT_COLOR,
73
77
  ): ModelCornersStyle {
74
78
  return {
75
79
  visibility,
@@ -83,7 +87,7 @@ function modelCornersDefaultStyle(
83
87
 
84
88
  function modelLinesDefaultStyle(
85
89
  visibility: Visibility = LINES_DEFAULT_VISIBILITY,
86
- constant: RGBAColor = LINES_DEFAULT_COLOR,
90
+ constant: ColorRGBA = LINES_DEFAULT_COLOR,
87
91
  ): ModelLinesStyle {
88
92
  return {
89
93
  visibility,
@@ -98,7 +102,7 @@ function modelLinesDefaultStyle(
98
102
 
99
103
  function modelSurfacesDefaultStyle(
100
104
  visibility: Visibility = SURFACES_DEFAULT_VISIBILITY,
101
- constant: RGBAColor = SURFACES_DEFAULT_COLOR,
105
+ constant: ColorRGBA = SURFACES_DEFAULT_COLOR,
102
106
  ): ModelSurfacesStyle {
103
107
  return {
104
108
  visibility,
@@ -113,7 +117,7 @@ function modelSurfacesDefaultStyle(
113
117
 
114
118
  function modelBlocksDefaultStyle(
115
119
  visibility: Visibility = BLOCKS_DEFAULT_VISIBILITY,
116
- constant: RGBAColor = BLOCKS_DEFAULT_COLOR,
120
+ constant: ColorRGBA = BLOCKS_DEFAULT_COLOR,
117
121
  ): ModelBlocksStyle {
118
122
  return {
119
123
  visibility,
@@ -128,14 +132,14 @@ function modelBlocksDefaultStyle(
128
132
 
129
133
  function modelPointsDefaultStyle(
130
134
  visibility: Visibility = POINTS_DEFAULT_VISIBILITY,
131
- size: Size = POINTS_DEFAULT_SIZE,
135
+ size: PointSize = POINTS_DEFAULT_SIZE,
132
136
  ): ModelPointsStyle {
133
137
  return { visibility, size };
134
138
  }
135
139
 
136
140
  function modelEdgesDefaultStyle(
137
141
  visibility: Visibility = EDGES_DEFAULT_VISIBILITY,
138
- width: Width = EDGES_DEFAULT_WIDTH,
142
+ width: EdgeWidth = EDGES_DEFAULT_WIDTH,
139
143
  ): ModelEdgesStyle {
140
144
  return { visibility, width };
141
145
  }
@@ -17,7 +17,7 @@ import {
17
17
  modelPointsDefaultStyle,
18
18
  modelSurfacesDefaultStyle,
19
19
  } from "./model_components";
20
- import type { Visibility } from "@ogw_front/types/style";
20
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
21
21
 
22
22
  interface ModelWithoutBlocksStyle {
23
23
  visibility: Visibility;
@@ -4,9 +4,11 @@ import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schem
4
4
  import { consola } from "consola";
5
5
 
6
6
  // Local imports
7
- import type { DataId, GeodeObjectType, GeodeObjectTyped } from "@ogw_front/types/identifiers";
8
7
  import { type LegacyDataId, fromLegacyDataId } from "@ogw_front/utils/legacy_data_id";
9
8
  import { type NewDataItem, useDataStore } from "@ogw_front/stores/data";
9
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
10
+ import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
11
+ import type { GeodeObjectTyped } from "@ogw_front/types/identifiers";
10
12
  import { useBackStore } from "@ogw_front/stores/back";
11
13
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
12
14
  import { useFeedbackStore } from "@ogw_front/stores/feedback";
@@ -1,4 +1,5 @@
1
- import type { DataId, DataIdentified } from "@ogw_front/types/identifiers";
1
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
2
+ import type { DataIdentified } from "@ogw_front/types/identifiers";
2
3
 
3
4
  // Temporary: the back-end, the viewer and the projects saved before data_id existed still name the data id `id`
4
5
  type LegacyDataId<Row extends DataIdentified> = Omit<Row, "data_id"> & { id: DataId };
@@ -1,4 +1,5 @@
1
- import type { DataIdentified, GeodeObjectType } from "@ogw_front/types/identifiers";
1
+ import type { DataIdentified } from "@ogw_front/types/identifiers";
2
+ import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
2
3
 
3
4
  const GRID_TYPES = new Set([
4
5
  "RegularGrid2D",
@@ -4,7 +4,7 @@ import {
4
4
  MODEL_COMPONENT_KINDS,
5
5
  } from "@ogw_front/utils/attributes";
6
6
  import type { AttributeSource } from "@ogw_front/utils/threshold";
7
- import type { DataId } from "@ogw_front/types/identifiers";
7
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
8
8
  import { attributeSchemas } from "@ogw_front/composables/attribute_coloring_style";
9
9
  import type { useDataStore } from "@ogw_front/stores/data";
10
10
 
@@ -1,11 +1,11 @@
1
1
  import type {
2
- AttributeColorMap,
3
2
  AttributeItem,
4
3
  AttributeName,
5
4
  AttributeRangeMaximum,
6
5
  AttributeRangeMinimum,
7
- } from "@ogw_front/types/attribute";
8
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
6
+ ColorRGBA,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeColorMap } from "@ogw_front/types/attribute";
9
9
 
10
10
  // The same fields while the user has not chosen them yet
11
11
  type Undefinable<Fields> = { [Field in keyof Fields]: Fields[Field] | undefined };
@@ -28,7 +28,7 @@ interface AttributeColorMapped {
28
28
  // What is kept of an attribute coloring when another attribute is picked
29
29
  interface AttributeStoredConfig
30
30
  extends Undefinable<AttributeBounds>, Undefinable<AttributeColorMapped> {
31
- no_data_color: RGBAColor;
31
+ no_data_color: ColorRGBA;
32
32
  }
33
33
 
34
34
  // The input of an attribute coloring while the user has not chosen all of it yet
@@ -37,11 +37,11 @@ interface AttributeInput
37
37
  Undefinable<AttributeSelection>,
38
38
  Undefinable<AttributeBounds>,
39
39
  Undefinable<AttributeColorMapped> {
40
- no_data_color?: RGBAColor;
40
+ no_data_color?: ColorRGBA;
41
41
  }
42
42
 
43
43
  interface ValidAttributeInput extends AttributeSelection, AttributeBounds, AttributeColorMapped {
44
- no_data_color?: RGBAColor;
44
+ no_data_color?: ColorRGBA;
45
45
  }
46
46
 
47
47
  interface AttributeState extends Partial<AttributeSelection> {
@@ -1,6 +1,5 @@
1
+ import type { ColorRGBA, Visibility } 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
- import type { Visibility } from "@ogw_front/types/style";
4
3
  // Third party imports
5
4
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
6
5
 
@@ -16,8 +15,8 @@ const meshSchemas = viewer_schemas.opengeodeweb_viewer.mesh;
16
15
  interface MeshBaseStyle {
17
16
  meshVisibility: (meshId: MeshId) => Visibility | undefined;
18
17
  setMeshVisibility: (meshId: MeshId, visibility: Visibility) => Promise<unknown>;
19
- meshColor: (meshId: MeshId) => RGBAColor | undefined;
20
- setMeshColor: (meshId: MeshId, color: RGBAColor) => Promise<unknown>;
18
+ meshColor: (meshId: MeshId) => ColorRGBA | undefined;
19
+ setMeshColor: (meshId: MeshId, color: ColorRGBA) => Promise<unknown>;
21
20
  }
22
21
 
23
22
  export function useMeshBaseStyle(): MeshBaseStyle {
@@ -49,12 +48,12 @@ export function useMeshBaseStyle(): MeshBaseStyle {
49
48
  return result;
50
49
  }
51
50
 
52
- function meshColor(meshId: MeshId): RGBAColor | undefined {
51
+ function meshColor(meshId: MeshId): ColorRGBA | undefined {
53
52
  // oxlint-disable-next-line no-unsafe-type-assertion -- color shape is defined by the data style schema.
54
- return dataStyleState.getStyle(meshId).color as RGBAColor | undefined;
53
+ return dataStyleState.getStyle(meshId).color as ColorRGBA | undefined;
55
54
  }
56
55
 
57
- async function setMeshColor(meshId: MeshId, color: RGBAColor): Promise<unknown> {
56
+ async function setMeshColor(meshId: MeshId, color: ColorRGBA): Promise<unknown> {
58
57
  const schema = meshSchemas.color;
59
58
  const params = { id: meshId, color };
60
59
  const result = await viewerStore.request(
@@ -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
@@ -162,7 +162,7 @@ function useMeshCellsCellAttributeStyle(): UseMeshCellsCellAttributeStyleReturn
162
162
  }
163
163
  async function setMeshCellsCellAttributeNoDataColor(
164
164
  meshId: MeshId,
165
- no_data_color: RGBAColor,
165
+ no_data_color: ColorRGBA,
166
166
  ): Promise<unknown> {
167
167
  const name = meshCellsCellAttributeName(meshId);
168
168
  const item = meshCellsCellAttributeItem(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 UseMeshCellsCellAttributeStyleReturn {
18
20
  meshCellsCellAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshCellsCellAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshCellsCellAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshCellsCellAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshCellsCellAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshCellsCellAttributeStyleReturn };
@@ -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
@@ -83,7 +82,7 @@ function useMeshCellsCellAttributeConfig(): UseMeshCellsCellAttributeConfigRetur
83
82
  interface UseMeshCellsCellAttributeConfigValuesReturn {
84
83
  meshCellsCellAttributeRange: (meshId: MeshId) => AttributeRange;
85
84
  meshCellsCellAttributeColorMap: (meshId: MeshId) => AttributeColorMap | undefined;
86
- meshCellsCellAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
85
+ meshCellsCellAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
87
86
  }
88
87
 
89
88
  function useMeshCellsCellAttributeConfigValues(): UseMeshCellsCellAttributeConfigValuesReturn {
@@ -104,7 +103,7 @@ function useMeshCellsCellAttributeConfigValues(): UseMeshCellsCellAttributeConfi
104
103
  const storedConfig = meshCellsCellAttributeStoredConfig(meshId, name, item);
105
104
  return storedConfig.colorMap;
106
105
  }
107
- function meshCellsCellAttributeNoDataColor(meshId: MeshId): RGBAColor {
106
+ function meshCellsCellAttributeNoDataColor(meshId: MeshId): ColorRGBA {
108
107
  const name = meshCellsCellAttributeName(meshId);
109
108
  const item = meshCellsCellAttributeItem(meshId);
110
109
  const storedConfig = meshCellsCellAttributeStoredConfig(meshId, name, item);
@@ -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.cells.color;
13
13
 
14
14
  export function useMeshCellsColorStyle(): ReturnType<typeof useMeshCellsOpacityStyle> & {
15
- meshCellsColor: (meshId: MeshId) => RGBAColor | undefined;
16
- setMeshCellsColor: (meshId: MeshId, color: RGBAColor) => Promise<unknown>;
15
+ meshCellsColor: (meshId: MeshId) => ColorRGBA | undefined;
16
+ setMeshCellsColor: (meshId: MeshId, color: ColorRGBA) => Promise<unknown>;
17
17
  } {
18
18
  const viewerStore = useViewerStore();
19
19
  const meshCellsCommonStyle = useMeshCellsCommonStyle();
20
20
 
21
- function meshCellsColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshCellsColor(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 meshCellsCommonStyle.meshCellsColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshCellsCommonStyle.meshCellsColoring(meshId).constant as ColorRGBA | undefined;
24
24
  }
25
- async function setMeshCellsColor(meshId: MeshId, color: RGBAColor): Promise<unknown> {
25
+ async function setMeshCellsColor(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 useMeshCellsOpacityStyle(): {
19
18
  const viewerStore = useViewerStore();
20
19
  const meshCellsCommonStyle = useMeshCellsCommonStyle();
21
20
 
22
- function meshCellsConstantColor(meshId: MeshId): RGBAColor | undefined {
21
+ function meshCellsConstantColor(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 meshCellsCommonStyle.meshCellsColoring(meshId).constant as RGBAColor | undefined;
23
+ return meshCellsCommonStyle.meshCellsColoring(meshId).constant as ColorRGBA | undefined;
25
24
  }
26
25
  function meshCellsOpacity(meshId: MeshId): Opacity | undefined {
27
26
  return meshCellsConstantColor(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 useMeshCellsVertexAttributeStyle(): UseMeshCellsVertexAttributeStyleRet
167
167
  }
168
168
  async function setMeshCellsVertexAttributeNoDataColor(
169
169
  meshId: MeshId,
170
- no_data_color: RGBAColor,
170
+ no_data_color: ColorRGBA,
171
171
  ): Promise<unknown> {
172
172
  const name = meshCellsVertexAttributeName(meshId);
173
173
  const item = meshCellsVertexAttributeItem(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 UseMeshCellsVertexAttributeStyleReturn {
18
20
  meshCellsVertexAttributeName: (meshId: MeshId) => AttributeName | undefined;
@@ -41,10 +43,10 @@ interface UseMeshCellsVertexAttributeStyleReturn {
41
43
  meshId: MeshId,
42
44
  colorMap: AttributeColorMap | undefined,
43
45
  ) => Promise<unknown>;
44
- meshCellsVertexAttributeNoDataColor: (meshId: MeshId) => RGBAColor;
46
+ meshCellsVertexAttributeNoDataColor: (meshId: MeshId) => ColorRGBA;
45
47
  setMeshCellsVertexAttributeNoDataColor: (
46
48
  meshId: MeshId,
47
- no_data_color: RGBAColor,
49
+ no_data_color: ColorRGBA,
48
50
  ) => Promise<unknown>;
49
51
  }
50
52
  export type { UseMeshCellsVertexAttributeStyleReturn };