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

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 (260) hide show
  1. package/.build/shared/utils/response_handlers/load.js +5 -2
  2. package/.build/tests/browser/helpers/object_trees/main_object_tree.js +3 -3
  3. package/.build/tests/browser/helpers/object_trees/model_components_object_tree.js +2 -2
  4. package/.build/tests/browser/suites/model/surfaces.js +1 -1
  5. package/app/app.config.ts +28 -0
  6. package/app/assets/css/main.css +11 -0
  7. package/app/assets/geode_objects.ts +37 -108
  8. package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
  9. package/app/components/ActionButton.vue +9 -2
  10. package/app/components/CameraManager/List.vue +6 -6
  11. package/app/components/CameraManager.vue +0 -1
  12. package/app/components/CameraOrientation.vue +12 -7
  13. package/app/components/ChromeTheme.vue +20 -0
  14. package/app/components/ClippingPlaneCard.vue +2 -3
  15. package/app/components/ClippingPlanes.vue +2 -2
  16. package/app/components/CrsSelector.vue +8 -8
  17. package/app/components/DeleteDialog.vue +12 -16
  18. package/app/components/DragAndDropInternal/DragAndDropInline.vue +7 -7
  19. package/app/components/DragAndDropInternal/DragAndDropOverlay.vue +87 -82
  20. package/app/components/ExtensionSelector.vue +21 -14
  21. package/app/components/FactorFilterPanel.vue +0 -1
  22. package/app/components/FeedBack/ErrorBanner.vue +8 -9
  23. package/app/components/FeedBack/Snackers.vue +5 -7
  24. package/app/components/FileUploader.vue +13 -21
  25. package/app/components/GlassCard.vue +3 -1
  26. package/app/components/HybridRenderingView.vue +2 -0
  27. package/app/components/HybridViewerTooltip.vue +4 -4
  28. package/app/components/Launcher.vue +1 -1
  29. package/app/components/Loading/EcoMessages.vue +17 -11
  30. package/app/components/Loading/Footer.vue +2 -2
  31. package/app/components/Loading/Header.vue +9 -4
  32. package/app/components/Loading/Progress.vue +7 -3
  33. package/app/components/Loading.vue +54 -46
  34. package/app/components/MissingFilesSelector.vue +5 -5
  35. package/app/components/ObjectSelector.vue +8 -15
  36. package/app/components/PackagesVersions.vue +1 -3
  37. package/app/components/ProjectCrs.vue +1 -1
  38. package/app/components/Screenshot.vue +23 -15
  39. package/app/components/SearchBar.vue +1 -3
  40. package/app/components/SliceCard.vue +1 -2
  41. package/app/components/Step.vue +1 -1
  42. package/app/components/Stepper.vue +13 -11
  43. package/app/components/ThresholdCard.vue +1 -1
  44. package/app/components/ThresholdFilter.vue +2 -2
  45. package/app/components/TimeSeriesTargetSelector.vue +3 -6
  46. package/app/components/ToolPanel.vue +3 -9
  47. package/app/components/Viewer/Basemap/CropOptions.vue +1 -1
  48. package/app/components/Viewer/Basemap/OpacityOptions.vue +1 -1
  49. package/app/components/Viewer/ContextMenu/CenterButton.vue +9 -3
  50. package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
  51. package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +17 -6
  52. package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -13
  53. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
  54. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
  55. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
  56. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
  57. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
  58. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
  59. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
  60. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
  61. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
  62. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
  63. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
  64. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
  65. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
  66. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
  67. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
  68. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
  69. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
  70. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
  71. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
  72. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
  73. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
  74. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
  75. package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +4 -4
  76. package/app/components/Viewer/ObjectTree/Base/ComponentRelations.vue +1 -1
  77. package/app/components/Viewer/ObjectTree/Base/Controls.vue +22 -18
  78. package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +11 -11
  79. package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +3 -3
  80. package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +6 -9
  81. package/app/components/Viewer/ObjectTree/Box.vue +20 -21
  82. package/app/components/Viewer/ObjectTree/Layout.vue +28 -25
  83. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +4 -3
  84. package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +1 -1
  85. package/app/components/Viewer/Options/AttributeRangeSelector.vue +1 -1
  86. package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
  87. package/app/components/Viewer/Options/ColorMapList.vue +7 -9
  88. package/app/components/Viewer/Options/ColorMapPicker.vue +2 -2
  89. package/app/components/Viewer/Options/ColorPicker.vue +9 -9
  90. package/app/components/Viewer/Options/ColoringTypeSelector.vue +9 -9
  91. package/app/components/Viewer/Options/NoDataColorInfo.vue +4 -4
  92. package/app/components/Viewer/Options/Sliders/Opacity.vue +1 -1
  93. package/app/components/Viewer/Options/Sliders/Slider.vue +1 -1
  94. package/app/components/Viewer/Options/TextureItem.vue +11 -8
  95. package/app/components/Viewer/Options/TexturesSelector.vue +3 -3
  96. package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
  97. package/app/components/Viewer/OrientationCompass.vue +223 -0
  98. package/app/components/Viewer/OrientationGlobe.vue +376 -0
  99. package/app/components/Viewer/OrientationOverlay.vue +47 -0
  100. package/app/components/Viewer/OverlappingObjectsPicker.vue +10 -7
  101. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
  102. package/app/components/Viewer/Scene/BackgroundOptions.vue +3 -3
  103. package/app/components/Viewer/Scene/OrientationWidgetOptions.vue +1 -1
  104. package/app/components/Viewer/Scene/TextOptions.vue +3 -3
  105. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
  106. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
  107. package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
  108. package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
  109. package/app/components/Viewer/ToolActiveChip.vue +1 -1
  110. package/app/components/Viewer/Ui.vue +2 -2
  111. package/app/components/csv-preview/CsvPreviewer.vue +17 -24
  112. package/app/components/csv-preview/CsvSettings.vue +6 -6
  113. package/app/components/csv-preview/CsvTable.vue +11 -9
  114. package/app/composables/attribute_selector.ts +1 -1
  115. package/app/composables/batch_style.ts +3 -3
  116. package/app/composables/batch_style_model.ts +1 -1
  117. package/app/composables/chrome_theme.ts +23 -0
  118. package/app/composables/clipping_slices.ts +2 -1
  119. package/app/composables/hover_highlight.ts +10 -7
  120. package/app/composables/live_data_item.ts +1 -1
  121. package/app/composables/model_menu_context.ts +11 -4
  122. package/app/composables/orientation_overlay.ts +133 -0
  123. package/app/composables/project_manager_helpers/reset.ts +2 -0
  124. package/app/composables/project_manager_helpers/types.ts +2 -2
  125. package/app/composables/use_adaptive_styles.ts +42 -21
  126. package/app/composables/use_overlapping_picker.ts +10 -8
  127. package/app/composables/view_toolbar_options.ts +7 -7
  128. package/app/composables/view_toolbar_tool_options.ts +9 -11
  129. package/app/composables/viewer_context_menu.ts +4 -2
  130. package/app/composables/viewer_reset.ts +54 -0
  131. package/app/plugins/chrome_theme.ts +10 -0
  132. package/app/plugins/phosphor_icons.ts +13 -0
  133. package/app/plugins/scene_colors.ts +10 -0
  134. package/app/stores/basemap_helpers/builds.ts +2 -2
  135. package/app/stores/basemap_helpers/viewer.ts +1 -1
  136. package/app/stores/crs.ts +12 -12
  137. package/app/stores/data.ts +4 -5
  138. package/app/stores/data_helpers/mesh.ts +2 -1
  139. package/app/stores/data_style.ts +4 -3
  140. package/app/stores/hybrid_viewer.ts +5 -3
  141. package/app/stores/menu.ts +18 -12
  142. package/app/stores/treeview.ts +5 -4
  143. package/app/stores/viewer.ts +2 -0
  144. package/app/types/attribute.ts +5 -21
  145. package/app/types/identifiers.ts +5 -15
  146. package/app/utils/attribute_range.ts +1 -1
  147. package/app/utils/attributes.ts +2 -1
  148. package/app/utils/clipping_planes.ts +1 -1
  149. package/app/utils/color_picker.ts +3 -3
  150. package/app/utils/crs.ts +6 -6
  151. package/app/utils/default_styles/constants.ts +17 -22
  152. package/app/utils/default_styles/index.ts +24 -3
  153. package/app/utils/default_styles/mesh_components.ts +15 -11
  154. package/app/utils/default_styles/meshes.ts +1 -1
  155. package/app/utils/default_styles/model_components.ts +14 -10
  156. package/app/utils/default_styles/models.ts +1 -1
  157. package/app/utils/import_workflow.ts +3 -1
  158. package/app/utils/legacy_data_id.ts +2 -1
  159. package/app/utils/orientation_compass.ts +103 -0
  160. package/app/utils/orientation_gizmo.ts +73 -0
  161. package/app/utils/orientation_globe.ts +145 -0
  162. package/app/utils/orientation_strata.ts +119 -0
  163. package/app/utils/phosphor_icons.ts +105 -0
  164. package/app/utils/slice.ts +2 -1
  165. package/app/utils/threshold_sources.ts +1 -1
  166. package/internal/stores/data_style/attribute_types.ts +6 -6
  167. package/internal/stores/data_style/mesh/base_style.ts +6 -7
  168. package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
  169. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
  170. package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
  171. package/internal/stores/data_style/mesh/cells/color.ts +6 -6
  172. package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
  173. package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
  174. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
  175. package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
  176. package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
  177. package/internal/stores/data_style/mesh/edges/color.ts +6 -6
  178. package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
  179. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
  180. package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
  181. package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
  182. package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
  183. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
  184. package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
  185. package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
  186. package/internal/stores/data_style/mesh/edges/width.ts +6 -6
  187. package/internal/stores/data_style/mesh/index.ts +3 -4
  188. package/internal/stores/data_style/mesh/points/color.ts +6 -6
  189. package/internal/stores/data_style/mesh/points/common.ts +1 -1
  190. package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
  191. package/internal/stores/data_style/mesh/points/size.ts +6 -6
  192. package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
  193. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
  194. package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
  195. package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
  196. package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
  197. package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
  198. package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
  199. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
  200. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
  201. package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
  202. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
  203. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
  204. package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
  205. package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
  206. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
  207. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
  208. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
  209. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
  210. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
  211. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
  212. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
  213. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
  214. package/internal/stores/data_style/model/blocks/color.ts +6 -6
  215. package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
  216. package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
  217. package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
  218. package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
  219. package/internal/stores/data_style/model/color.ts +10 -11
  220. package/internal/stores/data_style/model/common.ts +3 -4
  221. package/internal/stores/data_style/model/corners/color.ts +6 -6
  222. package/internal/stores/data_style/model/corners/index.ts +2 -2
  223. package/internal/stores/data_style/model/corners/vertex.ts +12 -9
  224. package/internal/stores/data_style/model/corners/visibility.ts +1 -1
  225. package/internal/stores/data_style/model/edges/component.ts +13 -13
  226. package/internal/stores/data_style/model/edges/visibility.ts +1 -1
  227. package/internal/stores/data_style/model/edges/width.ts +6 -6
  228. package/internal/stores/data_style/model/lines/color.ts +6 -6
  229. package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
  230. package/internal/stores/data_style/model/lines/edge.ts +12 -9
  231. package/internal/stores/data_style/model/lines/vertex.ts +12 -9
  232. package/internal/stores/data_style/model/lines/visibility.ts +1 -1
  233. package/internal/stores/data_style/model/points/component.ts +17 -13
  234. package/internal/stores/data_style/model/points/index.ts +2 -2
  235. package/internal/stores/data_style/model/points/size.ts +6 -6
  236. package/internal/stores/data_style/model/points/visibility.ts +1 -1
  237. package/internal/stores/data_style/model/surfaces/color.ts +6 -6
  238. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
  239. package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
  240. package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
  241. package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
  242. package/internal/stores/data_style/model/visibility.ts +1 -1
  243. package/internal/stores/data_style/scene.ts +31 -19
  244. package/internal/stores/data_style/time_step.ts +3 -2
  245. package/internal/stores/data_style/types.ts +3 -4
  246. package/internal/stores/hybrid_viewer/brightness.ts +14 -7
  247. package/internal/stores/hybrid_viewer/camera.ts +1 -1
  248. package/internal/stores/hybrid_viewer/constants.ts +1 -12
  249. package/internal/stores/hybrid_viewer/filters.ts +2 -2
  250. package/internal/stores/hybrid_viewer/highlight.ts +2 -1
  251. package/internal/stores/hybrid_viewer/scene.ts +11 -4
  252. package/nuxt.config.ts +9 -1
  253. package/package.json +4 -2
  254. package/shared/utils/response_handlers/load.ts +19 -11
  255. package/tests/browser/helpers/object_trees/main_object_tree.ts +3 -3
  256. package/tests/browser/helpers/object_trees/model_components_object_tree.ts +2 -2
  257. package/tests/browser/suites/model/surfaces.ts +1 -1
  258. package/tests/unit/helpers/phosphor_glyphs.ts +46 -0
  259. package/app/assets/viewer_svgs/camera-bookmark.svg +0 -64
  260. package/app/types/style.ts +0 -13
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  // oxlint-disable id-length since vuetify require { r,g,b} format to work
3
3
  import { formatColorString, parseColorString } from "@ogw_front/utils/color_picker";
