@geode/opengeodeweb-front 12.0.0-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/app/assets/geode_objects.ts +37 -108
- package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
- package/app/components/CrsSelector.vue +6 -6
- package/app/components/ExtensionSelector.vue +21 -14
- package/app/components/MissingFilesSelector.vue +1 -1
- package/app/components/ObjectSelector.vue +7 -14
- package/app/components/ThresholdFilter.vue +1 -1
- package/app/components/TimeSeriesTargetSelector.vue +2 -5
- package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
- 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/Layout.vue +2 -2
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +2 -1
- package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
- package/app/components/Viewer/Options/ColorPicker.vue +3 -3
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +8 -8
- package/app/components/Viewer/Options/TextureItem.vue +2 -6
- package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
- package/app/components/Viewer/OverlappingObjectsPicker.vue +3 -3
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
- package/app/components/Viewer/Scene/BackgroundOptions.vue +2 -2
- package/app/components/Viewer/Scene/TextOptions.vue +2 -2
- 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/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/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/project_manager_helpers/types.ts +2 -2
- package/app/composables/use_overlapping_picker.ts +10 -8
- package/app/composables/viewer_context_menu.ts +4 -2
- package/app/composables/viewer_reset.ts +4 -5
- 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/menu.ts +18 -12
- package/app/stores/treeview.ts +5 -4
- 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 +3 -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/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 +5 -5
- package/internal/stores/data_style/time_step.ts +3 -2
- package/internal/stores/data_style/types.ts +3 -4
- package/internal/stores/hybrid_viewer/camera.ts +1 -1
- 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 +3 -3
- package/package.json +2 -1
- package/shared/utils/response_handlers/load.ts +19 -11
- package/app/types/style.ts +0 -13
|
@@ -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) {
|
|
@@ -3,7 +3,7 @@ import GlobalObjects from "@ogw_front/components/Viewer/ObjectTree/Views/GlobalO
|
|
|
3
3
|
import ModelTree from "@ogw_front/components/Viewer/ObjectTree/Views/ModelTree.vue";
|
|
4
4
|
import type { TreeMenuPayload } from "@ogw_front/utils/treeview";
|
|
5
5
|
import ViewerObjectTreeBox from "@ogw_front/components/Viewer/ObjectTree/Box.vue";
|
|
6
|
-
import {
|
|
6
|
+
import { geodeObjectImage } from "@ogw_front/assets/geode_objects";
|
|
7
7
|
import { useAdaptiveStyles } from "@ogw_front/composables/use_adaptive_styles";
|
|
8
8
|
import { useModelHeaderHover } from "@ogw_front/composables/model_header_hover";
|
|
9
9
|
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
@@ -287,7 +287,7 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
287
287
|
>
|
|
288
288
|
<ViewerObjectTreeBox
|
|
289
289
|
:title="view.title"
|
|
290
|
-
:icon="
|
|
290
|
+
:icon="view.geode_object_type ? geodeObjectImage(view.geode_object_type) : undefined"
|
|
291
291
|
:scroll-top="view.scrollTop"
|
|
292
292
|
closable
|
|
293
293
|
:border-radius="`0 ${index === 0 ? PANEL_RADIUS : '0'} ${index === additionalViews.length - 1 ? PANEL_RADIUS : '0'} 0`"
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { type TreeMenuPayload, compareSelections } from "@ogw_front/utils/treeview";
|
|
12
12
|
import CommonTreeView from "@ogw_front/components/Viewer/ObjectTree/Base/CommonTreeView.vue";
|
|
13
13
|
import type { DisplayItem } from "@ogw_front/composables/virtual_tree";
|
|
14
|
+
import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
|
|
14
15
|
import ObjectTreeControls from "@ogw_front/components/Viewer/ObjectTree/Base/Controls.vue";
|
|
15
16
|
import ObjectTreeItemLabel from "@ogw_front/components/Viewer/ObjectTree/Base/ItemLabel.vue";
|
|
16
17
|
import { useBasemapStore } from "@ogw_front/stores/basemap";
|
|
@@ -295,7 +296,7 @@ function expandAll(): void {
|
|
|
295
296
|
treeviewStore.displayAdditionalTree(
|
|
296
297
|
item.id as string,
|
|
297
298
|
item.title as string | undefined,
|
|
298
|
-
item.geode_object_type as
|
|
299
|
+
item.geode_object_type as GeodeObjectType,
|
|
299
300
|
)
|
|
300
301
|
"
|
|
301
302
|
>
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { type RangesPerData, useBatchGroup } from "@ogw_front/composables/batch_style";
|
|
17
17
|
import { getAttributeRange, intersectAttributes } from "@ogw_front/utils/attributes";
|
|
18
18
|
import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
|
|
19
|
-
import type { DataId } from "@
|
|
19
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
20
20
|
import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar.vue";
|
|
21
21
|
import ViewerOptionsNoDataColorInfo from "@ogw_front/components/Viewer/Options/NoDataColorInfo.vue";
|
|
22
22
|
import ViewerOptionsTimeStepSlider from "@ogw_front/components/Viewer/Options/TimeStepSlider.vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
// oxlint-disable id-length since vuetify require { r,g,b} format to work
|
|
3
3
|
import { formatColorString, parseColorString } from "@ogw_front/utils/color_picker";
|
|
4
|
-
import type {
|
|
4
|
+
import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
|
|
5
5
|
import { useCopyToClipboard } from "@ogw_front/composables/copy_to_clipboard";
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -13,13 +13,13 @@ const { disabledAlpha = false } = defineProps<Props>();
|
|
|
13
13
|
const colorPickerWrapperRef = useTemplateRef<HTMLElement>("colorPickerWrapperRef");
|
|
14
14
|
const { pressed } = useMousePressed({ target: colorPickerWrapperRef });
|
|
15
15
|
|
|
16
|
-
const model = defineModel<
|
|
16
|
+
const model = defineModel<ColorRGBA>();
|
|
17
17
|
const { copy, copied } = useCopyToClipboard();
|
|
18
18
|
|
|
19
19
|
const currentMode = ref(disabledAlpha ? "rgb" : "rgba");
|
|
20
20
|
const colorInputText = ref("");
|
|
21
21
|
|
|
22
|
-
const initialColor = model.value as
|
|
22
|
+
const initialColor = model.value as ColorRGBA;
|
|
23
23
|
const vuetifyColor = ref({
|
|
24
24
|
r: initialColor.red,
|
|
25
25
|
g: initialColor.green,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
buildColoringStyles,
|
|
6
6
|
resolveAttributeSchemas,
|
|
7
7
|
} from "@ogw_front/utils/coloring_styles";
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
8
|
+
import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
10
10
|
import type { RangesPerData } from "@ogw_front/composables/batch_style";
|
|
11
11
|
import type { Texture } from "@ogw_front/types/texture";
|
|
12
12
|
import ViewerOptionsAttributeSelector from "@ogw_front/components/Viewer/Options/AttributeSelector.vue";
|
|
@@ -31,7 +31,7 @@ interface Emits {
|
|
|
31
31
|
|
|
32
32
|
const emit = defineEmits<Emits>();
|
|
33
33
|
|
|
34
|
-
const color = defineModel<
|
|
34
|
+
const color = defineModel<ColorRGBA>("color");
|
|
35
35
|
const opacity = defineModel<number>("opacity");
|
|
36
36
|
const textures = defineModel<Texture[]>("textures");
|
|
37
37
|
|
|
@@ -39,28 +39,28 @@ const vertex_attribute_name = defineModel<string>("vertex_attribute_name");
|
|
|
39
39
|
const vertex_attribute_item = defineModel<number>("vertex_attribute_item");
|
|
40
40
|
const vertex_attribute_range = defineModel<(number | undefined)[]>("vertex_attribute_range");
|
|
41
41
|
const vertex_attribute_color_map = defineModel<string>("vertex_attribute_color_map");
|
|
42
|
-
const vertex_attribute_no_data_color = defineModel<
|
|
42
|
+
const vertex_attribute_no_data_color = defineModel<ColorRGBA>("vertex_attribute_no_data_color");
|
|
43
43
|
const vertex_attribute_time_step = defineModel<number>("vertex_attribute_time_step");
|
|
44
44
|
|
|
45
45
|
const edge_attribute_name = defineModel<string>("edge_attribute_name");
|
|
46
46
|
const edge_attribute_item = defineModel<number>("edge_attribute_item");
|
|
47
47
|
const edge_attribute_range = defineModel<(number | undefined)[]>("edge_attribute_range");
|
|
48
48
|
const edge_attribute_color_map = defineModel<string>("edge_attribute_color_map");
|
|
49
|
-
const edge_attribute_no_data_color = defineModel<
|
|
49
|
+
const edge_attribute_no_data_color = defineModel<ColorRGBA>("edge_attribute_no_data_color");
|
|
50
50
|
const edge_attribute_time_step = defineModel<number>("edge_attribute_time_step");
|
|
51
51
|
|
|
52
52
|
const cell_attribute_name = defineModel<string>("cell_attribute_name");
|
|
53
53
|
const cell_attribute_item = defineModel<number>("cell_attribute_item");
|
|
54
54
|
const cell_attribute_range = defineModel<(number | undefined)[]>("cell_attribute_range");
|
|
55
55
|
const cell_attribute_color_map = defineModel<string>("cell_attribute_color_map");
|
|
56
|
-
const cell_attribute_no_data_color = defineModel<
|
|
56
|
+
const cell_attribute_no_data_color = defineModel<ColorRGBA>("cell_attribute_no_data_color");
|
|
57
57
|
const cell_attribute_time_step = defineModel<number>("cell_attribute_time_step");
|
|
58
58
|
|
|
59
59
|
const polygon_attribute_name = defineModel<string>("polygon_attribute_name");
|
|
60
60
|
const polygon_attribute_item = defineModel<number>("polygon_attribute_item");
|
|
61
61
|
const polygon_attribute_range = defineModel<(number | undefined)[]>("polygon_attribute_range");
|
|
62
62
|
const polygon_attribute_color_map = defineModel<string>("polygon_attribute_color_map");
|
|
63
|
-
const polygon_attribute_no_data_color = defineModel<
|
|
63
|
+
const polygon_attribute_no_data_color = defineModel<ColorRGBA>("polygon_attribute_no_data_color");
|
|
64
64
|
const polygon_attribute_time_step = defineModel<number>("polygon_attribute_time_step");
|
|
65
65
|
|
|
66
66
|
const polyhedron_attribute_name = defineModel<string>("polyhedron_attribute_name");
|
|
@@ -69,7 +69,7 @@ const polyhedron_attribute_range = defineModel<(number | undefined)[]>(
|
|
|
69
69
|
"polyhedron_attribute_range",
|
|
70
70
|
);
|
|
71
71
|
const polyhedron_attribute_color_map = defineModel<string>("polyhedron_attribute_color_map");
|
|
72
|
-
const polyhedron_attribute_no_data_color = defineModel<
|
|
72
|
+
const polyhedron_attribute_no_data_color = defineModel<ColorRGBA>(
|
|
73
73
|
"polyhedron_attribute_no_data_color",
|
|
74
74
|
);
|
|
75
75
|
const polyhedron_attribute_time_step = defineModel<number>("polyhedron_attribute_time_step");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DataId } from "@
|
|
2
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
3
3
|
import FileUploader from "@ogw_front/components/FileUploader.vue";
|
|
4
4
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
|
|
5
5
|
import { intersectBy } from "@ogw_front/utils/attributes";
|
|
@@ -65,12 +65,8 @@ onMounted(async () => {
|
|
|
65
65
|
async function files_uploaded_event(value: UploadFile[]): Promise<void> {
|
|
66
66
|
if (value.length > 0 && value[0]) {
|
|
67
67
|
const schema = back_schemas.opengeodeweb_back.save_viewable_file;
|
|
68
|
-
const params = {
|
|
69
|
-
geode_object_type: "RasterImage2D",
|
|
70
|
-
filename: value[0].name,
|
|
71
|
-
};
|
|
72
68
|
await backStore.request(
|
|
73
|
-
{ schema, params },
|
|
69
|
+
{ schema, params: { geode_object_type: "RasterImage2D", filename: value[0].name } },
|
|
74
70
|
{
|
|
75
71
|
response_function: (response) => {
|
|
76
72
|
// A texture file holds a single image: the first imported object is the texture
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DataId } from "@
|
|
2
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
3
3
|
import type { Texture } from "@ogw_front/types/texture";
|
|
4
4
|
import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem.vue";
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import GlassCard from "@ogw_front/components/GlassCard.vue";
|
|
3
3
|
import type { ProposedItem } from "@ogw_front/composables/use_overlapping_picker";
|
|
4
4
|
import { formatListId } from "@ogw_front/utils/name_cleaner";
|
|
5
|
-
import {
|
|
5
|
+
import { geodeObjectImage } from "@ogw_front/assets/geode_objects";
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
displayIntermediate: boolean;
|
|
@@ -63,8 +63,8 @@ function handleUpdate(val: boolean): void {
|
|
|
63
63
|
>
|
|
64
64
|
<template #prepend>
|
|
65
65
|
<v-img
|
|
66
|
-
v-if="
|
|
67
|
-
:src="
|
|
66
|
+
v-if="item.geode_object_type"
|
|
67
|
+
:src="geodeObjectImage(item.geode_object_type)"
|
|
68
68
|
height="24"
|
|
69
69
|
width="24"
|
|
70
70
|
max-width="24"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { ColorRGBA, Opacity } from "@geode/opengeodeweb-viewer/schema_types";
|
|
2
3
|
import {
|
|
3
4
|
type RangesPerData,
|
|
4
5
|
applyRangesPerData,
|
|
@@ -8,9 +9,7 @@ import ViewerContextMenuItem, {
|
|
|
8
9
|
type ItemProps,
|
|
9
10
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
10
11
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
11
|
-
import type { Opacity } from "@ogw_front/types/style";
|
|
12
12
|
import PointSetPoints from "@ogw_front/assets/viewer_svgs/point_set_points.svg";
|
|
13
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
14
13
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
15
14
|
import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
|
|
16
15
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
@@ -62,8 +61,8 @@ const coloring_style_key = computed({
|
|
|
62
61
|
hybridViewerStore.remoteRender();
|
|
63
62
|
},
|
|
64
63
|
});
|
|
65
|
-
const color = computed<
|
|
66
|
-
get: () => dataStyleStore.meshPointsColor(dataId.value) as
|
|
64
|
+
const color = computed<ColorRGBA | undefined>({
|
|
65
|
+
get: () => dataStyleStore.meshPointsColor(dataId.value) as ColorRGBA | undefined,
|
|
67
66
|
set: async (newValue) => {
|
|
68
67
|
if (newValue === undefined) {
|
|
69
68
|
return;
|
|
@@ -142,7 +141,7 @@ const vertex_attribute_color_map = computed({
|
|
|
142
141
|
hybridViewerStore.remoteRender();
|
|
143
142
|
},
|
|
144
143
|
});
|
|
145
|
-
const vertex_attribute_no_data_color = computed<
|
|
144
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
146
145
|
get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(dataId.value),
|
|
147
146
|
set: async (newValue) => {
|
|
148
147
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import ViewerContextMenuItem, {
|
|
3
3
|
type ItemProps,
|
|
4
4
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
5
|
-
import type {
|
|
5
|
+
import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
|
|
6
6
|
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker.vue";
|
|
7
7
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ const { itemProps } = defineProps<Props>();
|
|
|
14
14
|
|
|
15
15
|
const dataStyleStore = useDataStyleStore();
|
|
16
16
|
|
|
17
|
-
const backgroundColor = computed<
|
|
17
|
+
const backgroundColor = computed<ColorRGBA>({
|
|
18
18
|
get: () => dataStyleStore.sceneStyle.background_color,
|
|
19
19
|
set: async (color) => {
|
|
20
20
|
await dataStyleStore.setSceneBackgroundColor(color);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import ViewerContextMenuItem, {
|
|
3
3
|
type ItemProps,
|
|
4
4
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
5
|
-
import type {
|
|
5
|
+
import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
|
|
6
6
|
import type { SceneFontFamily } from "@ogw_internal/stores/data_style/types";
|
|
7
7
|
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker.vue";
|
|
8
8
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -23,7 +23,7 @@ const FONT_FAMILIES: { title: string; value: SceneFontFamily }[] = [
|
|
|
23
23
|
{ title: "Times", value: "times" },
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
-
const textColor = computed<
|
|
26
|
+
const textColor = computed<ColorRGBA>({
|
|
27
27
|
get: () => dataStyleStore.sceneStyle.text.color,
|
|
28
28
|
set: async (color) => {
|
|
29
29
|
await dataStyleStore.setSceneTextColor(color);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
8
|
-
import type {
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Opacity,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
9
9
|
import {
|
|
10
10
|
type RangesPerData,
|
|
11
11
|
applyRangesPerData,
|
|
12
12
|
useBatchStyle,
|
|
13
13
|
} from "@ogw_front/composables/batch_style";
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
14
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
15
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
16
16
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
17
17
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
18
18
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -37,9 +37,9 @@ const coloring_style_key = computed<string>({
|
|
|
37
37
|
hybridViewerStore.remoteRender();
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
-
const color = useBatchStyleModel<
|
|
40
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
41
41
|
() => dataId,
|
|
42
|
-
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as
|
|
42
|
+
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as ColorRGBA | undefined,
|
|
43
43
|
(meshId, value) => dataStyleStore.setMeshPolyhedraColor(meshId, value),
|
|
44
44
|
);
|
|
45
45
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -96,7 +96,7 @@ const vertex_attribute_range = computed<AttributeRange>({
|
|
|
96
96
|
hybridViewerStore.remoteRender();
|
|
97
97
|
},
|
|
98
98
|
});
|
|
99
|
-
const vertex_attribute_color_map = computed<Map<string,
|
|
99
|
+
const vertex_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
|
|
100
100
|
get: () => dataStyleStore.meshPolyhedraVertexAttributeColorMap(dataId),
|
|
101
101
|
set: async (newValue) => {
|
|
102
102
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -105,7 +105,7 @@ const vertex_attribute_color_map = computed<Map<string, RGBAColor> | undefined>(
|
|
|
105
105
|
hybridViewerStore.remoteRender();
|
|
106
106
|
},
|
|
107
107
|
});
|
|
108
|
-
const vertex_attribute_no_data_color = computed<
|
|
108
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
109
109
|
get: () => dataStyleStore.meshPolyhedraVertexAttributeNoDataColor(dataId),
|
|
110
110
|
set: async (newValue) => {
|
|
111
111
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -163,7 +163,7 @@ const polyhedron_attribute_range = computed<AttributeRange>({
|
|
|
163
163
|
hybridViewerStore.remoteRender();
|
|
164
164
|
},
|
|
165
165
|
});
|
|
166
|
-
const polyhedron_attribute_color_map = computed<Map<string,
|
|
166
|
+
const polyhedron_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
|
|
167
167
|
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeColorMap(dataId),
|
|
168
168
|
set: async (newValue) => {
|
|
169
169
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -172,7 +172,7 @@ const polyhedron_attribute_color_map = computed<Map<string, RGBAColor> | undefin
|
|
|
172
172
|
hybridViewerStore.remoteRender();
|
|
173
173
|
},
|
|
174
174
|
});
|
|
175
|
-
const polyhedron_attribute_no_data_color = computed<
|
|
175
|
+
const polyhedron_attribute_no_data_color = computed<ColorRGBA>({
|
|
176
176
|
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeNoDataColor(dataId),
|
|
177
177
|
set: async (newValue) => {
|
|
178
178
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -6,7 +6,7 @@ import type { MeshId } from "@ogw_front/types/identifiers";
|
|
|
6
6
|
import SolidPolyhedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg";
|
|
7
7
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
8
8
|
import ViewerSolidSpecificPolyhedraColoring from "@ogw_front/components/Viewer/Solid/SpecificPolyhedraColoring.vue";
|
|
9
|
-
import type { Visibility } from "@
|
|
9
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
10
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
11
11
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
12
12
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
AttributeItem,
|
|
4
4
|
AttributeName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@
|
|
8
|
-
import type {
|
|
5
|
+
ColorRGBA,
|
|
6
|
+
Opacity,
|
|
7
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
8
|
+
import type { AttributeRange, AttributeTimeStep } from "@ogw_front/types/attribute";
|
|
9
9
|
import {
|
|
10
10
|
type RangesPerData,
|
|
11
11
|
applyRangesPerData,
|
|
12
12
|
useBatchStyle,
|
|
13
13
|
} from "@ogw_front/composables/batch_style";
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
14
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
15
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
16
16
|
import type { Texture } from "@ogw_front/types/texture";
|
|
17
17
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
18
18
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
@@ -38,9 +38,9 @@ const coloring_style_key = computed<string>({
|
|
|
38
38
|
hybridViewerStore.remoteRender();
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
|
-
const color = useBatchStyleModel<
|
|
41
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
42
42
|
() => dataId,
|
|
43
|
-
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as
|
|
43
|
+
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as ColorRGBA | undefined,
|
|
44
44
|
(meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
|
|
45
45
|
);
|
|
46
46
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -100,7 +100,7 @@ const vertex_attribute_range = computed<AttributeRange>({
|
|
|
100
100
|
hybridViewerStore.remoteRender();
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
|
-
const vertex_attribute_color_map = computed<Map<string,
|
|
103
|
+
const vertex_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
|
|
104
104
|
get: () => dataStyleStore.meshPolygonsVertexAttributeColorMap(dataId),
|
|
105
105
|
set: async (newValue) => {
|
|
106
106
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -109,7 +109,7 @@ const vertex_attribute_color_map = computed<Map<string, RGBAColor> | undefined>(
|
|
|
109
109
|
hybridViewerStore.remoteRender();
|
|
110
110
|
},
|
|
111
111
|
});
|
|
112
|
-
const vertex_attribute_no_data_color = computed<
|
|
112
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
113
113
|
get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
|
|
114
114
|
set: async (newValue) => {
|
|
115
115
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -167,7 +167,7 @@ const polygon_attribute_range = computed<AttributeRange>({
|
|
|
167
167
|
hybridViewerStore.remoteRender();
|
|
168
168
|
},
|
|
169
169
|
});
|
|
170
|
-
const polygon_attribute_color_map = computed<Map<string,
|
|
170
|
+
const polygon_attribute_color_map = computed<Map<string, ColorRGBA> | undefined>({
|
|
171
171
|
get: () => dataStyleStore.meshPolygonsPolygonAttributeColorMap(dataId),
|
|
172
172
|
set: async (newValue) => {
|
|
173
173
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -176,7 +176,7 @@ const polygon_attribute_color_map = computed<Map<string, RGBAColor> | undefined>
|
|
|
176
176
|
hybridViewerStore.remoteRender();
|
|
177
177
|
},
|
|
178
178
|
});
|
|
179
|
-
const polygon_attribute_no_data_color = computed<
|
|
179
|
+
const polygon_attribute_no_data_color = computed<ColorRGBA>({
|
|
180
180
|
get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
|
|
181
181
|
set: async (newValue) => {
|
|
182
182
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -6,7 +6,7 @@ import type { MeshId } from "@ogw_front/types/identifiers";
|
|
|
6
6
|
import PolygonalSurfacePolygons from "@ogw_front/assets/viewer_svgs/surface_triangles.svg";
|
|
7
7
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
8
8
|
import ViewerSurfacePolygonsColoring from "@ogw_front/components/Viewer/Surface/PolygonsColoring.vue";
|
|
9
|
-
import type { Visibility } from "@
|
|
9
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
10
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
11
11
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
12
12
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AttributeRangeInfo, AttributeSchemas } from "@ogw_front/utils/attribute_range";
|
|
2
2
|
import type { AttributeTimeStep, ValidAttributeRange } from "@ogw_front/types/attribute";
|
|
3
|
-
import type { DataId } from "@
|
|
3
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
4
4
|
import { getAttributeRange } from "@ogw_front/utils/attributes";
|
|
5
5
|
|
|
6
6
|
// The minimum and maximum of an attribute range: each one is clamped by the other
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
AttributeRangeMaximum,
|
|
3
3
|
AttributeRangeMinimum,
|
|
4
|
-
|
|
5
|
-
} from "@ogw_front/types/attribute";
|
|
4
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
6
5
|
import {
|
|
7
6
|
type ComputedRef,
|
|
8
7
|
type InjectionKey,
|
|
@@ -12,7 +11,8 @@ import {
|
|
|
12
11
|
provide,
|
|
13
12
|
toValue,
|
|
14
13
|
} from "vue";
|
|
15
|
-
import type { DataId } from "@
|
|
14
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
15
|
+
import type { ValidAttributeRange } from "@ogw_front/types/attribute";
|
|
16
16
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
17
17
|
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
18
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MaybeRefOrGetter, type WritableComputedRef, computed, toValue } from "vue";
|
|
2
|
-
import type { DataId } from "@
|
|
2
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
3
3
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
4
4
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
5
5
|
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
type SliceAxis,
|
|
5
5
|
areAllGrids,
|
|
6
6
|
} from "@ogw_front/utils/slice";
|
|
7
|
-
import type { DataIdentified
|
|
7
|
+
import type { DataIdentified } from "@ogw_front/types/identifiers";
|
|
8
|
+
import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
|
|
8
9
|
import type { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
9
10
|
|
|
10
11
|
interface Slice {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { DataId } from "@
|
|
1
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
2
2
|
import type { ParamsOf } from "@ogw_shared/utils/types";
|
|
3
|
+
import type { ViewerId } from "@geode/opengeodeweb-viewer/schema_types";
|
|
4
|
+
import type { ViewerObjectType } from "@geode/opengeodeweb-microservice/data_types";
|
|
3
5
|
import { consola } from "consola";
|
|
4
6
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
5
7
|
import { useViewerStore } from "@ogw_front/stores/viewer";
|
|
@@ -7,9 +9,10 @@ import vtk_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_sc
|
|
|
7
9
|
|
|
8
10
|
const HOVER_DELAY = 200;
|
|
9
11
|
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
|
|
12
|
+
type HighlightSchema = (typeof vtk_schemas)["opengeodeweb_viewer"][ViewerObjectType]["highlight"];
|
|
13
|
+
type BlockIdsProvider =
|
|
14
|
+
| readonly ViewerId[]
|
|
15
|
+
| (() => readonly ViewerId[] | Promise<readonly ViewerId[]>);
|
|
13
16
|
|
|
14
17
|
// Every live instance, so a highlight can be released from outside the component that started it
|
|
15
18
|
const instances = new Set<(dataId: DataId) => void>();
|
|
@@ -34,12 +37,12 @@ function useHoverhighlight(): {
|
|
|
34
37
|
// Item hovered last, whose highlight may still be pending
|
|
35
38
|
let currentId: DataId | undefined = undefined;
|
|
36
39
|
// Item the viewer was asked to highlight, the only one to unhighlight
|
|
37
|
-
let highlighted: { dataId: DataId; type:
|
|
40
|
+
let highlighted: { dataId: DataId; type: ViewerObjectType } | undefined = undefined;
|
|
38
41
|
|
|
39
42
|
function onHoverEnter(
|
|
40
43
|
dataId: DataId,
|
|
41
44
|
block_ids_provider: BlockIdsProvider = [],
|
|
42
|
-
type:
|
|
45
|
+
type: ViewerObjectType = "model",
|
|
43
46
|
immediate = false,
|
|
44
47
|
): void {
|
|
45
48
|
if (timer) {
|
|
@@ -106,7 +109,7 @@ function useHoverhighlight(): {
|
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
async function unhighlightAction(
|
|
109
|
-
type:
|
|
112
|
+
type: ViewerObjectType,
|
|
110
113
|
dataId: DataId,
|
|
111
114
|
request: {
|
|
112
115
|
schema: HighlightSchema;
|