@geode/opengeodeweb-front 10.44.0 → 10.44.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 +1 -1
  218. package/shared/utils/fetch_raw.ts +7 -8
@@ -1,7 +1,9 @@
1
1
  <script setup lang="ts">
2
+ import type { Size, Visibility } from "@ogw_front/types/style";
2
3
  import ViewerContextMenuItem, {
3
4
  type ItemProps,
4
5
  } from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
6
+ import type { MeshId } from "@ogw_front/types/identifiers";
5
7
  import ViewerGenericMeshEdgesColoring from "@ogw_front/components/Viewer/Generic/Mesh/EdgesColoring.vue";
6
8
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
7
9
  import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
@@ -27,22 +29,22 @@ interface Props {
27
29
 
28
30
  const { itemProps, btnImage, tooltip = "Edges options", capabilities = {} } = defineProps<Props>();
29
31
 
30
- const id = toRef(() => itemProps.id);
32
+ const dataId = toRef(() => itemProps.id);
31
33
 
32
- const visibility = computed<boolean>({
33
- get: () => dataStyleStore.meshEdgesVisibility(id.value),
34
+ const visibility = computed<Visibility>({
35
+ get: () => dataStyleStore.meshEdgesVisibility(dataId.value),
34
36
  set: async (newValue) => {
35
- await applyBatchStyle(id.value, (targetId: string) =>
36
- dataStyleStore.setMeshEdgesVisibility(targetId, newValue),
37
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
38
+ dataStyleStore.setMeshEdgesVisibility(meshId, newValue),
37
39
  );
38
40
  hybridViewerStore.remoteRender();
39
41
  },
40
42
  });
41
- const size = computed<number>({
42
- get: () => dataStyleStore.meshEdgesWidth(id.value),
43
+ const size = computed<Size>({
44
+ get: () => dataStyleStore.meshEdgesWidth(dataId.value),
43
45
  set: async (newValue) => {
44
- await applyBatchStyle(id.value, (targetId: string) =>
45
- dataStyleStore.setMeshEdgesWidth(targetId, newValue),
46
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
47
+ dataStyleStore.setMeshEdgesWidth(meshId, newValue),
46
48
  );
47
49
  hybridViewerStore.remoteRender();
48
50
  },
@@ -69,7 +71,7 @@ const size = computed<number>({
69
71
  <template v-if="visibility">
70
72
  <v-divider class="my-2" />
71
73
  <ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="size" />
72
- <ViewerGenericMeshEdgesColoring :id="id" :capabilities="capabilities" />
74
+ <ViewerGenericMeshEdgesColoring :data-id="dataId" :capabilities="capabilities" />
73
75
  </template>
74
76
  </template>
75
77
  </ViewerContextMenuItem>
@@ -1,4 +1,12 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeColorMap,
4
+ AttributeItem,
5
+ AttributeName,
6
+ AttributeRange,
7
+ AttributeTimeStep,
8
+ } from "@ogw_front/types/attribute";
9
+ import type { Opacity, Size, Visibility } from "@ogw_front/types/style";
2
10
  import {
3
11
  type RangesPerData,
4
12
  applyRangesPerData,
@@ -7,6 +15,7 @@ import {
7
15
  import ViewerContextMenuItem, {
8
16
  type ItemProps,
9
17
  } from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
18
+ import type { MeshId } from "@ogw_front/types/identifiers";
10
19
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
11
20
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
12
21
  import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
@@ -26,128 +35,128 @@ interface Props {
26
35
 
27
36
  const { itemProps, btnImage, tooltip = "Points options" } = defineProps<Props>();
28
37
 
29
- const id = toRef(() => itemProps.id);
38
+ const dataId = toRef(() => itemProps.id);
30
39
 
31
- const visibility = computed<boolean>({
32
- get: () => dataStyleStore.meshPointsVisibility(id.value),
40
+ const visibility = computed<Visibility>({
41
+ get: () => dataStyleStore.meshPointsVisibility(dataId.value),
33
42
  set: async (newValue) => {
34
- await applyBatchStyle(id.value, (targetId: string) =>
35
- dataStyleStore.setMeshPointsVisibility(targetId, newValue),
43
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
44
+ dataStyleStore.setMeshPointsVisibility(meshId, newValue),
36
45
  );
37
46
  hybridViewerStore.remoteRender();
38
47
  },
39
48
  });
40
- const size = computed<number>({
41
- get: () => dataStyleStore.meshPointsSize(id.value),
49
+ const size = computed<Size>({
50
+ get: () => dataStyleStore.meshPointsSize(dataId.value),
42
51
  set: async (newValue) => {
43
- await applyBatchStyle(id.value, (targetId: string) =>
44
- dataStyleStore.setMeshPointsSize(targetId, newValue),
52
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
53
+ dataStyleStore.setMeshPointsSize(meshId, newValue),
45
54
  );
46
55
  hybridViewerStore.remoteRender();
47
56
  },
48
57
  });
49
58
  const coloring_style_key = computed<string>({
50
- get: () => dataStyleStore.meshPointsActiveColoring(id.value),
59
+ get: () => dataStyleStore.meshPointsActiveColoring(dataId.value),
51
60
  set: async (newValue) => {
52
- await applyBatchStyle(id.value, (targetId: string) =>
53
- dataStyleStore.setMeshPointsActiveColoring(targetId, newValue),
61
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
62
+ dataStyleStore.setMeshPointsActiveColoring(meshId, newValue),
54
63
  );
55
64
  hybridViewerStore.remoteRender();
56
65
  },
57
66
  });
58
67
  const color = computed<RGBAColor | undefined>({
59
- get: () => dataStyleStore.meshPointsColor(id.value) as RGBAColor | undefined,
68
+ get: () => dataStyleStore.meshPointsColor(dataId.value) as RGBAColor | undefined,
60
69
  set: async (newValue) => {
61
70
  if (newValue === undefined) {
62
71
  return;
63
72
  }
64
- await applyBatchStyle(id.value, (targetId: string) =>
65
- dataStyleStore.setMeshPointsColor(targetId, newValue),
73
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
74
+ dataStyleStore.setMeshPointsColor(meshId, newValue),
66
75
  );
67
76
  hybridViewerStore.remoteRender();
68
77
  },
69
78
  });
70
- const opacity = computed<number | undefined>({
71
- get: () => dataStyleStore.meshPointsOpacity(id.value),
79
+ const opacity = computed<Opacity | undefined>({
80
+ get: () => dataStyleStore.meshPointsOpacity(dataId.value),
72
81
  set: async (newValue) => {
73
82
  if (newValue === undefined) {
74
83
  return;
75
84
  }
76
- await applyBatchStyle(id.value, (targetId: string) =>
77
- dataStyleStore.setMeshPointsOpacity(targetId, newValue),
85
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
86
+ dataStyleStore.setMeshPointsOpacity(meshId, newValue),
78
87
  );
79
88
  hybridViewerStore.remoteRender();
80
89
  },
81
90
  });
82
- const vertex_attribute_name = computed<string | undefined>({
83
- get: () => dataStyleStore.meshPointsVertexAttributeName(id.value),
91
+ const vertex_attribute_name = computed<AttributeName | undefined>({
92
+ get: () => dataStyleStore.meshPointsVertexAttributeName(dataId.value),
84
93
  set: async (newValue) => {
85
94
  if (newValue === undefined) {
86
95
  return;
87
96
  }
88
- await applyBatchStyle(id.value, (targetId: string) =>
89
- Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeName(targetId, newValue)),
97
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
98
+ Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeName(meshId, newValue)),
90
99
  );
91
100
  hybridViewerStore.remoteRender();
92
101
  },
93
102
  });
94
103
 
95
- const vertex_attribute_time_step = computed<number | undefined>({
96
- get: () => dataStyleStore.meshPointsVertexAttributeTimeStep(id.value),
104
+ const vertex_attribute_time_step = computed<AttributeTimeStep | undefined>({
105
+ get: () => dataStyleStore.meshPointsVertexAttributeTimeStep(dataId.value),
97
106
  set: async (newValue) => {
98
107
  if (newValue === undefined) {
99
108
  return;
100
109
  }
101
- await applyBatchStyle(id.value, (targetId: string) =>
102
- Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeTimeStep(targetId, newValue)),
110
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
111
+ Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeTimeStep(meshId, newValue)),
103
112
  );
104
113
  hybridViewerStore.remoteRender();
105
114
  },
106
115
  });
107
- const vertex_attribute_item = computed<string | undefined>({
108
- get: () => dataStyleStore.meshPointsVertexAttributeItem(id.value),
116
+ const vertex_attribute_item = computed<AttributeItem>({
117
+ get: () => dataStyleStore.meshPointsVertexAttributeItem(dataId.value),
109
118
  set: async (newValue) => {
110
- await applyBatchStyle(id.value, (targetId: string) =>
111
- Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeItem(targetId, newValue)),
119
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
120
+ Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeItem(meshId, newValue)),
112
121
  );
113
122
  hybridViewerStore.remoteRender();
114
123
  },
115
124
  });
116
- const vertex_attribute_range = computed<[number, number] | undefined>({
117
- get: () => dataStyleStore.meshPointsVertexAttributeRange(id.value),
125
+ const vertex_attribute_range = computed<AttributeRange>({
126
+ get: () => dataStyleStore.meshPointsVertexAttributeRange(dataId.value),
118
127
  set: async (newValue) => {
119
128
  const [minimum, maximum] = newValue;
120
129
  if (minimum === undefined || maximum === undefined) {
121
130
  return;
122
131
  }
123
- await applyBatchStyle(id.value, (targetId: string) =>
124
- Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeRange(targetId, minimum, maximum)),
132
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
133
+ Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeRange(meshId, minimum, maximum)),
125
134
  );
126
135
  hybridViewerStore.remoteRender();
127
136
  },
128
137
  });
129
- const vertex_attribute_color_map = computed<Map<string, RGBAColor>>({
130
- get: () => dataStyleStore.meshPointsVertexAttributeColorMap(id.value),
138
+ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
139
+ get: () => dataStyleStore.meshPointsVertexAttributeColorMap(dataId.value),
131
140
  set: async (newValue) => {
132
- await applyBatchStyle(id.value, (targetId: string) =>
133
- Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeColorMap(targetId, newValue)),
141
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
142
+ Promise.resolve(dataStyleStore.setMeshPointsVertexAttributeColorMap(meshId, newValue)),
134
143
  );
135
144
  hybridViewerStore.remoteRender();
136
145
  },
137
146
  });
138
147
  const vertex_attribute_no_data_color = computed<RGBAColor>({
139
- get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(id.value),
148
+ get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(dataId.value),
140
149
  set: async (newValue) => {
141
- await applyBatchStyle(id.value, (targetId: string) =>
142
- dataStyleStore.setMeshPointsVertexAttributeNoDataColor(targetId, newValue),
150
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
151
+ dataStyleStore.setMeshPointsVertexAttributeNoDataColor(meshId, newValue),
143
152
  );
144
153
  hybridViewerStore.remoteRender();
145
154
  },
146
155
  });
147
156
 
148
157
  async function setVertexAttributeRangesPerData(ranges: RangesPerData): Promise<void> {
149
- await applyRangesPerData(ranges, (targetId, minimum, maximum) =>
150
- dataStyleStore.setMeshPointsVertexAttributeRange(targetId, minimum, maximum),
158
+ await applyRangesPerData(ranges, (meshId, minimum, maximum) =>
159
+ dataStyleStore.setMeshPointsVertexAttributeRange(meshId, minimum, maximum),
151
160
  );
152
161
  hybridViewerStore.remoteRender();
153
162
  }
@@ -174,7 +183,7 @@ async function setVertexAttributeRangesPerData(ranges: RangesPerData): Promise<v
174
183
  <v-divider class="my-2" />
175
184
  <ViewerOptionsSizeSlider data-testid="meshPointsSizeSlider" v-model="size" />
176
185
  <ViewerOptionsColoringTypeSelector
177
- :id="id"
186
+ :data-id="dataId"
178
187
  v-model:coloring_style_key="coloring_style_key"
179
188
  v-model:color="color"
180
189
  v-model:opacity="opacity"
@@ -1,201 +1,204 @@
1
1
  <script setup lang="ts">
2
+ import type {
3
+ AttributeColorMap,
4
+ AttributeItem,
5
+ AttributeName,
6
+ AttributeRange,
7
+ AttributeTimeStep,
8
+ } from "@ogw_front/types/attribute";
9
+ import type { DataId, MeshId } from "@ogw_front/types/identifiers";
2
10
  import {
3
11
  type RangesPerData,
4
12
  applyRangesPerData,
5
13
  useBatchStyle,
6
14
  } from "@ogw_front/composables/batch_style";
15
+ import type { Opacity } from "@ogw_front/types/style";
7
16
  import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
17
+ import type { Texture } from "@ogw_front/types/texture";
8
18
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
9
19
  import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
10
20
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
11
21
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
12
22
 
13
- interface Texture {
14
- id: string;
15
- texture_name: string;
16
- }
17
-
18
23
  const dataStyleStore = useDataStyleStore();
19
24
  const hybridViewerStore = useHybridViewerStore();
20
25
  const { applyBatchStyle } = useBatchStyle();
21
26
 
22
27
  interface Props {
23
- id: string;
28
+ dataId: DataId;
24
29
  capabilities: Record<string, { available?: boolean; hasColorMap?: boolean }>;
25
30
  }
26
31
 
27
- const { id, capabilities } = defineProps<Props>();
32
+ const { dataId, capabilities } = defineProps<Props>();
28
33
 
29
34
  const coloring_style_key = computed<string>({
30
- get: () => dataStyleStore.meshPolygonsActiveColoring(id),
35
+ get: () => dataStyleStore.meshPolygonsActiveColoring(dataId),
31
36
  set: async (newValue) => {
32
- await applyBatchStyle(id, (targetId: string) =>
33
- dataStyleStore.setMeshPolygonsActiveColoring(targetId, newValue),
37
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
38
+ dataStyleStore.setMeshPolygonsActiveColoring(meshId, newValue),
34
39
  );
35
40
  hybridViewerStore.remoteRender();
36
41
  },
37
42
  });
38
43
  const color = useBatchStyleModel<RGBAColor>(
39
- () => id,
40
- (targetId) => dataStyleStore.meshPolygonsColor(targetId) as RGBAColor | undefined,
41
- (targetId, value) => dataStyleStore.setMeshPolygonsColor(targetId, value),
44
+ () => dataId,
45
+ (meshId) => dataStyleStore.meshPolygonsColor(meshId) as RGBAColor | undefined,
46
+ (meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
42
47
  );
43
- const opacity = useBatchStyleModel<number>(
44
- () => id,
45
- (targetId) => dataStyleStore.meshPolygonsOpacity(targetId),
46
- (targetId, value) => dataStyleStore.setMeshPolygonsOpacity(targetId, value),
48
+ const opacity = useBatchStyleModel<Opacity>(
49
+ () => dataId,
50
+ (meshId) => dataStyleStore.meshPolygonsOpacity(meshId),
51
+ (meshId, value) => dataStyleStore.setMeshPolygonsOpacity(meshId, value),
47
52
  );
48
53
  const textures = useBatchStyleModel<Texture[]>(
49
- () => id,
50
- (targetId) => dataStyleStore.meshPolygonsTextures(targetId) as Texture[] | undefined,
51
- (targetId, value) => dataStyleStore.setMeshPolygonsTextures(targetId, value),
54
+ () => dataId,
55
+ (meshId) => dataStyleStore.meshPolygonsTextures(meshId) as Texture[] | undefined,
56
+ (meshId, value) => dataStyleStore.setMeshPolygonsTextures(meshId, value),
52
57
  );
53
58
 
54
- const vertex_attribute_name = computed<string | undefined>({
55
- get: () => dataStyleStore.meshPolygonsVertexAttributeName(id),
59
+ const vertex_attribute_name = computed<AttributeName | undefined>({
60
+ get: () => dataStyleStore.meshPolygonsVertexAttributeName(dataId),
56
61
  set: async (newValue) => {
57
62
  if (newValue === undefined) {
58
63
  return;
59
64
  }
60
- await applyBatchStyle(id, (targetId: string) =>
61
- Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeName(targetId, newValue)),
65
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
66
+ Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeName(meshId, newValue)),
62
67
  );
63
68
  hybridViewerStore.remoteRender();
64
69
  },
65
70
  });
66
71
 
67
- const vertex_attribute_time_step = computed<number | undefined>({
68
- get: () => dataStyleStore.meshPolygonsVertexAttributeTimeStep(id),
72
+ const vertex_attribute_time_step = computed<AttributeTimeStep | undefined>({
73
+ get: () => dataStyleStore.meshPolygonsVertexAttributeTimeStep(dataId),
69
74
  set: async (newValue) => {
70
75
  if (newValue === undefined) {
71
76
  return;
72
77
  }
73
- await applyBatchStyle(id, (targetId: string) =>
74
- Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeTimeStep(targetId, newValue)),
78
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
79
+ Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeTimeStep(meshId, newValue)),
75
80
  );
76
81
  hybridViewerStore.remoteRender();
77
82
  },
78
83
  });
79
- const vertex_attribute_item = computed<string | undefined>({
80
- get: () => dataStyleStore.meshPolygonsVertexAttributeItem(id),
84
+ const vertex_attribute_item = computed<AttributeItem>({
85
+ get: () => dataStyleStore.meshPolygonsVertexAttributeItem(dataId),
81
86
  set: async (newValue) => {
82
- await applyBatchStyle(id, (targetId: string) =>
83
- Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeItem(targetId, newValue)),
87
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
88
+ Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeItem(meshId, newValue)),
84
89
  );
85
90
  hybridViewerStore.remoteRender();
86
91
  },
87
92
  });
88
- const vertex_attribute_range = computed<[number, number] | undefined>({
89
- get: () => dataStyleStore.meshPolygonsVertexAttributeRange(id),
93
+ const vertex_attribute_range = computed<AttributeRange>({
94
+ get: () => dataStyleStore.meshPolygonsVertexAttributeRange(dataId),
90
95
  set: async (newValue) => {
91
96
  const [minimum, maximum] = newValue;
92
97
  if (minimum === undefined || maximum === undefined) {
93
98
  return;
94
99
  }
95
- await applyBatchStyle(id, (targetId: string) =>
96
- Promise.resolve(
97
- dataStyleStore.setMeshPolygonsVertexAttributeRange(targetId, minimum, maximum),
98
- ),
100
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
101
+ Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeRange(meshId, minimum, maximum)),
99
102
  );
100
103
  hybridViewerStore.remoteRender();
101
104
  },
102
105
  });
103
- const vertex_attribute_color_map = computed<Map<string, RGBAColor>>({
104
- get: () => dataStyleStore.meshPolygonsVertexAttributeColorMap(id),
106
+ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
107
+ get: () => dataStyleStore.meshPolygonsVertexAttributeColorMap(dataId),
105
108
  set: async (newValue) => {
106
- await applyBatchStyle(id, (targetId: string) =>
107
- Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeColorMap(targetId, newValue)),
109
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
110
+ Promise.resolve(dataStyleStore.setMeshPolygonsVertexAttributeColorMap(meshId, newValue)),
108
111
  );
109
112
  hybridViewerStore.remoteRender();
110
113
  },
111
114
  });
112
115
  const vertex_attribute_no_data_color = computed<RGBAColor>({
113
- get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(id),
116
+ get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
114
117
  set: async (newValue) => {
115
- await applyBatchStyle(id, (targetId: string) =>
116
- dataStyleStore.setMeshPolygonsVertexAttributeNoDataColor(targetId, newValue),
118
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
119
+ dataStyleStore.setMeshPolygonsVertexAttributeNoDataColor(meshId, newValue),
117
120
  );
118
121
  hybridViewerStore.remoteRender();
119
122
  },
120
123
  });
121
- const polygon_attribute_name = computed<string | undefined>({
122
- get: () => dataStyleStore.meshPolygonsPolygonAttributeName(id),
124
+ const polygon_attribute_name = computed<AttributeName | undefined>({
125
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeName(dataId),
123
126
  set: async (newValue) => {
124
127
  if (newValue === undefined) {
125
128
  return;
126
129
  }
127
- await applyBatchStyle(id, (targetId: string) =>
128
- Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeName(targetId, newValue)),
130
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
131
+ Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeName(meshId, newValue)),
129
132
  );
130
133
  hybridViewerStore.remoteRender();
131
134
  },
132
135
  });
133
136
 
134
- const polygon_attribute_time_step = computed<number | undefined>({
135
- get: () => dataStyleStore.meshPolygonsPolygonAttributeTimeStep(id),
137
+ const polygon_attribute_time_step = computed<AttributeTimeStep | undefined>({
138
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeTimeStep(dataId),
136
139
  set: async (newValue) => {
137
140
  if (newValue === undefined) {
138
141
  return;
139
142
  }
140
- await applyBatchStyle(id, (targetId: string) =>
141
- Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeTimeStep(targetId, newValue)),
143
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
144
+ Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeTimeStep(meshId, newValue)),
142
145
  );
143
146
  hybridViewerStore.remoteRender();
144
147
  },
145
148
  });
146
- const polygon_attribute_item = computed<string | undefined>({
147
- get: () => dataStyleStore.meshPolygonsPolygonAttributeItem(id),
149
+ const polygon_attribute_item = computed<AttributeItem>({
150
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeItem(dataId),
148
151
  set: async (newValue) => {
149
- await applyBatchStyle(id, (targetId: string) =>
150
- Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeItem(targetId, newValue)),
152
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
153
+ Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeItem(meshId, newValue)),
151
154
  );
152
155
  hybridViewerStore.remoteRender();
153
156
  },
154
157
  });
155
- const polygon_attribute_range = computed<[number, number] | undefined>({
156
- get: () => dataStyleStore.meshPolygonsPolygonAttributeRange(id),
158
+ const polygon_attribute_range = computed<AttributeRange>({
159
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeRange(dataId),
157
160
  set: async (newValue) => {
158
161
  const [minimum, maximum] = newValue;
159
162
  if (minimum === undefined || maximum === undefined) {
160
163
  return;
161
164
  }
162
- await applyBatchStyle(id, (targetId: string) =>
165
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
163
166
  Promise.resolve(
164
- dataStyleStore.setMeshPolygonsPolygonAttributeRange(targetId, minimum, maximum),
167
+ dataStyleStore.setMeshPolygonsPolygonAttributeRange(meshId, minimum, maximum),
165
168
  ),
166
169
  );
167
170
  hybridViewerStore.remoteRender();
168
171
  },
169
172
  });
170
- const polygon_attribute_color_map = computed<Map<string, RGBAColor>>({
171
- get: () => dataStyleStore.meshPolygonsPolygonAttributeColorMap(id),
173
+ const polygon_attribute_color_map = computed<AttributeColorMap | undefined>({
174
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeColorMap(dataId),
172
175
  set: async (newValue) => {
173
- await applyBatchStyle(id, (targetId: string) =>
174
- Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeColorMap(targetId, newValue)),
176
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
177
+ Promise.resolve(dataStyleStore.setMeshPolygonsPolygonAttributeColorMap(meshId, newValue)),
175
178
  );
176
179
  hybridViewerStore.remoteRender();
177
180
  },
178
181
  });
179
182
  const polygon_attribute_no_data_color = computed<RGBAColor>({
180
- get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(id),
183
+ get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
181
184
  set: async (newValue) => {
182
- await applyBatchStyle(id, (targetId: string) =>
183
- dataStyleStore.setMeshPolygonsPolygonAttributeNoDataColor(targetId, newValue),
185
+ await applyBatchStyle(dataId, (meshId: MeshId) =>
186
+ dataStyleStore.setMeshPolygonsPolygonAttributeNoDataColor(meshId, newValue),
184
187
  );
185
188
  hybridViewerStore.remoteRender();
186
189
  },
187
190
  });
188
191
 
189
192
  async function setVertexAttributeRangesPerData(ranges: RangesPerData): Promise<void> {
190
- await applyRangesPerData(ranges, (targetId, minimum, maximum) =>
191
- dataStyleStore.setMeshPolygonsVertexAttributeRange(targetId, minimum, maximum),
193
+ await applyRangesPerData(ranges, (meshId, minimum, maximum) =>
194
+ dataStyleStore.setMeshPolygonsVertexAttributeRange(meshId, minimum, maximum),
192
195
  );
193
196
  hybridViewerStore.remoteRender();
194
197
  }
195
198
 
196
199
  async function setPolygonAttributeRangesPerData(ranges: RangesPerData): Promise<void> {
197
- await applyRangesPerData(ranges, (targetId, minimum, maximum) =>
198
- dataStyleStore.setMeshPolygonsPolygonAttributeRange(targetId, minimum, maximum),
200
+ await applyRangesPerData(ranges, (meshId, minimum, maximum) =>
201
+ dataStyleStore.setMeshPolygonsPolygonAttributeRange(meshId, minimum, maximum),
199
202
  );
200
203
  hybridViewerStore.remoteRender();
201
204
  }
@@ -203,7 +206,7 @@ async function setPolygonAttributeRangesPerData(ranges: RangesPerData): Promise<
203
206
 
204
207
  <template>
205
208
  <ViewerOptionsColoringTypeSelector
206
- :id="id"
209
+ :data-id="dataId"
207
210
  v-model:coloring_style_key="coloring_style_key"
208
211
  v-model:color="color"
209
212
  v-model:opacity="opacity"
@@ -2,8 +2,10 @@
2
2
  import ViewerContextMenuItem, {
3
3
  type ItemProps,
4
4
  } from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
5
+ import type { MeshId } from "@ogw_front/types/identifiers";
5
6
  import ViewerGenericMeshPolygonsColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsColoring.vue";
6
7
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
8
+ import type { Visibility } from "@ogw_front/types/style";
7
9
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
8
10
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
9
11
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -31,13 +33,13 @@ const {
31
33
  capabilities = {},
32
34
  } = defineProps<Props>();
33
35
 
34
- const id = toRef(() => itemProps.id);
36
+ const dataId = toRef(() => itemProps.id);
35
37
 
36
- const visibility = computed<boolean>({
37
- get: () => dataStyleStore.meshPolygonsVisibility(id.value),
38
+ const visibility = computed<Visibility>({
39
+ get: () => dataStyleStore.meshPolygonsVisibility(dataId.value),
38
40
  set: async (newValue) => {
39
- await applyBatchStyle(id.value, (targetId: string) =>
40
- dataStyleStore.setMeshPolygonsVisibility(targetId, newValue),
41
+ await applyBatchStyle(dataId.value, (meshId: MeshId) =>
42
+ dataStyleStore.setMeshPolygonsVisibility(meshId, newValue),
41
43
  );
42
44
  hybridViewerStore.remoteRender();
43
45
  },
@@ -59,7 +61,7 @@ const visibility = computed<boolean>({
59
61
  />
60
62
  <template v-if="visibility">
61
63
  <v-divider />
62
- <ViewerGenericMeshPolygonsColoring :id="id" :capabilities="capabilities" />
64
+ <ViewerGenericMeshPolygonsColoring :data-id="dataId" :capabilities="capabilities" />
63
65
  </template>
64
66
  </template>
65
67
  </ViewerContextMenuItem>