4
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
4
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
5
5
  import { useCopyToClipboard } from "@ogw_front/composables/copy_to_clipboard";
6
6
 
7
7
  interface Props {
@@ -13,13 +13,13 @@ const { disabledAlpha = false } = defineProps<Props>();
13
13
  const colorPickerWrapperRef = useTemplateRef<HTMLElement>("colorPickerWrapperRef");
14
14
  const { pressed } = useMousePressed({ target: colorPickerWrapperRef });
15
15
 
16
- const model = defineModel<RGBAColor>();
16
+ const model = defineModel<ColorRGBA>();
17
17
  const { copy, copied } = useCopyToClipboard();
18
18
 
19
19
  const currentMode = ref(disabledAlpha ? "rgb" : "rgba");
20
20
  const colorInputText = ref("");
21
21
 
22
- const initialColor = model.value as RGBAColor;
22
+ const initialColor = model.value as ColorRGBA;
23
23
  const vuetifyColor = ref({
24
24
  r: initialColor.red,
25
25
  g: initialColor.green,
@@ -184,7 +184,7 @@ watch(
184
184
  @click="toggleMode"
185
185
  v-tooltip="'Swap mode (RGB / RGBA)'"
186
186
  >
187
- <v-icon icon="mdi-swap-horizontal" size="16" />
187
+ <v-icon icon="ph-arrows-left-right" size="16" />
188
188
  </v-btn>
189
189
  </div>
190
190
 
@@ -198,7 +198,7 @@ watch(
198
198
  v-tooltip="'Copy to clipboard'"
199
199
  >
200
200
  <v-icon
201
- :icon="copied ? 'mdi-check' : 'mdi-content-copy'"
201
+ :icon="copied ? 'ph-check' : 'ph-copy'"
202
202
  size="14"
203
203
  :color="copied ? 'success' : undefined"
204
204
  />
@@ -223,8 +223,8 @@ watch(
223
223
  <style scoped>
224
224
  .color-picker-wrapper {
225
225
  width: 220px;
226
- background-color: rgba(33, 33, 33, 0.95);
227
- border: 1px solid rgba(255, 255, 255, 0.12) !important;
226
+ background-color: rgba(var(--v-theme-surface), 0.95);
227
+ border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
228
228
  outline: none;
229
229
  }
230
230
 
@@ -257,7 +257,7 @@ watch(
257
257
  width: 100%;
258
258
  box-sizing: border-box;
259
259
  padding: 6px 10px;
260
- background-color: rgba(255, 255, 255, 0.08);
260
+ background-color: rgba(var(--v-theme-on-surface), 0.08);
261
261
  border: 1px solid transparent;
262
262
  border-radius: 6px;
263
263
  outline: none;
@@ -270,6 +270,6 @@ watch(
270
270
  }
271
271
 
272
272
  .color-input-field:focus {
273
- border-color: rgba(255, 255, 255, 0.3);
273
+ border-color: rgba(var(--v-theme-on-surface), 0.3);
274
274
  }
275
275
  </style>
@@ -5,8 +5,8 @@ import {
5
5
  buildColoringStyles,
6
6
  resolveAttributeSchemas,
7
7
  } from "@ogw_front/utils/coloring_styles";
8
- import type { DataId } from "@ogw_front/types/identifiers";
9
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
8
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
9
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
10
10
  import type { RangesPerData } from "@ogw_front/composables/batch_style";
11
11
  import type { Texture } from "@ogw_front/types/texture";
12
12
  import ViewerOptionsAttributeSelector from "@ogw_front/components/Viewer/Options/AttributeSelector.vue";
@@ -31,7 +31,7 @@ interface Emits {
31
31
 
32
32
  const emit = defineEmits<Emits>();
33
33
 
34
- const color = defineModel<RGBAColor>("color");
34
+ const color = defineModel<ColorRGBA>("color");
35
35
  const opacity = defineModel<number>("opacity");
36
36
  const textures = defineModel<Texture[]>("textures");
37
37
 
@@ -39,28 +39,28 @@ const vertex_attribute_name = defineModel<string>("vertex_attribute_name");
39
39
  const vertex_attribute_item = defineModel<number>("vertex_attribute_item");
40
40
  const vertex_attribute_range = defineModel<(number | undefined)[]>("vertex_attribute_range");
41
41
  const vertex_attribute_color_map = defineModel<string>("vertex_attribute_color_map");
42
- const vertex_attribute_no_data_color = defineModel<RGBAColor>("vertex_attribute_no_data_color");
42
+ const vertex_attribute_no_data_color = defineModel<ColorRGBA>("vertex_attribute_no_data_color");
43
43
  const vertex_attribute_time_step = defineModel<number>("vertex_attribute_time_step");
44
44
 
45
45
  const edge_attribute_name = defineModel<string>("edge_attribute_name");
46
46
  const edge_attribute_item = defineModel<number>("edge_attribute_item");
47
47
  const edge_attribute_range = defineModel<(number | undefined)[]>("edge_attribute_range");
48
48
  const edge_attribute_color_map = defineModel<string>("edge_attribute_color_map");
49
- const edge_attribute_no_data_color = defineModel<RGBAColor>("edge_attribute_no_data_color");
49
+ const edge_attribute_no_data_color = defineModel<ColorRGBA>("edge_attribute_no_data_color");
50
50
  const edge_attribute_time_step = defineModel<number>("edge_attribute_time_step");
51
51
 
52
52
  const cell_attribute_name = defineModel<string>("cell_attribute_name");
53
53
  const cell_attribute_item = defineModel<number>("cell_attribute_item");
54
54
  const cell_attribute_range = defineModel<(number | undefined)[]>("cell_attribute_range");
55
55
  const cell_attribute_color_map = defineModel<string>("cell_attribute_color_map");
56
- const cell_attribute_no_data_color = defineModel<RGBAColor>("cell_attribute_no_data_color");
56
+ const cell_attribute_no_data_color = defineModel<ColorRGBA>("cell_attribute_no_data_color");
57
57
  const cell_attribute_time_step = defineModel<number>("cell_attribute_time_step");
58
58
 
59
59
  const polygon_attribute_name = defineModel<string>("polygon_attribute_name");
60
60
  const polygon_attribute_item = defineModel<number>("polygon_attribute_item");
61
61
  const polygon_attribute_range = defineModel<(number | undefined)[]>("polygon_attribute_range");
62
62
  const polygon_attribute_color_map = defineModel<string>("polygon_attribute_color_map");
63
- const polygon_attribute_no_data_color = defineModel<RGBAColor>("polygon_attribute_no_data_color");
63
+ const polygon_attribute_no_data_color = defineModel<ColorRGBA>("polygon_attribute_no_data_color");
64
64
  const polygon_attribute_time_step = defineModel<number>("polygon_attribute_time_step");
65
65
 
66
66
  const polyhedron_attribute_name = defineModel<string>("polyhedron_attribute_name");
@@ -69,7 +69,7 @@ const polyhedron_attribute_range = defineModel<(number | undefined)[]>(
69
69
  "polyhedron_attribute_range",
70
70
  );
71
71
  const polyhedron_attribute_color_map = defineModel<string>("polyhedron_attribute_color_map");
72
- const polyhedron_attribute_no_data_color = defineModel<RGBAColor>(
72
+ const polyhedron_attribute_no_data_color = defineModel<ColorRGBA>(
73
73
  "polyhedron_attribute_no_data_color",
74
74
  );
75
75
  const polyhedron_attribute_time_step = defineModel<number>("polyhedron_attribute_time_step");
@@ -215,7 +215,7 @@ watch(
215
215
  <v-divider class="my-2 mx-2" />
216
216
  <v-row justify="center" align="center" no-gutters class="px-2">
217
217
  <v-col cols="auto" class="mr-2">
218
- <v-icon size="18" icon="mdi-format-color-fill" v-tooltip:left="'Coloring'" />
218
+ <v-icon size="18" icon="ph-paint-bucket" v-tooltip:left="'Coloring'" />
219
219
  </v-col>
220
220
  <v-col>
221
221
  <v-select
@@ -15,7 +15,7 @@ const cssNoDataColor = computed<string>(() => {
15
15
  class="text-caption text-high-emphasis mt-1 d-flex align-center ga-1"
16
16
  data-testid="noDataInfo"
17
17
  >
18
- <v-icon icon="mdi-information-outline" size="14" color="info" />
18
+ <v-icon icon="ph-info" size="14" color="info" />
19
19
  <span>Contains unmapped elements</span>
20
20
  <v-menu :close-on-content-click="false">
21
21
  <template #activator="{ props }">
@@ -40,8 +40,8 @@ const cssNoDataColor = computed<string>(() => {
40
40
  width: 26px;
41
41
  height: 15px;
42
42
  border-radius: 3px;
43
- border: 2px solid rgba(255, 255, 255, 0.912);
44
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
43
+ border: 2px solid rgba(var(--v-theme-on-surface), 0.912);
44
+ box-shadow: 0 1px 2px rgba(var(--v-theme-on-surface), 0.3);
45
45
  cursor: pointer;
46
46
  outline: none;
47
47
  transition:
@@ -50,7 +50,7 @@ const cssNoDataColor = computed<string>(() => {
50
50
  }
51
51
 
52
52
  .color-picker-rect-btn:hover {
53
- border-color: rgba(255, 255, 255, 0.9);
53
+ border-color: rgba(var(--v-theme-on-surface), 0.9);
54
54
  transform: scale(1.1);
55
55
  }
56
56
  </style>
@@ -5,7 +5,7 @@ const opacity = defineModel<number>();
5
5
  <template>
6
6
  <v-row align="center" no-gutters class="px-2">
7
7
  <v-col cols="auto" class="mr-2">
8
- <v-icon size="18" icon="mdi-circle-opacity" v-tooltip:left="'Opacity'" />
8
+ <v-icon size="18" icon="ph-drop-half" v-tooltip:left="'Opacity'" />
9
9
  </v-col>
10
10
  <v-col>
11
11
  <v-slider
@@ -13,7 +13,7 @@ const { tooltip } = defineProps<Props>();
13
13
  <template>
14
14
  <v-row align="center" no-gutters class="px-2">
15
15
  <v-col cols="auto" class="mr-2">
16
- <v-icon size="18" icon="mdi-ruler" v-tooltip:left="tooltip" />
16
+ <v-icon size="18" icon="ph-ruler" v-tooltip:left="tooltip" />
17
17
  </v-col>
18
18
  <v-col>
19
19
  <BasicSlider v-model="model" />
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { DataId } from "@ogw_front/types/identifiers";
2
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
3
3
  import FileUploader from "@ogw_front/components/FileUploader.vue";
4
4
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
5
5
  import { intersectBy } from "@ogw_front/utils/attributes";
@@ -65,12 +65,8 @@ onMounted(async () => {
65
65
  async function files_uploaded_event(value: UploadFile[]): Promise<void> {
66
66
  if (value.length > 0 && value[0]) {
67
67
  const schema = back_schemas.opengeodeweb_back.save_viewable_file;
68
- const params = {
69
- geode_object_type: "RasterImage2D",
70
- filename: value[0].name,
71
- };
72
68
  await backStore.request(
73
- { schema, params },
69
+ { schema, params: { geode_object_type: "RasterImage2D", filename: value[0].name } },
74
70
  {
75
71
  response_function: (response) => {
76
72
  // A texture file holds a single image: the first imported object is the texture
@@ -111,7 +107,14 @@ watch(textureId, (value) => {
111
107
  />
112
108
  </v-col>
113
109
  <v-col cols="auto" class="pa-1 d-flex justify-center align-center">
114
- <v-badge :model-value="textureId !== ''" color="white" floating dot offset-x="10" offset-y="10">
110
+ <v-badge
111
+ :model-value="textureId !== ''"
112
+ color="primary"
113
+ floating
114
+ dot
115
+ offset-x="10"
116
+ offset-y="10"
117
+ >
115
118
  <FileUploader
116
119
  @files_uploaded="files_uploaded_event($event)"
117
120
  :accept="['image/png', 'image/jpeg', 'image/bmp']"
@@ -123,6 +126,6 @@ watch(textureId, (value) => {
123
126
  </v-badge>
124
127
  </v-col>
125
128
  <v-col v-if="textureName === '' || textureId === ''" cols="auto">
126
- <v-icon size="20" icon="mdi-close-circle" v-tooltip:bottom="'Invalid texture'" />
129
+ <v-icon size="20" icon="ph-x-circle" v-tooltip:bottom="'Invalid texture'" />
127
130
  </v-col>
128
131
  </template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { DataId } from "@ogw_front/types/identifiers";
2
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
3
3
  import type { Texture } from "@ogw_front/types/texture";
4
4
  import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem.vue";
5
5
 
@@ -41,7 +41,7 @@ function update_value_event($event: { key: keyof Texture; value: string }, index
41
41
  <v-col cols="1" class="pa-0">
42
42
  <v-icon
43
43
  v-if="internal_textures.length > 1"
44
- icon="mdi-minus"
44
+ icon="ph-minus"
45
45
  size="20"
46
46
  v-tooltip:bottom="'Remove texture'"
47
47
  @click="internal_textures.splice(index, 1)"
@@ -59,7 +59,7 @@ function update_value_event($event: { key: keyof Texture; value: string }, index
59
59
  <v-col cols="3">
60
60
  <v-icon
61
61
  v-if="internal_textures.length < 4"
62
- icon="mdi-plus"
62
+ icon="ph-plus"
63
63
  v-tooltip:bottom="'Add a texture'"
64
64
  size="20"
65
65
  @click="internal_textures.push({ texture_name: '', id: '' })"
@@ -7,7 +7,7 @@ const visibility = defineModel<boolean>();
7
7
  <template>
8
8
  <v-row class="pa-0 px-2" align="center" no-gutters>
9
9
  <v-col cols="auto" class="mr-2">
10
- <v-icon size="18" icon="mdi-eye" v-tooltip:left="'Visibility'" />
10
+ <v-icon size="18" icon="ph-fill ph-eye" v-tooltip:left="'Visibility'" />
11
11
  </v-col>
12
12
  <v-col cols="auto">
13
13
  <BasicSwitch v-model="visibility" />
@@ -0,0 +1,223 @@
1
+ <script setup lang="ts">
2
+ import { cameraViewBasis, toCameraPose } from "@ogw_front/utils/orientation_gizmo";
3
+ import {
4
+ compassDialPoint,
5
+ compassHeading,
6
+ compassTilt,
7
+ facingCameraPose,
8
+ isFacing,
9
+ } from "@ogw_front/utils/orientation_compass";
10
+ import type { CameraOptions } from "@ogw_internal/stores/hybrid_viewer/vtk_types";
11
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
12
+
13
+ // Compass in the app theme: the dial turns with the camera heading (north = world +Y) and flattens
14
+ // With its elevation; the letters stay upright. A click on a letter turns the camera towards that
15
+ // Direction, a click anywhere else turns it back to north. Nothing happens when it already faces it.
16
+ // Drawing units of the dial; it is displayed at DISPLAY_SIZE, the size of the axes globe backdrop
17
+ // (Viewer/OrientationGlobe.vue) so both markers take the same place in the viewer
18
+ const SIZE = 92;
19
+ const HALF_SIZE = SIZE / 2;
20
+ const DISPLAY_SIZE = 88;
21
+ const TICK_OUTER_RADIUS = 40;
22
+ const TICK_INNER_RADIUS = 36.5;
23
+ const CARDINAL_TICK_INNER_RADIUS = 33;
24
+ const LETTER_RADIUS = 26;
25
+ const LETTER_HIT_RADIUS = 9;
26
+ const NEEDLE_LENGTH = 18;
27
+ const NEEDLE_HALF_WIDTH = 3.5;
28
+ const HUB_RADIUS = 2.5;
29
+ const TICK_STEP = 30;
30
+ const QUARTER_TURN = 90;
31
+ const FULL_TURN = 360;
32
+ const TICK_ANGLES = Array.from(
33
+ { length: FULL_TURN / TICK_STEP },
34
+ (_item, index) => index * TICK_STEP,
35
+ );
36
+ const NORTH = 0;
37
+ const LETTERS = [
38
+ { label: "N", name: "north", angle: NORTH },
39
+ { label: "E", name: "east", angle: QUARTER_TURN },
40
+ { label: "S", name: "south", angle: 2 * QUARTER_TURN },
41
+ { label: "W", name: "west", angle: 3 * QUARTER_TURN },
42
+ ];
43
+ const NORTH_NEEDLE = `M0 ${-NEEDLE_LENGTH} L${NEEDLE_HALF_WIDTH} 0 L${-NEEDLE_HALF_WIDTH} 0 Z`;
44
+ const SOUTH_NEEDLE = `M0 ${NEEDLE_LENGTH} L${NEEDLE_HALF_WIDTH} 0 L${-NEEDLE_HALF_WIDTH} 0 Z`;
45
+
46
+ const hybridViewerStore = useHybridViewerStore();
47
+
48
+ const basis = computed(() => {
49
+ const pose = toCameraPose(hybridViewerStore.camera_options);
50
+ return pose && cameraViewBasis(pose);
51
+ });
52
+
53
+ // The last readable heading is kept while the camera is rolled until no heading can be read
54
+ const heading = ref(0);
55
+ const tilt = ref(1);
56
+ watch(
57
+ basis,
58
+ (value) => {
59
+ if (!value) {
60
+ return;
61
+ }
62
+ heading.value = compassHeading(value) ?? heading.value;
63
+ tilt.value = compassTilt(value);
64
+ },
65
+ { immediate: true },
66
+ );
67
+
68
+ const dialTransform = computed(() => `scale(1 ${tilt.value}) rotate(${-heading.value})`);
69
+ const letters = computed(() =>
70
+ LETTERS.map(({ label, name, angle }) => {
71
+ const { x, y } = compassDialPoint(angle, LETTER_RADIUS, heading.value, tilt.value);
72
+ return { label, name, angle, x, y };
73
+ }),
74
+ );
75
+
76
+ function tickInnerRadius(angle: number): number {
77
+ return angle % QUARTER_TURN === 0 ? CARDINAL_TICK_INNER_RADIUS : TICK_INNER_RADIUS;
78
+ }
79
+
80
+ function face(targetHeading: number): void {
81
+ // Like a click without drag in the viewer: a camera already facing that way is not moved (no viewer call)
82
+ if (!basis.value || isFacing(basis.value, targetHeading)) {
83
+ return;
84
+ }
85
+ const pose = toCameraPose(hybridViewerStore.camera_options);
86
+ const facing = pose && facingCameraPose(pose, basis.value, targetHeading);
87
+ if (!facing) {
88
+ return;
89
+ }
90
+ // oxlint-disable-next-line no-unsafe-type-assertion -- camera_options holds every vtk.js camera field (getCameraOptions)
91
+ const options = hybridViewerStore.camera_options as unknown as CameraOptions;
92
+ // Animates the camera then syncs the remote one, which renders the viewer image
93
+ hybridViewerStore.setCamera({
94
+ ...options,
95
+ focal_point: [...facing.focal_point],
96
+ position: [...facing.position],
97
+ view_up: [...facing.view_up],
98
+ });
99
+ }
100
+ </script>
101
+
102
+ <template>
103
+ <button
104
+ type="button"
105
+ class="orientation-compass"
106
+ data-testid="orientationCompass"
107
+ title="Face north"
108
+ aria-label="Compass: face north"
109
+ @click="face(NORTH)"
110
+ >
111
+ <svg
112
+ :width="DISPLAY_SIZE"
113
+ :height="DISPLAY_SIZE"
114
+ :viewBox="`${-HALF_SIZE} ${-HALF_SIZE} ${SIZE} ${SIZE}`"
115
+ aria-hidden="true"
116
+ >
117
+ <g :transform="dialTransform">
118
+ <line
119
+ v-for="angle in TICK_ANGLES"
120
+ :key="angle"
121
+ class="tick"
122
+ :y1="-tickInnerRadius(angle)"
123
+ :y2="-TICK_OUTER_RADIUS"
124
+ :transform="`rotate(${angle})`"
125
+ />
126
+ <path class="needle-south" :d="SOUTH_NEEDLE" />
127
+ <path class="needle-north" :d="NORTH_NEEDLE" />
128
+ </g>
129
+ <!-- The letters are targets of their own: the click does not reach the button (north) -->
130
+ <g
131
+ v-for="letter in letters"
132
+ :key="letter.label"
133
+ class="letter-target"
134
+ :data-testid="`orientationCompass-${letter.label}`"
135
+ @click.stop="face(letter.angle)"
136
+ >
137
+ <title>Face {{ letter.name }}</title>
138
+ <circle class="letter-hit" :cx="letter.x" :cy="letter.y" :r="LETTER_HIT_RADIUS" />
139
+ <text class="letter" :class="{ north: letter.angle === NORTH }" :x="letter.x" :y="letter.y">
140
+ {{ letter.label }}
141
+ </text>
142
+ </g>
143
+ <circle class="hub" :r="HUB_RADIUS" />
144
+ </svg>
145
+ </button>
146
+ </template>
147
+
148
+ <style scoped>
149
+ .orientation-compass {
150
+ display: block;
151
+ width: 88px;
152
+ height: 88px;
153
+ padding: 0;
154
+ border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
155
+ border-radius: 50%;
156
+ background: rgba(var(--v-theme-surface), 0.72);
157
+ backdrop-filter: blur(6px);
158
+ cursor: pointer;
159
+ pointer-events: auto;
160
+ transition:
161
+ background-color 0.2s ease,
162
+ border-color 0.2s ease;
163
+ }
164
+
165
+ .orientation-compass:hover,
166
+ .orientation-compass:focus-visible {
167
+ border-color: rgba(var(--v-theme-on-surface), 0.35);
168
+ background: rgba(var(--v-theme-surface), 0.86);
169
+ outline: none;
170
+ }
171
+
172
+ /* The svg is the button's content box: overflow is clipped by the border radius */
173
+ .orientation-compass svg {
174
+ display: block;
175
+ margin: -1px;
176
+ }
177
+
178
+ .tick {
179
+ stroke: rgba(var(--v-theme-on-surface), 0.35);
180
+ stroke-width: 1px;
181
+ vector-effect: non-scaling-stroke;
182
+ }
183
+
184
+ .needle-north {
185
+ fill: #f48830;
186
+ }
187
+
188
+ .needle-south {
189
+ fill: rgba(var(--v-theme-on-surface), 0.35);
190
+ }
191
+
192
+ .hub {
193
+ fill: rgb(var(--v-theme-surface));
194
+ stroke: rgba(var(--v-border-color), var(--v-border-opacity));
195
+ stroke-width: 1px;
196
+ vector-effect: non-scaling-stroke;
197
+ }
198
+
199
+ .letter-hit {
200
+ fill: transparent;
201
+ transition: fill 0.2s ease;
202
+ }
203
+
204
+ .letter-target:hover .letter-hit {
205
+ fill: rgba(var(--v-theme-on-surface), 0.14);
206
+ }
207
+
208
+ .letter {
209
+ fill: rgb(var(--v-theme-on-surface));
210
+ font-family: var(--v-font-body, inherit);
211
+ font-size: 11px;
212
+ font-weight: 500;
213
+ text-anchor: middle;
214
+ dominant-baseline: central;
215
+ pointer-events: none;
216
+ user-select: none;
217
+ }
218
+
219
+ .letter.north {
220
+ fill: #f48830;
221
+ font-weight: 600;
222
+ }
223
+ </style>