@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,12 +1,17 @@
1
1
  <script setup lang="ts">
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
5
  AttributeTimeStep,
8
6
  } from "@ogw_front/types/attribute";
9
- import type { Opacity, Size, Visibility } from "@ogw_front/types/style";
7
+ import type {
8
+ AttributeItem,
9
+ AttributeName,
10
+ ColorRGBA,
11
+ Opacity,
12
+ PointSize,
13
+ Visibility,
14
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
15
  import {
11
16
  type RangesPerData,
12
17
  applyRangesPerData,
@@ -16,7 +21,6 @@ import ViewerContextMenuItem, {
16
21
  type ItemProps,
17
22
  } from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
18
23
  import type { MeshId } from "@ogw_front/types/identifiers";
19
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
20
24
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
21
25
  import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
22
26
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
@@ -46,7 +50,7 @@ const visibility = computed<Visibility>({
46
50
  hybridViewerStore.remoteRender();
47
51
  },
48
52
  });
49
- const size = computed<Size>({
53
+ const size = computed<PointSize>({
50
54
  get: () => dataStyleStore.meshPointsSize(dataId.value),
51
55
  set: async (newValue) => {
52
56
  await applyBatchStyle(dataId.value, (meshId: MeshId) =>
@@ -64,8 +68,8 @@ const coloring_style_key = computed<string>({
64
68
  hybridViewerStore.remoteRender();
65
69
  },
66
70
  });
67
- const color = computed<RGBAColor | undefined>({
68
- get: () => dataStyleStore.meshPointsColor(dataId.value) as RGBAColor | undefined,
71
+ const color = computed<ColorRGBA | undefined>({
72
+ get: () => dataStyleStore.meshPointsColor(dataId.value) as ColorRGBA | undefined,
69
73
  set: async (newValue) => {
70
74
  if (newValue === undefined) {
71
75
  return;
@@ -144,7 +148,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
144
148
  hybridViewerStore.remoteRender();
145
149
  },
146
150
  });
147
- const vertex_attribute_no_data_color = computed<RGBAColor>({
151
+ const vertex_attribute_no_data_color = computed<ColorRGBA>({
148
152
  get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(dataId.value),
149
153
  set: async (newValue) => {
150
154
  await applyBatchStyle(dataId.value, (meshId: MeshId) =>
@@ -1,19 +1,22 @@
1
1
  <script setup lang="ts">
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
5
  AttributeTimeStep,
8
6
  } from "@ogw_front/types/attribute";
9
- import type { DataId, MeshId } from "@ogw_front/types/identifiers";
7
+ import type {
8
+ AttributeItem,
9
+ AttributeName,
10
+ ColorRGBA,
11
+ Opacity,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import {
11
14
  type RangesPerData,
12
15
  applyRangesPerData,
13
16
  useBatchStyle,
14
17
  } from "@ogw_front/composables/batch_style";
15
- import type { Opacity } from "@ogw_front/types/style";
16
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
18
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
19
+ import type { MeshId } from "@ogw_front/types/identifiers";
17
20
  import type { Texture } from "@ogw_front/types/texture";
18
21
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
19
22
  import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
@@ -40,9 +43,9 @@ const coloring_style_key = computed<string>({
40
43
  hybridViewerStore.remoteRender();
41
44
  },
42
45
  });
43
- const color = useBatchStyleModel<RGBAColor>(
46
+ const color = useBatchStyleModel<ColorRGBA>(
44
47
  () => dataId,
45
- (meshId) => dataStyleStore.meshPolygonsColor(meshId) as RGBAColor | undefined,
48
+ (meshId) => dataStyleStore.meshPolygonsColor(meshId) as ColorRGBA | undefined,
46
49
  (meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
47
50
  );
48
51
  const opacity = useBatchStyleModel<Opacity>(
@@ -112,7 +115,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
112
115
  hybridViewerStore.remoteRender();
113
116
  },
114
117
  });
115
- const vertex_attribute_no_data_color = computed<RGBAColor>({
118
+ const vertex_attribute_no_data_color = computed<ColorRGBA>({
116
119
  get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
117
120
  set: async (newValue) => {
118
121
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -179,7 +182,7 @@ const polygon_attribute_color_map = computed<AttributeColorMap | undefined>({
179
182
  hybridViewerStore.remoteRender();
180
183
  },
181
184
  });
182
- const polygon_attribute_no_data_color = computed<RGBAColor>({
185
+ const polygon_attribute_no_data_color = computed<ColorRGBA>({
183
186
  get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
184
187
  set: async (newValue) => {
185
188
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
5
5
  import type { MeshId } from "@ogw_front/types/identifiers";
6
6
  import ViewerGenericMeshPolygonsColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsColoring.vue";
7
7
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
8
- import type { Visibility } from "@ogw_front/types/style";
8
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
9
9
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
10
10
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
11
11
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -1,19 +1,22 @@
1
1
  <script setup lang="ts">
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
5
  AttributeTimeStep,
8
6
  } from "@ogw_front/types/attribute";
9
- import type { DataId, MeshId } from "@ogw_front/types/identifiers";
7
+ import type {
8
+ AttributeItem,
9
+ AttributeName,
10
+ ColorRGBA,
11
+ Opacity,
12
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
13
  import {
11
14
  type RangesPerData,
12
15
  applyRangesPerData,
13
16
  useBatchStyle,
14
17
  } from "@ogw_front/composables/batch_style";
15
- import type { Opacity } from "@ogw_front/types/style";
16
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
18
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
19
+ import type { MeshId } from "@ogw_front/types/identifiers";
17
20
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
18
21
  import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
19
22
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
@@ -38,9 +41,9 @@ const coloring_style_key = computed<string>({
38
41
  hybridViewerStore.remoteRender();
39
42
  },
40
43
  });
41
- const color = useBatchStyleModel<RGBAColor>(
44
+ const color = useBatchStyleModel<ColorRGBA>(
42
45
  () => dataId,
43
- (meshId) => dataStyleStore.meshPolyhedraColor(meshId) as RGBAColor | undefined,
46
+ (meshId) => dataStyleStore.meshPolyhedraColor(meshId) as ColorRGBA | undefined,
44
47
  (meshId, value) => dataStyleStore.setMeshPolyhedraColor(meshId, value),
45
48
  );
46
49
  const opacity = useBatchStyleModel<Opacity>(
@@ -106,7 +109,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
106
109
  hybridViewerStore.remoteRender();
107
110
  },
108
111
  });
109
- const vertex_attribute_no_data_color = computed<RGBAColor>({
112
+ const vertex_attribute_no_data_color = computed<ColorRGBA>({
110
113
  get: () => dataStyleStore.meshPolyhedraVertexAttributeNoDataColor(dataId),
111
114
  set: async (newValue) => {
112
115
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -173,7 +176,7 @@ const polyhedron_attribute_color_map = computed<AttributeColorMap | undefined>({
173
176
  hybridViewerStore.remoteRender();
174
177
  },
175
178
  });
176
- const polyhedron_attribute_no_data_color = computed<RGBAColor>({
179
+ const polyhedron_attribute_no_data_color = computed<ColorRGBA>({
177
180
  get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeNoDataColor(dataId),
178
181
  set: async (newValue) => {
179
182
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
5
5
  import type { MeshId } from "@ogw_front/types/identifiers";
6
6
  import ViewerGenericMeshPolyhedraColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraColoring.vue";
7
7
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
8
- import type { Visibility } from "@ogw_front/types/style";
8
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
9
9
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
10
10
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
11
11
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -3,14 +3,13 @@
3
3
  import type {
4
4
  AttributeItem,
5
5
  AttributeName,
6
- AttributeRange,
7
- AttributeTimeStep,
8
- } from "@ogw_front/types/attribute";
6
+ ColorRGBA,
7
+ Visibility,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
9
10
  import type { BlockId } from "@ogw_front/types/identifiers";
10
11
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
11
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
12
12
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
13
- import type { Visibility } from "@ogw_front/types/style";
14
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
15
14
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
16
15
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
@@ -67,17 +66,17 @@ const blockVisibility = computed<Visibility | undefined>({
67
66
  });
68
67
 
69
68
  // Color
70
- const blocksColor = computed<RGBAColor | undefined>({
69
+ const blocksColor = computed<ColorRGBA | undefined>({
71
70
  get: () =>
72
- dataStyleStore.modelBlockColor(modelId, referenceBlockId.value) as RGBAColor | undefined,
71
+ dataStyleStore.modelBlockColor(modelId, referenceBlockId.value) as ColorRGBA | undefined,
73
72
  set: async (color) => {
74
73
  await dataStyleStore.setModelBlocksColor(modelId, targetBlockIds, color);
75
74
  hybridViewerStore.remoteRender();
76
75
  },
77
76
  });
78
77
 
79
- const blockColor = computed<RGBAColor | undefined>({
80
- get: () => dataStyleStore.modelBlockColor(modelId, blockId) as RGBAColor | undefined,
78
+ const blockColor = computed<ColorRGBA | undefined>({
79
+ get: () => dataStyleStore.modelBlockColor(modelId, blockId) as ColorRGBA | undefined,
81
80
  set: async (color) => {
82
81
  if (blockId === undefined) {
83
82
  return;
@@ -171,7 +170,7 @@ const blocksVertexAttributeRange = computed<AttributeRange>({
171
170
  },
172
171
  });
173
172
 
174
- const blocksVertexAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
173
+ const blocksVertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
175
174
  get: () => dataStyleStore.modelBlocksVertexAttributeColorMap(modelId, referenceBlockId.value),
176
175
  set: async (newValue) => {
177
176
  await dataStyleStore.setModelBlocksVertexAttributeColorMap(modelId, targetBlockIds, newValue);
@@ -179,7 +178,7 @@ const blocksVertexAttributeColorMap = computed<Map<string, RGBAColor> | undefine
179
178
  },
180
179
  });
181
180
 
182
- const blocksVertexAttributeNoDataColor = computed<RGBAColor>({
181
+ const blocksVertexAttributeNoDataColor = computed<ColorRGBA>({
183
182
  get: () => dataStyleStore.modelBlocksVertexAttributeNoDataColor(modelId, referenceBlockId.value),
184
183
  set: async (newValue) => {
185
184
  await dataStyleStore.setModelBlocksVertexAttributeNoDataColor(
@@ -258,7 +257,7 @@ const blocksPolyhedronAttributeRange = computed<AttributeRange>({
258
257
  },
259
258
  });
260
259
 
261
- const blocksPolyhedronAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
260
+ const blocksPolyhedronAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
262
261
  get: () => dataStyleStore.modelBlocksPolyhedronAttributeColorMap(modelId, referenceBlockId.value),
263
262
  set: async (newValue) => {
264
263
  const applied = await dataStyleStore.setModelBlocksPolyhedronAttributeColorMap(
@@ -272,7 +271,7 @@ const blocksPolyhedronAttributeColorMap = computed<Map<string, RGBAColor> | unde
272
271
  },
273
272
  });
274
273
 
275
- const blocksPolyhedronAttributeNoDataColor = computed<RGBAColor>({
274
+ const blocksPolyhedronAttributeNoDataColor = computed<ColorRGBA>({
276
275
  get: () =>
277
276
  dataStyleStore.modelBlocksPolyhedronAttributeNoDataColor(modelId, referenceBlockId.value),
278
277
  set: async (newValue) => {
@@ -333,7 +332,7 @@ const vertexAttributeRange = computed<AttributeRange>({
333
332
  },
334
333
  });
335
334
 
336
- const vertexAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
335
+ const vertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
337
336
  get: () => dataStyleStore.modelBlocksVertexAttributeColorMap(modelId, blockId),
338
337
  set: async (newValue) => {
339
338
  if (blockId === undefined) {
@@ -344,7 +343,7 @@ const vertexAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
344
343
  },
345
344
  });
346
345
 
347
- const vertexAttributeNoDataColor = computed<RGBAColor>({
346
+ const vertexAttributeNoDataColor = computed<ColorRGBA>({
348
347
  get: () => dataStyleStore.modelBlocksVertexAttributeNoDataColor(modelId, blockId),
349
348
  set: async (newValue) => {
350
349
  if (blockId === undefined) {
@@ -425,7 +424,7 @@ const polyhedronAttributeRange = computed<AttributeRange>({
425
424
  },
426
425
  });
427
426
 
428
- const polyhedronAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
427
+ const polyhedronAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
429
428
  get: () => dataStyleStore.modelBlocksPolyhedronAttributeColorMap(modelId, blockId),
430
429
  set: async (newValue) => {
431
430
  if (blockId === undefined) {
@@ -442,7 +441,7 @@ const polyhedronAttributeColorMap = computed<Map<string, RGBAColor> | undefined>
442
441
  },
443
442
  });
444
443
 
445
- const polyhedronAttributeNoDataColor = computed<RGBAColor>({
444
+ const polyhedronAttributeNoDataColor = computed<ColorRGBA>({
446
445
  get: () => dataStyleStore.modelBlocksPolyhedronAttributeNoDataColor(modelId, blockId),
447
446
  set: async (newValue) => {
448
447
  if (blockId === undefined) {
@@ -1,7 +1,12 @@
1
1
  <script setup lang="ts">
2
- import type { AttributeColorMap, AttributeItem, AttributeName } from "@ogw_front/types/attribute";
3
- import type { Visibility, Width } from "@ogw_front/types/style";
4
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ ColorRGBA,
6
+ EdgeWidth,
7
+ Visibility,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import type { AttributeColorMap } from "@ogw_front/types/attribute";
5
10
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
6
11
  import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
7
12
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
@@ -98,7 +103,7 @@ const visibility = computed<Visibility | undefined>({
98
103
  },
99
104
  });
100
105
 
101
- const width = computed<Width | undefined>({
106
+ const width = computed<EdgeWidth | undefined>({
102
107
  get: () => edgesStyle.value?.width(modelId, referenceComponentId),
103
108
  set: async (newValue) => {
104
109
  if (newValue === undefined) {
@@ -118,7 +123,7 @@ const activeColoring = computed<string | undefined>({
118
123
  },
119
124
  });
120
125
 
121
- const color = computed<RGBAColor | undefined>({
126
+ const color = computed<ColorRGBA | undefined>({
122
127
  get: () => edgesStyle.value?.color(modelId, referenceComponentId),
123
128
  set: async (newValue) => {
124
129
  if (newValue === undefined) {
@@ -171,7 +176,7 @@ const vertexAttributeColorMap = computed<AttributeColorMap | undefined>({
171
176
  },
172
177
  });
173
178
 
174
- const vertexAttributeNoDataColor = computed<RGBAColor | undefined>({
179
+ const vertexAttributeNoDataColor = computed<ColorRGBA | undefined>({
175
180
  get: () => edgesStyle.value?.vertexAttributeNoDataColor(modelId, referenceComponentId),
176
181
  set: async (newValue) => {
177
182
  if (newValue === undefined) {
@@ -1,8 +1,13 @@
1
1
  <script setup lang="ts">
2
- import type { AttributeColorMap, AttributeItem, AttributeName } from "@ogw_front/types/attribute";
3
- import type { Size, Visibility } from "@ogw_front/types/style";
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ ColorRGBA,
6
+ PointSize,
7
+ Visibility,
8
+ } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import type { AttributeColorMap } from "@ogw_front/types/attribute";
4
10
  import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
5
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
6
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
7
12
  import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
8
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
@@ -118,7 +123,7 @@ const visibility = computed<Visibility | undefined>({
118
123
  },
119
124
  });
120
125
 
121
- const size = computed<Size | undefined>({
126
+ const size = computed<PointSize | undefined>({
122
127
  get: () => pointsStyle.value?.size(modelId, referenceComponentId),
123
128
  set: async (newValue) => {
124
129
  if (newValue === undefined) {
@@ -138,7 +143,7 @@ const activeColoring = computed<string | undefined>({
138
143
  },
139
144
  });
140
145
 
141
- const color = computed<RGBAColor | undefined>({
146
+ const color = computed<ColorRGBA | undefined>({
142
147
  get: () => pointsStyle.value?.color(modelId, referenceComponentId),
143
148
  set: async (newValue) => {
144
149
  if (newValue === undefined) {
@@ -193,7 +198,7 @@ const vertexAttributeColorMap = computed<AttributeColorMap | undefined>({
193
198
  },
194
199
  });
195
200
 
196
- const vertexAttributeNoDataColor = computed<RGBAColor | undefined>({
201
+ const vertexAttributeNoDataColor = computed<ColorRGBA | undefined>({
197
202
  get: () => pointsStyle.value?.vertexAttributeNoDataColor(modelId, referenceComponentId),
198
203
  set: async (newValue) => {
199
204
  if (newValue === undefined) {
@@ -2,14 +2,13 @@
2
2
  import type {
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- AttributeTimeStep,
7
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ Visibility,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
8
9
  import type { CornerId } from "@ogw_front/types/identifiers";
9
10
  import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
10
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
- import type { Visibility } from "@ogw_front/types/style";
13
12
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
14
13
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
15
14
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -38,8 +37,8 @@ const cornerVisibility = computed<Visibility | undefined>({
38
37
  },
39
38
  });
40
39
 
41
- const cornerColor = computed<RGBAColor | undefined>({
42
- get: () => dataStyleStore.modelCornerColor(modelId, cornerId) as RGBAColor | undefined,
40
+ const cornerColor = computed<ColorRGBA | undefined>({
41
+ get: () => dataStyleStore.modelCornerColor(modelId, cornerId) as ColorRGBA | undefined,
43
42
  set: async (color) => {
44
43
  if (cornerId === undefined) {
45
44
  return;
@@ -117,7 +116,7 @@ const vertexAttributeColorMap = computed<ColorMap | undefined>({
117
116
  },
118
117
  });
119
118
 
120
- const vertexAttributeNoDataColor = computed<RGBAColor>({
119
+ const vertexAttributeNoDataColor = computed<ColorRGBA>({
121
120
  get: () => dataStyleStore.modelCornersVertexAttributeNoDataColor(modelId, cornerId),
122
121
  set: async (newValue) => {
123
122
  if (cornerId === undefined) {
@@ -2,14 +2,13 @@
2
2
  import type {
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- AttributeTimeStep,
7
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ Visibility,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
8
9
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
9
10
  import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
10
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
- import type { Visibility } from "@ogw_front/types/style";
13
12
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
14
13
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
15
14
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -50,9 +49,9 @@ const cornersVisibility = computed<Visibility>({
50
49
  });
51
50
 
52
51
  // Color
53
- const cornersColor = computed<RGBAColor | undefined>({
52
+ const cornersColor = computed<ColorRGBA | undefined>({
54
53
  get: () =>
55
- dataStyleStore.modelCornerColor(modelId, referenceCornerId.value) as RGBAColor | undefined,
54
+ dataStyleStore.modelCornerColor(modelId, referenceCornerId.value) as ColorRGBA | undefined,
56
55
  set: async (color) => {
57
56
  await dataStyleStore.setModelCornersColor(modelId, targetCornerIds, color);
58
57
  hybridViewerStore.remoteRender();
@@ -142,7 +141,7 @@ const cornersVertexAttributeColorMap = computed<ColorMap | undefined>({
142
141
  },
143
142
  });
144
143
 
145
- const cornersVertexAttributeNoDataColor = computed<RGBAColor>({
144
+ const cornersVertexAttributeNoDataColor = computed<ColorRGBA>({
146
145
  get: () =>
147
146
  dataStyleStore.modelCornersVertexAttributeNoDataColor(modelId, referenceCornerId.value),
148
147
  set: async (newValue) => {
@@ -2,14 +2,13 @@
2
2
  import type {
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- AttributeTimeStep,
7
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ Visibility,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
8
9
  import type { LineId } from "@ogw_front/types/identifiers";
9
10
  import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
10
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
- import type { Visibility } from "@ogw_front/types/style";
13
12
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
14
13
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
15
14
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -38,8 +37,8 @@ const lineVisibility = computed<Visibility | undefined>({
38
37
  },
39
38
  });
40
39
 
41
- const lineColor = computed<RGBAColor | undefined>({
42
- get: () => dataStyleStore.modelLineColor(modelId, lineId) as RGBAColor | undefined,
40
+ const lineColor = computed<ColorRGBA | undefined>({
41
+ get: () => dataStyleStore.modelLineColor(modelId, lineId) as ColorRGBA | undefined,
43
42
  set: async (color) => {
44
43
  if (lineId === undefined) {
45
44
  return;
@@ -117,7 +116,7 @@ const vertexAttributeColorMap = computed<ColorMap | undefined>({
117
116
  },
118
117
  });
119
118
 
120
- const vertexAttributeNoDataColor = computed<RGBAColor>({
119
+ const vertexAttributeNoDataColor = computed<ColorRGBA>({
121
120
  get: () => dataStyleStore.modelLinesVertexAttributeNoDataColor(modelId, lineId),
122
121
  set: async (newValue) => {
123
122
  if (lineId === undefined) {
@@ -173,7 +172,7 @@ const edgeAttributeRange = computed<AttributeRange>({
173
172
  },
174
173
  });
175
174
 
176
- const edgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
175
+ const edgeAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
177
176
  get: () => dataStyleStore.modelLinesEdgeAttributeColorMap(modelId, lineId),
178
177
  set: async (newValue) => {
179
178
  if (lineId === undefined) {
@@ -184,7 +183,7 @@ const edgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
184
183
  },
185
184
  });
186
185
 
187
- const edgeAttributeNoDataColor = computed<RGBAColor>({
186
+ const edgeAttributeNoDataColor = computed<ColorRGBA>({
188
187
  get: () => dataStyleStore.modelLinesEdgeAttributeNoDataColor(modelId, lineId),
189
188
  set: async (newValue) => {
190
189
  if (lineId === undefined) {
@@ -2,14 +2,13 @@
2
2
  import type {
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- AttributeTimeStep,
7
- } from "@ogw_front/types/attribute";
5
+ ColorRGBA,
6
+ Visibility,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
8
9
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
9
10
  import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
10
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
- import type { Visibility } from "@ogw_front/types/style";
13
12
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
14
13
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
15
14
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -50,8 +49,8 @@ const linesVisibility = computed<Visibility>({
50
49
  });
51
50
 
52
51
  // Color
53
- const linesColor = computed<RGBAColor | undefined>({
54
- get: () => dataStyleStore.modelLineColor(modelId, referenceLineId.value) as RGBAColor | undefined,
52
+ const linesColor = computed<ColorRGBA | undefined>({
53
+ get: () => dataStyleStore.modelLineColor(modelId, referenceLineId.value) as ColorRGBA | undefined,
55
54
  set: async (color) => {
56
55
  await dataStyleStore.setModelLinesColor(modelId, targetLineIds, color);
57
56
  hybridViewerStore.remoteRender();
@@ -139,7 +138,7 @@ const linesVertexAttributeColorMap = computed<RGBAColorMap | undefined>({
139
138
  },
140
139
  });
141
140
 
142
- const linesVertexAttributeNoDataColor = computed<RGBAColor>({
141
+ const linesVertexAttributeNoDataColor = computed<ColorRGBA>({
143
142
  get: () => dataStyleStore.modelLinesVertexAttributeNoDataColor(modelId, referenceLineId.value),
144
143
  set: async (newValue) => {
145
144
  await dataStyleStore.setModelLinesVertexAttributeNoDataColor(modelId, targetLineIds, newValue);
@@ -189,7 +188,7 @@ const linesEdgeAttributeRange = computed<AttributeRange>({
189
188
  },
190
189
  });
191
190
 
192
- const linesEdgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
191
+ const linesEdgeAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
193
192
  get: () => dataStyleStore.modelLinesEdgeAttributeColorMap(modelId, referenceLineId.value),
194
193
  set: async (newValue) => {
195
194
  await dataStyleStore.setModelLinesEdgeAttributeColorMap(modelId, targetLineIds, newValue);
@@ -197,7 +196,7 @@ const linesEdgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>(
197
196
  },
198
197
  });
199
198
 
200
- const linesEdgeAttributeNoDataColor = computed<RGBAColor>({
199
+ const linesEdgeAttributeNoDataColor = computed<ColorRGBA>({
201
200
  get: () => dataStyleStore.modelLinesEdgeAttributeNoDataColor(modelId, referenceLineId.value),
202
201
  set: async (newValue) => {
203
202
  await dataStyleStore.setModelLinesEdgeAttributeNoDataColor(modelId, targetLineIds, newValue);
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
+ import type { EdgeWidth, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
2
3
  import {
3
4
  type ModelMenuItemProps,
4
5
  useModelMenuContext,
5
6
  } from "@ogw_front/composables/model_menu_context";
6
- import type { Visibility, Width } from "@ogw_front/types/style";
7
7
  import ModelCardTabs from "./ModelCardTabs.vue";
8
8
  import ViewerGenericModelComponentEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentEdgesOptions.vue";
9
9
  import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
@@ -53,7 +53,7 @@ const modelEdgesVisibility = computed<Visibility | undefined>({
53
53
  },
54
54
  });
55
55
 
56
- const modelEdgesWidth = computed<Width | undefined>({
56
+ const modelEdgesWidth = computed<EdgeWidth | undefined>({
57
57
  get: () => dataStyleStore.modelEdgesWidth(modelId.value),
58
58
  set: async (newValue) => {
59
59
  if (newValue === undefined) {
@@ -5,7 +5,7 @@ import {
5
5
  } from "@ogw_front/composables/model_menu_context";
6
6
  import ModelCardTabs from "./ModelCardTabs.vue";
7
7
  import ViewerGenericModelComponentPointsOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentPointsOptions.vue";
8
- import type { Visibility } from "@ogw_front/types/style";
8
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
9
9
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
10
10
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
11
11
  import { useDataStore } from "@ogw_front/stores/data";
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import type { ColorRGBA, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
2
3
  import {
3
4
  type ModelMenuItemProps,
4
5
  useModelMenuContext,
@@ -7,10 +8,8 @@ import BlocksOptions from "./BlocksOptions.vue";
7
8
  import CornersOptions from "./CornersOptions.vue";
8
9
  import LinesOptions from "./LinesOptions.vue";
9
10
  import ModelCardTabs from "./ModelCardTabs.vue";
10
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
11
  import SurfacesOptions from "./SurfacesOptions.vue";
12
12
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
13
- import type { Visibility } from "@ogw_front/types/style";
14
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
15
14
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
16
15
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
@@ -51,8 +50,8 @@ const modelVisibility = computed<Visibility | undefined>({
51
50
  },
52
51
  });
53
52
 
54
- const modelComponentsColor = computed<RGBAColor | undefined>({
55
- get: () => dataStyleStore.getModelColor(modelId.value) as RGBAColor | undefined,
53
+ const modelComponentsColor = computed<ColorRGBA | undefined>({
54
+ get: () => dataStyleStore.getModelColor(modelId.value) as ColorRGBA | undefined,
56
55
  set: async (color) => {
57
56
  await applyBatchStyle(modelId.value, async (targetId: string) => {
58
57
  await dataStyleStore.mutateStyle(targetId, {