@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
@@ -2,17 +2,17 @@
2
2
  import type {
3
3
  AttributeItem,
4
4
  AttributeName,
5
- AttributeRange,
6
- AttributeTimeStep,
7
- } from "@ogw_front/types/attribute";
8
- import type { DataId, MeshId } from "@ogw_front/types/identifiers";
5
+ ColorRGBA,
6
+ Opacity,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
+ import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
9
9
  import {
10
10
  type RangesPerData,
11
11
  applyRangesPerData,
12
12
  useBatchStyle,
13
13
  } from "@ogw_front/composables/batch_style";
14
- import type { Opacity } from "@ogw_front/types/style";
15
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
14
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
15
+ import type { MeshId } from "@ogw_front/types/identifiers";
16
16
  import type { Texture } from "@ogw_front/types/texture";
17
17
  import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
18
18
  import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
@@ -38,9 +38,9 @@ const coloring_style_key = computed<string>({
38
38
  hybridViewerStore.remoteRender();
39
39
  },
40
40
  });
41
- const color = useBatchStyleModel<RGBAColor>(
41
+ const color = useBatchStyleModel<ColorRGBA>(
42
42
  () => dataId,
43
- (meshId) => dataStyleStore.meshPolygonsColor(meshId) as RGBAColor | undefined,
43
+ (meshId) => dataStyleStore.meshPolygonsColor(meshId) as ColorRGBA | undefined,
44
44
  (meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
45
45
  );
46
46
  const opacity = useBatchStyleModel<Opacity>(
@@ -100,7 +100,7 @@ const vertex_attribute_range = computed<AttributeRange>({
100
100
  hybridViewerStore.remoteRender();
101
101
  },
102
102
  });
103
- const vertex_attribute_color_map = computed<Map<string, RGBAColor> | undefined>({
103
+ const vertex_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
104
104
  get: () => dataStyleStore.meshPolygonsVertexAttributeColorMap(dataId),
105
105
  set: async (newValue) => {
106
106
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -109,7 +109,7 @@ const vertex_attribute_color_map = computed<Map<string, RGBAColor> | undefined>(
109
109
  hybridViewerStore.remoteRender();
110
110
  },
111
111
  });
112
- const vertex_attribute_no_data_color = computed<RGBAColor>({
112
+ const vertex_attribute_no_data_color = computed<ColorRGBA>({
113
113
  get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
114
114
  set: async (newValue) => {
115
115
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -167,7 +167,7 @@ const polygon_attribute_range = computed<AttributeRange>({
167
167
  hybridViewerStore.remoteRender();
168
168
  },
169
169
  });
170
- const polygon_attribute_color_map = computed<Map<string, RGBAColor> | undefined>({
170
+ const polygon_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
171
171
  get: () => dataStyleStore.meshPolygonsPolygonAttributeColorMap(dataId),
172
172
  set: async (newValue) => {
173
173
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -176,7 +176,7 @@ const polygon_attribute_color_map = computed<Map<string, RGBAColor> | undefined>
176
176
  hybridViewerStore.remoteRender();
177
177
  },
178
178
  });
179
- const polygon_attribute_no_data_color = computed<RGBAColor>({
179
+ const polygon_attribute_no_data_color = computed<ColorRGBA>({
180
180
  get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
181
181
  set: async (newValue) => {
182
182
  await applyBatchStyle(dataId, (meshId: MeshId) =>
@@ -6,7 +6,7 @@ import type { MeshId } from "@ogw_front/types/identifiers";
6
6
  import PolygonalSurfacePolygons from "@ogw_front/assets/viewer_svgs/surface_triangles.svg";
7
7
  import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
8
8
  import ViewerSurfacePolygonsColoring from "@ogw_front/components/Viewer/Surface/PolygonsColoring.vue";
9
- import type { Visibility } from "@ogw_front/types/style";
9
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
10
10
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
11
11
  import { useDataStyleStore } from "@ogw_front/stores/data_style";
12
12
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
@@ -32,7 +32,7 @@ defineOptions({ inheritAttrs: false });
32
32
  >
33
33
  {{ label }} &middot; Esc to stop
34
34
  <v-divider vertical class="mx-2 my-1" opacity="0.3" />
35
- <v-icon icon="mdi-close" size="small" />
35
+ <v-icon icon="ph-x" size="small" />
36
36
  </v-chip>
37
37
  </div>
38
38
  </template>
@@ -130,7 +130,7 @@ defineExpose({ get_viewer_id });
130
130
  data-testid="pickingActiveChip"
131
131
  label="Picking active — click in the viewer"
132
132
  color="secondary"
133
- icon="mdi-crosshairs-gps"
133
+ icon="ph-gps-fix"
134
134
  @close="viewerStore.toggle_picking_mode(false)"
135
135
  />
136
136
  <ToolActiveChip
@@ -147,7 +147,7 @@ defineExpose({ get_viewer_id });
147
147
  data-testid="rulerActiveChip"
148
148
  :label="`Ruler — click to set point ${hybridViewerStore.ruler_awaiting_point}`"
149
149
  color="secondary"
150
- icon="mdi-ruler"
150
+ icon="ph-ruler"
151
151
  @close="hybridViewerStore.clearRuler()"
152
152
  />
153
153
  <ToolActiveChip
@@ -1,6 +1,8 @@
1
1
  <script setup lang="ts">
2
2
  import { useToggle } from "@vueuse/core";
3
3
 
4
+ import { useChromeTheme } from "@ogw_front/composables/chrome_theme";
5
+
4
6
  import CsvSettings from "./CsvSettings.vue";
5
7
  import CsvTable from "./CsvTable.vue";
6
8
 
@@ -26,6 +28,8 @@ interface Props {
26
28
  }
27
29
 
28
30
  const { file, modelValue = false } = defineProps<Props>();
31
+ // The dialog takes the chrome theme itself: a wrapper would break the Vuetify dialog > card sizing rules
32
+ const chromeTheme = useChromeTheme();
29
33
 
30
34
  const MAX_CONTENT_SLICE = 1000;
31
35
  const MAX_LINES_FOR_DETECTION = 5;
@@ -212,20 +216,16 @@ function onConfirm(): void {
212
216
  :model-value="modelValue"
213
217
  @update:model-value="emit('update:modelValue', $event)"
214
218
  max-width="1200px"
219
+ :theme="chromeTheme"
215
220
  >
216
- <v-card class="glass-ui rounded-xl overflow-hidden border-opacity-10" color="grey-darken-4">
221
+ <v-card class="glass-ui rounded-xl overflow-hidden border-opacity-10">
217
222
  <v-toolbar color="transparent" flat class="px-4">
218
- <v-icon icon="mdi-file-table" size="32" color="primary" class="ml-1" />
219
- <v-toolbar-title class="text-h6 font-weight-bold text-white">
223
+ <v-icon icon="ph-file-csv" size="32" color="primary" class="ml-1" />
224
+ <v-toolbar-title class="text-h6 font-weight-bold">
220
225
  CSV Previewer & Configuration
221
226
  </v-toolbar-title>
222
227
  <v-spacer />
223
- <v-btn
224
- icon="mdi-close"
225
- variant="text"
226
- color="white"
227
- @click="emit('update:modelValue', false)"
228
- />
228
+ <v-btn icon="ph-x" variant="text" @click="emit('update:modelValue', false)" />
229
229
  </v-toolbar>
230
230
 
231
231
  <v-divider class="border-opacity-10" />
@@ -254,14 +254,9 @@ function onConfirm(): void {
254
254
 
255
255
  <v-divider class="border-opacity-10" />
256
256
 
257
- <v-card-actions class="pa-4 bg-white-opacity-5">
257
+ <v-card-actions class="pa-4 bg-subtle">
258
258
  <v-spacer />
259
- <v-btn
260
- variant="text"
261
- class="text-none px-6"
262
- color="white"
263
- @click="emit('update:modelValue', false)"
264
- >
259
+ <v-btn variant="text" class="text-none px-6" @click="emit('update:modelValue', false)">
265
260
  Cancel
266
261
  </v-btn>
267
262
  <v-btn
@@ -280,10 +275,8 @@ function onConfirm(): void {
280
275
 
281
276
  <style scoped>
282
277
  .glass-ui {
283
- background: rgba(30, 30, 30, 0.8) !important;
284
- backdrop-filter: blur(20px);
285
- -webkit-backdrop-filter: blur(20px);
286
- border: 1px solid rgba(255, 255, 255, 0.1);
278
+ background: rgb(var(--v-theme-surface)) !important;
279
+ border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
287
280
  }
288
281
 
289
282
  .previewer-grid {
@@ -293,8 +286,8 @@ function onConfirm(): void {
293
286
  overflow: hidden;
294
287
  }
295
288
 
296
- .bg-white-opacity-5 {
297
- background: rgba(255, 255, 255, 0.03);
289
+ .bg-subtle {
290
+ background: rgba(var(--v-theme-on-surface), 0.04);
298
291
  }
299
292
 
300
293
  /* Custom scrollbar */
@@ -305,10 +298,10 @@ function onConfirm(): void {
305
298
  background: transparent;
306
299
  }
307
300
  ::-webkit-scrollbar-thumb {
308
- background: rgba(255, 255, 255, 0.1);
301
+ background: rgba(var(--v-theme-on-surface), 0.1);
309
302
  border-radius: 10px;
310
303
  }
311
304
  ::-webkit-scrollbar-thumb:hover {
312
- background: rgba(255, 255, 255, 0.2);
305
+ background: rgba(var(--v-theme-on-surface), 0.2);
313
306
  }
314
307
  </style>
@@ -67,7 +67,7 @@ watch(customValue, (newVal) => {
67
67
  </script>
68
68
 
69
69
  <template>
70
- <div class="pa-6 overflow-y-auto border-e border-opacity-10 bg-white-opacity-5">
70
+ <div class="pa-6 overflow-y-auto border-e border-opacity-10 bg-subtle">
71
71
  <div class="text-overline mb-4 text-primary font-weight-bold">Parser Settings</div>
72
72
 
73
73
  <v-select
@@ -135,7 +135,7 @@ watch(customValue, (newVal) => {
135
135
  label="X Column"
136
136
  variant="outlined"
137
137
  density="compact"
138
- prepend-inner-icon="mdi-axis-x-arrow"
138
+ prepend-inner-icon="ph-arrow-right"
139
139
  color="light-blue-accent-3"
140
140
  class="mb-2"
141
141
  clearable
@@ -150,7 +150,7 @@ watch(customValue, (newVal) => {
150
150
  label="Y Column"
151
151
  variant="outlined"
152
152
  density="compact"
153
- prepend-inner-icon="mdi-axis-y-arrow"
153
+ prepend-inner-icon="ph-arrow-up-right"
154
154
  color="light-green-accent-3"
155
155
  class="mb-2"
156
156
  clearable
@@ -165,7 +165,7 @@ watch(customValue, (newVal) => {
165
165
  label="Z Column"
166
166
  variant="outlined"
167
167
  density="compact"
168
- prepend-inner-icon="mdi-axis-z-arrow"
168
+ prepend-inner-icon="ph-arrow-up"
169
169
  color="red-accent-3"
170
170
  class="mb-8"
171
171
  clearable
@@ -176,7 +176,7 @@ watch(customValue, (newVal) => {
176
176
  </template>
177
177
 
178
178
  <style scoped>
179
- .bg-white-opacity-5 {
180
- background: rgba(255, 255, 255, 0.03);
179
+ .bg-subtle {
180
+ background: rgba(var(--v-theme-on-surface), 0.04);
181
181
  }
182
182
  </style>
@@ -47,9 +47,9 @@ function getColumnClass(key: string): string {
47
47
  </script>
48
48
 
49
49
  <template>
50
- <div class="d-flex flex-column bg-black-opacity-20 overflow-hidden h-100">
50
+ <div class="d-flex flex-column bg-inset overflow-hidden h-100">
51
51
  <div class="pa-4 d-flex align-center border-b border-opacity-10">
52
- <v-icon icon="mdi-table-eye" size="small" class="mr-2 opacity-60" />
52
+ <v-icon icon="ph-table" size="small" class="mr-2 opacity-60" />
53
53
  <span class="text-subtitle-2 font-weight-medium opacity-80">
54
54
  Live Preview (First 100 rows)
55
55
  </span>
@@ -80,7 +80,7 @@ function getColumnClass(key: string): string {
80
80
 
81
81
  <template #no-data>
82
82
  <div class="d-flex flex-column align-center justify-center h-100 py-12 opacity-40">
83
- <v-icon size="64" icon="mdi-table-off" />
83
+ <v-icon size="64" icon="ph-table" />
84
84
  <div class="text-h6 mt-2">No preview available</div>
85
85
  <div class="text-caption">Check your parser settings</div>
86
86
  </div>
@@ -90,15 +90,17 @@ function getColumnClass(key: string): string {
90
90
  </template>
91
91
 
92
92
  <style scoped>
93
- .bg-black-opacity-20 {
94
- background: rgba(0, 0, 0, 0.2);
93
+ .bg-inset {
94
+ background: rgba(var(--v-theme-background), 0.6);
95
95
  }
96
96
 
97
97
  :deep(.v-data-table__th) {
98
- background: #1e1e1e !important; /* Solid background to prevent overlap transparency */
98
+ background: rgb(
99
+ var(--v-theme-surface)
100
+ ) !important; /* Solid background to prevent overlap transparency */
99
101
  color: rgba(var(--v-theme-primary), 0.9) !important;
100
102
  font-weight: bold !important;
101
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
103
+ border-bottom: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
102
104
  text-transform: uppercase;
103
105
  font-size: 0.75rem;
104
106
  letter-spacing: 0.5px;
@@ -107,8 +109,8 @@ function getColumnClass(key: string): string {
107
109
  }
108
110
 
109
111
  :deep(.v-data-table__td) {
110
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
111
- color: rgba(255, 255, 255, 0.8) !important;
112
+ border-bottom: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
113
+ color: rgba(var(--v-theme-on-surface), 0.8) !important;
112
114
  }
113
115
 
114
116
  :deep(.v-data-table__tr:hover td) {
@@ -1,6 +1,6 @@
1
1
  import type { AttributeRangeInfo, AttributeSchemas } from "@ogw_front/utils/attribute_range";
2
2
  import type { AttributeTimeStep, ValidAttributeRange } from "@ogw_front/types/attribute";
3
- import type { DataId } from "@ogw_front/types/identifiers";
3
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
4
4
  import { getAttributeRange } from "@ogw_front/utils/attributes";
5
5
 
6
6
  // The minimum and maximum of an attribute range: each one is clamped by the other
@@ -1,8 +1,7 @@
1
1
  import type {
2
2
  AttributeRangeMaximum,
3
3
  AttributeRangeMinimum,
4
- ValidAttributeRange,
5
- } from "@ogw_front/types/attribute";
4
+ } from "@geode/opengeodeweb-viewer/schema_types";
6
5
  import {
7
6
  type ComputedRef,
8
7
  type InjectionKey,
@@ -12,7 +11,8 @@ import {
12
11
  provide,
13
12
  toValue,
14
13
  } from "vue";
15
- import type { DataId } from "@ogw_front/types/identifiers";
14
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
15
+ import type { ValidAttributeRange } from "@ogw_front/types/attribute";
16
16
  import { useDataStore } from "@ogw_front/stores/data";
17
17
  import { useTreeviewStore } from "@ogw_front/stores/treeview";
18
18
 
@@ -1,5 +1,5 @@
1
1
  import { type MaybeRefOrGetter, type WritableComputedRef, computed, toValue } from "vue";
2
- import type { DataId } from "@ogw_front/types/identifiers";
2
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
3
3
  import { useBatchStyle } from "@ogw_front/composables/batch_style";
4
4
  import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
5
5
 
@@ -0,0 +1,23 @@
1
+ import { type ComputedRef, computed, inject } from "vue";
2
+ import { useTheme } from "vuetify";
3
+
4
+ // The light or dark Vuetify theme, or "inherit" to follow the app's current theme
5
+ type ChromeTheme = "dark" | "inherit" | "light";
6
+
7
+ const DEFAULT_CHROME_THEME: ChromeTheme = "dark";
8
+ const INHERIT_THEME = "inherit";
9
+ // Provided on the Vue app by plugins/chrome_theme.ts. A plain string key and Vue's inject (no Nuxt
10
+ // Composable) so components bundled outside Nuxt, such as Vease extensions, read it from the host app.
11
+ const CHROME_THEME_KEY = "ogw:chrome-theme";
12
+
13
+ // Vuetify theme to apply on the floating chrome (GlassCard panels, loading screen...).
14
+ // Apps choose it with `ogwFront.chromeTheme` in their app.config.ts; "inherit" follows the app's
15
+ // Current global theme (teleported content needs an explicit theme name to get its CSS variables).
16
+ function useChromeTheme(): ComputedRef<string> {
17
+ const chromeTheme = inject<ChromeTheme>(CHROME_THEME_KEY, DEFAULT_CHROME_THEME);
18
+ const theme = useTheme();
19
+ return computed(() => (chromeTheme === INHERIT_THEME ? theme.global.name.value : chromeTheme));
20
+ }
21
+
22
+ export type { ChromeTheme };
23
+ export { CHROME_THEME_KEY, DEFAULT_CHROME_THEME, useChromeTheme };
@@ -4,7 +4,8 @@ import {
4
4
  type SliceAxis,
5
5
  areAllGrids,
6
6
  } from "@ogw_front/utils/slice";
7
- import type { DataIdentified, GeodeObjectType } from "@ogw_front/types/identifiers";
7
+ import type { DataIdentified } from "@ogw_front/types/identifiers";
8
+ import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
8
9
  import type { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
9
10
 
10
11
  interface Slice {
@@ -1,5 +1,7 @@
1
- import type { DataId } from "@ogw_front/types/identifiers";
1
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
2
2
  import type { ParamsOf } from "@ogw_shared/utils/types";
3
+ import type { ViewerId } from "@geode/opengeodeweb-viewer/schema_types";
4
+ import type { ViewerObjectType } from "@geode/opengeodeweb-microservice/data_types";
3
5
  import { consola } from "consola";
4
6
  import { useDataStore } from "@ogw_front/stores/data";
5
7
  import { useViewerStore } from "@ogw_front/stores/viewer";
@@ -7,9 +9,10 @@ import vtk_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_sc
7
9
 
8
10
  const HOVER_DELAY = 200;
9
11
 
10
- type HighlightType = "mesh" | "model";
11
- type HighlightSchema = (typeof vtk_schemas)["opengeodeweb_viewer"][HighlightType]["highlight"];
12
- type BlockIdsProvider = readonly number[] | (() => readonly number[] | Promise<readonly number[]>);
12
+ type HighlightSchema = (typeof vtk_schemas)["opengeodeweb_viewer"][ViewerObjectType]["highlight"];
13
+ type BlockIdsProvider =
14
+ | readonly ViewerId[]
15
+ | (() => readonly ViewerId[] | Promise<readonly ViewerId[]>);
13
16
 
14
17
  // Every live instance, so a highlight can be released from outside the component that started it
15
18
  const instances = new Set<(dataId: DataId) => void>();
@@ -34,12 +37,12 @@ function useHoverhighlight(): {
34
37
  // Item hovered last, whose highlight may still be pending
35
38
  let currentId: DataId | undefined = undefined;
36
39
  // Item the viewer was asked to highlight, the only one to unhighlight
37
- let highlighted: { dataId: DataId; type: HighlightType } | undefined = undefined;
40
+ let highlighted: { dataId: DataId; type: ViewerObjectType } | undefined = undefined;
38
41
 
39
42
  function onHoverEnter(
40
43
  dataId: DataId,
41
44
  block_ids_provider: BlockIdsProvider = [],
42
- type: HighlightType = "model",
45
+ type: ViewerObjectType = "model",
43
46
  immediate = false,
44
47
  ): void {
45
48
  if (timer) {
@@ -106,7 +109,7 @@ function useHoverhighlight(): {
106
109
  }
107
110
 
108
111
  async function unhighlightAction(
109
- type: HighlightType,
112
+ type: ViewerObjectType,
110
113
  dataId: DataId,
111
114
  request: {
112
115
  schema: HighlightSchema;
@@ -1,6 +1,6 @@
1
1
  import { type DataItem, useDataStore } from "@ogw_front/stores/data";
2
2
  import type { EffectScope, MaybeRefOrGetter, ShallowRef } from "vue";
3
- import type { DataId } from "@ogw_front/types/identifiers";
3
+ import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
4
4
 
5
5
  // Live view of a data item whose id can change: tree labels are reused by the virtual list,
6
6
  // And the info card shows whichever object the menu was last opened on.
@@ -1,10 +1,12 @@
1
1
  import { type ComputedRef, type Ref, computed, ref, watch } from "vue";
2
- import type { ModelId, ModelIdentified, ViewerObjectTyped } from "@ogw_front/types/identifiers";
2
+ import type { ModelId, ModelIdentified } from "@ogw_front/types/identifiers";
3
3
  import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
4
4
  import { MESH_COMPONENT_TYPES } from "@ogw_front/utils/default_styles";
5
+ import type { MenuViewerObjectType } from "@ogw_front/stores/menu";
5
6
  import { useDataStore } from "@ogw_front/stores/data";
6
7
 
7
- interface ModelMenuMetaData extends Partial<ViewerObjectTyped>, Partial<ModelIdentified> {
8
+ interface ModelMenuMetaData extends Partial<ModelIdentified> {
9
+ viewer_object_type?: MenuViewerObjectType;
8
10
  pickedComponentId?: string;
9
11
  modelComponentType?: string;
10
12
  targetComponentIds?: string[];
@@ -35,6 +37,11 @@ function useModelMenuContext(getItemProps: () => ModelMenuItemProps): ModelMenuC
35
37
  const componentType = ref<string | undefined>(undefined);
36
38
  const collections = ref<CollectionComponent[] | undefined>(undefined);
37
39
 
40
+ // A function so the check after an await is not narrowed by the one before it
41
+ function isComponentTypeMenu(): boolean {
42
+ return metaData.value.viewer_object_type === "model_component_type";
43
+ }
44
+
38
45
  watch(
39
46
  () => [
40
47
  modelId.value,
@@ -45,7 +52,7 @@ function useModelMenuContext(getItemProps: () => ModelMenuItemProps): ModelMenuC
45
52
  async () => {
46
53
  componentType.value = undefined;
47
54
  collections.value = undefined;
48
- if (metaData.value.viewer_object_type === "model_component_type") {
55
+ if (isComponentTypeMenu()) {
49
56
  const { modelComponentType = "", targetComponentIds: ids = [] } = metaData.value;
50
57
  if (MESH_COMPONENT_TYPES.includes(modelComponentType)) {
51
58
  componentType.value = modelComponentType;
@@ -63,7 +70,7 @@ function useModelMenuContext(getItemProps: () => ModelMenuItemProps): ModelMenuC
63
70
  if (
64
71
  modelId.value === currentModelId &&
65
72
  componentId.value === currentCompId &&
66
- metaData.value.viewer_object_type !== "model_component_type"
73
+ !isComponentTypeMenu()
67
74
  ) {
68
75
  componentType.value = type;
69
76
  }
@@ -0,0 +1,133 @@
1
+ import type { ComputedRef, Ref } from "vue";
2
+ import type { SceneOrientationWidget } from "@ogw_internal/stores/data_style/types";
3
+ import { consola } from "consola";
4
+ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
5
+
6
+ // Marker value hiding the VTK orientation marker of the viewer
7
+ const NO_VIEWER_MARKER = "none";
8
+
9
+ type ViewerOrientationMarker = SceneOrientationWidget | typeof NO_VIEWER_MARKER;
10
+
11
+ // Apps opt in with `ogwFront.orientationOverlay` in their app.config.ts: the front then draws the
12
+ // Orientation marker (Viewer/OrientationOverlay.vue) and the viewer draws none.
13
+ function readOrientationOverlay(appConfig: ReturnType<typeof useAppConfig>): boolean {
14
+ // The resolved type holds the layer's literal default (false): widen it to the config input type
15
+ const ogwFront: { orientationOverlay?: boolean } | undefined = appConfig.ogwFront;
16
+ return ogwFront?.orientationOverlay === true;
17
+ }
18
+
19
+ function isOrientationOverlayEnabled(): boolean {
20
+ return readOrientationOverlay(useAppConfig());
21
+ }
22
+
23
+ function useOrientationOverlay(): ComputedRef<boolean> {
24
+ const appConfig = useAppConfig();
25
+ return computed(() => readOrientationOverlay(appConfig));
26
+ }
27
+
28
+ // Marker sent to the viewer for the scene style choice: the scene style keeps the user's choice
29
+ function viewerOrientationMarker(marker: SceneOrientationWidget): ViewerOrientationMarker {
30
+ return isOrientationOverlayEnabled() ? NO_VIEWER_MARKER : marker;
31
+ }
32
+
33
+ interface HideViewerMarkerRequest {
34
+ schema: typeof viewer_schemas.opengeodeweb_viewer.viewer.set_orientation_widget;
35
+ params: { marker: typeof NO_VIEWER_MARKER };
36
+ }
37
+
38
+ // Request hiding the VTK marker, undefined when the app keeps it
39
+ function hideViewerMarkerRequest(): HideViewerMarkerRequest | undefined {
40
+ if (!isOrientationOverlayEnabled()) {
41
+ return undefined;
42
+ }
43
+ return {
44
+ schema: viewer_schemas.opengeodeweb_viewer.viewer.set_orientation_widget,
45
+ params: { marker: NO_VIEWER_MARKER },
46
+ };
47
+ }
48
+
49
+ // To call after each viewer reset, which brings the VTK axes back
50
+ async function hideViewerMarker(
51
+ request: (args: HideViewerMarkerRequest) => Promise<unknown>,
52
+ ): Promise<void> {
53
+ const hideMarker = hideViewerMarkerRequest();
54
+ if (!hideMarker) {
55
+ return;
56
+ }
57
+ try {
58
+ await request(hideMarker);
59
+ } catch (error) {
60
+ // A viewer without the "none" marker keeps drawing its own: not a reason to fail the reset, but both markers
61
+ // Then show, so it is reported
62
+ consola.warn("[OrientationOverlay] The viewer kept its orientation marker:", error);
63
+ }
64
+ }
65
+
66
+ interface AxesVisibilityRequest {
67
+ schema: typeof viewer_schemas.opengeodeweb_viewer.viewer.axes;
68
+ params: { visibility: boolean };
69
+ }
70
+
71
+ // Whether the orientation marker shows. A viewer reset shows it again
72
+ const orientationMarkerVisible = ref(true);
73
+
74
+ function useOrientationMarkerVisible(): Readonly<Ref<boolean>> {
75
+ return readonly(orientationMarkerVisible);
76
+ }
77
+
78
+ // The viewer keeps the visibility for its own marker (scene screenshots), the overlay follows it
79
+ async function setOrientationMarkerVisibility(
80
+ visibility: boolean,
81
+ request: (args: AxesVisibilityRequest) => Promise<unknown>,
82
+ ): Promise<void> {
83
+ await request({
84
+ schema: viewer_schemas.opengeodeweb_viewer.viewer.axes,
85
+ params: { visibility },
86
+ });
87
+ orientationMarkerVisible.value = visibility;
88
+ }
89
+
90
+ // To call after each viewer reset, which shows the VTK marker again
91
+ function resetOrientationMarkerVisibility(): void {
92
+ orientationMarkerVisible.value = true;
93
+ }
94
+
95
+ interface ViewerMarkerRequest {
96
+ schema: typeof viewer_schemas.opengeodeweb_viewer.viewer.set_orientation_widget;
97
+ params: { marker: ViewerOrientationMarker };
98
+ }
99
+
100
+ // The viewer renders the scene screenshots, without the front overlay: with the overlay on, the VTK marker of the
101
+ // User's choice is drawn for the time of the capture, then hidden again (also when the capture fails)
102
+ async function withViewerMarker<Result>(
103
+ marker: SceneOrientationWidget,
104
+ request: (args: ViewerMarkerRequest) => Promise<unknown>,
105
+ capture: () => Promise<Result>,
106
+ ): Promise<Result> {
107
+ if (!isOrientationOverlayEnabled()) {
108
+ return capture();
109
+ }
110
+ await request({
111
+ schema: viewer_schemas.opengeodeweb_viewer.viewer.set_orientation_widget,
112
+ params: { marker },
113
+ });
114
+ try {
115
+ return await capture();
116
+ } finally {
117
+ await hideViewerMarker(request);
118
+ }
119
+ }
120
+
121
+ export {
122
+ NO_VIEWER_MARKER,
123
+ hideViewerMarker,
124
+ hideViewerMarkerRequest,
125
+ isOrientationOverlayEnabled,
126
+ resetOrientationMarkerVisibility,
127
+ setOrientationMarkerVisibility,
128
+ useOrientationMarkerVisible,
129
+ useOrientationOverlay,
130
+ viewerOrientationMarker,
131
+ withViewerMarker,
132
+ };
133
+ export type { ViewerOrientationMarker };
@@ -1,5 +1,6 @@
1
1
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
2
2
 
3
+ import { afterViewerReset } from "@ogw_front/composables/viewer_reset";
3
4
  import { releaseViewerDatabase } from "@ogw_front/composables/project_manager_helpers/viewer_session";
4
5
  import { useBasemapStore } from "@ogw_front/stores/basemap";
5
6
  import { useCrsStore } from "@ogw_front/stores/crs";
@@ -23,6 +24,7 @@ async function resetProject(): Promise<void> {
23
24
  const resetVisualizationSchema = viewer_schemas.opengeodeweb_viewer.viewer.reset_visualization;
24
25
  const timeout = undefined;
25
26
  await viewerStore.request({ schema: resetVisualizationSchema, timeout });
27
+ await afterViewerReset(viewerStore.request);
26
28
 
27
29
  treeviewStore.clear();
28
30
  await dataStore.clear();
@@ -1,5 +1,5 @@
1
1
  import type { BasemapSnapshot } from "@ogw_front/stores/basemap";
2
- import type { CRSList } from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
2
+ import type { CRS } from "@geode/opengeodeweb-back/schema_types";
3
3
  import type { CameraSnapshot } from "@ogw_internal/stores/hybrid_viewer/camera";
4
4
  import type { DataStyleSnapshot } from "@ogw_front/stores/data_style";
5
5
  import type { LegacyDataId } from "@ogw_front/utils/legacy_data_id";
@@ -23,7 +23,7 @@ interface ProjectSnapshot {
23
23
  data?: ProjectDataSnapshot;
24
24
  hybridViewer?: CameraSnapshot;
25
25
  dataStyle?: DataStyleSnapshot;
26
- crs?: { projectCrs?: CRSList };
26
+ crs?: { projectCrs?: CRS };
27
27
  basemap?: BasemapSnapshot;
28
28
  }
29
29