@geode/opengeodeweb-front 10.44.0 → 10.44.1-rc.1

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 (218) hide show
  1. package/app/components/ClippingPlanes.vue +7 -5
  2. package/app/components/CrsSelector.vue +2 -1
  3. package/app/components/ExtensionSelector.vue +8 -7
  4. package/app/components/FactorFilterPanel.vue +4 -4
  5. package/app/components/MissingFilesSelector.vue +2 -1
  6. package/app/components/ObjectSelector.vue +4 -3
  7. package/app/components/ThresholdCard.vue +6 -5
  8. package/app/components/ThresholdFilter.vue +11 -10
  9. package/app/components/TimeSeriesTargetSelector.vue +10 -7
  10. package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -10
  11. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +72 -63
  12. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +12 -10
  13. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +76 -71
  14. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +8 -6
  15. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +72 -63
  16. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +12 -10
  17. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +54 -45
  18. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +76 -73
  19. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +8 -6
  20. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +72 -67
  21. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +8 -6
  22. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +29 -21
  23. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +8 -6
  24. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +8 -6
  25. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +15 -7
  26. package/app/components/Viewer/Generic/Model/CornersOptions.vue +2 -1
  27. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +13 -6
  28. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +19 -11
  29. package/app/components/Viewer/Generic/Model/LinesOptions.vue +2 -1
  30. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +17 -10
  31. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +3 -2
  32. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +2 -1
  33. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -2
  34. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +29 -21
  35. package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +2 -2
  36. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +2 -3
  37. package/app/components/Viewer/Options/AttributeSelector.vue +11 -7
  38. package/app/components/Viewer/Options/ColoringTypeSelector.vue +10 -13
  39. package/app/components/Viewer/Options/TextureItem.vue +5 -4
  40. package/app/components/Viewer/Options/TexturesSelector.vue +5 -8
  41. package/app/components/Viewer/Options/TimeStepSlider.vue +3 -1
  42. package/app/components/Viewer/OverlappingObjectsPicker.vue +6 -13
  43. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +40 -38
  44. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +69 -65
  45. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +8 -6
  46. package/app/components/Viewer/Surface/PolygonsColoring.vue +73 -71
  47. package/app/components/Viewer/Surface/PolygonsOptions.vue +8 -6
  48. package/app/composables/attribute_coloring_style.ts +17 -12
  49. package/app/composables/attribute_selector.ts +9 -15
  50. package/app/composables/batch_style.ts +25 -16
  51. package/app/composables/batch_style_model.ts +6 -5
  52. package/app/composables/clipping_planes_widget.ts +2 -5
  53. package/app/composables/clipping_slices.ts +2 -1
  54. package/app/composables/hover_highlight.ts +17 -16
  55. package/app/composables/live_data_item.ts +3 -2
  56. package/app/composables/model_attribute_style.ts +2 -1
  57. package/app/composables/model_menu_context.ts +3 -4
  58. package/app/composables/model_tree.ts +3 -2
  59. package/app/composables/project_manager_helpers/types.ts +10 -4
  60. package/app/composables/tree_filter.ts +3 -3
  61. package/app/composables/tree_keyboard_nav.ts +1 -6
  62. package/app/composables/tree_scroll.ts +2 -0
  63. package/app/composables/use_overlapping_picker.ts +9 -9
  64. package/app/stores/basemap_helpers/georeferenced.ts +1 -1
  65. package/app/stores/basemap_helpers/viewer.ts +2 -1
  66. package/app/stores/crs.ts +6 -5
  67. package/app/stores/data.ts +84 -69
  68. package/app/stores/data_helpers/collections.ts +13 -21
  69. package/app/stores/data_helpers/mesh.ts +19 -24
  70. package/app/stores/data_helpers/relations.ts +12 -12
  71. package/app/stores/data_style.ts +26 -20
  72. package/app/stores/menu.ts +17 -11
  73. package/app/stores/treeview.ts +28 -27
  74. package/app/types/attribute.ts +37 -0
  75. package/app/types/identifiers.ts +72 -0
  76. package/app/types/style.ts +13 -0
  77. package/app/types/texture.ts +6 -0
  78. package/app/types/tree.ts +17 -0
  79. package/app/utils/attribute_range.ts +2 -1
  80. package/app/utils/attributes.ts +13 -4
  81. package/app/utils/basemap_tree.ts +3 -5
  82. package/app/utils/clipping_planes.ts +6 -4
  83. package/app/utils/clipping_planes_scene.ts +4 -3
  84. package/app/utils/crs.ts +4 -1
  85. package/app/utils/default_styles/constants.ts +8 -1
  86. package/app/utils/default_styles/mesh_components.ts +21 -25
  87. package/app/utils/default_styles/meshes.ts +7 -22
  88. package/app/utils/default_styles/model_components.ts +22 -26
  89. package/app/utils/default_styles/models.ts +11 -13
  90. package/app/utils/import_workflow.ts +37 -29
  91. package/app/utils/legacy_data_id.ts +16 -0
  92. package/app/utils/slice.ts +7 -2
  93. package/app/utils/threshold.ts +1 -8
  94. package/app/utils/threshold_sources.ts +8 -5
  95. package/app/utils/treeview.ts +3 -2
  96. package/internal/database/tables/data.ts +1 -1
  97. package/internal/database/tables/data_style.ts +1 -1
  98. package/internal/database/tables/model_components.ts +1 -1
  99. package/internal/database/tables/model_components_relation.ts +1 -1
  100. package/internal/stores/data_style/attribute_default.ts +14 -0
  101. package/internal/stores/data_style/attribute_types.ts +59 -0
  102. package/internal/stores/data_style/attribute_valid.ts +16 -0
  103. package/internal/stores/data_style/mesh/base_style.ts +17 -15
  104. package/internal/stores/data_style/mesh/cells/cell.ts +64 -49
  105. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +42 -66
  106. package/internal/stores/data_style/mesh/cells/cell_config.ts +59 -53
  107. package/internal/stores/data_style/mesh/cells/color.ts +8 -7
  108. package/internal/stores/data_style/mesh/cells/common.ts +16 -15
  109. package/internal/stores/data_style/mesh/cells/index.ts +49 -47
  110. package/internal/stores/data_style/mesh/cells/opacity.ts +12 -10
  111. package/internal/stores/data_style/mesh/cells/textures.ts +8 -7
  112. package/internal/stores/data_style/mesh/cells/vertex.ts +66 -50
  113. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +37 -67
  114. package/internal/stores/data_style/mesh/cells/vertex_config.ts +62 -53
  115. package/internal/stores/data_style/mesh/cells/visibility.ts +11 -7
  116. package/internal/stores/data_style/mesh/edges/color.ts +8 -7
  117. package/internal/stores/data_style/mesh/edges/common.ts +13 -12
  118. package/internal/stores/data_style/mesh/edges/edge.ts +64 -49
  119. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +42 -66
  120. package/internal/stores/data_style/mesh/edges/edge_config.ts +59 -53
  121. package/internal/stores/data_style/mesh/edges/index.ts +49 -47
  122. package/internal/stores/data_style/mesh/edges/opacity.ts +12 -10
  123. package/internal/stores/data_style/mesh/edges/vertex.ts +66 -50
  124. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +37 -67
  125. package/internal/stores/data_style/mesh/edges/vertex_config.ts +62 -53
  126. package/internal/stores/data_style/mesh/edges/visibility.ts +11 -7
  127. package/internal/stores/data_style/mesh/edges/width.ts +9 -7
  128. package/internal/stores/data_style/mesh/index.ts +27 -24
  129. package/internal/stores/data_style/mesh/points/color.ts +8 -7
  130. package/internal/stores/data_style/mesh/points/common.ts +16 -14
  131. package/internal/stores/data_style/mesh/points/index.ts +39 -37
  132. package/internal/stores/data_style/mesh/points/opacity.ts +12 -10
  133. package/internal/stores/data_style/mesh/points/size.ts +9 -7
  134. package/internal/stores/data_style/mesh/points/vertex.ts +66 -50
  135. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +37 -67
  136. package/internal/stores/data_style/mesh/points/vertex_config.ts +62 -53
  137. package/internal/stores/data_style/mesh/points/visibility.ts +8 -6
  138. package/internal/stores/data_style/mesh/polygons/color.ts +8 -7
  139. package/internal/stores/data_style/mesh/polygons/common.ts +19 -15
  140. package/internal/stores/data_style/mesh/polygons/index.ts +49 -50
  141. package/internal/stores/data_style/mesh/polygons/opacity.ts +12 -10
  142. package/internal/stores/data_style/mesh/polygons/polygon.ts +66 -50
  143. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +37 -67
  144. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +65 -53
  145. package/internal/stores/data_style/mesh/polygons/textures.ts +8 -7
  146. package/internal/stores/data_style/mesh/polygons/vertex.ts +66 -50
  147. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +37 -67
  148. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +65 -53
  149. package/internal/stores/data_style/mesh/polygons/visibility.ts +12 -7
  150. package/internal/stores/data_style/mesh/polyhedra/color.ts +13 -9
  151. package/internal/stores/data_style/mesh/polyhedra/common.ts +13 -12
  152. package/internal/stores/data_style/mesh/polyhedra/index.ts +51 -51
  153. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +12 -10
  154. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +59 -53
  155. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +46 -69
  156. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +65 -55
  157. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +66 -50
  158. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +37 -67
  159. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +65 -53
  160. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +12 -7
  161. package/internal/stores/data_style/model/blocks/apply_coloring.ts +11 -12
  162. package/internal/stores/data_style/model/blocks/color.ts +25 -26
  163. package/internal/stores/data_style/model/blocks/coloring_groups.ts +5 -9
  164. package/internal/stores/data_style/model/blocks/common.ts +26 -22
  165. package/internal/stores/data_style/model/blocks/index.ts +8 -7
  166. package/internal/stores/data_style/model/blocks/polyhedron.ts +114 -135
  167. package/internal/stores/data_style/model/blocks/vertex.ts +110 -132
  168. package/internal/stores/data_style/model/blocks/visibility.ts +11 -9
  169. package/internal/stores/data_style/model/color.ts +55 -41
  170. package/internal/stores/data_style/model/common.ts +16 -14
  171. package/internal/stores/data_style/model/component_style.ts +0 -16
  172. package/internal/stores/data_style/model/corners/color.ts +21 -19
  173. package/internal/stores/data_style/model/corners/common.ts +26 -22
  174. package/internal/stores/data_style/model/corners/index.ts +21 -24
  175. package/internal/stores/data_style/model/corners/vertex.ts +103 -122
  176. package/internal/stores/data_style/model/corners/visibility.ts +11 -9
  177. package/internal/stores/data_style/model/edges/common.ts +7 -6
  178. package/internal/stores/data_style/model/edges/component.ts +63 -55
  179. package/internal/stores/data_style/model/edges/visibility.ts +24 -16
  180. package/internal/stores/data_style/model/edges/width.ts +10 -8
  181. package/internal/stores/data_style/model/index.ts +7 -6
  182. package/internal/stores/data_style/model/lines/apply_coloring.ts +11 -9
  183. package/internal/stores/data_style/model/lines/color.ts +25 -23
  184. package/internal/stores/data_style/model/lines/coloring_groups.ts +5 -9
  185. package/internal/stores/data_style/model/lines/common.ts +29 -21
  186. package/internal/stores/data_style/model/lines/edge.ts +109 -128
  187. package/internal/stores/data_style/model/lines/index.ts +8 -7
  188. package/internal/stores/data_style/model/lines/vertex.ts +109 -128
  189. package/internal/stores/data_style/model/lines/visibility.ts +11 -9
  190. package/internal/stores/data_style/model/points/common.ts +7 -6
  191. package/internal/stores/data_style/model/points/component.ts +62 -54
  192. package/internal/stores/data_style/model/points/index.ts +12 -7
  193. package/internal/stores/data_style/model/points/size.ts +10 -8
  194. package/internal/stores/data_style/model/points/visibility.ts +13 -8
  195. package/internal/stores/data_style/model/selection.ts +6 -11
  196. package/internal/stores/data_style/model/surfaces/apply_coloring.ts +11 -15
  197. package/internal/stores/data_style/model/surfaces/color.ts +31 -23
  198. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +5 -9
  199. package/internal/stores/data_style/model/surfaces/common.ts +26 -22
  200. package/internal/stores/data_style/model/surfaces/index.ts +8 -7
  201. package/internal/stores/data_style/model/surfaces/polygon.ts +113 -138
  202. package/internal/stores/data_style/model/surfaces/vertex.ts +117 -133
  203. package/internal/stores/data_style/model/surfaces/visibility.ts +11 -9
  204. package/internal/stores/data_style/model/visibility.ts +18 -16
  205. package/internal/stores/data_style/model/visibility_dispatch.ts +4 -4
  206. package/internal/stores/data_style/state.ts +7 -6
  207. package/internal/stores/data_style/state_shared.ts +11 -10
  208. package/internal/stores/data_style/time_step.ts +21 -15
  209. package/internal/stores/data_style/types.ts +4 -3
  210. package/internal/stores/hybrid_viewer/camera.ts +11 -6
  211. package/internal/stores/hybrid_viewer/filters.ts +16 -14
  212. package/internal/stores/hybrid_viewer/highlight.ts +6 -5
  213. package/internal/stores/hybrid_viewer/scene.ts +20 -18
  214. package/internal/stores/hybrid_viewer/vtk_types.ts +2 -2
  215. package/internal/utils/api_fetch.ts +1 -1
  216. package/internal/utils/upload_file.ts +1 -7
  217. package/package.json +4 -4
  218. package/shared/utils/fetch_raw.ts +7 -8
