@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
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
PointSize,
|
|
13
|
+
Visibility,
|
|
14
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
15
|
import {
|
|
11
16
|
type RangesPerData,
|
|
12
17
|
applyRangesPerData,
|
|
@@ -16,7 +21,6 @@ import ViewerContextMenuItem, {
|
|
|
16
21
|
type ItemProps,
|
|
17
22
|
} from "@ogw_front/components/Viewer/ContextMenu/ContextMenuItem.vue";
|
|
18
23
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
19
|
-
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
20
24
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
21
25
|
import ViewerOptionsSizeSlider from "@ogw_front/components/Viewer/Options/Sliders/Size.vue";
|
|
22
26
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
@@ -46,7 +50,7 @@ const visibility = computed<Visibility>({
|
|
|
46
50
|
hybridViewerStore.remoteRender();
|
|
47
51
|
},
|
|
48
52
|
});
|
|
49
|
-
const size = computed<
|
|
53
|
+
const size = computed<PointSize>({
|
|
50
54
|
get: () => dataStyleStore.meshPointsSize(dataId.value),
|
|
51
55
|
set: async (newValue) => {
|
|
52
56
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -64,8 +68,8 @@ const coloring_style_key = computed<string>({
|
|
|
64
68
|
hybridViewerStore.remoteRender();
|
|
65
69
|
},
|
|
66
70
|
});
|
|
67
|
-
const color = computed<
|
|
68
|
-
get: () => dataStyleStore.meshPointsColor(dataId.value) as
|
|
71
|
+
const color = computed<ColorRGBA | undefined>({
|
|
72
|
+
get: () => dataStyleStore.meshPointsColor(dataId.value) as ColorRGBA | undefined,
|
|
69
73
|
set: async (newValue) => {
|
|
70
74
|
if (newValue === undefined) {
|
|
71
75
|
return;
|
|
@@ -144,7 +148,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
144
148
|
hybridViewerStore.remoteRender();
|
|
145
149
|
},
|
|
146
150
|
});
|
|
147
|
-
const vertex_attribute_no_data_color = computed<
|
|
151
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
148
152
|
get: () => dataStyleStore.meshPointsVertexAttributeNoDataColor(dataId.value),
|
|
149
153
|
set: async (newValue) => {
|
|
150
154
|
await applyBatchStyle(dataId.value, (meshId: MeshId) =>
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import type { Texture } from "@ogw_front/types/texture";
|
|
18
21
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
19
22
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
@@ -40,9 +43,9 @@ const coloring_style_key = computed<string>({
|
|
|
40
43
|
hybridViewerStore.remoteRender();
|
|
41
44
|
},
|
|
42
45
|
});
|
|
43
|
-
const color = useBatchStyleModel<
|
|
46
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
44
47
|
() => dataId,
|
|
45
|
-
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as
|
|
48
|
+
(meshId) => dataStyleStore.meshPolygonsColor(meshId) as ColorRGBA | undefined,
|
|
46
49
|
(meshId, value) => dataStyleStore.setMeshPolygonsColor(meshId, value),
|
|
47
50
|
);
|
|
48
51
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -112,7 +115,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
112
115
|
hybridViewerStore.remoteRender();
|
|
113
116
|
},
|
|
114
117
|
});
|
|
115
|
-
const vertex_attribute_no_data_color = computed<
|
|
118
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
116
119
|
get: () => dataStyleStore.meshPolygonsVertexAttributeNoDataColor(dataId),
|
|
117
120
|
set: async (newValue) => {
|
|
118
121
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -179,7 +182,7 @@ const polygon_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
179
182
|
hybridViewerStore.remoteRender();
|
|
180
183
|
},
|
|
181
184
|
});
|
|
182
|
-
const polygon_attribute_no_data_color = computed<
|
|
185
|
+
const polygon_attribute_no_data_color = computed<ColorRGBA>({
|
|
183
186
|
get: () => dataStyleStore.meshPolygonsPolygonAttributeNoDataColor(dataId),
|
|
184
187
|
set: async (newValue) => {
|
|
185
188
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -5,7 +5,7 @@ import ViewerContextMenuItem, {
|
|
|
5
5
|
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
6
6
|
import ViewerGenericMeshPolygonsColoring from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsColoring.vue";
|
|
7
7
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
8
|
-
import type { Visibility } from "@
|
|
8
|
+
import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
|
|
9
9
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
10
10
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
11
11
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type {
|
|
3
3
|
AttributeColorMap,
|
|
4
|
-
AttributeItem,
|
|
5
|
-
AttributeName,
|
|
6
4
|
AttributeRange,
|
|
7
5
|
AttributeTimeStep,
|
|
8
6
|
} from "@ogw_front/types/attribute";
|
|
9
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AttributeItem,
|
|
9
|
+
AttributeName,
|
|
10
|
+
ColorRGBA,
|
|
11
|
+
Opacity,
|
|
12
|
+
} from "@geode/opengeodeweb-viewer/schema_types";
|
|
10
13
|
import {
|
|
11
14
|
type RangesPerData,
|
|
12
15
|
applyRangesPerData,
|
|
13
16
|
useBatchStyle,
|
|
14
17
|
} from "@ogw_front/composables/batch_style";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
18
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
19
|
+
import type { MeshId } from "@ogw_front/types/identifiers";
|
|
17
20
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
18
21
|
import { useBatchStyleModel } from "@ogw_front/composables/batch_style_model";
|
|
19
22
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -38,9 +41,9 @@ const coloring_style_key = computed<string>({
|
|
|
38
41
|
hybridViewerStore.remoteRender();
|
|
39
42
|
},
|
|
40
43
|
});
|
|
41
|
-
const color = useBatchStyleModel<
|
|
44
|
+
const color = useBatchStyleModel<ColorRGBA>(
|
|
42
45
|
() => dataId,
|
|
43
|
-
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as
|
|
46
|
+
(meshId) => dataStyleStore.meshPolyhedraColor(meshId) as ColorRGBA | undefined,
|
|
44
47
|
(meshId, value) => dataStyleStore.setMeshPolyhedraColor(meshId, value),
|
|
45
48
|
);
|
|
46
49
|
const opacity = useBatchStyleModel<Opacity>(
|
|
@@ -106,7 +109,7 @@ const vertex_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
106
109
|
hybridViewerStore.remoteRender();
|
|
107
110
|
},
|
|
108
111
|
});
|
|
109
|
-
const vertex_attribute_no_data_color = computed<
|
|
112
|
+
const vertex_attribute_no_data_color = computed<ColorRGBA>({
|
|
110
113
|
get: () => dataStyleStore.meshPolyhedraVertexAttributeNoDataColor(dataId),
|
|
111
114
|
set: async (newValue) => {
|
|
112
115
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -173,7 +176,7 @@ const polyhedron_attribute_color_map = computed<AttributeColorMap | undefined>({
|
|
|
173
176
|
hybridViewerStore.remoteRender();
|
|
174
177
|
},
|
|
175
178
|
});
|
|
176
|
-
const polyhedron_attribute_no_data_color = computed<
|
|
179
|
+
const polyhedron_attribute_no_data_color = computed<ColorRGBA>({
|
|
177
180
|
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeNoDataColor(dataId),
|
|
178
181
|
set: async (newValue) => {
|
|
179
182
|
await applyBatchStyle(dataId, (meshId: MeshId) =>
|
|
@@ -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, {
|