@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
|
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
|
|
|
5
5
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
6
6
|
import ViewerGenericMeshPolyhedraColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraColoring.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";
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
import type {
|
|
4
4
|
AttributeItem,
|
|
5
5
|
AttributeName,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "@
|
|
6
|
+
ColorRGBA,
|
|
7
|
+
Visibility,
|
|
8
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
9
10
|
import type { BlockId } from "@ogw_front/types/identifiers";
|
|
10
11
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
11
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
12
12
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
13
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
14
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
15
14
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
|
|
16
15
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -67,17 +66,17 @@ const blockVisibility = computed<Visibility | undefined>({
|
|
|
67
66
|
});
|
|
68
67
|
|
|
69
68
|
// Color
|
|
70
|
-
const blocksColor = computed<
|
|
69
|
+
const blocksColor = computed<ColorRGBA | undefined>({
|
|
71
70
|
get: () =>
|
|
72
|
-
dataStyleStore.modelBlockColor(modelId, referenceBlockId.value) as
|
|
71
|
+
dataStyleStore.modelBlockColor(modelId, referenceBlockId.value) as ColorRGBA | undefined,
|
|
73
72
|
set: async (color) => {
|
|
74
73
|
await dataStyleStore.setModelBlocksColor(modelId, targetBlockIds, color);
|
|
75
74
|
hybridViewerStore.remoteRender();
|
|
76
75
|
},
|
|
77
76
|
});
|
|
78
77
|
|
|
79
|
-
const blockColor = computed<
|
|
80
|
-
get: () => dataStyleStore.modelBlockColor(modelId, blockId) as
|
|
78
|
+
const blockColor = computed<ColorRGBA | undefined>({
|
|
79
|
+
get: () => dataStyleStore.modelBlockColor(modelId, blockId) as ColorRGBA | undefined,
|
|
81
80
|
set: async (color) => {
|
|
82
81
|
if (blockId === undefined) {
|
|
83
82
|
return;
|
|
@@ -171,7 +170,7 @@ const blocksVertexAttributeRange = computed<AttributeRange>({
|
|
|
171
170
|
},
|
|
172
171
|
});
|
|
173
172
|
|
|
174
|
-
const blocksVertexAttributeColorMap = computed<Map<string,
|
|
173
|
+
const blocksVertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
175
174
|
get: () => dataStyleStore.modelBlocksVertexAttributeColorMap(modelId, referenceBlockId.value),
|
|
176
175
|
set: async (newValue) => {
|
|
177
176
|
await dataStyleStore.setModelBlocksVertexAttributeColorMap(modelId, targetBlockIds, newValue);
|
|
@@ -179,7 +178,7 @@ const blocksVertexAttributeColorMap = computed<Map<string, RGBAColor> | undefine
|
|
|
179
178
|
},
|
|
180
179
|
});
|
|
181
180
|
|
|
182
|
-
const blocksVertexAttributeNoDataColor = computed<
|
|
181
|
+
const blocksVertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
183
182
|
get: () => dataStyleStore.modelBlocksVertexAttributeNoDataColor(modelId, referenceBlockId.value),
|
|
184
183
|
set: async (newValue) => {
|
|
185
184
|
await dataStyleStore.setModelBlocksVertexAttributeNoDataColor(
|
|
@@ -258,7 +257,7 @@ const blocksPolyhedronAttributeRange = computed<AttributeRange>({
|
|
|
258
257
|
},
|
|
259
258
|
});
|
|
260
259
|
|
|
261
|
-
const blocksPolyhedronAttributeColorMap = computed<Map<string,
|
|
260
|
+
const blocksPolyhedronAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
262
261
|
get: () => dataStyleStore.modelBlocksPolyhedronAttributeColorMap(modelId, referenceBlockId.value),
|
|
263
262
|
set: async (newValue) => {
|
|
264
263
|
const applied = await dataStyleStore.setModelBlocksPolyhedronAttributeColorMap(
|
|
@@ -272,7 +271,7 @@ const blocksPolyhedronAttributeColorMap = computed<Map<string, RGBAColor> | unde
|
|
|
272
271
|
},
|
|
273
272
|
});
|
|
274
273
|
|
|
275
|
-
const blocksPolyhedronAttributeNoDataColor = computed<
|
|
274
|
+
const blocksPolyhedronAttributeNoDataColor = computed<ColorRGBA>({
|
|
276
275
|
get: () =>
|
|
277
276
|
dataStyleStore.modelBlocksPolyhedronAttributeNoDataColor(modelId, referenceBlockId.value),
|
|
278
277
|
set: async (newValue) => {
|
|
@@ -333,7 +332,7 @@ const vertexAttributeRange = computed<AttributeRange>({
|
|
|
333
332
|
},
|
|
334
333
|
});
|
|
335
334
|
|
|
336
|
-
const vertexAttributeColorMap = computed<Map<string,
|
|
335
|
+
const vertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
337
336
|
get: () => dataStyleStore.modelBlocksVertexAttributeColorMap(modelId, blockId),
|
|
338
337
|
set: async (newValue) => {
|
|
339
338
|
if (blockId === undefined) {
|
|
@@ -344,7 +343,7 @@ const vertexAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
|
|
|
344
343
|
},
|
|
345
344
|
});
|
|
346
345
|
|
|
347
|
-
const vertexAttributeNoDataColor = computed<
|
|
346
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
348
347
|
get: () => dataStyleStore.modelBlocksVertexAttributeNoDataColor(modelId, blockId),
|
|
349
348
|
set: async (newValue) => {
|
|
350
349
|
if (blockId === undefined) {
|
|
@@ -425,7 +424,7 @@ const polyhedronAttributeRange = computed<AttributeRange>({
|
|
|
425
424
|
},
|
|
426
425
|
});
|
|
427
426
|
|
|
428
|
-
const polyhedronAttributeColorMap = computed<Map<string,
|
|
427
|
+
const polyhedronAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
429
428
|
get: () => dataStyleStore.modelBlocksPolyhedronAttributeColorMap(modelId, blockId),
|
|
430
429
|
set: async (newValue) => {
|
|
431
430
|
if (blockId === undefined) {
|
|
@@ -442,7 +441,7 @@ const polyhedronAttributeColorMap = computed<Map<string, RGBAColor> | undefined>
|
|
|
442
441
|
},
|
|
443
442
|
});
|
|
444
443
|
|
|
445
|
-
const polyhedronAttributeNoDataColor = computed<
|
|
444
|
+
const polyhedronAttributeNoDataColor = computed<ColorRGBA>({
|
|
446
445
|
get: () => dataStyleStore.modelBlocksPolyhedronAttributeNoDataColor(modelId, blockId),
|
|
447
446
|
set: async (newValue) => {
|
|
448
447
|
if (blockId === undefined) {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
EdgeWidth,
|
|
7
|
+
Visibility,
|
|
8
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
|
+
import type { AttributeColorMap } from "@ogw_front/types/attribute";
|
|
5
10
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
6
11
|
import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
|
|
7
12
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
@@ -98,7 +103,7 @@ const visibility = computed<Visibility | undefined>({
|
|
|
98
103
|
},
|
|
99
104
|
});
|
|
100
105
|
|
|
101
|
-
const width = computed<
|
|
106
|
+
const width = computed<EdgeWidth | undefined>({
|
|
102
107
|
get: () => edgesStyle.value?.width(modelId, referenceComponentId),
|
|
103
108
|
set: async (newValue) => {
|
|
104
109
|
if (newValue === undefined) {
|
|
@@ -118,7 +123,7 @@ const activeColoring = computed<string | undefined>({
|
|
|
118
123
|
},
|
|
119
124
|
});
|
|
120
125
|
|
|
121
|
-
const color = computed<
|
|
126
|
+
const color = computed<ColorRGBA | undefined>({
|
|
122
127
|
get: () => edgesStyle.value?.color(modelId, referenceComponentId),
|
|
123
128
|
set: async (newValue) => {
|
|
124
129
|
if (newValue === undefined) {
|
|
@@ -171,7 +176,7 @@ const vertexAttributeColorMap = computed<AttributeColorMap | undefined>({
|
|
|
171
176
|
},
|
|
172
177
|
});
|
|
173
178
|
|
|
174
|
-
const vertexAttributeNoDataColor = computed<
|
|
179
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA | undefined>({
|
|
175
180
|
get: () => edgesStyle.value?.vertexAttributeNoDataColor(modelId, referenceComponentId),
|
|
176
181
|
set: async (newValue) => {
|
|
177
182
|
if (newValue === undefined) {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
PointSize,
|
|
7
|
+
Visibility,
|
|
8
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
|
+
import type { AttributeColorMap } from "@ogw_front/types/attribute";
|
|
4
10
|
import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
5
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
6
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
7
12
|
import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
|
|
8
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
@@ -118,7 +123,7 @@ const visibility = computed<Visibility | undefined>({
|
|
|
118
123
|
},
|
|
119
124
|
});
|
|
120
125
|
|
|
121
|
-
const size = computed<
|
|
126
|
+
const size = computed<PointSize | undefined>({
|
|
122
127
|
get: () => pointsStyle.value?.size(modelId, referenceComponentId),
|
|
123
128
|
set: async (newValue) => {
|
|
124
129
|
if (newValue === undefined) {
|
|
@@ -138,7 +143,7 @@ const activeColoring = computed<string | undefined>({
|
|
|
138
143
|
},
|
|
139
144
|
});
|
|
140
145
|
|
|
141
|
-
const color = computed<
|
|
146
|
+
const color = computed<ColorRGBA | undefined>({
|
|
142
147
|
get: () => pointsStyle.value?.color(modelId, referenceComponentId),
|
|
143
148
|
set: async (newValue) => {
|
|
144
149
|
if (newValue === undefined) {
|
|
@@ -193,7 +198,7 @@ const vertexAttributeColorMap = computed<AttributeColorMap | undefined>({
|
|
|
193
198
|
},
|
|
194
199
|
});
|
|
195
200
|
|
|
196
|
-
const vertexAttributeNoDataColor = computed<
|
|
201
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA | undefined>({
|
|
197
202
|
get: () => pointsStyle.value?.vertexAttributeNoDataColor(modelId, referenceComponentId),
|
|
198
203
|
set: async (newValue) => {
|
|
199
204
|
if (newValue === undefined) {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Visibility,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
8
9
|
import type { CornerId } from "@ogw_front/types/identifiers";
|
|
9
10
|
import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
13
12
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
14
13
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
15
14
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -38,8 +37,8 @@ const cornerVisibility = computed<Visibility | undefined>({
|
|
|
38
37
|
},
|
|
39
38
|
});
|
|
40
39
|
|
|
41
|
-
const cornerColor = computed<
|
|
42
|
-
get: () => dataStyleStore.modelCornerColor(modelId, cornerId) as
|
|
40
|
+
const cornerColor = computed<ColorRGBA | undefined>({
|
|
41
|
+
get: () => dataStyleStore.modelCornerColor(modelId, cornerId) as ColorRGBA | undefined,
|
|
43
42
|
set: async (color) => {
|
|
44
43
|
if (cornerId === undefined) {
|
|
45
44
|
return;
|
|
@@ -117,7 +116,7 @@ const vertexAttributeColorMap = computed<ColorMap | undefined>({
|
|
|
117
116
|
},
|
|
118
117
|
});
|
|
119
118
|
|
|
120
|
-
const vertexAttributeNoDataColor = computed<
|
|
119
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
121
120
|
get: () => dataStyleStore.modelCornersVertexAttributeNoDataColor(modelId, cornerId),
|
|
122
121
|
set: async (newValue) => {
|
|
123
122
|
if (cornerId === undefined) {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Visibility,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
8
9
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
9
10
|
import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
13
12
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
14
13
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
15
14
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -50,9 +49,9 @@ const cornersVisibility = computed<Visibility>({
|
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
// Color
|
|
53
|
-
const cornersColor = computed<
|
|
52
|
+
const cornersColor = computed<ColorRGBA | undefined>({
|
|
54
53
|
get: () =>
|
|
55
|
-
dataStyleStore.modelCornerColor(modelId, referenceCornerId.value) as
|
|
54
|
+
dataStyleStore.modelCornerColor(modelId, referenceCornerId.value) as ColorRGBA | undefined,
|
|
56
55
|
set: async (color) => {
|
|
57
56
|
await dataStyleStore.setModelCornersColor(modelId, targetCornerIds, color);
|
|
58
57
|
hybridViewerStore.remoteRender();
|
|
@@ -142,7 +141,7 @@ const cornersVertexAttributeColorMap = computed<ColorMap | undefined>({
|
|
|
142
141
|
},
|
|
143
142
|
});
|
|
144
143
|
|
|
145
|
-
const cornersVertexAttributeNoDataColor = computed<
|
|
144
|
+
const cornersVertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
146
145
|
get: () =>
|
|
147
146
|
dataStyleStore.modelCornersVertexAttributeNoDataColor(modelId, referenceCornerId.value),
|
|
148
147
|
set: async (newValue) => {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Visibility,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
8
9
|
import type { LineId } from "@ogw_front/types/identifiers";
|
|
9
10
|
import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
13
12
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
14
13
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
15
14
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -38,8 +37,8 @@ const lineVisibility = computed<Visibility | undefined>({
|
|
|
38
37
|
},
|
|
39
38
|
});
|
|
40
39
|
|
|
41
|
-
const lineColor = computed<
|
|
42
|
-
get: () => dataStyleStore.modelLineColor(modelId, lineId) as
|
|
40
|
+
const lineColor = computed<ColorRGBA | undefined>({
|
|
41
|
+
get: () => dataStyleStore.modelLineColor(modelId, lineId) as ColorRGBA | undefined,
|
|
43
42
|
set: async (color) => {
|
|
44
43
|
if (lineId === undefined) {
|
|
45
44
|
return;
|
|
@@ -117,7 +116,7 @@ const vertexAttributeColorMap = computed<ColorMap | undefined>({
|
|
|
117
116
|
},
|
|
118
117
|
});
|
|
119
118
|
|
|
120
|
-
const vertexAttributeNoDataColor = computed<
|
|
119
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
121
120
|
get: () => dataStyleStore.modelLinesVertexAttributeNoDataColor(modelId, lineId),
|
|
122
121
|
set: async (newValue) => {
|
|
123
122
|
if (lineId === undefined) {
|
|
@@ -173,7 +172,7 @@ const edgeAttributeRange = computed<AttributeRange>({
|
|
|
173
172
|
},
|
|
174
173
|
});
|
|
175
174
|
|
|
176
|
-
const edgeAttributeColorMap = computed<Map<string,
|
|
175
|
+
const edgeAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
177
176
|
get: () => dataStyleStore.modelLinesEdgeAttributeColorMap(modelId, lineId),
|
|
178
177
|
set: async (newValue) => {
|
|
179
178
|
if (lineId === undefined) {
|
|
@@ -184,7 +183,7 @@ const edgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
|
|
|
184
183
|
},
|
|
185
184
|
});
|
|
186
185
|
|
|
187
|
-
const edgeAttributeNoDataColor = computed<
|
|
186
|
+
const edgeAttributeNoDataColor = computed<ColorRGBA>({
|
|
188
187
|
get: () => dataStyleStore.modelLinesEdgeAttributeNoDataColor(modelId, lineId),
|
|
189
188
|
set: async (newValue) => {
|
|
190
189
|
if (lineId === undefined) {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Visibility,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
8
9
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
9
10
|
import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
13
12
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
14
13
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
15
14
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -50,8 +49,8 @@ const linesVisibility = computed<Visibility>({
|
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
// Color
|
|
53
|
-
const linesColor = computed<
|
|
54
|
-
get: () => dataStyleStore.modelLineColor(modelId, referenceLineId.value) as
|
|
52
|
+
const linesColor = computed<ColorRGBA | undefined>({
|
|
53
|
+
get: () => dataStyleStore.modelLineColor(modelId, referenceLineId.value) as ColorRGBA | undefined,
|
|
55
54
|
set: async (color) => {
|
|
56
55
|
await dataStyleStore.setModelLinesColor(modelId, targetLineIds, color);
|
|
57
56
|
hybridViewerStore.remoteRender();
|
|
@@ -139,7 +138,7 @@ const linesVertexAttributeColorMap = computed<RGBAColorMap | undefined>({
|
|
|
139
138
|
},
|
|
140
139
|
});
|
|
141
140
|
|
|
142
|
-
const linesVertexAttributeNoDataColor = computed<
|
|
141
|
+
const linesVertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
143
142
|
get: () => dataStyleStore.modelLinesVertexAttributeNoDataColor(modelId, referenceLineId.value),
|
|
144
143
|
set: async (newValue) => {
|
|
145
144
|
await dataStyleStore.setModelLinesVertexAttributeNoDataColor(modelId, targetLineIds, newValue);
|
|
@@ -189,7 +188,7 @@ const linesEdgeAttributeRange = computed<AttributeRange>({
|
|
|
189
188
|
},
|
|
190
189
|
});
|
|
191
190
|
|
|
192
|
-
const linesEdgeAttributeColorMap = computed<Map<string,
|
|
191
|
+
const linesEdgeAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
193
192
|
get: () => dataStyleStore.modelLinesEdgeAttributeColorMap(modelId, referenceLineId.value),
|
|
194
193
|
set: async (newValue) => {
|
|
195
194
|
await dataStyleStore.setModelLinesEdgeAttributeColorMap(modelId, targetLineIds, newValue);
|
|
@@ -197,7 +196,7 @@ const linesEdgeAttributeColorMap = computed<Map<string, RGBAColor> | undefined>(
|
|
|
197
196
|
},
|
|
198
197
|
});
|
|
199
198
|
|
|
200
|
-
const linesEdgeAttributeNoDataColor = computed<
|
|
199
|
+
const linesEdgeAttributeNoDataColor = computed<ColorRGBA>({
|
|
201
200
|
get: () => dataStyleStore.modelLinesEdgeAttributeNoDataColor(modelId, referenceLineId.value),
|
|
202
201
|
set: async (newValue) => {
|
|
203
202
|
await dataStyleStore.setModelLinesEdgeAttributeNoDataColor(modelId, targetLineIds, newValue);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { EdgeWidth, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
2
3
|
import {
|
|
3
4
|
type ModelMenuItemProps,
|
|
4
5
|
useModelMenuContext,
|
|
5
6
|
} from "@ogw_front/composables/model_menu_context";
|
|
6
|
-
import type { Visibility, Width } from "@ogw_front/types/style";
|
|
7
7
|
import ModelCardTabs from "./ModelCardTabs.vue";
|
|
8
8
|
import ViewerGenericModelComponentEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentEdgesOptions.vue";
|
|
9
9
|
import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
|
|
@@ -53,7 +53,7 @@ const modelEdgesVisibility = computed<Visibility | undefined>({
|
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
const modelEdgesWidth = computed<
|
|
56
|
+
const modelEdgesWidth = computed<EdgeWidth | undefined>({
|
|
57
57
|
get: () => dataStyleStore.modelEdgesWidth(modelId.value),
|
|
58
58
|
set: async (newValue) => {
|
|
59
59
|
if (newValue === undefined) {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "@ogw_front/composables/model_menu_context";
|
|
6
6
|
import ModelCardTabs from "./ModelCardTabs.vue";
|
|
7
7
|
import ViewerGenericModelComponentPointsOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentPointsOptions.vue";
|
|
8
|
-
import type { Visibility } from "@
|
|
8
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
9
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
10
10
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
11
11
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { ColorRGBA, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
2
3
|
import {
|
|
3
4
|
type ModelMenuItemProps,
|
|
4
5
|
useModelMenuContext,
|
|
@@ -7,10 +8,8 @@ import BlocksOptions from "./BlocksOptions.vue";
|
|
|
7
8
|
import CornersOptions from "./CornersOptions.vue";
|
|
8
9
|
import LinesOptions from "./LinesOptions.vue";
|
|
9
10
|
import ModelCardTabs from "./ModelCardTabs.vue";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import SurfacesOptions from "./SurfacesOptions.vue";
|
|
12
12
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
13
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
14
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
15
14
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
16
15
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -51,8 +50,8 @@ const modelVisibility = computed<Visibility | undefined>({
|
|
|
51
50
|
},
|
|
52
51
|
});
|
|
53
52
|
|
|
54
|
-
const modelComponentsColor = computed<
|
|
55
|
-
get: () => dataStyleStore.getModelColor(modelId.value) as
|
|
53
|
+
const modelComponentsColor = computed<ColorRGBA | undefined>({
|
|
54
|
+
get: () => dataStyleStore.getModelColor(modelId.value) as ColorRGBA | undefined,
|
|
56
55
|
set: async (color) => {
|
|
57
56
|
await applyBatchStyle(modelId.value, async (targetId: string) => {
|
|
58
57
|
await dataStyleStore.mutateStyle(targetId, {
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
import type {
|
|
4
4
|
AttributeItem,
|
|
5
5
|
AttributeName,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "@
|
|
6
|
+
ColorRGBA,
|
|
7
|
+
Visibility,
|
|
8
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
9
10
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
10
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
11
|
import type { SurfaceId } from "@ogw_front/types/identifiers";
|
|
12
12
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
13
|
-
import type { Visibility } from "@ogw_front/types/style";
|
|
14
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
15
14
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
|
|
16
15
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -69,17 +68,17 @@ const surfaceVisibility = computed<Visibility>({
|
|
|
69
68
|
});
|
|
70
69
|
|
|
71
70
|
// Color
|
|
72
|
-
const surfacesColor = computed<
|
|
71
|
+
const surfacesColor = computed<ColorRGBA | undefined>({
|
|
73
72
|
get: () =>
|
|
74
|
-
dataStyleStore.modelSurfaceColor(modelId, referenceSurfaceId.value) as
|
|
73
|
+
dataStyleStore.modelSurfaceColor(modelId, referenceSurfaceId.value) as ColorRGBA | undefined,
|
|
75
74
|
set: async (color) => {
|
|
76
75
|
await dataStyleStore.setModelSurfacesColor(modelId, targetSurfaceIds, color);
|
|
77
76
|
hybridViewerStore.remoteRender();
|
|
78
77
|
},
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
const surfaceColor = computed<
|
|
82
|
-
get: () => dataStyleStore.modelSurfaceColor(modelId, surfaceId) as
|
|
80
|
+
const surfaceColor = computed<ColorRGBA | undefined>({
|
|
81
|
+
get: () => dataStyleStore.modelSurfaceColor(modelId, surfaceId) as ColorRGBA | undefined,
|
|
83
82
|
set: async (color) => {
|
|
84
83
|
if (surfaceId === undefined) {
|
|
85
84
|
return;
|
|
@@ -179,7 +178,7 @@ const surfacesVertexAttributeRange = computed<AttributeRange>({
|
|
|
179
178
|
},
|
|
180
179
|
});
|
|
181
180
|
|
|
182
|
-
const surfacesVertexAttributeColorMap = computed<Map<string,
|
|
181
|
+
const surfacesVertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
183
182
|
get: () => dataStyleStore.modelSurfacesVertexAttributeColorMap(modelId, referenceSurfaceId.value),
|
|
184
183
|
set: async (newValue) => {
|
|
185
184
|
await dataStyleStore.setModelSurfacesVertexAttributeColorMap(
|
|
@@ -191,7 +190,7 @@ const surfacesVertexAttributeColorMap = computed<Map<string, RGBAColor> | undefi
|
|
|
191
190
|
},
|
|
192
191
|
});
|
|
193
192
|
|
|
194
|
-
const surfacesVertexAttributeNoDataColor = computed<
|
|
193
|
+
const surfacesVertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
195
194
|
get: () =>
|
|
196
195
|
dataStyleStore.modelSurfacesVertexAttributeNoDataColor(modelId, referenceSurfaceId.value),
|
|
197
196
|
set: async (newValue) => {
|
|
@@ -256,7 +255,7 @@ const surfacesPolygonAttributeRange = computed<AttributeRange>({
|
|
|
256
255
|
},
|
|
257
256
|
});
|
|
258
257
|
|
|
259
|
-
const surfacesPolygonAttributeColorMap = computed<Map<string,
|
|
258
|
+
const surfacesPolygonAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
260
259
|
get: () =>
|
|
261
260
|
dataStyleStore.modelSurfacesPolygonAttributeColorMap(modelId, referenceSurfaceId.value),
|
|
262
261
|
set: async (newValue) => {
|
|
@@ -269,7 +268,7 @@ const surfacesPolygonAttributeColorMap = computed<Map<string, RGBAColor> | undef
|
|
|
269
268
|
},
|
|
270
269
|
});
|
|
271
270
|
|
|
272
|
-
const surfacesPolygonAttributeNoDataColor = computed<
|
|
271
|
+
const surfacesPolygonAttributeNoDataColor = computed<ColorRGBA>({
|
|
273
272
|
get: () =>
|
|
274
273
|
dataStyleStore.modelSurfacesPolygonAttributeNoDataColor(modelId, referenceSurfaceId.value),
|
|
275
274
|
set: async (newValue) => {
|
|
@@ -333,7 +332,7 @@ const vertexAttributeRange = computed<AttributeRange>({
|
|
|
333
332
|
},
|
|
334
333
|
});
|
|
335
334
|
|
|
336
|
-
const vertexAttributeColorMap = computed<Map<string,
|
|
335
|
+
const vertexAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
337
336
|
get: () => dataStyleStore.modelSurfacesVertexAttributeColorMap(modelId, surfaceId),
|
|
338
337
|
set: async (newValue) => {
|
|
339
338
|
if (surfaceId === undefined) {
|
|
@@ -344,7 +343,7 @@ const vertexAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
|
|
|
344
343
|
},
|
|
345
344
|
});
|
|
346
345
|
|
|
347
|
-
const vertexAttributeNoDataColor = computed<
|
|
346
|
+
const vertexAttributeNoDataColor = computed<ColorRGBA>({
|
|
348
347
|
get: () => dataStyleStore.modelSurfacesVertexAttributeNoDataColor(modelId, surfaceId),
|
|
349
348
|
set: async (newValue) => {
|
|
350
349
|
if (surfaceId === undefined) {
|
|
@@ -405,7 +404,7 @@ const polygonAttributeRange = computed<AttributeRange>({
|
|
|
405
404
|
},
|
|
406
405
|
});
|
|
407
406
|
|
|
408
|
-
const polygonAttributeColorMap = computed<Map<string,
|
|
407
|
+
const polygonAttributeColorMap = computed<Map<string, ColorRGBA> | undefined>({
|
|
409
408
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeColorMap(modelId, surfaceId),
|
|
410
409
|
set: async (newValue) => {
|
|
411
410
|
if (surfaceId === undefined) {
|
|
@@ -416,7 +415,7 @@ const polygonAttributeColorMap = computed<Map<string, RGBAColor> | undefined>({
|
|
|
416
415
|
},
|
|
417
416
|
});
|
|
418
417
|
|
|
419
|
-
const polygonAttributeNoDataColor = computed<
|
|
418
|
+
const polygonAttributeNoDataColor = computed<ColorRGBA>({
|
|
420
419
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeNoDataColor(modelId, surfaceId),
|
|
421
420
|
set: async (newValue) => {
|
|
422
421
|
if (surfaceId === undefined) {
|
|
@@ -293,13 +293,13 @@ const { handleKeyDown } = useTreeKeyboardNav(
|
|
|
293
293
|
.tree-row-wrapper {
|
|
294
294
|
min-height: 28px !important;
|
|
295
295
|
cursor: pointer;
|
|
296
|
-
border-radius: 4px;
|
|
296
|
+
border-radius: var(--ogw-viewer-row-radius, 4px);
|
|
297
297
|
margin: 0 2px;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
.tree-row-wrapper.is-focused {
|
|
301
|
-
background-color: rgba(
|
|
302
|
-
box-shadow: inset 0 0 0 2px rgba(
|
|
301
|
+
background-color: rgba(var(--v-theme-on-surface), 0.08) !important;
|
|
302
|
+
box-shadow: inset 0 0 0 2px rgba(var(--v-theme-on-surface), 0.15);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.tree-row-wrapper.is-active {
|
|
@@ -327,7 +327,7 @@ const { handleKeyDown } = useTreeKeyboardNav(
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.tree-row-wrapper:hover:not(.is-focused):not(.is-active) {
|
|
330
|
-
background-color: rgba(
|
|
330
|
+
background-color: rgba(var(--v-theme-on-surface), 0.04) !important;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
:deep(.v-list-item__content) {
|
|
@@ -53,7 +53,7 @@ const rows = computed<{ label: string; summary: string; testId: string }[]>(() =
|
|
|
53
53
|
<template>
|
|
54
54
|
<div v-if="rows.length > 0" class="d-flex flex-column ga-1">
|
|
55
55
|
<span v-for="row in rows" :key="row.label" class="text-caption d-flex align-center">
|
|
56
|
-
<strong class="
|
|
56
|
+
<strong class="mr-1">{{ row.label }}:</strong>
|
|
57
57
|
<span :data-testid="`relations-${row.testId}`">{{ row.summary }}</span>
|
|
58
58
|
</span>
|
|
59
59
|
</div>
|