@@ -1,14 +1,22 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ AttributeRange,
6
+ AttributeTimeStep,
7
+ } from "@ogw_front/types/attribute";
8
+ import type { CornerId } from "@ogw_front/types/identifiers";
2
9
  import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
3
10
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
4
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
+ import type { Visibility } from "@ogw_front/types/style";
5
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
6
14
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
7
15
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
8
16
 
9
17
  interface Props {
10
18
  modelId: string;
11
- cornerId?: string;
19
+ cornerId?: CornerId;
12
20
  activeTab?: string;
13
21
  }
14
22
 
@@ -19,7 +27,7 @@ const hybridViewerStore = useHybridViewerStore();
19
27
 
20
28
  const cornerComponentIds = computed<string[]>(() => (cornerId !== undefined && [cornerId]) || []);
21
29
 
22
- const cornerVisibility = computed<boolean | undefined>({
30
+ const cornerVisibility = computed<Visibility | undefined>({
23
31
  get: () => dataStyleStore.modelCornerVisibility(modelId, cornerId) as boolean | undefined,
24
32
  set: async (newValue) => {
25
33
  if (newValue === undefined || cornerId === undefined) {
@@ -53,7 +61,7 @@ const cornerActiveColoring = computed<string | undefined>({
53
61
  });
54
62
 
55
63
  // Individual Attributes
56
- const vertexAttributeName = computed<string | undefined>({
64
+ const vertexAttributeName = computed<AttributeName | undefined>({
57
65
  get: () => dataStyleStore.modelCornersVertexAttributeName(modelId, cornerId),
58
66
  set: async (newValue) => {
59
67
  if (cornerId === undefined || newValue === undefined) {
@@ -64,7 +72,7 @@ const vertexAttributeName = computed<string | undefined>({
64
72
  },
65
73
  });
66
74
 
67
- const vertexAttributeTimeStep = computed<number | undefined>({
75
+ const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
68
76
  get: () => dataStyleStore.modelCornersVertexAttributeTimeStep(modelId, cornerId),
69
77
  set: async (newValue) => {
70
78
  if (cornerId === undefined || newValue === undefined) {
@@ -75,7 +83,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
75
83
  },
76
84
  });
77
85
 
78
- const vertexAttributeItem = computed<string | undefined>({
86
+ const vertexAttributeItem = computed<AttributeItem>({
79
87
  get: () => dataStyleStore.modelCornersVertexAttributeItem(modelId, cornerId),
80
88
  set: async (newValue) => {
81
89
  if (cornerId === undefined) {
@@ -86,7 +94,7 @@ const vertexAttributeItem = computed<string | undefined>({
86
94
  },
87
95
  });
88
96
 
89
- const vertexAttributeRange = computed<[number, number] | undefined>({
97
+ const vertexAttributeRange = computed<AttributeRange>({
90
98
  get: () => dataStyleStore.modelCornersVertexAttributeRange(modelId, cornerId),
91
99
  set: async (newValue) => {
92
100
  const [minimum, maximum] = newValue;
@@ -127,7 +135,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_VERTEX_COLORING;
127
135
  <div v-show="!activeTab || activeTab === 'component'" data-testid="modelComponentOptions">
128
136
  <VisibilitySwitch v-model="cornerVisibility" />
129
137
  <ViewerOptionsColoringTypeSelector
130
- :id="modelId"
138
+ :data-id="modelId"
131
139
  :componentIds="cornerComponentIds"
132
140
  v-model:coloring_style_key="cornerActiveColoring"
133
141
  v-model:color="cornerColor"
@@ -1,11 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
3
+ import type { CornerId } from "@ogw_front/types/identifiers";
3
4
  import ViewerGenericModelCornerComponentOptions from "@ogw_front/components/Viewer/Generic/Model/CornerComponentOptions.vue";
4
5
  import ViewerGenericModelCornersTypeOptions from "@ogw_front/components/Viewer/Generic/Model/CornersTypeOptions.vue";
5
6
 
6
7
  interface Props {
7
8
  modelId: string;
8
- cornerId?: string;
9
+ cornerId?: CornerId;
9
10
  targetCornerIds: string[];
10
11
  collections?: CollectionComponent[];
11
12
  activeTab?: string;
@@ -1,8 +1,15 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ AttributeRange,
6
+ AttributeTimeStep,
7
+ } from "@ogw_front/types/attribute";
2
8
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
3
9
  import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
4
10
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
5
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
+ import type { Visibility } from "@ogw_front/types/style";
6
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
7
14
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
8
15
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -29,7 +36,7 @@ const referenceCornerId = computed<string | undefined>(() =>
29
36
  );
30
37
 
31
38
  // Visibility
32
- const cornersVisibility = computed<boolean>({
39
+ const cornersVisibility = computed<Visibility>({
33
40
  get: () => {
34
41
  if (collections) {
35
42
  return targetCornerIds.every((id) => dataStyleStore.modelCornerVisibility(modelId, id));
@@ -80,7 +87,7 @@ const cornersActiveColoring = computed<string | undefined>({
80
87
  });
81
88
 
82
89
  // Group Attributes
83
- const cornersVertexAttributeName = computed<string | undefined>({
90
+ const cornersVertexAttributeName = computed<AttributeName | undefined>({
84
91
  get: () => dataStyleStore.modelCornersVertexAttributeName(modelId, referenceCornerId.value),
85
92
  set: async (newValue) => {
86
93
  if (newValue === undefined) {
@@ -91,7 +98,7 @@ const cornersVertexAttributeName = computed<string | undefined>({
91
98
  },
92
99
  });
93
100
 
94
- const cornersVertexAttributeTimeStep = computed<number | undefined>({
101
+ const cornersVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
95
102
  get: () => dataStyleStore.modelCornersVertexAttributeTimeStep(modelId, referenceCornerId.value),
96
103
  set: async (newValue) => {
97
104
  if (newValue === undefined) {
@@ -102,7 +109,7 @@ const cornersVertexAttributeTimeStep = computed<number | undefined>({
102
109
  },
103
110
  });
104
111
 
105
- const cornersVertexAttributeItem = computed<string | undefined>({
112
+ const cornersVertexAttributeItem = computed<AttributeItem>({
106
113
  get: () => dataStyleStore.modelCornersVertexAttributeItem(modelId, referenceCornerId.value),
107
114
  set: async (newValue) => {
108
115
  await dataStyleStore.setModelCornersVertexAttributeItem(modelId, targetCornerIds, newValue);
@@ -110,7 +117,7 @@ const cornersVertexAttributeItem = computed<string | undefined>({
110
117
  },
111
118
  });
112
119
 
113
- const cornersVertexAttributeRange = computed<[number, number] | undefined>({
120
+ const cornersVertexAttributeRange = computed<AttributeRange>({
114
121
  get: () => dataStyleStore.modelCornersVertexAttributeRange(modelId, referenceCornerId.value),
115
122
  set: async (newValue) => {
116
123
  const [minimum, maximum] = newValue;
@@ -155,7 +162,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_VERTEX_COLORING;
155
162
  <div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
156
163
  <VisibilitySwitch data-testid="modelCornersVisibilitySwitch" v-model="cornersVisibility" />
157
164
  <ViewerOptionsColoringTypeSelector
158
- :id="modelId"
165
+ :data-id="modelId"
159
166
  :componentIds="targetCornerIds"
160
167
  v-model:coloring_style_key="cornersActiveColoring"
161
168
  v-model:color="cornersColor"
@@ -1,14 +1,22 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ AttributeRange,
6
+ AttributeTimeStep,
7
+ } from "@ogw_front/types/attribute";
8
+ import type { LineId } from "@ogw_front/types/identifiers";
2
9
  import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
3
10
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
4
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
+ import type { Visibility } from "@ogw_front/types/style";
5
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
6
14
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
7
15
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
8
16
 
9
17
  interface Props {
10
18
  modelId: string;
11
- lineId?: string;
19
+ lineId?: LineId;
12
20
  activeTab?: string;
13
21
  }
14
22
 
@@ -19,7 +27,7 @@ const hybridViewerStore = useHybridViewerStore();
19
27
 
20
28
  const lineComponentIds = computed<string[]>(() => (lineId !== undefined && [lineId]) || []);
21
29
 
22
- const lineVisibility = computed<boolean | undefined>({
30
+ const lineVisibility = computed<Visibility | undefined>({
23
31
  get: () => dataStyleStore.modelLineVisibility(modelId, lineId) as boolean | undefined,
24
32
  set: async (newValue) => {
25
33
  if (newValue === undefined || lineId === undefined) {
@@ -53,7 +61,7 @@ const lineActiveColoring = computed<string | undefined>({
53
61
  });
54
62
 
55
63
  // Individual Attributes
56
- const vertexAttributeName = computed<string | undefined>({
64
+ const vertexAttributeName = computed<AttributeName | undefined>({
57
65
  get: () => dataStyleStore.modelLinesVertexAttributeName(modelId, lineId),
58
66
  set: async (newValue) => {
59
67
  if (lineId === undefined || newValue === undefined) {
@@ -64,7 +72,7 @@ const vertexAttributeName = computed<string | undefined>({
64
72
  },
65
73
  });
66
74
 
67
- const vertexAttributeTimeStep = computed<number | undefined>({
75
+ const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
68
76
  get: () => dataStyleStore.modelLinesVertexAttributeTimeStep(modelId, lineId),
69
77
  set: async (newValue) => {
70
78
  if (lineId === undefined || newValue === undefined) {
@@ -75,7 +83,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
75
83
  },
76
84
  });
77
85
 
78
- const vertexAttributeItem = computed<string | undefined>({
86
+ const vertexAttributeItem = computed<AttributeItem>({
79
87
  get: () => dataStyleStore.modelLinesVertexAttributeItem(modelId, lineId),
80
88
  set: async (newValue) => {
81
89
  if (lineId === undefined) {
@@ -86,7 +94,7 @@ const vertexAttributeItem = computed<string | undefined>({
86
94
  },
87
95
  });
88
96
 
89
- const vertexAttributeRange = computed<[number, number] | undefined>({
97
+ const vertexAttributeRange = computed<AttributeRange>({
90
98
  get: () => dataStyleStore.modelLinesVertexAttributeRange(modelId, lineId),
91
99
  set: async (newValue) => {
92
100
  const [minimum, maximum] = newValue;
@@ -120,7 +128,7 @@ const vertexAttributeNoDataColor = computed<RGBAColor>({
120
128
  },
121
129
  });
122
130
 
123
- const edgeAttributeName = computed<string | undefined>({
131
+ const edgeAttributeName = computed<AttributeName | undefined>({
124
132
  get: () => dataStyleStore.modelLinesEdgeAttributeName(modelId, lineId),
125
133
  set: async (newValue) => {
126
134
  if (lineId === undefined || newValue === undefined) {
@@ -131,7 +139,7 @@ const edgeAttributeName = computed<string | undefined>({
131
139
  },
132
140
  });
133
141
 
134
- const edgeAttributeTimeStep = computed<number | undefined>({
142
+ const edgeAttributeTimeStep = computed<AttributeTimeStep | undefined>({
135
143
  get: () => dataStyleStore.modelLinesEdgeAttributeTimeStep(modelId, lineId),
136
144
  set: async (newValue) => {
137
145
  if (lineId === undefined || newValue === undefined) {
@@ -142,7 +150,7 @@ const edgeAttributeTimeStep = computed<number | undefined>({
142
150
  },
143
151
  });
144
152
 
145
- const edgeAttributeItem = computed<string | undefined>({
153
+ const edgeAttributeItem = computed<AttributeItem>({
146
154
  get: () => dataStyleStore.modelLinesEdgeAttributeItem(modelId, lineId),
147
155
  set: async (newValue) => {
148
156
  if (lineId === undefined) {
@@ -153,7 +161,7 @@ const edgeAttributeItem = computed<string | undefined>({
153
161
  },
154
162
  });
155
163
 
156
- const edgeAttributeRange = computed<[number, number] | undefined>({
164
+ const edgeAttributeRange = computed<AttributeRange>({
157
165
  get: () => dataStyleStore.modelLinesEdgeAttributeRange(modelId, lineId),
158
166
  set: async (newValue) => {
159
167
  const [minimum, maximum] = newValue;
@@ -194,7 +202,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_LINE_COLORING;
194
202
  <div v-show="!activeTab || activeTab === 'component'" data-testid="modelComponentOptions">
195
203
  <VisibilitySwitch v-model="lineVisibility" />
196
204
  <ViewerOptionsColoringTypeSelector
197
- :id="modelId"
205
+ :data-id="modelId"
198
206
  :componentIds="lineComponentIds"
199
207
  v-model:coloring_style_key="lineActiveColoring"
200
208
  v-model:color="lineColor"
@@ -1,11 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
3
+ import type { LineId } from "@ogw_front/types/identifiers";
3
4
  import ViewerGenericModelLineComponentOptions from "@ogw_front/components/Viewer/Generic/Model/LineComponentOptions.vue";
4
5
  import ViewerGenericModelLinesTypeOptions from "@ogw_front/components/Viewer/Generic/Model/LinesTypeOptions.vue";
5
6
 
6
7
  interface Props {
7
8
  modelId: string;
8
- lineId?: string;
9
+ lineId?: LineId;
9
10
  targetLineIds: string[];
10
11
  collections?: CollectionComponent[];
11
12
  activeTab?: string;
@@ -1,8 +1,15 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeItem,
4
+ AttributeName,
5
+ AttributeRange,
6
+ AttributeTimeStep,
7
+ } from "@ogw_front/types/attribute";
2
8
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
3
9
  import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
4
10
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
5
11
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
+ import type { Visibility } from "@ogw_front/types/style";
6
13
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
7
14
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
8
15
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -29,7 +36,7 @@ const referenceLineId = computed<string | undefined>(() =>
29
36
  );
30
37
 
31
38
  // Visibility
32
- const linesVisibility = computed<boolean>({
39
+ const linesVisibility = computed<Visibility>({
33
40
  get: () => {
34
41
  if (collections) {
35
42
  return targetLineIds.every((id) => dataStyleStore.modelLineVisibility(modelId, id));
@@ -77,7 +84,7 @@ const linesActiveColoring = computed<string | undefined>({
77
84
  });
78
85
 
79
86
  // Group Attributes
80
- const linesVertexAttributeName = computed<string | undefined>({
87
+ const linesVertexAttributeName = computed<AttributeName | undefined>({
81
88
  get: () => dataStyleStore.modelLinesVertexAttributeName(modelId, referenceLineId.value),
82
89
  set: async (newValue) => {
83
90
  if (newValue === undefined) {
@@ -88,7 +95,7 @@ const linesVertexAttributeName = computed<string | undefined>({
88
95
  },
89
96
  });
90
97
 
91
- const linesVertexAttributeTimeStep = computed<number | undefined>({
98
+ const linesVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
92
99
  get: () => dataStyleStore.modelLinesVertexAttributeTimeStep(modelId, referenceLineId.value),
93
100
  set: async (newValue) => {
94
101
  if (newValue === undefined) {
@@ -99,7 +106,7 @@ const linesVertexAttributeTimeStep = computed<number | undefined>({
99
106
  },
100
107
  });
101
108
 
102
- const linesVertexAttributeItem = computed<string | undefined>({
109
+ const linesVertexAttributeItem = computed<AttributeItem>({
103
110
  get: () => dataStyleStore.modelLinesVertexAttributeItem(modelId, referenceLineId.value),
104
111
  set: async (newValue) => {
105
112
  await dataStyleStore.setModelLinesVertexAttributeItem(modelId, targetLineIds, newValue);
@@ -107,7 +114,7 @@ const linesVertexAttributeItem = computed<string | undefined>({
107
114
  },
108
115
  });
109
116
 
110
- const linesVertexAttributeRange = computed<[number, number] | undefined>({
117
+ const linesVertexAttributeRange = computed<AttributeRange>({
111
118
  get: () => dataStyleStore.modelLinesVertexAttributeRange(modelId, referenceLineId.value),
112
119
  set: async (newValue) => {
113
120
  const [minimum, maximum] = newValue;
@@ -140,7 +147,7 @@ const linesVertexAttributeNoDataColor = computed<RGBAColor>({
140
147
  },
141
148
  });
142
149
 
143
- const linesEdgeAttributeName = computed<string | undefined>({
150
+ const linesEdgeAttributeName = computed<AttributeName | undefined>({
144
151
  get: () => dataStyleStore.modelLinesEdgeAttributeName(modelId, referenceLineId.value),
145
152
  set: async (newValue) => {
146
153
  if (newValue === undefined) {
@@ -151,7 +158,7 @@ const linesEdgeAttributeName = computed<string | undefined>({
151
158
  },
152
159
  });
153
160
 
154
- const linesEdgeAttributeTimeStep = computed<number | undefined>({
161
+ const linesEdgeAttributeTimeStep = computed<AttributeTimeStep | undefined>({
155
162
  get: () => dataStyleStore.modelLinesEdgeAttributeTimeStep(modelId, referenceLineId.value),
156
163
  set: async (newValue) => {
157
164
  if (newValue === undefined) {
@@ -162,7 +169,7 @@ const linesEdgeAttributeTimeStep = computed<number | undefined>({
162
169
  },
163
170
  });
164
171
 
165
- const linesEdgeAttributeItem = computed<string | undefined>({
172
+ const linesEdgeAttributeItem = computed<AttributeItem>({
166
173
  get: () => dataStyleStore.modelLinesEdgeAttributeItem(modelId, referenceLineId.value),
167
174
  set: async (newValue) => {
168
175
  await dataStyleStore.setModelLinesEdgeAttributeItem(modelId, targetLineIds, newValue);
@@ -170,7 +177,7 @@ const linesEdgeAttributeItem = computed<string | undefined>({
170
177
  },
171
178
  });
172
179
 
173
- const linesEdgeAttributeRange = computed<[number, number] | undefined>({
180
+ const linesEdgeAttributeRange = computed<AttributeRange>({
174
181
  get: () => dataStyleStore.modelLinesEdgeAttributeRange(modelId, referenceLineId.value),
175
182
  set: async (newValue) => {
176
183
  const [minimum, maximum] = newValue;
@@ -205,7 +212,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_LINE_COLORING;
205
212
  <div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
206
213
  <VisibilitySwitch data-testid="modelLinesVisibilitySwitch" v-model="linesVisibility" />
207
214
  <ViewerOptionsColoringTypeSelector
208
- :id="modelId"
215
+ :data-id="modelId"
209
216
  :componentIds="targetLineIds"
210
217
  v-model:coloring_style_key="linesActiveColoring"
211
218
  v-model:color="linesColor"
@@ -3,6 +3,7 @@ import {
3
3
  type ModelMenuItemProps,
4
4
  useModelMenuContext,
5
5
  } from "@ogw_front/composables/model_menu_context";
6
+ import type { Visibility, Width } from "@ogw_front/types/style";
6
7
  import ModelCardTabs from "./ModelCardTabs.vue";
7
8
  import ViewerGenericModelComponentEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentEdgesOptions.vue";
8
9
  import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
@@ -39,7 +40,7 @@ const { applyBatchStyle } = useBatchStyle();
39
40
  const { modelId, componentId, componentType, collections, targetComponentIds } =
40
41
  useModelMenuContext(() => itemProps);
41
42
 
42
- const modelEdgesVisibility = computed<boolean | undefined>({
43
+ const modelEdgesVisibility = computed<Visibility | undefined>({
43
44
  get: () => dataStyleStore.modelEdgesVisibility(modelId.value),
44
45
  set: async (newValue) => {
45
46
  if (newValue === undefined) {
@@ -52,7 +53,7 @@ const modelEdgesVisibility = computed<boolean | undefined>({
52
53
  },
53
54
  });
54
55
 
55
- const modelEdgesWidth = computed<number | undefined>({
56
+ const modelEdgesWidth = computed<Width | undefined>({
56
57
  get: () => dataStyleStore.modelEdgesWidth(modelId.value),
57
58
  set: async (newValue) => {
58
59
  if (newValue === undefined) {
@@ -5,6 +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
9
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
9
10
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
10
11
  import { useDataStore } from "@ogw_front/stores/data";
@@ -39,7 +40,7 @@ const { applyBatchStyle } = useBatchStyle();
39
40
  const { modelId, componentId, componentType, collections, targetComponentIds } =
40
41
  useModelMenuContext(() => itemProps);
41
42
 
42
- const modelPointsVisibility = computed<boolean>({
43
+ const modelPointsVisibility = computed<Visibility>({
43
44
  get: () => dataStyleStore.modelPointsVisibility(modelId.value),
44
45
  set: async (newValue) => {
45
46
  await applyBatchStyle(modelId.value, (targetId: string) =>
@@ -10,6 +10,7 @@ import ModelCardTabs from "./ModelCardTabs.vue";
10
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";
13
14
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
14
15
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
15
16
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
@@ -37,7 +38,7 @@ function visibleComponents(targetId: string): string[] {
37
38
  return dataStyleStore.visibleMeshComponents(targetId).value || [];
38
39
  }
39
40
 
40
- const modelVisibility = computed<boolean | undefined>({
41
+ const modelVisibility = computed<Visibility | undefined>({
41
42
  get: () => dataStyleStore.modelVisibility(modelId.value),
42
43
  set: async (newValue) => {
43
44
  if (newValue === undefined) {
@@ -101,7 +102,7 @@ const modelComponentsActiveColoring = computed<string | undefined>({
101
102
 
102
103
  <div v-if="!componentType && !componentId" v-show="activeTab === 'components'">
103
104
  <ViewerOptionsColoringTypeSelector
104
- :id="modelId"
105
+ :data-id="modelId"
105
106
  v-model:coloring_style_key="modelComponentsActiveColoring"
106
107
  v-model:color="modelComponentsColor"
107
108
  :capabilities="{ color: { available: true } }"
@@ -1,8 +1,16 @@
1
1
  <script setup lang="ts">
2
2
  // oxlint-disable eslint/max-lines
3
+ import type {
4
+ AttributeItem,
5
+ AttributeName,
6
+ AttributeRange,
7
+ AttributeTimeStep,
8
+ } from "@ogw_front/types/attribute";
3
9
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
4
10
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
+ import type { SurfaceId } from "@ogw_front/types/identifiers";
5
12
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
13
+ import type { Visibility } from "@ogw_front/types/style";
6
14
  import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
7
15
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
8
16
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
@@ -10,7 +18,7 @@ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
10
18
 
11
19
  interface Props {
12
20
  modelId: string;
13
- surfaceId?: string;
21
+ surfaceId?: SurfaceId;
14
22
  targetSurfaceIds: string[];
15
23
  collections?: CollectionComponent[];
16
24
  activeTab?: string;
@@ -36,7 +44,7 @@ const surfaceComponentIds = computed<string[]>(
36
44
  );
37
45
 
38
46
  // Visibility
39
- const surfacesVisibility = computed<boolean>({
47
+ const surfacesVisibility = computed<Visibility>({
40
48
  get: () => {
41
49
  if (collections) {
42
50
  return targetSurfaceIds.every((id) => dataStyleStore.modelSurfaceVisibility(modelId, id));
@@ -49,7 +57,7 @@ const surfacesVisibility = computed<boolean>({
49
57
  },
50
58
  });
51
59
 
52
- const surfaceVisibility = computed<boolean>({
60
+ const surfaceVisibility = computed<Visibility>({
53
61
  get: () => dataStyleStore.modelSurfaceVisibility(modelId, surfaceId) as boolean | undefined,
54
62
  set: async (newValue) => {
55
63
  if (surfaceId === undefined) {
@@ -120,7 +128,7 @@ const surfaceActiveColoring = computed<string | undefined>({
120
128
  });
121
129
 
122
130
  // Group Attributes
123
- const surfacesVertexAttributeName = computed<string | undefined>({
131
+ const surfacesVertexAttributeName = computed<AttributeName | undefined>({
124
132
  get: () => dataStyleStore.modelSurfacesVertexAttributeName(modelId, referenceSurfaceId.value),
125
133
  set: async (newValue) => {
126
134
  if (newValue === undefined) {
@@ -131,7 +139,7 @@ const surfacesVertexAttributeName = computed<string | undefined>({
131
139
  },
132
140
  });
133
141
 
134
- const surfacesVertexAttributeTimeStep = computed<number | undefined>({
142
+ const surfacesVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
135
143
  get: () => dataStyleStore.modelSurfacesVertexAttributeTimeStep(modelId, referenceSurfaceId.value),
136
144
  set: async (newValue) => {
137
145
  if (newValue === undefined) {
@@ -146,7 +154,7 @@ const surfacesVertexAttributeTimeStep = computed<number | undefined>({
146
154
  },
147
155
  });
148
156
 
149
- const surfacesVertexAttributeItem = computed<string | undefined>({
157
+ const surfacesVertexAttributeItem = computed<AttributeItem>({
150
158
  get: () => dataStyleStore.modelSurfacesVertexAttributeItem(modelId, referenceSurfaceId.value),
151
159
  set: async (newValue) => {
152
160
  await dataStyleStore.setModelSurfacesVertexAttributeItem(modelId, targetSurfaceIds, newValue);
@@ -154,7 +162,7 @@ const surfacesVertexAttributeItem = computed<string | undefined>({
154
162
  },
155
163
  });
156
164
 
157
- const surfacesVertexAttributeRange = computed<[number, number] | undefined>({
165
+ const surfacesVertexAttributeRange = computed<AttributeRange>({
158
166
  get: () => dataStyleStore.modelSurfacesVertexAttributeRange(modelId, referenceSurfaceId.value),
159
167
  set: async (newValue) => {
160
168
  const [minimum, maximum] = newValue;
@@ -196,7 +204,7 @@ const surfacesVertexAttributeNoDataColor = computed<RGBAColor>({
196
204
  },
197
205
  });
198
206
 
199
- const surfacesPolygonAttributeName = computed<string | undefined>({
207
+ const surfacesPolygonAttributeName = computed<AttributeName | undefined>({
200
208
  get: () => dataStyleStore.modelSurfacesPolygonAttributeName(modelId, referenceSurfaceId.value),
201
209
  set: async (newValue) => {
202
210
  if (newValue === undefined) {
@@ -207,7 +215,7 @@ const surfacesPolygonAttributeName = computed<string | undefined>({
207
215
  },
208
216
  });
209
217
 
210
- const surfacesPolygonAttributeTimeStep = computed<number | undefined>({
218
+ const surfacesPolygonAttributeTimeStep = computed<AttributeTimeStep | undefined>({
211
219
  get: () =>
212
220
  dataStyleStore.modelSurfacesPolygonAttributeTimeStep(modelId, referenceSurfaceId.value),
213
221
  set: async (newValue) => {
@@ -223,7 +231,7 @@ const surfacesPolygonAttributeTimeStep = computed<number | undefined>({
223
231
  },
224
232
  });
225
233
 
226
- const surfacesPolygonAttributeItem = computed<string | undefined>({
234
+ const surfacesPolygonAttributeItem = computed<AttributeItem>({
227
235
  get: () => dataStyleStore.modelSurfacesPolygonAttributeItem(modelId, referenceSurfaceId.value),
228
236
  set: async (newValue) => {
229
237
  await dataStyleStore.setModelSurfacesPolygonAttributeItem(modelId, targetSurfaceIds, newValue);
@@ -231,7 +239,7 @@ const surfacesPolygonAttributeItem = computed<string | undefined>({
231
239
  },
232
240
  });
233
241
 
234
- const surfacesPolygonAttributeRange = computed<[number, number] | undefined>({
242
+ const surfacesPolygonAttributeRange = computed<AttributeRange>({
235
243
  get: () => dataStyleStore.modelSurfacesPolygonAttributeRange(modelId, referenceSurfaceId.value),
236
244
  set: async (newValue) => {
237
245
  const [minimum, maximum] = newValue;
@@ -275,7 +283,7 @@ const surfacesPolygonAttributeNoDataColor = computed<RGBAColor>({
275
283
  });
276
284
 
277
285
  // Individual Attributes
278
- const vertexAttributeName = computed<string | undefined>({
286
+ const vertexAttributeName = computed<AttributeName | undefined>({
279
287
  get: () => dataStyleStore.modelSurfacesVertexAttributeName(modelId, surfaceId),
280
288
  set: async (newValue) => {
281
289
  if (surfaceId === undefined || newValue === undefined) {
@@ -286,7 +294,7 @@ const vertexAttributeName = computed<string | undefined>({
286
294
  },
287
295
  });
288
296
 
289
- const vertexAttributeTimeStep = computed<number | undefined>({
297
+ const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
290
298
  get: () => dataStyleStore.modelSurfacesVertexAttributeTimeStep(modelId, surfaceId),
291
299
  set: async (newValue) => {
292
300
  if (surfaceId === undefined || newValue === undefined) {
@@ -297,7 +305,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
297
305
  },
298
306
  });
299
307
 
300
- const vertexAttributeItem = computed<string | undefined>({
308
+ const vertexAttributeItem = computed<AttributeItem>({
301
309
  get: () => dataStyleStore.modelSurfacesVertexAttributeItem(modelId, surfaceId),
302
310
  set: async (newValue) => {
303
311
  if (surfaceId === undefined) {
@@ -308,7 +316,7 @@ const vertexAttributeItem = computed<string | undefined>({
308
316
  },
309
317
  });
310
318
 
311
- const vertexAttributeRange = computed<[number, number] | undefined>({
319
+ const vertexAttributeRange = computed<AttributeRange>({
312
320
  get: () => dataStyleStore.modelSurfacesVertexAttributeRange(modelId, surfaceId),
313
321
  set: async (newValue) => {
314
322
  const [minimum, maximum] = newValue;
@@ -347,7 +355,7 @@ const vertexAttributeNoDataColor = computed<RGBAColor>({
347
355
  },
348
356
  });
349
357
 
350
- const polygonAttributeName = computed<string | undefined>({
358
+ const polygonAttributeName = computed<AttributeName | undefined>({
351
359
  get: () => dataStyleStore.modelSurfacesPolygonAttributeName(modelId, surfaceId),
352
360
  set: async (newValue) => {
353
361
  if (surfaceId === undefined || newValue === undefined) {
@@ -358,7 +366,7 @@ const polygonAttributeName = computed<string | undefined>({
358
366
  },
359
367
  });
360
368
 
361
- const polygonAttributeTimeStep = computed<number | undefined>({
369
+ const polygonAttributeTimeStep = computed<AttributeTimeStep | undefined>({
362
370
  get: () => dataStyleStore.modelSurfacesPolygonAttributeTimeStep(modelId, surfaceId),
363
371
  set: async (newValue) => {
364
372
  if (surfaceId === undefined || newValue === undefined) {
@@ -369,7 +377,7 @@ const polygonAttributeTimeStep = computed<number | undefined>({
369
377
  },
370
378
  });
371
379
 
372
- const polygonAttributeItem = computed<string | undefined>({
380
+ const polygonAttributeItem = computed<AttributeItem>({
373
381
  get: () => dataStyleStore.modelSurfacesPolygonAttributeItem(modelId, surfaceId),
374
382
  set: async (newValue) => {
375
383
  if (surfaceId === undefined) {
@@ -380,7 +388,7 @@ const polygonAttributeItem = computed<string | undefined>({
380
388
  },
381
389
  });
382
390
 
383
- const polygonAttributeRange = computed<[number, number] | undefined>({
391
+ const polygonAttributeRange = computed<AttributeRange>({
384
392
  get: () => dataStyleStore.modelSurfacesPolygonAttributeRange(modelId, surfaceId),
385
393
  set: async (newValue) => {
386
394
  const [minimum, maximum] = newValue;
@@ -450,7 +458,7 @@ const attributeSchemas = {
450
458
  <div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
451
459
  <VisibilitySwitch data-testid="modelSurfacesVisibilitySwitch" v-model="surfacesVisibility" />
452
460
  <ViewerOptionsColoringTypeSelector
453
- :id="modelId"
461
+ :data-id="modelId"
454
462
  :componentIds="targetSurfaceIds"
455
463
  v-model:coloring_style_key="surfacesActiveColoring"
456
464
  v-model:color="surfacesColor"
@@ -479,7 +487,7 @@ const attributeSchemas = {
479
487
  >
480
488
  <VisibilitySwitch v-model="surfaceVisibility" />
481
489
  <ViewerOptionsColoringTypeSelector
482
- :id="modelId"
490
+ :data-id="modelId"
483
491
  :componentIds="surfaceComponentIds"
484
492
  v-model:coloring_style_key="surfaceActiveColoring"
485
493
  v-model:color="surfaceColor"