@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.
- package/.build/shared/utils/response_handlers/load.js +5 -2
- package/.build/tests/browser/helpers/object_trees/main_object_tree.js +3 -3
- package/.build/tests/browser/helpers/object_trees/model_components_object_tree.js +2 -2
- package/.build/tests/browser/suites/model/surfaces.js +1 -1
- package/app/app.config.ts +28 -0
- package/app/assets/css/main.css +11 -0
- package/app/assets/geode_objects.ts +37 -108
- package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
- package/app/components/ActionButton.vue +9 -2
- package/app/components/CameraManager/List.vue +6 -6
- package/app/components/CameraManager.vue +0 -1
- package/app/components/CameraOrientation.vue +12 -7
- package/app/components/ChromeTheme.vue +20 -0
- package/app/components/ClippingPlaneCard.vue +2 -3
- package/app/components/ClippingPlanes.vue +2 -2
- package/app/components/CrsSelector.vue +8 -8
- package/app/components/DeleteDialog.vue +12 -16
- package/app/components/DragAndDropInternal/DragAndDropInline.vue +7 -7
- package/app/components/DragAndDropInternal/DragAndDropOverlay.vue +87 -82
- package/app/components/ExtensionSelector.vue +21 -14
- package/app/components/FactorFilterPanel.vue +0 -1
- package/app/components/FeedBack/ErrorBanner.vue +8 -9
- package/app/components/FeedBack/Snackers.vue +5 -7
- package/app/components/FileUploader.vue +13 -21
- package/app/components/GlassCard.vue +3 -1
- package/app/components/HybridRenderingView.vue +2 -0
- package/app/components/HybridViewerTooltip.vue +4 -4
- package/app/components/Launcher.vue +1 -1
- package/app/components/Loading/EcoMessages.vue +17 -11
- package/app/components/Loading/Footer.vue +2 -2
- package/app/components/Loading/Header.vue +9 -4
- package/app/components/Loading/Progress.vue +7 -3
- package/app/components/Loading.vue +54 -46
- package/app/components/MissingFilesSelector.vue +5 -5
- package/app/components/ObjectSelector.vue +8 -15
- package/app/components/PackagesVersions.vue +1 -3
- package/app/components/ProjectCrs.vue +1 -1
- package/app/components/Screenshot.vue +23 -15
- package/app/components/SearchBar.vue +1 -3
- package/app/components/SliceCard.vue +1 -2
- package/app/components/Step.vue +1 -1
- package/app/components/Stepper.vue +13 -11
- package/app/components/ThresholdCard.vue +1 -1
- package/app/components/ThresholdFilter.vue +2 -2
- package/app/components/TimeSeriesTargetSelector.vue +3 -6
- package/app/components/ToolPanel.vue +3 -9
- package/app/components/Viewer/Basemap/CropOptions.vue +1 -1
- package/app/components/Viewer/Basemap/OpacityOptions.vue +1 -1
- package/app/components/Viewer/ContextMenu/CenterButton.vue +9 -3
- package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
- package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +17 -6
- package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -13
- package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
- package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
- package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
- package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
- package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
- package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
- package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
- package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
- package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
- package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
- package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
- package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +4 -4
- package/app/components/Viewer/ObjectTree/Base/ComponentRelations.vue +1 -1
- package/app/components/Viewer/ObjectTree/Base/Controls.vue +22 -18
- package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +11 -11
- package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +3 -3
- package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +6 -9
- package/app/components/Viewer/ObjectTree/Box.vue +20 -21
- package/app/components/Viewer/ObjectTree/Layout.vue +28 -25
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +4 -3
- package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +1 -1
- package/app/components/Viewer/Options/AttributeRangeSelector.vue +1 -1
- package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
- package/app/components/Viewer/Options/ColorMapList.vue +7 -9
- package/app/components/Viewer/Options/ColorMapPicker.vue +2 -2
- package/app/components/Viewer/Options/ColorPicker.vue +9 -9
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +9 -9
- package/app/components/Viewer/Options/NoDataColorInfo.vue +4 -4
- package/app/components/Viewer/Options/Sliders/Opacity.vue +1 -1
- package/app/components/Viewer/Options/Sliders/Slider.vue +1 -1
- package/app/components/Viewer/Options/TextureItem.vue +11 -8
- package/app/components/Viewer/Options/TexturesSelector.vue +3 -3
- package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
- package/app/components/Viewer/OrientationCompass.vue +223 -0
- package/app/components/Viewer/OrientationGlobe.vue +376 -0
- package/app/components/Viewer/OrientationOverlay.vue +47 -0
- package/app/components/Viewer/OverlappingObjectsPicker.vue +10 -7
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
- package/app/components/Viewer/Scene/BackgroundOptions.vue +3 -3
- package/app/components/Viewer/Scene/OrientationWidgetOptions.vue +1 -1
- package/app/components/Viewer/Scene/TextOptions.vue +3 -3
- package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
- package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/ToolActiveChip.vue +1 -1
- package/app/components/Viewer/Ui.vue +2 -2
- package/app/components/csv-preview/CsvPreviewer.vue +17 -24
- package/app/components/csv-preview/CsvSettings.vue +6 -6
- package/app/components/csv-preview/CsvTable.vue +11 -9
- package/app/composables/attribute_selector.ts +1 -1
- package/app/composables/batch_style.ts +3 -3
- package/app/composables/batch_style_model.ts +1 -1
- package/app/composables/chrome_theme.ts +23 -0
- package/app/composables/clipping_slices.ts +2 -1
- package/app/composables/hover_highlight.ts +10 -7
- package/app/composables/live_data_item.ts +1 -1
- package/app/composables/model_menu_context.ts +11 -4
- package/app/composables/orientation_overlay.ts +133 -0
- package/app/composables/project_manager_helpers/reset.ts +2 -0
- package/app/composables/project_manager_helpers/types.ts +2 -2
- package/app/composables/use_adaptive_styles.ts +42 -21
- package/app/composables/use_overlapping_picker.ts +10 -8
- package/app/composables/view_toolbar_options.ts +7 -7
- package/app/composables/view_toolbar_tool_options.ts +9 -11
- package/app/composables/viewer_context_menu.ts +4 -2
- package/app/composables/viewer_reset.ts +54 -0
- package/app/plugins/chrome_theme.ts +10 -0
- package/app/plugins/phosphor_icons.ts +13 -0
- package/app/plugins/scene_colors.ts +10 -0
- package/app/stores/basemap_helpers/builds.ts +2 -2
- package/app/stores/basemap_helpers/viewer.ts +1 -1
- package/app/stores/crs.ts +12 -12
- package/app/stores/data.ts +4 -5
- package/app/stores/data_helpers/mesh.ts +2 -1
- package/app/stores/data_style.ts +4 -3
- package/app/stores/hybrid_viewer.ts +5 -3
- package/app/stores/menu.ts +18 -12
- package/app/stores/treeview.ts +5 -4
- package/app/stores/viewer.ts +2 -0
- package/app/types/attribute.ts +5 -21
- package/app/types/identifiers.ts +5 -15
- package/app/utils/attribute_range.ts +1 -1
- package/app/utils/attributes.ts +2 -1
- package/app/utils/clipping_planes.ts +1 -1
- package/app/utils/color_picker.ts +3 -3
- package/app/utils/crs.ts +6 -6
- package/app/utils/default_styles/constants.ts +17 -22
- package/app/utils/default_styles/index.ts +24 -3
- package/app/utils/default_styles/mesh_components.ts +15 -11
- package/app/utils/default_styles/meshes.ts +1 -1
- package/app/utils/default_styles/model_components.ts +14 -10
- package/app/utils/default_styles/models.ts +1 -1
- package/app/utils/import_workflow.ts +3 -1
- package/app/utils/legacy_data_id.ts +2 -1
- package/app/utils/orientation_compass.ts +103 -0
- package/app/utils/orientation_gizmo.ts +73 -0
- package/app/utils/orientation_globe.ts +145 -0
- package/app/utils/orientation_strata.ts +119 -0
- package/app/utils/phosphor_icons.ts +105 -0
- package/app/utils/slice.ts +2 -1
- package/app/utils/threshold_sources.ts +1 -1
- package/internal/stores/data_style/attribute_types.ts +6 -6
- package/internal/stores/data_style/mesh/base_style.ts +6 -7
- package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
- package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
- package/internal/stores/data_style/mesh/cells/color.ts +6 -6
- package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/edges/color.ts +6 -6
- package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
- package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
- package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/edges/width.ts +6 -6
- package/internal/stores/data_style/mesh/index.ts +3 -4
- package/internal/stores/data_style/mesh/points/color.ts +6 -6
- package/internal/stores/data_style/mesh/points/common.ts +1 -1
- package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/points/size.ts +6 -6
- package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
- package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
- package/internal/stores/data_style/model/blocks/color.ts +6 -6
- package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
- package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
- package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
- package/internal/stores/data_style/model/color.ts +10 -11
- package/internal/stores/data_style/model/common.ts +3 -4
- package/internal/stores/data_style/model/corners/color.ts +6 -6
- package/internal/stores/data_style/model/corners/index.ts +2 -2
- package/internal/stores/data_style/model/corners/vertex.ts +12 -9
- package/internal/stores/data_style/model/corners/visibility.ts +1 -1
- package/internal/stores/data_style/model/edges/component.ts +13 -13
- package/internal/stores/data_style/model/edges/visibility.ts +1 -1
- package/internal/stores/data_style/model/edges/width.ts +6 -6
- package/internal/stores/data_style/model/lines/color.ts +6 -6
- package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/lines/edge.ts +12 -9
- package/internal/stores/data_style/model/lines/vertex.ts +12 -9
- package/internal/stores/data_style/model/lines/visibility.ts +1 -1
- package/internal/stores/data_style/model/points/component.ts +17 -13
- package/internal/stores/data_style/model/points/index.ts +2 -2
- package/internal/stores/data_style/model/points/size.ts +6 -6
- package/internal/stores/data_style/model/points/visibility.ts +1 -1
- package/internal/stores/data_style/model/surfaces/color.ts +6 -6
- package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
- package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
- package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
- package/internal/stores/data_style/model/visibility.ts +1 -1
- package/internal/stores/data_style/scene.ts +31 -19
- package/internal/stores/data_style/time_step.ts +3 -2
- package/internal/stores/data_style/types.ts +3 -4
- package/internal/stores/hybrid_viewer/brightness.ts +14 -7
- package/internal/stores/hybrid_viewer/camera.ts +1 -1
- package/internal/stores/hybrid_viewer/constants.ts +1 -12
- package/internal/stores/hybrid_viewer/filters.ts +2 -2
- package/internal/stores/hybrid_viewer/highlight.ts +2 -1
- package/internal/stores/hybrid_viewer/scene.ts +11 -4
- package/nuxt.config.ts +9 -1
- package/package.json +4 -2
- package/shared/utils/response_handlers/load.ts +19 -11
- package/tests/browser/helpers/object_trees/main_object_tree.ts +3 -3
- package/tests/browser/helpers/object_trees/model_components_object_tree.ts +2 -2
- package/tests/browser/suites/model/surfaces.ts +1 -1
- package/tests/unit/helpers/phosphor_glyphs.ts +46 -0
- package/app/assets/viewer_svgs/camera-bookmark.svg +0 -64
- package/app/types/style.ts +0 -13
|
@@ -57,13 +57,7 @@ function close(): void {
|
|
|
57
57
|
<template #actions>
|
|
58
58
|
<slot name="actions">
|
|
59
59
|
<v-card-actions class="justify-center pb-3 pt-0" style="gap: 8px">
|
|
60
|
-
<v-btn
|
|
61
|
-
variant="text"
|
|
62
|
-
size="small"
|
|
63
|
-
color="white"
|
|
64
|
-
class="text-caption text-none"
|
|
65
|
-
@click="close"
|
|
66
|
-
>
|
|
60
|
+
<v-btn variant="text" size="small" class="text-caption text-none" @click="close">
|
|
67
61
|
{{ closeLabel }}
|
|
68
62
|
</v-btn>
|
|
69
63
|
<v-btn
|
|
@@ -71,7 +65,6 @@ function close(): void {
|
|
|
71
65
|
data-testid="toolPanelActionButton"
|
|
72
66
|
variant="outlined"
|
|
73
67
|
size="small"
|
|
74
|
-
color="white"
|
|
75
68
|
class="text-caption text-none"
|
|
76
69
|
@click="emit('action')"
|
|
77
70
|
>
|
|
@@ -85,7 +78,8 @@ function close(): void {
|
|
|
85
78
|
|
|
86
79
|
<style scoped>
|
|
87
80
|
.tool-panel {
|
|
88
|
-
z-index
|
|
81
|
+
/* Above the orientation overlay (Viewer/OrientationOverlay.vue, z-index 1), which comes later in the viewer */
|
|
82
|
+
z-index: 2;
|
|
89
83
|
top: 90px;
|
|
90
84
|
right: 70px;
|
|
91
85
|
}
|
|
@@ -89,7 +89,7 @@ function onCenterClick(event: MouseEvent): void {
|
|
|
89
89
|
@mouseup="onMouseUp"
|
|
90
90
|
@click.stop="onCenterClick"
|
|
91
91
|
>
|
|
92
|
-
<v-icon icon="
|
|
92
|
+
<v-icon icon="ph-info" size="28" color="primary" style="pointer-events: none" />
|
|
93
93
|
</v-btn>
|
|
94
94
|
</template>
|
|
95
95
|
|
|
@@ -106,7 +106,10 @@ function onCenterClick(event: MouseEvent): void {
|
|
|
106
106
|
content: "";
|
|
107
107
|
position: absolute;
|
|
108
108
|
inset: 0;
|
|
109
|
-
background: rgba(
|
|
109
|
+
background: rgba(
|
|
110
|
+
var(--v-theme-surface),
|
|
111
|
+
max(var(--adaptive-opacity), var(--ogw-viewer-glass-min-opacity, 0))
|
|
112
|
+
);
|
|
110
113
|
backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
111
114
|
-webkit-backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
112
115
|
z-index: 0;
|
|
@@ -123,6 +126,9 @@ function onCenterClick(event: MouseEvent): void {
|
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
.central-selector-btn:hover::before {
|
|
126
|
-
background: rgba(
|
|
129
|
+
background: rgba(
|
|
130
|
+
var(--v-theme-surface),
|
|
131
|
+
calc(max(var(--adaptive-opacity, 0.15), var(--ogw-viewer-glass-min-opacity, 0)) + 0.15)
|
|
132
|
+
);
|
|
127
133
|
}
|
|
128
134
|
</style>
|
|
@@ -114,7 +114,7 @@ useEventListener(globalThis, "mouseup", (event: MouseEvent) => {
|
|
|
114
114
|
|
|
115
115
|
const menu_items = shallowRef<Component[]>([]);
|
|
116
116
|
watch(
|
|
117
|
-
() => [meta_data.value.viewer_object_type, meta_data.value.geode_object_type],
|
|
117
|
+
() => [meta_data.value.viewer_object_type, meta_data.value.geode_object_type] as const,
|
|
118
118
|
([viewer_object_type, geode_object_type]) => {
|
|
119
119
|
menu_items.value = menuStore.getMenuItems(viewer_object_type, geode_object_type);
|
|
120
120
|
},
|
|
@@ -26,7 +26,7 @@ interface Props {
|
|
|
26
26
|
index: number;
|
|
27
27
|
itemProps: ItemProps;
|
|
28
28
|
tooltip: string;
|
|
29
|
-
// An image, or an
|
|
29
|
+
// An image, or an icon name of the app icon set (ph-...)
|
|
30
30
|
btnImage?: string;
|
|
31
31
|
btnIcon?: string;
|
|
32
32
|
}
|
|
@@ -162,6 +162,7 @@ export type { ItemProps };
|
|
|
162
162
|
:src="btnImage"
|
|
163
163
|
height="28"
|
|
164
164
|
width="28"
|
|
165
|
+
class="ogw-svg-icon"
|
|
165
166
|
style="pointer-events: none; object-fit: contain"
|
|
166
167
|
/>
|
|
167
168
|
</v-btn>
|
|
@@ -214,7 +215,7 @@ export type { ItemProps };
|
|
|
214
215
|
|
|
215
216
|
.menu-btn {
|
|
216
217
|
background: transparent !important;
|
|
217
|
-
border: 1px solid rgba(
|
|
218
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
|
|
218
219
|
position: relative;
|
|
219
220
|
overflow: hidden;
|
|
220
221
|
transition: all 0.2s ease;
|
|
@@ -224,7 +225,10 @@ export type { ItemProps };
|
|
|
224
225
|
content: "";
|
|
225
226
|
position: absolute;
|
|
226
227
|
inset: 0;
|
|
227
|
-
background: rgba(
|
|
228
|
+
background: rgba(
|
|
229
|
+
var(--v-theme-surface),
|
|
230
|
+
max(var(--adaptive-opacity), var(--ogw-viewer-glass-min-opacity, 0))
|
|
231
|
+
);
|
|
228
232
|
backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
229
233
|
-webkit-backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
230
234
|
z-index: 0;
|
|
@@ -240,12 +244,15 @@ export type { ItemProps };
|
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
.menu-btn:hover::before {
|
|
243
|
-
background: rgba(
|
|
247
|
+
background: rgba(
|
|
248
|
+
var(--v-theme-surface),
|
|
249
|
+
calc(max(var(--adaptive-opacity, 0.15), var(--ogw-viewer-glass-min-opacity, 0)) + 0.15)
|
|
250
|
+
);
|
|
244
251
|
}
|
|
245
252
|
|
|
246
253
|
.menu-btn.v-btn--active {
|
|
247
254
|
background-color: v-bind(primaryColor) !important;
|
|
248
|
-
color:
|
|
255
|
+
color: rgb(var(--v-theme-on-primary)) !important;
|
|
249
256
|
}
|
|
250
257
|
|
|
251
258
|
.menu-btn.v-btn--active::before {
|
|
@@ -254,8 +261,12 @@ export type { ItemProps };
|
|
|
254
261
|
-webkit-backdrop-filter: none !important;
|
|
255
262
|
}
|
|
256
263
|
|
|
264
|
+
.ogw-svg-icon ::v-deep(.v-img__img) {
|
|
265
|
+
filter: var(--ogw-svg-icon-filter, none);
|
|
266
|
+
}
|
|
267
|
+
|
|
257
268
|
.menu-btn.v-btn--active ::v-deep(.v-img__img) {
|
|
258
|
-
filter: invert(100%);
|
|
269
|
+
filter: var(--ogw-svg-icon-active-filter, invert(100%));
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
.menu-options {
|
|
@@ -153,7 +153,7 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
153
153
|
>
|
|
154
154
|
<v-row no-gutters class="flex-column align-center">
|
|
155
155
|
<v-col
|
|
156
|
-
class="text-subtitle-2 font-weight-bold text-truncate
|
|
156
|
+
class="text-subtitle-2 font-weight-bold text-truncate w-100 pa-0"
|
|
157
157
|
cols="auto"
|
|
158
158
|
style="line-height: 1.3"
|
|
159
159
|
>
|
|
@@ -174,9 +174,9 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
174
174
|
{{ isCopied(metaData.data_id) ? "COPIED!" : formattedId }}
|
|
175
175
|
</span>
|
|
176
176
|
<v-icon
|
|
177
|
-
:icon="isCopied(metaData.data_id) ? '
|
|
177
|
+
:icon="isCopied(metaData.data_id) ? 'ph-check' : 'ph-copy'"
|
|
178
178
|
size="10"
|
|
179
|
-
:color="isCopied(metaData.data_id) ? 'success' :
|
|
179
|
+
:color="isCopied(metaData.data_id) ? 'success' : undefined"
|
|
180
180
|
class="ml-1"
|
|
181
181
|
/>
|
|
182
182
|
</v-col>
|
|
@@ -191,11 +191,10 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
191
191
|
<v-btn
|
|
192
192
|
v-if="crsStore.crsEditEnabled"
|
|
193
193
|
data-testid="infoEditCrsBtn"
|
|
194
|
-
icon="
|
|
194
|
+
icon="ph-pencil-simple"
|
|
195
195
|
variant="text"
|
|
196
196
|
density="compact"
|
|
197
197
|
size="x-small"
|
|
198
|
-
color="white"
|
|
199
198
|
class="ml-1"
|
|
200
199
|
@click.stop="crsStore.requestCrsEdit(metaData.data_id)"
|
|
201
200
|
/>
|
|
@@ -204,7 +203,7 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
204
203
|
<template v-if="componentItem">
|
|
205
204
|
<v-divider class="w-100 my-2" opacity="0.2" />
|
|
206
205
|
<v-col
|
|
207
|
-
class="text-subtitle-2 font-weight-bold text-truncate
|
|
206
|
+
class="text-subtitle-2 font-weight-bold text-truncate w-100 pa-0"
|
|
208
207
|
cols="auto"
|
|
209
208
|
style="line-height: 1.3"
|
|
210
209
|
>
|
|
@@ -224,9 +223,9 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
224
223
|
{{ isCopied(componentItem.id) ? "COPIED!" : formatId(componentItem.id) }}
|
|
225
224
|
</span>
|
|
226
225
|
<v-icon
|
|
227
|
-
:icon="isCopied(componentItem.id) ? '
|
|
226
|
+
:icon="isCopied(componentItem.id) ? 'ph-check' : 'ph-copy'"
|
|
228
227
|
size="10"
|
|
229
|
-
:color="isCopied(componentItem.id) ? 'success' :
|
|
228
|
+
:color="isCopied(componentItem.id) ? 'success' : undefined"
|
|
230
229
|
class="ml-1"
|
|
231
230
|
/>
|
|
232
231
|
</v-col>
|
|
@@ -241,8 +240,8 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
241
240
|
.id-badge-container {
|
|
242
241
|
font-family: monospace;
|
|
243
242
|
font-size: 0.6rem;
|
|
244
|
-
background: rgba(
|
|
245
|
-
border: 1px solid rgba(
|
|
243
|
+
background: rgba(var(--v-theme-on-surface), 0.06);
|
|
244
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
246
245
|
border-radius: 4px;
|
|
247
246
|
cursor: pointer;
|
|
248
247
|
user-select: none;
|
|
@@ -251,8 +250,8 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
251
250
|
}
|
|
252
251
|
|
|
253
252
|
.id-badge-container:hover {
|
|
254
|
-
background: rgba(
|
|
255
|
-
border-color: rgba(
|
|
253
|
+
background: rgba(var(--v-theme-primary), 0.12);
|
|
254
|
+
border-color: rgba(var(--v-theme-primary), 0.35);
|
|
256
255
|
opacity: 1;
|
|
257
256
|
transform: scale(1.03);
|
|
258
257
|
}
|
|
@@ -263,7 +262,7 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs);
|
|
|
263
262
|
|
|
264
263
|
.id-text {
|
|
265
264
|
letter-spacing: 0.5px;
|
|
266
|
-
color: rgba(
|
|
265
|
+
color: rgba(var(--v-theme-on-surface), 0.85);
|
|
267
266
|
}
|
|
268
267
|
|
|
269
268
|
.object-name-popover {
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
18
21
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
19
22
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -38,9 +41,9 @@ const coloring_style_key = computed<string>({
|
|
|
38
41
|
hybridViewerStore.remoteRender();
|
|
39
42
|
},
|
|
40
43
|
});
|
|
41
|
-
const color = useBatchStyleModel<
|
|
44
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
42
45
|
() => dataId,
|
|
43
|
-
(meshId) => dataStyleStore.meshEdgesColor(meshId) as
|
|
46
|
+
(meshId) => dataStyleStore.meshEdgesColor(meshId) as ColorRGBA | undefined,
|
|
44
47
|
(meshId, value) => dataStyleStore.setMeshEdgesColor(meshId, value),
|
|
45
48
|
);
|
|
46
49
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -104,7 +107,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
104
107
|
hybridViewerStore.remoteRender();
|
|
105
108
|
},
|
|
106
109
|
});
|
|
107
|
-
const vertex_attribute_no_data_color = computed<
|
|
110
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
108
111
|
get: () => dataStyleStore.meshEdgesVertexAttributeNoDataColor(dataId),
|
|
109
112
|
set: async (newValue) => {
|
|
110
113
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -169,7 +172,7 @@ const edge_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
169
172
|
hybridViewerStore.remoteRender();
|
|
170
173
|
},
|
|
171
174
|
});
|
|
172
|
-
const edge_attribute_no_data_color = computed<
|
|
175
|
+
const edge_attribute_no_data_color = computed<ColorRGBA>({
|
|
173
176
|
get: () => dataStyleStore.meshEdgesEdgeAttributeNoDataColor(dataId),
|
|
174
177
|
set: async (newValue) => {
|
|
175
178
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { EdgeWidth, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
2
3
|
import ViewerContextMenuItem, {
|
|
3
4
|
type ItemProps,
|
|
4
5
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
5
|
-
import type { Visibility, Width } from "@ogw_front/types/style";
|
|
6
6
|
import EdgedCurveEdges from "@ogw_front/assets/viewer_svgs/edged_curve_edges.svg";
|
|
7
7
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
8
8
|
import ViewerEdgedCurveSpecificEdgesColoring from "@ogw_front/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue";
|
|
@@ -33,7 +33,7 @@ const visibility = computed<Visibility>({
|
|
|
33
33
|
hybridViewerStore.remoteRender();
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
|
-
const width = computed<
|
|
36
|
+
const width = computed<EdgeWidth>({
|
|
37
37
|
get: () => dataStyleStore.meshEdgesWidth(dataId.value),
|
|
38
38
|
set: async (newValue) => {
|
|
39
39
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import type { Texture } from "@ogw_front/types/texture";
|
|
18
21
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
19
22
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
@@ -39,9 +42,9 @@ const coloring_style_key = computed<string>({
|
|
|
39
42
|
hybridViewerStore.remoteRender();
|
|
40
43
|
},
|
|
41
44
|
});
|
|
42
|
-
const color = useBatchStyleModel<
|
|
45
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
43
46
|
() => dataId,
|
|
44
|
-
(meshId) => dataStyleStore.meshCellsColor(meshId) as
|
|
47
|
+
(meshId) => dataStyleStore.meshCellsColor(meshId) as ColorRGBA | undefined,
|
|
45
48
|
(meshId, value) => dataStyleStore.setMeshCellsColor(meshId, value),
|
|
46
49
|
);
|
|
47
50
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -111,7 +114,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
111
114
|
hybridViewerStore.remoteRender();
|
|
112
115
|
},
|
|
113
116
|
});
|
|
114
|
-
const vertex_attribute_no_data_color = computed<
|
|
117
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
115
118
|
get: () => dataStyleStore.meshCellsVertexAttributeNoDataColor(dataId),
|
|
116
119
|
set: async (newValue) => {
|
|
117
120
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -176,7 +179,7 @@ const cell_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
176
179
|
hybridViewerStore.remoteRender();
|
|
177
180
|
},
|
|
178
181
|
});
|
|
179
|
-
const cell_attribute_no_data_color = computed<
|
|
182
|
+
const cell_attribute_no_data_color = computed<ColorRGBA>({
|
|
180
183
|
get: () => dataStyleStore.meshCellsCellAttributeNoDataColor(dataId),
|
|
181
184
|
set: async (newValue) => {
|
|
182
185
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
|
|
|
5
5
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
6
6
|
import ViewerGenericMeshCellsColoring from "@ogw_front/components/Viewer/Generic/Mesh/CellsColoring.vue";
|
|
7
7
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
8
|
-
import type { Visibility } from "@
|
|
8
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
9
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
10
10
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
11
11
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
18
21
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
19
22
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -39,9 +42,9 @@ const coloring_style_key = computed<string>({
|
|
|
39
42
|
hybridViewerStore.remoteRender();
|
|
40
43
|
},
|
|
41
44
|
});
|
|
42
|
-
const color = useBatchStyleModel<
|
|
45
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
43
46
|
() => dataId,
|
|
44
|
-
(meshId) => dataStyleStore.meshEdgesColor(meshId) as
|
|
47
|
+
(meshId) => dataStyleStore.meshEdgesColor(meshId) as ColorRGBA | undefined,
|
|
45
48
|
(meshId, value) => dataStyleStore.setMeshEdgesColor(meshId, value),
|
|
46
49
|
);
|
|
47
50
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -105,7 +108,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
105
108
|
hybridViewerStore.remoteRender();
|
|
106
109
|
},
|
|
107
110
|
});
|
|
108
|
-
const vertex_attribute_no_data_color = computed<
|
|
111
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
109
112
|
get: () => dataStyleStore.meshEdgesVertexAttributeNoDataColor(dataId),
|
|
110
113
|
set: async (newValue) => {
|
|
111
114
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -170,7 +173,7 @@ const edge_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
170
173
|
hybridViewerStore.remoteRender();
|
|
171
174
|
},
|
|
172
175
|
});
|
|
173
|
-
const edge_attribute_no_data_color = computed<
|
|
176
|
+
const edge_attribute_no_data_color = computed<ColorRGBA>({
|
|
174
177
|
get: () => dataStyleStore.meshEdgesEdgeAttributeNoDataColor(dataId),
|
|
175
178
|
set: async (newValue) => {
|
|
176
179
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
2
|
+
import type { EdgeWidth, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
3
3
|
import ViewerContextMenuItem, {
|
|
4
4
|
type ItemProps,
|
|
5
5
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
@@ -40,7 +40,7 @@ const visibility = computed<Visibility>({
|
|
|
40
40
|
hybridViewerStore.remoteRender();
|
|
41
41
|
},
|
|
42
42
|
});
|
|
43
|
-
const
|
|
43
|
+
const width = computed<EdgeWidth>({
|
|
44
44
|
get: () => dataStyleStore.meshEdgesWidth(dataId.value),
|
|
45
45
|
set: async (newValue) => {
|
|
46
46
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -70,7 +70,7 @@ const size = computed<Size>({
|
|
|
70
70
|
</v-row>
|
|
71
71
|
<template v-if="visibility">
|
|
72
72
|
<v-divider class="my-2" />
|
|
73
|
-
<ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="
|
|
73
|
+
<ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="width" />
|
|
74
74
|
<ViewerGenericMeshEdgesColoring :data-id="dataId" :capabilities="capabilities" />
|
|
75
75
|
</template>
|
|
76
76
|
</template>
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
PointSize,
|
|
13
|
+
Visibility,
|
|
14
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
15
|
import {
|
|
11
16
|
type RangesPerData,
|
|
12
17
|
applyRangesPerData,
|
|
@@ -16,7 +21,6 @@ import ViewerContextMenuItem, {
|
|
|
16
21
|
type ItemProps,
|
|
17
22
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
18
23
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
19
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
20
24
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
21
25
|
import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
|
|
22
26
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
@@ -46,7 +50,7 @@ const visibility = computed<Visibility>({
|
|
|
46
50
|
hybridViewerStore.remoteRender();
|
|
47
51
|
},
|
|
48
52
|
});
|
|
49
|
-
const size = computed<
|
|
53
|
+
const size = computed<PointSize>({
|
|
50
54
|
get: () => dataStyleStore.meshPointsSize(dataId.value),
|
|
51
55
|
set: async (newValue) => {
|
|
52
56
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -64,8 +68,8 @@ const coloring_style_key = computed<string>({
|
|
|
64
68
|
hybridViewerStore.remoteRender();
|
|
65
69
|
},
|
|
66
70
|
});
|
|
67
|
-
const color = computed<
|
|
68
|
-
get: () => dataStyleStore.meshPointsColor(dataId.value) as
|
|
71
|
+
const color = computed<ColorRGBA | undefined>({
|
|
72
|
+
get: () => dataStyleStore.meshPointsColor(dataId.value) as ColorRGBA | undefined,
|
|
69
73
|
set: async (newValue) => {
|
|
70
74
|
if (newValue === undefined) {
|
|
71
75
|
return;
|
|
@@ -144,7 +148,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
144
148
|
hybridViewerStore.remoteRender();
|
|
145
149
|
},
|
|
146
150
|
});
|
|
147
|
-
const vertex_attribute_no_data_color = computed<
|
|
151
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
148
152
|
get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(dataId.value),
|
|
149
153
|
set: async (newValue) => {
|
|
150
154
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import type { Texture } from "@ogw_front/types/texture";
|
|
18
21
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
19
22
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
@@ -40,9 +43,9 @@ const coloring_style_key = computed<string>({
|
|
|
40
43
|
hybridViewerStore.remoteRender();
|
|
41
44
|
},
|
|
42
45
|
});
|
|
43
|
-
const color = useBatchStyleModel<
|
|
46
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
44
47
|
() => dataId,
|
|
45
|
-
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as
|
|
48
|
+
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as ColorRGBA | undefined,
|
|
46
49
|
(meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
|
|
47
50
|
);
|
|
48
51
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -112,7 +115,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
112
115
|
hybridViewerStore.remoteRender();
|
|
113
116
|
},
|
|
114
117
|
});
|
|
115
|
-
const vertex_attribute_no_data_color = computed<
|
|
118
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
116
119
|
get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
|
|
117
120
|
set: async (newValue) => {
|
|
118
121
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -179,7 +182,7 @@ const polygon_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
179
182
|
hybridViewerStore.remoteRender();
|
|
180
183
|
},
|
|
181
184
|
});
|
|
182
|
-
const polygon_attribute_no_data_color = computed<
|
|
185
|
+
const polygon_attribute_no_data_color = computed<ColorRGBA>({
|
|
183
186
|
get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
|
|
184
187
|
set: async (newValue) => {
|
|
185
188
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
|
|
|
5
5
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
6
6
|
import ViewerGenericMeshPolygonsColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsColoring.vue";
|
|
7
7
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
8
|
-
import type { Visibility } from "@
|
|
8
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
9
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
10
10
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
11
11
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
18
21
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
19
22
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -38,9 +41,9 @@ const coloring_style_key = computed<string>({
|
|
|
38
41
|
hybridViewerStore.remoteRender();
|
|
39
42
|
},
|
|
40
43
|
});
|
|
41
|
-
const color = useBatchStyleModel<
|
|
44
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
42
45
|
() => dataId,
|
|
43
|
-
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as
|
|
46
|
+
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as ColorRGBA | undefined,
|
|
44
47
|
(meshId, value) => dataStyleStore.setMeshPolyhedraColor(meshId, value),
|
|
45
48
|
);
|
|
46
49
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -106,7 +109,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
106
109
|
hybridViewerStore.remoteRender();
|
|
107
110
|
},
|
|
108
111
|
});
|
|
109
|
-
const vertex_attribute_no_data_color = computed<
|
|
112
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
110
113
|
get: () => dataStyleStore.meshPolyhedraVertexAttributeNoDataColor(dataId),
|
|
111
114
|
set: async (newValue) => {
|
|
112
115
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -173,7 +176,7 @@ const polyhedron_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
173
176
|
hybridViewerStore.remoteRender();
|
|
174
177
|
},
|
|
175
178
|
});
|
|
176
|
-
const polyhedron_attribute_no_data_color = computed<
|
|
179
|
+
const polyhedron_attribute_no_data_color = computed<ColorRGBA>({
|
|
177
180
|
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeNoDataColor(dataId),
|
|
178
181
|
set: async (newValue) => {
|
|
179
182
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|