@geode/opengeodeweb-front 10.44.0 → 10.44.1
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/app/components/ClippingPlanes.vue +7 -5
- package/app/components/CrsSelector.vue +2 -1
- package/app/components/ExtensionSelector.vue +8 -7
- package/app/components/FactorFilterPanel.vue +4 -4
- package/app/components/MissingFilesSelector.vue +2 -1
- package/app/components/ObjectSelector.vue +4 -3
- package/app/components/ThresholdCard.vue +6 -5
- package/app/components/ThresholdFilter.vue +11 -10
- package/app/components/TimeSeriesTargetSelector.vue +10 -7
- package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -10
- package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +72 -63
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +12 -10
- package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +76 -71
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +8 -6
- package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +72 -63
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +12 -10
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +54 -45
- package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +76 -73
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +8 -6
- package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +72 -67
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +8 -6
- package/app/components/Viewer/Generic/Model/BlocksOptions.vue +29 -21
- package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +8 -6
- package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +8 -6
- package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +15 -7
- package/app/components/Viewer/Generic/Model/CornersOptions.vue +2 -1
- package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +13 -6
- package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +19 -11
- package/app/components/Viewer/Generic/Model/LinesOptions.vue +2 -1
- package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +17 -10
- package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +3 -2
- package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +2 -1
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -2
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +29 -21
- package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +2 -2
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +2 -3
- package/app/components/Viewer/Options/AttributeSelector.vue +11 -7
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +10 -13
- package/app/components/Viewer/Options/TextureItem.vue +5 -4
- package/app/components/Viewer/Options/TexturesSelector.vue +5 -8
- package/app/components/Viewer/Options/TimeStepSlider.vue +3 -1
- package/app/components/Viewer/OverlappingObjectsPicker.vue +6 -13
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +40 -38
- package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +69 -65
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +8 -6
- package/app/components/Viewer/Surface/PolygonsColoring.vue +73 -71
- package/app/components/Viewer/Surface/PolygonsOptions.vue +8 -6
- package/app/composables/attribute_coloring_style.ts +17 -12
- package/app/composables/attribute_selector.ts +9 -15
- package/app/composables/batch_style.ts +25 -16
- package/app/composables/batch_style_model.ts +6 -5
- package/app/composables/clipping_planes_widget.ts +2 -5
- package/app/composables/clipping_slices.ts +2 -1
- package/app/composables/hover_highlight.ts +17 -16
- package/app/composables/live_data_item.ts +3 -2
- package/app/composables/model_attribute_style.ts +2 -1
- package/app/composables/model_menu_context.ts +3 -4
- package/app/composables/model_tree.ts +3 -2
- package/app/composables/project_manager_helpers/types.ts +10 -4
- package/app/composables/tree_filter.ts +3 -3
- package/app/composables/tree_keyboard_nav.ts +1 -6
- package/app/composables/tree_scroll.ts +2 -0
- package/app/composables/use_overlapping_picker.ts +9 -9
- package/app/stores/basemap_helpers/georeferenced.ts +1 -1
- package/app/stores/basemap_helpers/viewer.ts +2 -1
- package/app/stores/crs.ts +6 -5
- package/app/stores/data.ts +84 -69
- package/app/stores/data_helpers/collections.ts +13 -21
- package/app/stores/data_helpers/mesh.ts +19 -24
- package/app/stores/data_helpers/relations.ts +12 -12
- package/app/stores/data_style.ts +26 -20
- package/app/stores/menu.ts +17 -11
- package/app/stores/treeview.ts +28 -27
- package/app/types/attribute.ts +37 -0
- package/app/types/identifiers.ts +72 -0
- package/app/types/style.ts +13 -0
- package/app/types/texture.ts +6 -0
- package/app/types/tree.ts +17 -0
- package/app/utils/attribute_range.ts +2 -1
- package/app/utils/attributes.ts +13 -4
- package/app/utils/basemap_tree.ts +3 -5
- package/app/utils/clipping_planes.ts +6 -4
- package/app/utils/clipping_planes_scene.ts +4 -3
- package/app/utils/crs.ts +4 -1
- package/app/utils/default_styles/constants.ts +8 -1
- package/app/utils/default_styles/mesh_components.ts +21 -25
- package/app/utils/default_styles/meshes.ts +7 -22
- package/app/utils/default_styles/model_components.ts +22 -26
- package/app/utils/default_styles/models.ts +11 -13
- package/app/utils/import_workflow.ts +37 -29
- package/app/utils/legacy_data_id.ts +16 -0
- package/app/utils/slice.ts +7 -2
- package/app/utils/threshold.ts +1 -8
- package/app/utils/threshold_sources.ts +8 -5
- package/app/utils/treeview.ts +3 -2
- package/internal/database/tables/data.ts +1 -1
- package/internal/database/tables/data_style.ts +1 -1
- package/internal/database/tables/model_components.ts +1 -1
- package/internal/database/tables/model_components_relation.ts +1 -1
- package/internal/stores/data_style/attribute_default.ts +14 -0
- package/internal/stores/data_style/attribute_types.ts +59 -0
- package/internal/stores/data_style/attribute_valid.ts +16 -0
- package/internal/stores/data_style/mesh/base_style.ts +17 -15
- package/internal/stores/data_style/mesh/cells/cell.ts +64 -49
- package/internal/stores/data_style/mesh/cells/cell_attribute.ts +42 -66
- package/internal/stores/data_style/mesh/cells/cell_config.ts +59 -53
- package/internal/stores/data_style/mesh/cells/color.ts +8 -7
- package/internal/stores/data_style/mesh/cells/common.ts +16 -15
- package/internal/stores/data_style/mesh/cells/index.ts +49 -47
- package/internal/stores/data_style/mesh/cells/opacity.ts +12 -10
- package/internal/stores/data_style/mesh/cells/textures.ts +8 -7
- package/internal/stores/data_style/mesh/cells/vertex.ts +66 -50
- package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/cells/vertex_config.ts +62 -53
- package/internal/stores/data_style/mesh/cells/visibility.ts +11 -7
- package/internal/stores/data_style/mesh/edges/color.ts +8 -7
- package/internal/stores/data_style/mesh/edges/common.ts +13 -12
- package/internal/stores/data_style/mesh/edges/edge.ts +64 -49
- package/internal/stores/data_style/mesh/edges/edge_attribute.ts +42 -66
- package/internal/stores/data_style/mesh/edges/edge_config.ts +59 -53
- package/internal/stores/data_style/mesh/edges/index.ts +49 -47
- package/internal/stores/data_style/mesh/edges/opacity.ts +12 -10
- package/internal/stores/data_style/mesh/edges/vertex.ts +66 -50
- package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/edges/vertex_config.ts +62 -53
- package/internal/stores/data_style/mesh/edges/visibility.ts +11 -7
- package/internal/stores/data_style/mesh/edges/width.ts +9 -7
- package/internal/stores/data_style/mesh/index.ts +27 -24
- package/internal/stores/data_style/mesh/points/color.ts +8 -7
- package/internal/stores/data_style/mesh/points/common.ts +16 -14
- package/internal/stores/data_style/mesh/points/index.ts +39 -37
- package/internal/stores/data_style/mesh/points/opacity.ts +12 -10
- package/internal/stores/data_style/mesh/points/size.ts +9 -7
- package/internal/stores/data_style/mesh/points/vertex.ts +66 -50
- package/internal/stores/data_style/mesh/points/vertex_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/points/vertex_config.ts +62 -53
- package/internal/stores/data_style/mesh/points/visibility.ts +8 -6
- package/internal/stores/data_style/mesh/polygons/color.ts +8 -7
- package/internal/stores/data_style/mesh/polygons/common.ts +19 -15
- package/internal/stores/data_style/mesh/polygons/index.ts +49 -50
- package/internal/stores/data_style/mesh/polygons/opacity.ts +12 -10
- package/internal/stores/data_style/mesh/polygons/polygon.ts +66 -50
- package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/polygons/polygon_config.ts +65 -53
- package/internal/stores/data_style/mesh/polygons/textures.ts +8 -7
- package/internal/stores/data_style/mesh/polygons/vertex.ts +66 -50
- package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/polygons/vertex_config.ts +65 -53
- package/internal/stores/data_style/mesh/polygons/visibility.ts +12 -7
- package/internal/stores/data_style/mesh/polyhedra/color.ts +13 -9
- package/internal/stores/data_style/mesh/polyhedra/common.ts +13 -12
- package/internal/stores/data_style/mesh/polyhedra/index.ts +51 -51
- package/internal/stores/data_style/mesh/polyhedra/opacity.ts +12 -10
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +59 -53
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +46 -69
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +65 -55
- package/internal/stores/data_style/mesh/polyhedra/vertex.ts +66 -50
- package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +37 -67
- package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +65 -53
- package/internal/stores/data_style/mesh/polyhedra/visibility.ts +12 -7
- package/internal/stores/data_style/model/blocks/apply_coloring.ts +11 -12
- package/internal/stores/data_style/model/blocks/color.ts +25 -26
- package/internal/stores/data_style/model/blocks/coloring_groups.ts +5 -9
- package/internal/stores/data_style/model/blocks/common.ts +26 -22
- package/internal/stores/data_style/model/blocks/index.ts +8 -7
- package/internal/stores/data_style/model/blocks/polyhedron.ts +114 -135
- package/internal/stores/data_style/model/blocks/vertex.ts +110 -132
- package/internal/stores/data_style/model/blocks/visibility.ts +11 -9
- package/internal/stores/data_style/model/color.ts +55 -41
- package/internal/stores/data_style/model/common.ts +16 -14
- package/internal/stores/data_style/model/component_style.ts +0 -16
- package/internal/stores/data_style/model/corners/color.ts +21 -19
- package/internal/stores/data_style/model/corners/common.ts +26 -22
- package/internal/stores/data_style/model/corners/index.ts +21 -24
- package/internal/stores/data_style/model/corners/vertex.ts +103 -122
- package/internal/stores/data_style/model/corners/visibility.ts +11 -9
- package/internal/stores/data_style/model/edges/common.ts +7 -6
- package/internal/stores/data_style/model/edges/component.ts +63 -55
- package/internal/stores/data_style/model/edges/visibility.ts +24 -16
- package/internal/stores/data_style/model/edges/width.ts +10 -8
- package/internal/stores/data_style/model/index.ts +7 -6
- package/internal/stores/data_style/model/lines/apply_coloring.ts +11 -9
- package/internal/stores/data_style/model/lines/color.ts +25 -23
- package/internal/stores/data_style/model/lines/coloring_groups.ts +5 -9
- package/internal/stores/data_style/model/lines/common.ts +29 -21
- package/internal/stores/data_style/model/lines/edge.ts +109 -128
- package/internal/stores/data_style/model/lines/index.ts +8 -7
- package/internal/stores/data_style/model/lines/vertex.ts +109 -128
- package/internal/stores/data_style/model/lines/visibility.ts +11 -9
- package/internal/stores/data_style/model/points/common.ts +7 -6
- package/internal/stores/data_style/model/points/component.ts +62 -54
- package/internal/stores/data_style/model/points/index.ts +12 -7
- package/internal/stores/data_style/model/points/size.ts +10 -8
- package/internal/stores/data_style/model/points/visibility.ts +13 -8
- package/internal/stores/data_style/model/selection.ts +6 -11
- package/internal/stores/data_style/model/surfaces/apply_coloring.ts +11 -15
- package/internal/stores/data_style/model/surfaces/color.ts +31 -23
- package/internal/stores/data_style/model/surfaces/coloring_groups.ts +5 -9
- package/internal/stores/data_style/model/surfaces/common.ts +26 -22
- package/internal/stores/data_style/model/surfaces/index.ts +8 -7
- package/internal/stores/data_style/model/surfaces/polygon.ts +113 -138
- package/internal/stores/data_style/model/surfaces/vertex.ts +117 -133
- package/internal/stores/data_style/model/surfaces/visibility.ts +11 -9
- package/internal/stores/data_style/model/visibility.ts +18 -16
- package/internal/stores/data_style/model/visibility_dispatch.ts +4 -4
- package/internal/stores/data_style/state.ts +7 -6
- package/internal/stores/data_style/state_shared.ts +11 -10
- package/internal/stores/data_style/time_step.ts +21 -15
- package/internal/stores/data_style/types.ts +4 -3
- package/internal/stores/hybrid_viewer/camera.ts +11 -6
- package/internal/stores/hybrid_viewer/filters.ts +16 -14
- package/internal/stores/hybrid_viewer/highlight.ts +6 -5
- package/internal/stores/hybrid_viewer/scene.ts +20 -18
- package/internal/stores/hybrid_viewer/vtk_types.ts +2 -2
- package/internal/utils/api_fetch.ts +1 -1
- package/internal/utils/upload_file.ts +1 -7
- package/package.json +1 -1
- package/shared/utils/fetch_raw.ts +7 -8
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
AttributeRange,
|
|
6
|
+
AttributeTimeStep,
|
|
7
|
+
} from "@ogw_front/types/attribute";
|
|
8
|
+
import type { CornerId } from "@ogw_front/types/identifiers";
|
|
2
9
|
import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
3
10
|
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
4
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
+
import type { Visibility } from "@ogw_front/types/style";
|
|
5
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
6
14
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
7
15
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
8
16
|
|
|
9
17
|
interface Props {
|
|
10
18
|
modelId: string;
|
|
11
|
-
cornerId?:
|
|
19
|
+
cornerId?: CornerId;
|
|
12
20
|
activeTab?: string;
|
|
13
21
|
}
|
|
14
22
|
|
|
@@ -19,7 +27,7 @@ const hybridViewerStore = useHybridViewerStore();
|
|
|
19
27
|
|
|
20
28
|
const cornerComponentIds = computed<string[]>(() => (cornerId !== undefined && [cornerId]) || []);
|
|
21
29
|
|
|
22
|
-
const cornerVisibility = computed<
|
|
30
|
+
const cornerVisibility = computed<Visibility | undefined>({
|
|
23
31
|
get: () => dataStyleStore.modelCornerVisibility(modelId, cornerId) as boolean | undefined,
|
|
24
32
|
set: async (newValue) => {
|
|
25
33
|
if (newValue === undefined || cornerId === undefined) {
|
|
@@ -53,7 +61,7 @@ const cornerActiveColoring = computed<string | undefined>({
|
|
|
53
61
|
});
|
|
54
62
|
|
|
55
63
|
// Individual Attributes
|
|
56
|
-
const vertexAttributeName = computed<
|
|
64
|
+
const vertexAttributeName = computed<AttributeName | undefined>({
|
|
57
65
|
get: () => dataStyleStore.modelCornersVertexAttributeName(modelId, cornerId),
|
|
58
66
|
set: async (newValue) => {
|
|
59
67
|
if (cornerId === undefined || newValue === undefined) {
|
|
@@ -64,7 +72,7 @@ const vertexAttributeName = computed<string | undefined>({
|
|
|
64
72
|
},
|
|
65
73
|
});
|
|
66
74
|
|
|
67
|
-
const vertexAttributeTimeStep = computed<
|
|
75
|
+
const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
68
76
|
get: () => dataStyleStore.modelCornersVertexAttributeTimeStep(modelId, cornerId),
|
|
69
77
|
set: async (newValue) => {
|
|
70
78
|
if (cornerId === undefined || newValue === undefined) {
|
|
@@ -75,7 +83,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
|
|
|
75
83
|
},
|
|
76
84
|
});
|
|
77
85
|
|
|
78
|
-
const vertexAttributeItem = computed<
|
|
86
|
+
const vertexAttributeItem = computed<AttributeItem>({
|
|
79
87
|
get: () => dataStyleStore.modelCornersVertexAttributeItem(modelId, cornerId),
|
|
80
88
|
set: async (newValue) => {
|
|
81
89
|
if (cornerId === undefined) {
|
|
@@ -86,7 +94,7 @@ const vertexAttributeItem = computed<string | undefined>({
|
|
|
86
94
|
},
|
|
87
95
|
});
|
|
88
96
|
|
|
89
|
-
const vertexAttributeRange = computed<
|
|
97
|
+
const vertexAttributeRange = computed<AttributeRange>({
|
|
90
98
|
get: () => dataStyleStore.modelCornersVertexAttributeRange(modelId, cornerId),
|
|
91
99
|
set: async (newValue) => {
|
|
92
100
|
const [minimum, maximum] = newValue;
|
|
@@ -127,7 +135,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_VERTEX_COLORING;
|
|
|
127
135
|
<div v-show="!activeTab || activeTab === 'component'" data-testid="modelComponentOptions">
|
|
128
136
|
<VisibilitySwitch v-model="cornerVisibility" />
|
|
129
137
|
<ViewerOptionsColoringTypeSelector
|
|
130
|
-
:id="modelId"
|
|
138
|
+
:data-id="modelId"
|
|
131
139
|
:componentIds="cornerComponentIds"
|
|
132
140
|
v-model:coloring_style_key="cornerActiveColoring"
|
|
133
141
|
v-model:color="cornerColor"
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
3
|
+
import type { CornerId } from "@ogw_front/types/identifiers";
|
|
3
4
|
import ViewerGenericModelCornerComponentOptions from "@ogw_front/components/Viewer/Generic/Model/CornerComponentOptions.vue";
|
|
4
5
|
import ViewerGenericModelCornersTypeOptions from "@ogw_front/components/Viewer/Generic/Model/CornersTypeOptions.vue";
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
8
|
modelId: string;
|
|
8
|
-
cornerId?:
|
|
9
|
+
cornerId?: CornerId;
|
|
9
10
|
targetCornerIds: string[];
|
|
10
11
|
collections?: CollectionComponent[];
|
|
11
12
|
activeTab?: string;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
AttributeRange,
|
|
6
|
+
AttributeTimeStep,
|
|
7
|
+
} from "@ogw_front/types/attribute";
|
|
2
8
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
3
9
|
import { MODEL_VERTEX_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
4
10
|
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
5
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
+
import type { Visibility } from "@ogw_front/types/style";
|
|
6
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
7
14
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
8
15
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -29,7 +36,7 @@ const referenceCornerId = computed<string | undefined>(() =>
|
|
|
29
36
|
);
|
|
30
37
|
|
|
31
38
|
// Visibility
|
|
32
|
-
const cornersVisibility = computed<
|
|
39
|
+
const cornersVisibility = computed<Visibility>({
|
|
33
40
|
get: () => {
|
|
34
41
|
if (collections) {
|
|
35
42
|
return targetCornerIds.every((id) => dataStyleStore.modelCornerVisibility(modelId, id));
|
|
@@ -80,7 +87,7 @@ const cornersActiveColoring = computed<string | undefined>({
|
|
|
80
87
|
});
|
|
81
88
|
|
|
82
89
|
// Group Attributes
|
|
83
|
-
const cornersVertexAttributeName = computed<
|
|
90
|
+
const cornersVertexAttributeName = computed<AttributeName | undefined>({
|
|
84
91
|
get: () => dataStyleStore.modelCornersVertexAttributeName(modelId, referenceCornerId.value),
|
|
85
92
|
set: async (newValue) => {
|
|
86
93
|
if (newValue === undefined) {
|
|
@@ -91,7 +98,7 @@ const cornersVertexAttributeName = computed<string | undefined>({
|
|
|
91
98
|
},
|
|
92
99
|
});
|
|
93
100
|
|
|
94
|
-
const cornersVertexAttributeTimeStep = computed<
|
|
101
|
+
const cornersVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
95
102
|
get: () => dataStyleStore.modelCornersVertexAttributeTimeStep(modelId, referenceCornerId.value),
|
|
96
103
|
set: async (newValue) => {
|
|
97
104
|
if (newValue === undefined) {
|
|
@@ -102,7 +109,7 @@ const cornersVertexAttributeTimeStep = computed<number | undefined>({
|
|
|
102
109
|
},
|
|
103
110
|
});
|
|
104
111
|
|
|
105
|
-
const cornersVertexAttributeItem = computed<
|
|
112
|
+
const cornersVertexAttributeItem = computed<AttributeItem>({
|
|
106
113
|
get: () => dataStyleStore.modelCornersVertexAttributeItem(modelId, referenceCornerId.value),
|
|
107
114
|
set: async (newValue) => {
|
|
108
115
|
await dataStyleStore.setModelCornersVertexAttributeItem(modelId, targetCornerIds, newValue);
|
|
@@ -110,7 +117,7 @@ const cornersVertexAttributeItem = computed<string | undefined>({
|
|
|
110
117
|
},
|
|
111
118
|
});
|
|
112
119
|
|
|
113
|
-
const cornersVertexAttributeRange = computed<
|
|
120
|
+
const cornersVertexAttributeRange = computed<AttributeRange>({
|
|
114
121
|
get: () => dataStyleStore.modelCornersVertexAttributeRange(modelId, referenceCornerId.value),
|
|
115
122
|
set: async (newValue) => {
|
|
116
123
|
const [minimum, maximum] = newValue;
|
|
@@ -155,7 +162,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_VERTEX_COLORING;
|
|
|
155
162
|
<div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
|
|
156
163
|
<VisibilitySwitch data-testid="modelCornersVisibilitySwitch" v-model="cornersVisibility" />
|
|
157
164
|
<ViewerOptionsColoringTypeSelector
|
|
158
|
-
:id="modelId"
|
|
165
|
+
:data-id="modelId"
|
|
159
166
|
:componentIds="targetCornerIds"
|
|
160
167
|
v-model:coloring_style_key="cornersActiveColoring"
|
|
161
168
|
v-model:color="cornersColor"
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
AttributeRange,
|
|
6
|
+
AttributeTimeStep,
|
|
7
|
+
} from "@ogw_front/types/attribute";
|
|
8
|
+
import type { LineId } from "@ogw_front/types/identifiers";
|
|
2
9
|
import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
3
10
|
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
4
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
+
import type { Visibility } from "@ogw_front/types/style";
|
|
5
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
6
14
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
7
15
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
8
16
|
|
|
9
17
|
interface Props {
|
|
10
18
|
modelId: string;
|
|
11
|
-
lineId?:
|
|
19
|
+
lineId?: LineId;
|
|
12
20
|
activeTab?: string;
|
|
13
21
|
}
|
|
14
22
|
|
|
@@ -19,7 +27,7 @@ const hybridViewerStore = useHybridViewerStore();
|
|
|
19
27
|
|
|
20
28
|
const lineComponentIds = computed<string[]>(() => (lineId !== undefined && [lineId]) || []);
|
|
21
29
|
|
|
22
|
-
const lineVisibility = computed<
|
|
30
|
+
const lineVisibility = computed<Visibility | undefined>({
|
|
23
31
|
get: () => dataStyleStore.modelLineVisibility(modelId, lineId) as boolean | undefined,
|
|
24
32
|
set: async (newValue) => {
|
|
25
33
|
if (newValue === undefined || lineId === undefined) {
|
|
@@ -53,7 +61,7 @@ const lineActiveColoring = computed<string | undefined>({
|
|
|
53
61
|
});
|
|
54
62
|
|
|
55
63
|
// Individual Attributes
|
|
56
|
-
const vertexAttributeName = computed<
|
|
64
|
+
const vertexAttributeName = computed<AttributeName | undefined>({
|
|
57
65
|
get: () => dataStyleStore.modelLinesVertexAttributeName(modelId, lineId),
|
|
58
66
|
set: async (newValue) => {
|
|
59
67
|
if (lineId === undefined || newValue === undefined) {
|
|
@@ -64,7 +72,7 @@ const vertexAttributeName = computed<string | undefined>({
|
|
|
64
72
|
},
|
|
65
73
|
});
|
|
66
74
|
|
|
67
|
-
const vertexAttributeTimeStep = computed<
|
|
75
|
+
const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
68
76
|
get: () => dataStyleStore.modelLinesVertexAttributeTimeStep(modelId, lineId),
|
|
69
77
|
set: async (newValue) => {
|
|
70
78
|
if (lineId === undefined || newValue === undefined) {
|
|
@@ -75,7 +83,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
|
|
|
75
83
|
},
|
|
76
84
|
});
|
|
77
85
|
|
|
78
|
-
const vertexAttributeItem = computed<
|
|
86
|
+
const vertexAttributeItem = computed<AttributeItem>({
|
|
79
87
|
get: () => dataStyleStore.modelLinesVertexAttributeItem(modelId, lineId),
|
|
80
88
|
set: async (newValue) => {
|
|
81
89
|
if (lineId === undefined) {
|
|
@@ -86,7 +94,7 @@ const vertexAttributeItem = computed<string | undefined>({
|
|
|
86
94
|
},
|
|
87
95
|
});
|
|
88
96
|
|
|
89
|
-
const vertexAttributeRange = computed<
|
|
97
|
+
const vertexAttributeRange = computed<AttributeRange>({
|
|
90
98
|
get: () => dataStyleStore.modelLinesVertexAttributeRange(modelId, lineId),
|
|
91
99
|
set: async (newValue) => {
|
|
92
100
|
const [minimum, maximum] = newValue;
|
|
@@ -120,7 +128,7 @@ const vertexAttributeNoDataColor = computed<RGBAColor>({
|
|
|
120
128
|
},
|
|
121
129
|
});
|
|
122
130
|
|
|
123
|
-
const edgeAttributeName = computed<
|
|
131
|
+
const edgeAttributeName = computed<AttributeName | undefined>({
|
|
124
132
|
get: () => dataStyleStore.modelLinesEdgeAttributeName(modelId, lineId),
|
|
125
133
|
set: async (newValue) => {
|
|
126
134
|
if (lineId === undefined || newValue === undefined) {
|
|
@@ -131,7 +139,7 @@ const edgeAttributeName = computed<string | undefined>({
|
|
|
131
139
|
},
|
|
132
140
|
});
|
|
133
141
|
|
|
134
|
-
const edgeAttributeTimeStep = computed<
|
|
142
|
+
const edgeAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
135
143
|
get: () => dataStyleStore.modelLinesEdgeAttributeTimeStep(modelId, lineId),
|
|
136
144
|
set: async (newValue) => {
|
|
137
145
|
if (lineId === undefined || newValue === undefined) {
|
|
@@ -142,7 +150,7 @@ const edgeAttributeTimeStep = computed<number | undefined>({
|
|
|
142
150
|
},
|
|
143
151
|
});
|
|
144
152
|
|
|
145
|
-
const edgeAttributeItem = computed<
|
|
153
|
+
const edgeAttributeItem = computed<AttributeItem>({
|
|
146
154
|
get: () => dataStyleStore.modelLinesEdgeAttributeItem(modelId, lineId),
|
|
147
155
|
set: async (newValue) => {
|
|
148
156
|
if (lineId === undefined) {
|
|
@@ -153,7 +161,7 @@ const edgeAttributeItem = computed<string | undefined>({
|
|
|
153
161
|
},
|
|
154
162
|
});
|
|
155
163
|
|
|
156
|
-
const edgeAttributeRange = computed<
|
|
164
|
+
const edgeAttributeRange = computed<AttributeRange>({
|
|
157
165
|
get: () => dataStyleStore.modelLinesEdgeAttributeRange(modelId, lineId),
|
|
158
166
|
set: async (newValue) => {
|
|
159
167
|
const [minimum, maximum] = newValue;
|
|
@@ -194,7 +202,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_LINE_COLORING;
|
|
|
194
202
|
<div v-show="!activeTab || activeTab === 'component'" data-testid="modelComponentOptions">
|
|
195
203
|
<VisibilitySwitch v-model="lineVisibility" />
|
|
196
204
|
<ViewerOptionsColoringTypeSelector
|
|
197
|
-
:id="modelId"
|
|
205
|
+
:data-id="modelId"
|
|
198
206
|
:componentIds="lineComponentIds"
|
|
199
207
|
v-model:coloring_style_key="lineActiveColoring"
|
|
200
208
|
v-model:color="lineColor"
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
3
|
+
import type { LineId } from "@ogw_front/types/identifiers";
|
|
3
4
|
import ViewerGenericModelLineComponentOptions from "@ogw_front/components/Viewer/Generic/Model/LineComponentOptions.vue";
|
|
4
5
|
import ViewerGenericModelLinesTypeOptions from "@ogw_front/components/Viewer/Generic/Model/LinesTypeOptions.vue";
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
8
|
modelId: string;
|
|
8
|
-
lineId?:
|
|
9
|
+
lineId?: LineId;
|
|
9
10
|
targetLineIds: string[];
|
|
10
11
|
collections?: CollectionComponent[];
|
|
11
12
|
activeTab?: string;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type {
|
|
3
|
+
AttributeItem,
|
|
4
|
+
AttributeName,
|
|
5
|
+
AttributeRange,
|
|
6
|
+
AttributeTimeStep,
|
|
7
|
+
} from "@ogw_front/types/attribute";
|
|
2
8
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
3
9
|
import { MODEL_LINE_COLORING } from "@ogw_front/utils/model_component_coloring";
|
|
4
10
|
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
5
11
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
12
|
+
import type { Visibility } from "@ogw_front/types/style";
|
|
6
13
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
7
14
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
8
15
|
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
@@ -29,7 +36,7 @@ const referenceLineId = computed<string | undefined>(() =>
|
|
|
29
36
|
);
|
|
30
37
|
|
|
31
38
|
// Visibility
|
|
32
|
-
const linesVisibility = computed<
|
|
39
|
+
const linesVisibility = computed<Visibility>({
|
|
33
40
|
get: () => {
|
|
34
41
|
if (collections) {
|
|
35
42
|
return targetLineIds.every((id) => dataStyleStore.modelLineVisibility(modelId, id));
|
|
@@ -77,7 +84,7 @@ const linesActiveColoring = computed<string | undefined>({
|
|
|
77
84
|
});
|
|
78
85
|
|
|
79
86
|
// Group Attributes
|
|
80
|
-
const linesVertexAttributeName = computed<
|
|
87
|
+
const linesVertexAttributeName = computed<AttributeName | undefined>({
|
|
81
88
|
get: () => dataStyleStore.modelLinesVertexAttributeName(modelId, referenceLineId.value),
|
|
82
89
|
set: async (newValue) => {
|
|
83
90
|
if (newValue === undefined) {
|
|
@@ -88,7 +95,7 @@ const linesVertexAttributeName = computed<string | undefined>({
|
|
|
88
95
|
},
|
|
89
96
|
});
|
|
90
97
|
|
|
91
|
-
const linesVertexAttributeTimeStep = computed<
|
|
98
|
+
const linesVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
92
99
|
get: () => dataStyleStore.modelLinesVertexAttributeTimeStep(modelId, referenceLineId.value),
|
|
93
100
|
set: async (newValue) => {
|
|
94
101
|
if (newValue === undefined) {
|
|
@@ -99,7 +106,7 @@ const linesVertexAttributeTimeStep = computed<number | undefined>({
|
|
|
99
106
|
},
|
|
100
107
|
});
|
|
101
108
|
|
|
102
|
-
const linesVertexAttributeItem = computed<
|
|
109
|
+
const linesVertexAttributeItem = computed<AttributeItem>({
|
|
103
110
|
get: () => dataStyleStore.modelLinesVertexAttributeItem(modelId, referenceLineId.value),
|
|
104
111
|
set: async (newValue) => {
|
|
105
112
|
await dataStyleStore.setModelLinesVertexAttributeItem(modelId, targetLineIds, newValue);
|
|
@@ -107,7 +114,7 @@ const linesVertexAttributeItem = computed<string | undefined>({
|
|
|
107
114
|
},
|
|
108
115
|
});
|
|
109
116
|
|
|
110
|
-
const linesVertexAttributeRange = computed<
|
|
117
|
+
const linesVertexAttributeRange = computed<AttributeRange>({
|
|
111
118
|
get: () => dataStyleStore.modelLinesVertexAttributeRange(modelId, referenceLineId.value),
|
|
112
119
|
set: async (newValue) => {
|
|
113
120
|
const [minimum, maximum] = newValue;
|
|
@@ -140,7 +147,7 @@ const linesVertexAttributeNoDataColor = computed<RGBAColor>({
|
|
|
140
147
|
},
|
|
141
148
|
});
|
|
142
149
|
|
|
143
|
-
const linesEdgeAttributeName = computed<
|
|
150
|
+
const linesEdgeAttributeName = computed<AttributeName | undefined>({
|
|
144
151
|
get: () => dataStyleStore.modelLinesEdgeAttributeName(modelId, referenceLineId.value),
|
|
145
152
|
set: async (newValue) => {
|
|
146
153
|
if (newValue === undefined) {
|
|
@@ -151,7 +158,7 @@ const linesEdgeAttributeName = computed<string | undefined>({
|
|
|
151
158
|
},
|
|
152
159
|
});
|
|
153
160
|
|
|
154
|
-
const linesEdgeAttributeTimeStep = computed<
|
|
161
|
+
const linesEdgeAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
155
162
|
get: () => dataStyleStore.modelLinesEdgeAttributeTimeStep(modelId, referenceLineId.value),
|
|
156
163
|
set: async (newValue) => {
|
|
157
164
|
if (newValue === undefined) {
|
|
@@ -162,7 +169,7 @@ const linesEdgeAttributeTimeStep = computed<number | undefined>({
|
|
|
162
169
|
},
|
|
163
170
|
});
|
|
164
171
|
|
|
165
|
-
const linesEdgeAttributeItem = computed<
|
|
172
|
+
const linesEdgeAttributeItem = computed<AttributeItem>({
|
|
166
173
|
get: () => dataStyleStore.modelLinesEdgeAttributeItem(modelId, referenceLineId.value),
|
|
167
174
|
set: async (newValue) => {
|
|
168
175
|
await dataStyleStore.setModelLinesEdgeAttributeItem(modelId, targetLineIds, newValue);
|
|
@@ -170,7 +177,7 @@ const linesEdgeAttributeItem = computed<string | undefined>({
|
|
|
170
177
|
},
|
|
171
178
|
});
|
|
172
179
|
|
|
173
|
-
const linesEdgeAttributeRange = computed<
|
|
180
|
+
const linesEdgeAttributeRange = computed<AttributeRange>({
|
|
174
181
|
get: () => dataStyleStore.modelLinesEdgeAttributeRange(modelId, referenceLineId.value),
|
|
175
182
|
set: async (newValue) => {
|
|
176
183
|
const [minimum, maximum] = newValue;
|
|
@@ -205,7 +212,7 @@ const { capabilities, schemas: attributeSchemas } = MODEL_LINE_COLORING;
|
|
|
205
212
|
<div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
|
|
206
213
|
<VisibilitySwitch data-testid="modelLinesVisibilitySwitch" v-model="linesVisibility" />
|
|
207
214
|
<ViewerOptionsColoringTypeSelector
|
|
208
|
-
:id="modelId"
|
|
215
|
+
:data-id="modelId"
|
|
209
216
|
:componentIds="targetLineIds"
|
|
210
217
|
v-model:coloring_style_key="linesActiveColoring"
|
|
211
218
|
v-model:color="linesColor"
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
type ModelMenuItemProps,
|
|
4
4
|
useModelMenuContext,
|
|
5
5
|
} from "@ogw_front/composables/model_menu_context";
|
|
6
|
+
import type { Visibility, Width } from "@ogw_front/types/style";
|
|
6
7
|
import ModelCardTabs from "./ModelCardTabs.vue";
|
|
7
8
|
import ViewerGenericModelComponentEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/ComponentEdgesOptions.vue";
|
|
8
9
|
import ViewerOptionsWidthSlider from "@ogw_front/components/Viewer/Options/Sliders/Width.vue";
|
|
@@ -39,7 +40,7 @@ const { applyBatchStyle } = useBatchStyle();
|
|
|
39
40
|
const { modelId, componentId, componentType, collections, targetComponentIds } =
|
|
40
41
|
useModelMenuContext(() => itemProps);
|
|
41
42
|
|
|
42
|
-
const modelEdgesVisibility = computed<
|
|
43
|
+
const modelEdgesVisibility = computed<Visibility | undefined>({
|
|
43
44
|
get: () => dataStyleStore.modelEdgesVisibility(modelId.value),
|
|
44
45
|
set: async (newValue) => {
|
|
45
46
|
if (newValue === undefined) {
|
|
@@ -52,7 +53,7 @@ const modelEdgesVisibility = computed<boolean | undefined>({
|
|
|
52
53
|
},
|
|
53
54
|
});
|
|
54
55
|
|
|
55
|
-
const modelEdgesWidth = computed<
|
|
56
|
+
const modelEdgesWidth = computed<Width | undefined>({
|
|
56
57
|
get: () => dataStyleStore.modelEdgesWidth(modelId.value),
|
|
57
58
|
set: async (newValue) => {
|
|
58
59
|
if (newValue === undefined) {
|
|
@@ -5,6 +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 "@ogw_front/types/style";
|
|
8
9
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
9
10
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
10
11
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
@@ -39,7 +40,7 @@ const { applyBatchStyle } = useBatchStyle();
|
|
|
39
40
|
const { modelId, componentId, componentType, collections, targetComponentIds } =
|
|
40
41
|
useModelMenuContext(() => itemProps);
|
|
41
42
|
|
|
42
|
-
const modelPointsVisibility = computed<
|
|
43
|
+
const modelPointsVisibility = computed<Visibility>({
|
|
43
44
|
get: () => dataStyleStore.modelPointsVisibility(modelId.value),
|
|
44
45
|
set: async (newValue) => {
|
|
45
46
|
await applyBatchStyle(modelId.value, (targetId: string) =>
|
|
@@ -10,6 +10,7 @@ import ModelCardTabs from "./ModelCardTabs.vue";
|
|
|
10
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";
|
|
13
14
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
14
15
|
import { useBatchStyle } from "@ogw_front/composables/batch_style";
|
|
15
16
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -37,7 +38,7 @@ function visibleComponents(targetId: string): string[] {
|
|
|
37
38
|
return dataStyleStore.visibleMeshComponents(targetId).value || [];
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
const modelVisibility = computed<
|
|
41
|
+
const modelVisibility = computed<Visibility | undefined>({
|
|
41
42
|
get: () => dataStyleStore.modelVisibility(modelId.value),
|
|
42
43
|
set: async (newValue) => {
|
|
43
44
|
if (newValue === undefined) {
|
|
@@ -101,7 +102,7 @@ const modelComponentsActiveColoring = computed<string | undefined>({
|
|
|
101
102
|
|
|
102
103
|
<div v-if="!componentType && !componentId" v-show="activeTab === 'components'">
|
|
103
104
|
<ViewerOptionsColoringTypeSelector
|
|
104
|
-
:id="modelId"
|
|
105
|
+
:data-id="modelId"
|
|
105
106
|
v-model:coloring_style_key="modelComponentsActiveColoring"
|
|
106
107
|
v-model:color="modelComponentsColor"
|
|
107
108
|
:capabilities="{ color: { available: true } }"
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
// oxlint-disable eslint/max-lines
|
|
3
|
+
import type {
|
|
4
|
+
AttributeItem,
|
|
5
|
+
AttributeName,
|
|
6
|
+
AttributeRange,
|
|
7
|
+
AttributeTimeStep,
|
|
8
|
+
} from "@ogw_front/types/attribute";
|
|
3
9
|
import type { CollectionComponent } from "@ogw_front/stores/data_helpers/collections";
|
|
4
10
|
import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
11
|
+
import type { SurfaceId } from "@ogw_front/types/identifiers";
|
|
5
12
|
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue";
|
|
13
|
+
import type { Visibility } from "@ogw_front/types/style";
|
|
6
14
|
import VisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue";
|
|
7
15
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
|
|
8
16
|
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
@@ -10,7 +18,7 @@ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
|
10
18
|
|
|
11
19
|
interface Props {
|
|
12
20
|
modelId: string;
|
|
13
|
-
surfaceId?:
|
|
21
|
+
surfaceId?: SurfaceId;
|
|
14
22
|
targetSurfaceIds: string[];
|
|
15
23
|
collections?: CollectionComponent[];
|
|
16
24
|
activeTab?: string;
|
|
@@ -36,7 +44,7 @@ const surfaceComponentIds = computed<string[]>(
|
|
|
36
44
|
);
|
|
37
45
|
|
|
38
46
|
// Visibility
|
|
39
|
-
const surfacesVisibility = computed<
|
|
47
|
+
const surfacesVisibility = computed<Visibility>({
|
|
40
48
|
get: () => {
|
|
41
49
|
if (collections) {
|
|
42
50
|
return targetSurfaceIds.every((id) => dataStyleStore.modelSurfaceVisibility(modelId, id));
|
|
@@ -49,7 +57,7 @@ const surfacesVisibility = computed<boolean>({
|
|
|
49
57
|
},
|
|
50
58
|
});
|
|
51
59
|
|
|
52
|
-
const surfaceVisibility = computed<
|
|
60
|
+
const surfaceVisibility = computed<Visibility>({
|
|
53
61
|
get: () => dataStyleStore.modelSurfaceVisibility(modelId, surfaceId) as boolean | undefined,
|
|
54
62
|
set: async (newValue) => {
|
|
55
63
|
if (surfaceId === undefined) {
|
|
@@ -120,7 +128,7 @@ const surfaceActiveColoring = computed<string | undefined>({
|
|
|
120
128
|
});
|
|
121
129
|
|
|
122
130
|
// Group Attributes
|
|
123
|
-
const surfacesVertexAttributeName = computed<
|
|
131
|
+
const surfacesVertexAttributeName = computed<AttributeName | undefined>({
|
|
124
132
|
get: () => dataStyleStore.modelSurfacesVertexAttributeName(modelId, referenceSurfaceId.value),
|
|
125
133
|
set: async (newValue) => {
|
|
126
134
|
if (newValue === undefined) {
|
|
@@ -131,7 +139,7 @@ const surfacesVertexAttributeName = computed<string | undefined>({
|
|
|
131
139
|
},
|
|
132
140
|
});
|
|
133
141
|
|
|
134
|
-
const surfacesVertexAttributeTimeStep = computed<
|
|
142
|
+
const surfacesVertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
135
143
|
get: () => dataStyleStore.modelSurfacesVertexAttributeTimeStep(modelId, referenceSurfaceId.value),
|
|
136
144
|
set: async (newValue) => {
|
|
137
145
|
if (newValue === undefined) {
|
|
@@ -146,7 +154,7 @@ const surfacesVertexAttributeTimeStep = computed<number | undefined>({
|
|
|
146
154
|
},
|
|
147
155
|
});
|
|
148
156
|
|
|
149
|
-
const surfacesVertexAttributeItem = computed<
|
|
157
|
+
const surfacesVertexAttributeItem = computed<AttributeItem>({
|
|
150
158
|
get: () => dataStyleStore.modelSurfacesVertexAttributeItem(modelId, referenceSurfaceId.value),
|
|
151
159
|
set: async (newValue) => {
|
|
152
160
|
await dataStyleStore.setModelSurfacesVertexAttributeItem(modelId, targetSurfaceIds, newValue);
|
|
@@ -154,7 +162,7 @@ const surfacesVertexAttributeItem = computed<string | undefined>({
|
|
|
154
162
|
},
|
|
155
163
|
});
|
|
156
164
|
|
|
157
|
-
const surfacesVertexAttributeRange = computed<
|
|
165
|
+
const surfacesVertexAttributeRange = computed<AttributeRange>({
|
|
158
166
|
get: () => dataStyleStore.modelSurfacesVertexAttributeRange(modelId, referenceSurfaceId.value),
|
|
159
167
|
set: async (newValue) => {
|
|
160
168
|
const [minimum, maximum] = newValue;
|
|
@@ -196,7 +204,7 @@ const surfacesVertexAttributeNoDataColor = computed<RGBAColor>({
|
|
|
196
204
|
},
|
|
197
205
|
});
|
|
198
206
|
|
|
199
|
-
const surfacesPolygonAttributeName = computed<
|
|
207
|
+
const surfacesPolygonAttributeName = computed<AttributeName | undefined>({
|
|
200
208
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeName(modelId, referenceSurfaceId.value),
|
|
201
209
|
set: async (newValue) => {
|
|
202
210
|
if (newValue === undefined) {
|
|
@@ -207,7 +215,7 @@ const surfacesPolygonAttributeName = computed<string | undefined>({
|
|
|
207
215
|
},
|
|
208
216
|
});
|
|
209
217
|
|
|
210
|
-
const surfacesPolygonAttributeTimeStep = computed<
|
|
218
|
+
const surfacesPolygonAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
211
219
|
get: () =>
|
|
212
220
|
dataStyleStore.modelSurfacesPolygonAttributeTimeStep(modelId, referenceSurfaceId.value),
|
|
213
221
|
set: async (newValue) => {
|
|
@@ -223,7 +231,7 @@ const surfacesPolygonAttributeTimeStep = computed<number | undefined>({
|
|
|
223
231
|
},
|
|
224
232
|
});
|
|
225
233
|
|
|
226
|
-
const surfacesPolygonAttributeItem = computed<
|
|
234
|
+
const surfacesPolygonAttributeItem = computed<AttributeItem>({
|
|
227
235
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeItem(modelId, referenceSurfaceId.value),
|
|
228
236
|
set: async (newValue) => {
|
|
229
237
|
await dataStyleStore.setModelSurfacesPolygonAttributeItem(modelId, targetSurfaceIds, newValue);
|
|
@@ -231,7 +239,7 @@ const surfacesPolygonAttributeItem = computed<string | undefined>({
|
|
|
231
239
|
},
|
|
232
240
|
});
|
|
233
241
|
|
|
234
|
-
const surfacesPolygonAttributeRange = computed<
|
|
242
|
+
const surfacesPolygonAttributeRange = computed<AttributeRange>({
|
|
235
243
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeRange(modelId, referenceSurfaceId.value),
|
|
236
244
|
set: async (newValue) => {
|
|
237
245
|
const [minimum, maximum] = newValue;
|
|
@@ -275,7 +283,7 @@ const surfacesPolygonAttributeNoDataColor = computed<RGBAColor>({
|
|
|
275
283
|
});
|
|
276
284
|
|
|
277
285
|
// Individual Attributes
|
|
278
|
-
const vertexAttributeName = computed<
|
|
286
|
+
const vertexAttributeName = computed<AttributeName | undefined>({
|
|
279
287
|
get: () => dataStyleStore.modelSurfacesVertexAttributeName(modelId, surfaceId),
|
|
280
288
|
set: async (newValue) => {
|
|
281
289
|
if (surfaceId === undefined || newValue === undefined) {
|
|
@@ -286,7 +294,7 @@ const vertexAttributeName = computed<string | undefined>({
|
|
|
286
294
|
},
|
|
287
295
|
});
|
|
288
296
|
|
|
289
|
-
const vertexAttributeTimeStep = computed<
|
|
297
|
+
const vertexAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
290
298
|
get: () => dataStyleStore.modelSurfacesVertexAttributeTimeStep(modelId, surfaceId),
|
|
291
299
|
set: async (newValue) => {
|
|
292
300
|
if (surfaceId === undefined || newValue === undefined) {
|
|
@@ -297,7 +305,7 @@ const vertexAttributeTimeStep = computed<number | undefined>({
|
|
|
297
305
|
},
|
|
298
306
|
});
|
|
299
307
|
|
|
300
|
-
const vertexAttributeItem = computed<
|
|
308
|
+
const vertexAttributeItem = computed<AttributeItem>({
|
|
301
309
|
get: () => dataStyleStore.modelSurfacesVertexAttributeItem(modelId, surfaceId),
|
|
302
310
|
set: async (newValue) => {
|
|
303
311
|
if (surfaceId === undefined) {
|
|
@@ -308,7 +316,7 @@ const vertexAttributeItem = computed<string | undefined>({
|
|
|
308
316
|
},
|
|
309
317
|
});
|
|
310
318
|
|
|
311
|
-
const vertexAttributeRange = computed<
|
|
319
|
+
const vertexAttributeRange = computed<AttributeRange>({
|
|
312
320
|
get: () => dataStyleStore.modelSurfacesVertexAttributeRange(modelId, surfaceId),
|
|
313
321
|
set: async (newValue) => {
|
|
314
322
|
const [minimum, maximum] = newValue;
|
|
@@ -347,7 +355,7 @@ const vertexAttributeNoDataColor = computed<RGBAColor>({
|
|
|
347
355
|
},
|
|
348
356
|
});
|
|
349
357
|
|
|
350
|
-
const polygonAttributeName = computed<
|
|
358
|
+
const polygonAttributeName = computed<AttributeName | undefined>({
|
|
351
359
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeName(modelId, surfaceId),
|
|
352
360
|
set: async (newValue) => {
|
|
353
361
|
if (surfaceId === undefined || newValue === undefined) {
|
|
@@ -358,7 +366,7 @@ const polygonAttributeName = computed<string | undefined>({
|
|
|
358
366
|
},
|
|
359
367
|
});
|
|
360
368
|
|
|
361
|
-
const polygonAttributeTimeStep = computed<
|
|
369
|
+
const polygonAttributeTimeStep = computed<AttributeTimeStep | undefined>({
|
|
362
370
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeTimeStep(modelId, surfaceId),
|
|
363
371
|
set: async (newValue) => {
|
|
364
372
|
if (surfaceId === undefined || newValue === undefined) {
|
|
@@ -369,7 +377,7 @@ const polygonAttributeTimeStep = computed<number | undefined>({
|
|
|
369
377
|
},
|
|
370
378
|
});
|
|
371
379
|
|
|
372
|
-
const polygonAttributeItem = computed<
|
|
380
|
+
const polygonAttributeItem = computed<AttributeItem>({
|
|
373
381
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeItem(modelId, surfaceId),
|
|
374
382
|
set: async (newValue) => {
|
|
375
383
|
if (surfaceId === undefined) {
|
|
@@ -380,7 +388,7 @@ const polygonAttributeItem = computed<string | undefined>({
|
|
|
380
388
|
},
|
|
381
389
|
});
|
|
382
390
|
|
|
383
|
-
const polygonAttributeRange = computed<
|
|
391
|
+
const polygonAttributeRange = computed<AttributeRange>({
|
|
384
392
|
get: () => dataStyleStore.modelSurfacesPolygonAttributeRange(modelId, surfaceId),
|
|
385
393
|
set: async (newValue) => {
|
|
386
394
|
const [minimum, maximum] = newValue;
|
|
@@ -450,7 +458,7 @@ const attributeSchemas = {
|
|
|
450
458
|
<div v-show="!activeTab || activeTab === 'type'" data-testid="modelComponentTypeOptions">
|
|
451
459
|
<VisibilitySwitch data-testid="modelSurfacesVisibilitySwitch" v-model="surfacesVisibility" />
|
|
452
460
|
<ViewerOptionsColoringTypeSelector
|
|
453
|
-
:id="modelId"
|
|
461
|
+
:data-id="modelId"
|
|
454
462
|
:componentIds="targetSurfaceIds"
|
|
455
463
|
v-model:coloring_style_key="surfacesActiveColoring"
|
|
456
464
|
v-model:color="surfacesColor"
|
|
@@ -479,7 +487,7 @@ const attributeSchemas = {
|
|
|
479
487
|
>
|
|
480
488
|
<VisibilitySwitch v-model="surfaceVisibility" />
|
|
481
489
|
<ViewerOptionsColoringTypeSelector
|
|
482
|
-
:id="modelId"
|
|
490
|
+
:data-id="modelId"
|
|
483
491
|
:componentIds="surfaceComponentIds"
|
|
484
492
|
v-model:coloring_style_key="surfaceActiveColoring"
|
|
485
493
|
v-model:color="surfaceColor"
|