@geode/opengeodeweb-front 10.23.0-rc.3 → 10.23.0-rc.5
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/Basic/Slider.vue +1 -1
- package/app/components/Basic/Switch.vue +9 -1
- package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +41 -3
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +13 -19
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +7 -13
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +11 -17
- package/app/components/Viewer/Generic/Model/BlocksOptions.vue +37 -47
- package/app/components/Viewer/Generic/Model/CornersOptions.vue +31 -41
- package/app/components/Viewer/Generic/Model/LinesOptions.vue +37 -47
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +38 -2
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +2 -4
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +37 -47
- package/app/components/Viewer/Options/AttributeColorBar.vue +3 -3
- package/app/components/Viewer/Options/AttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/ColorPicker.vue +18 -2
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +72 -78
- package/app/components/Viewer/Options/OptionsSection.vue +7 -7
- package/app/components/Viewer/Options/Sliders/Slider.vue +8 -6
- package/app/components/Viewer/Options/TextureItem.vue +2 -1
- package/app/components/Viewer/Options/VisibilitySwitch.vue +4 -4
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +11 -22
- package/internal/stores/hybrid_viewer.js +2 -2
- package/package.json +1 -1
|
@@ -3,5 +3,13 @@ const model = defineModel();
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<v-switch v-model="model" inset hide-details />
|
|
6
|
+
<v-switch v-model="model" inset hide-details density="compact" class="compact-switch" />
|
|
7
7
|
</template>
|
|
8
|
+
|
|
9
|
+
<style scoped>
|
|
10
|
+
.compact-switch {
|
|
11
|
+
transform: scale(0.75);
|
|
12
|
+
transform-origin: left center;
|
|
13
|
+
width: 40px;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
@@ -5,7 +5,7 @@ import { useMenuStore } from "@ogw_front/stores/menu";
|
|
|
5
5
|
import { useTheme } from "vuetify";
|
|
6
6
|
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
7
7
|
|
|
8
|
-
const CARD_WIDTH =
|
|
8
|
+
const CARD_WIDTH = 300;
|
|
9
9
|
const CARD_HEIGHT = 500;
|
|
10
10
|
const MARGIN = 60;
|
|
11
11
|
const RADIUS = 80;
|
|
@@ -170,8 +170,10 @@ function toggleOptions() {
|
|
|
170
170
|
class="elevation-24"
|
|
171
171
|
style="overflow: hidden; display: flex; flex-direction: column"
|
|
172
172
|
>
|
|
173
|
-
<v-card-title
|
|
174
|
-
|
|
173
|
+
<v-card-title class="text-subtitle-1 pt-3 pb-0 px-3 font-weight-bold">{{
|
|
174
|
+
tooltip
|
|
175
|
+
}}</v-card-title>
|
|
176
|
+
<v-card-text class="px-3 pb-3 pt-1" style="overflow-y: auto; flex: 1; min-height: 0">
|
|
175
177
|
<slot name="options" />
|
|
176
178
|
</v-card-text>
|
|
177
179
|
</GlassCard>
|
|
@@ -252,4 +254,40 @@ function toggleOptions() {
|
|
|
252
254
|
.options-left {
|
|
253
255
|
right: 60px;
|
|
254
256
|
}
|
|
257
|
+
|
|
258
|
+
:deep(.v-field) {
|
|
259
|
+
min-height: 30px !important;
|
|
260
|
+
height: 30px !important;
|
|
261
|
+
border-radius: 6px !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:deep(.v-field__input) {
|
|
265
|
+
padding-top: 0 !important;
|
|
266
|
+
padding-bottom: 0 !important;
|
|
267
|
+
min-height: 30px !important;
|
|
268
|
+
height: 30px !important;
|
|
269
|
+
font-size: 0.95rem !important;
|
|
270
|
+
align-items: center;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:deep(.v-field__append-inner) {
|
|
274
|
+
align-items: center;
|
|
275
|
+
padding-top: 0 !important;
|
|
276
|
+
padding-bottom: 0 !important;
|
|
277
|
+
height: 30px !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:deep(.v-field__append-inner .v-icon) {
|
|
281
|
+
font-size: 16px !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:deep(.v-field-label) {
|
|
285
|
+
font-size: 0.75rem !important;
|
|
286
|
+
top: 6px !important;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:deep(.v-field-label--floating) {
|
|
290
|
+
top: -8px !important;
|
|
291
|
+
font-size: 0.7rem !important;
|
|
292
|
+
}
|
|
255
293
|
</style>
|
|
@@ -119,25 +119,19 @@ const edge_attribute_color_map = computed({
|
|
|
119
119
|
<template #options>
|
|
120
120
|
<ViewerOptionsVisibilitySwitch data-testid="meshEdgesVisibilitySwitch" v-model="visibility" />
|
|
121
121
|
<template v-if="visibility">
|
|
122
|
-
<v-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
v-model:edge_attribute_name="edge_attribute_name"
|
|
136
|
-
v-model:edge_attribute_range="edge_attribute_range"
|
|
137
|
-
v-model:edge_attribute_color_map="edge_attribute_color_map"
|
|
138
|
-
/>
|
|
139
|
-
</v-col>
|
|
140
|
-
</v-row>
|
|
122
|
+
<v-divider class="my-2" />
|
|
123
|
+
<ViewerOptionsWidthSlider v-model="width" />
|
|
124
|
+
<ViewerOptionsColoringTypeSelector
|
|
125
|
+
:id="id"
|
|
126
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
127
|
+
v-model:color="color"
|
|
128
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
129
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
130
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
131
|
+
v-model:edge_attribute_name="edge_attribute_name"
|
|
132
|
+
v-model:edge_attribute_range="edge_attribute_range"
|
|
133
|
+
v-model:edge_attribute_color_map="edge_attribute_color_map"
|
|
134
|
+
/>
|
|
141
135
|
</template>
|
|
142
136
|
</template>
|
|
143
137
|
</ViewerContextMenuItem>
|
|
@@ -68,19 +68,13 @@ const color = computed({
|
|
|
68
68
|
<template #options>
|
|
69
69
|
<ViewerOptionsVisibilitySwitch data-testid="meshEdgesVisibilitySwitch" v-model="visibility" />
|
|
70
70
|
<template v-if="visibility">
|
|
71
|
-
<v-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:id="id"
|
|
79
|
-
v-model:coloring_style_key="coloring_style_key"
|
|
80
|
-
v-model:color="color"
|
|
81
|
-
/>
|
|
82
|
-
</v-col>
|
|
83
|
-
</v-row>
|
|
71
|
+
<v-divider class="my-2" />
|
|
72
|
+
<ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="size" />
|
|
73
|
+
<ViewerOptionsColoringTypeSelector
|
|
74
|
+
:id="id"
|
|
75
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
76
|
+
v-model:color="color"
|
|
77
|
+
/>
|
|
84
78
|
</template>
|
|
85
79
|
</template>
|
|
86
80
|
</ViewerContextMenuItem>
|
|
@@ -98,23 +98,17 @@ const vertex_attribute_color_map = computed({
|
|
|
98
98
|
v-model="visibility"
|
|
99
99
|
/>
|
|
100
100
|
<template v-if="visibility">
|
|
101
|
-
<v-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
113
|
-
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
114
|
-
:capabilities="{ vertex: { available: false } }"
|
|
115
|
-
/>
|
|
116
|
-
</v-col>
|
|
117
|
-
</v-row>
|
|
101
|
+
<v-divider class="my-2" />
|
|
102
|
+
<ViewerOptionsSizeSlider data-testid="meshPointsSizeSlider" v-model="size" />
|
|
103
|
+
<ViewerOptionsColoringTypeSelector
|
|
104
|
+
:id="id"
|
|
105
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
106
|
+
v-model:color="color"
|
|
107
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
108
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
109
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
110
|
+
:capabilities="{ vertex: { available: false } }"
|
|
111
|
+
/>
|
|
118
112
|
</template>
|
|
119
113
|
</template>
|
|
120
114
|
</ViewerContextMenuItem>
|
|
@@ -206,51 +206,41 @@ const polyhedronSchema = back_schemas.opengeodeweb_back.model_component_polyhedr
|
|
|
206
206
|
</script>
|
|
207
207
|
|
|
208
208
|
<template>
|
|
209
|
-
<
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
v-model:polyhedron_attribute_range="polyhedronAttributeRange"
|
|
247
|
-
v-model:polyhedron_attribute_color_map="polyhedronAttributeColorMap"
|
|
248
|
-
:capabilities="capabilities"
|
|
249
|
-
:schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
|
|
250
|
-
:allowRandom="true"
|
|
251
|
-
/>
|
|
252
|
-
</v-col>
|
|
253
|
-
</v-row>
|
|
254
|
-
</OptionsSection>
|
|
255
|
-
</div>
|
|
209
|
+
<OptionsSection title="Blocks Options" class="mt-4">
|
|
210
|
+
<VisibilitySwitch v-model="blocksVisibility" />
|
|
211
|
+
<ViewerOptionsColoringTypeSelector
|
|
212
|
+
:id="modelId"
|
|
213
|
+
:componentId="targetBlockIds[0]"
|
|
214
|
+
v-model:coloring_style_key="blocksColorMode"
|
|
215
|
+
v-model:color="blocksColor"
|
|
216
|
+
v-model:vertex_attribute_name="blocksVertexAttributeName"
|
|
217
|
+
v-model:vertex_attribute_range="blocksVertexAttributeRange"
|
|
218
|
+
v-model:vertex_attribute_color_map="blocksVertexAttributeColorMap"
|
|
219
|
+
v-model:polyhedron_attribute_name="blocksPolyhedronAttributeName"
|
|
220
|
+
v-model:polyhedron_attribute_range="blocksPolyhedronAttributeRange"
|
|
221
|
+
v-model:polyhedron_attribute_color_map="blocksPolyhedronAttributeColorMap"
|
|
222
|
+
:capabilities="capabilities"
|
|
223
|
+
:schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
|
|
224
|
+
:allowRandom="true"
|
|
225
|
+
/>
|
|
226
|
+
</OptionsSection>
|
|
227
|
+
|
|
228
|
+
<OptionsSection v-if="blockId" title="Component Options" class="mt-4">
|
|
229
|
+
<VisibilitySwitch v-model="blockVisibility" />
|
|
230
|
+
<ViewerOptionsColoringTypeSelector
|
|
231
|
+
:id="modelId"
|
|
232
|
+
:componentId="blockId"
|
|
233
|
+
v-model:coloring_style_key="blockColorMode"
|
|
234
|
+
v-model:color="blockColor"
|
|
235
|
+
v-model:vertex_attribute_name="vertexAttributeName"
|
|
236
|
+
v-model:vertex_attribute_range="vertexAttributeRange"
|
|
237
|
+
v-model:vertex_attribute_color_map="vertexAttributeColorMap"
|
|
238
|
+
v-model:polyhedron_attribute_name="polyhedronAttributeName"
|
|
239
|
+
v-model:polyhedron_attribute_range="polyhedronAttributeRange"
|
|
240
|
+
v-model:polyhedron_attribute_color_map="polyhedronAttributeColorMap"
|
|
241
|
+
:capabilities="capabilities"
|
|
242
|
+
:schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
|
|
243
|
+
:allowRandom="true"
|
|
244
|
+
/>
|
|
245
|
+
</OptionsSection>
|
|
256
246
|
</template>
|
|
@@ -143,45 +143,35 @@ const vertexSchema = back_schemas.opengeodeweb_back.model_component_vertex_attri
|
|
|
143
143
|
</script>
|
|
144
144
|
|
|
145
145
|
<template>
|
|
146
|
-
<
|
|
147
|
-
<
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
v-model:vertex_attribute_range="vertexAttributeRange"
|
|
178
|
-
v-model:vertex_attribute_color_map="vertexAttributeColorMap"
|
|
179
|
-
:capabilities="capabilities"
|
|
180
|
-
:schemas="{ vertex: vertexSchema }"
|
|
181
|
-
:allowRandom="true"
|
|
182
|
-
/>
|
|
183
|
-
</v-col>
|
|
184
|
-
</v-row>
|
|
185
|
-
</OptionsSection>
|
|
186
|
-
</div>
|
|
146
|
+
<OptionsSection title="Corners Options" class="mt-4">
|
|
147
|
+
<VisibilitySwitch v-model="cornersVisibility" />
|
|
148
|
+
<ViewerOptionsColoringTypeSelector
|
|
149
|
+
:id="modelId"
|
|
150
|
+
:componentId="targetCornerIds[0]"
|
|
151
|
+
v-model:coloring_style_key="cornersColorMode"
|
|
152
|
+
v-model:color="cornersColor"
|
|
153
|
+
v-model:vertex_attribute_name="cornersVertexAttributeName"
|
|
154
|
+
v-model:vertex_attribute_range="cornersVertexAttributeRange"
|
|
155
|
+
v-model:vertex_attribute_color_map="cornersVertexAttributeColorMap"
|
|
156
|
+
:capabilities="capabilities"
|
|
157
|
+
:schemas="{ vertex: vertexSchema }"
|
|
158
|
+
:allowRandom="true"
|
|
159
|
+
/>
|
|
160
|
+
</OptionsSection>
|
|
161
|
+
|
|
162
|
+
<OptionsSection v-if="cornerId" title="Component Options" class="mt-4">
|
|
163
|
+
<VisibilitySwitch v-model="cornerVisibility" />
|
|
164
|
+
<ViewerOptionsColoringTypeSelector
|
|
165
|
+
:id="modelId"
|
|
166
|
+
:componentId="cornerId"
|
|
167
|
+
v-model:coloring_style_key="cornerColorMode"
|
|
168
|
+
v-model:color="cornerColor"
|
|
169
|
+
v-model:vertex_attribute_name="vertexAttributeName"
|
|
170
|
+
v-model:vertex_attribute_range="vertexAttributeRange"
|
|
171
|
+
v-model:vertex_attribute_color_map="vertexAttributeColorMap"
|
|
172
|
+
:capabilities="capabilities"
|
|
173
|
+
:schemas="{ vertex: vertexSchema }"
|
|
174
|
+
:allowRandom="true"
|
|
175
|
+
/>
|
|
176
|
+
</OptionsSection>
|
|
187
177
|
</template>
|
|
@@ -202,51 +202,41 @@ const edgeSchema = back_schemas.opengeodeweb_back.model_component_edge_attribute
|
|
|
202
202
|
</script>
|
|
203
203
|
|
|
204
204
|
<template>
|
|
205
|
-
<
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
v-model:edge_attribute_range="edgeAttributeRange"
|
|
243
|
-
v-model:edge_attribute_color_map="edgeAttributeColorMap"
|
|
244
|
-
:capabilities="capabilities"
|
|
245
|
-
:schemas="{ vertex: vertexSchema, edge: edgeSchema }"
|
|
246
|
-
:allowRandom="true"
|
|
247
|
-
/>
|
|
248
|
-
</v-col>
|
|
249
|
-
</v-row>
|
|
250
|
-
</OptionsSection>
|
|
251
|
-
</div>
|
|
205
|
+
<OptionsSection title="Lines Options" class="mt-4">
|
|
206
|
+
<VisibilitySwitch v-model="linesVisibility" />
|
|
207
|
+
<ViewerOptionsColoringTypeSelector
|
|
208
|
+
:id="modelId"
|
|
209
|
+
:componentId="targetLineIds[0]"
|
|
210
|
+
v-model:coloring_style_key="linesColorMode"
|
|
211
|
+
v-model:color="linesColor"
|
|
212
|
+
v-model:vertex_attribute_name="linesVertexAttributeName"
|
|
213
|
+
v-model:vertex_attribute_range="linesVertexAttributeRange"
|
|
214
|
+
v-model:vertex_attribute_color_map="linesVertexAttributeColorMap"
|
|
215
|
+
v-model:edge_attribute_name="linesEdgeAttributeName"
|
|
216
|
+
v-model:edge_attribute_range="linesEdgeAttributeRange"
|
|
217
|
+
v-model:edge_attribute_color_map="linesEdgeAttributeColorMap"
|
|
218
|
+
:capabilities="capabilities"
|
|
219
|
+
:schemas="{ vertex: vertexSchema, edge: edgeSchema }"
|
|
220
|
+
:allowRandom="true"
|
|
221
|
+
/>
|
|
222
|
+
</OptionsSection>
|
|
223
|
+
|
|
224
|
+
<OptionsSection v-if="lineId" title="Component Options" class="mt-4">
|
|
225
|
+
<VisibilitySwitch v-model="lineVisibility" />
|
|
226
|
+
<ViewerOptionsColoringTypeSelector
|
|
227
|
+
:id="modelId"
|
|
228
|
+
:componentId="lineId"
|
|
229
|
+
v-model:coloring_style_key="lineColorMode"
|
|
230
|
+
v-model:color="lineColor"
|
|
231
|
+
v-model:vertex_attribute_name="vertexAttributeName"
|
|
232
|
+
v-model:vertex_attribute_range="vertexAttributeRange"
|
|
233
|
+
v-model:vertex_attribute_color_map="vertexAttributeColorMap"
|
|
234
|
+
v-model:edge_attribute_name="edgeAttributeName"
|
|
235
|
+
v-model:edge_attribute_range="edgeAttributeRange"
|
|
236
|
+
v-model:edge_attribute_color_map="edgeAttributeColorMap"
|
|
237
|
+
:capabilities="capabilities"
|
|
238
|
+
:schemas="{ vertex: vertexSchema, edge: edgeSchema }"
|
|
239
|
+
:allowRandom="true"
|
|
240
|
+
/>
|
|
241
|
+
</OptionsSection>
|
|
252
242
|
</template>
|
|
@@ -132,7 +132,7 @@ watch(modelComponentsColorMode, async (colorMode) => {
|
|
|
132
132
|
<VisibilitySwitch v-model="modelVisibility" />
|
|
133
133
|
</OptionsSection>
|
|
134
134
|
|
|
135
|
-
<OptionsSection v-if="!componentType && !componentId" title="Components Options" class="mt-
|
|
135
|
+
<OptionsSection v-if="!componentType && !componentId" title="Components Options" class="mt-4">
|
|
136
136
|
<v-label class="text-caption mb-1 mt-2">Color Mode</v-label>
|
|
137
137
|
<v-select
|
|
138
138
|
v-model="modelComponentsColorMode"
|
|
@@ -178,7 +178,43 @@ watch(modelComponentsColorMode, async (colorMode) => {
|
|
|
178
178
|
|
|
179
179
|
<style scoped>
|
|
180
180
|
.model-style-card {
|
|
181
|
-
padding-top:
|
|
181
|
+
padding-top: 12px;
|
|
182
182
|
overflow-x: hidden;
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
:deep(.v-field) {
|
|
186
|
+
min-height: 30px !important;
|
|
187
|
+
height: 30px !important;
|
|
188
|
+
border-radius: 6px !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:deep(.v-field__input) {
|
|
192
|
+
padding-top: 0 !important;
|
|
193
|
+
padding-bottom: 0 !important;
|
|
194
|
+
min-height: 30px !important;
|
|
195
|
+
height: 30px !important;
|
|
196
|
+
font-size: 0.95rem !important;
|
|
197
|
+
align-items: center;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:deep(.v-field__append-inner) {
|
|
201
|
+
align-items: center;
|
|
202
|
+
padding-top: 0 !important;
|
|
203
|
+
padding-bottom: 0 !important;
|
|
204
|
+
height: 30px !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:deep(.v-field__append-inner .v-icon) {
|
|
208
|
+
font-size: 16px !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:deep(.v-field-label) {
|
|
212
|
+
font-size: 0.75rem !important;
|
|
213
|
+
top: 6px !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:deep(.v-field-label--floating) {
|
|
217
|
+
top: -8px !important;
|
|
218
|
+
font-size: 0.7rem !important;
|
|
219
|
+
}
|
|
184
220
|
</style>
|
|
@@ -51,10 +51,8 @@ const size = computed({
|
|
|
51
51
|
v-model="visibility"
|
|
52
52
|
/>
|
|
53
53
|
<template v-if="visibility">
|
|
54
|
-
<v-
|
|
55
|
-
|
|
56
|
-
<ViewerOptionsSizeSlider data-testid="modelPointsSizeSlider" v-model="size" />
|
|
57
|
-
</v-row>
|
|
54
|
+
<v-divider class="my-2" />
|
|
55
|
+
<ViewerOptionsSizeSlider data-testid="modelPointsSizeSlider" v-model="size" />
|
|
58
56
|
</template>
|
|
59
57
|
</template>
|
|
60
58
|
</ViewerContextMenuItem>
|
|
@@ -210,51 +210,41 @@ const polygonSchema = back_schemas.opengeodeweb_back.model_component_polygon_att
|
|
|
210
210
|
</script>
|
|
211
211
|
|
|
212
212
|
<template>
|
|
213
|
-
<
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
v-model:polygon_attribute_range="polygonAttributeRange"
|
|
251
|
-
v-model:polygon_attribute_color_map="polygonAttributeColorMap"
|
|
252
|
-
:capabilities="capabilities"
|
|
253
|
-
:schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
|
|
254
|
-
:allowRandom="true"
|
|
255
|
-
/>
|
|
256
|
-
</v-col>
|
|
257
|
-
</v-row>
|
|
258
|
-
</OptionsSection>
|
|
259
|
-
</div>
|
|
213
|
+
<OptionsSection title="Surfaces Options" class="mt-4">
|
|
214
|
+
<VisibilitySwitch v-model="surfacesVisibility" />
|
|
215
|
+
<ViewerOptionsColoringTypeSelector
|
|
216
|
+
:id="modelId"
|
|
217
|
+
:componentId="targetSurfaceIds[0]"
|
|
218
|
+
v-model:coloring_style_key="surfacesColorMode"
|
|
219
|
+
v-model:color="surfacesColor"
|
|
220
|
+
v-model:vertex_attribute_name="surfacesVertexAttributeName"
|
|
221
|
+
v-model:vertex_attribute_range="surfacesVertexAttributeRange"
|
|
222
|
+
v-model:vertex_attribute_color_map="surfacesVertexAttributeColorMap"
|
|
223
|
+
v-model:polygon_attribute_name="surfacesPolygonAttributeName"
|
|
224
|
+
v-model:polygon_attribute_range="surfacesPolygonAttributeRange"
|
|
225
|
+
v-model:polygon_attribute_color_map="surfacesPolygonAttributeColorMap"
|
|
226
|
+
:capabilities="capabilities"
|
|
227
|
+
:schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
|
|
228
|
+
:allowRandom="true"
|
|
229
|
+
/>
|
|
230
|
+
</OptionsSection>
|
|
231
|
+
|
|
232
|
+
<OptionsSection v-if="surfaceId" title="Component Options" class="mt-4">
|
|
233
|
+
<VisibilitySwitch v-model="surfaceVisibility" />
|
|
234
|
+
<ViewerOptionsColoringTypeSelector
|
|
235
|
+
:id="modelId"
|
|
236
|
+
:componentId="surfaceId"
|
|
237
|
+
v-model:coloring_style_key="surfaceColorMode"
|
|
238
|
+
v-model:color="surfaceColor"
|
|
239
|
+
v-model:vertex_attribute_name="vertexAttributeName"
|
|
240
|
+
v-model:vertex_attribute_range="vertexAttributeRange"
|
|
241
|
+
v-model:vertex_attribute_color_map="vertexAttributeColorMap"
|
|
242
|
+
v-model:polygon_attribute_name="polygonAttributeName"
|
|
243
|
+
v-model:polygon_attribute_range="polygonAttributeRange"
|
|
244
|
+
v-model:polygon_attribute_color_map="polygonAttributeColorMap"
|
|
245
|
+
:capabilities="capabilities"
|
|
246
|
+
:schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
|
|
247
|
+
:allowRandom="true"
|
|
248
|
+
/>
|
|
249
|
+
</OptionsSection>
|
|
260
250
|
</template>
|
|
@@ -11,8 +11,8 @@ const colorMap = defineModel("colorMap", { type: String });
|
|
|
11
11
|
<template>
|
|
12
12
|
<div class="attribute-colorbar mt-3">
|
|
13
13
|
<ColorMapPicker v-model:selected-preset-name="colorMap" :min="minimum" :max="maximum" />
|
|
14
|
-
<v-row dense align="center" class="mt-2">
|
|
15
|
-
<v-col cols="5">
|
|
14
|
+
<v-row dense align="center" class="mt-2" no-gutters>
|
|
15
|
+
<v-col cols="5" class="pe-1">
|
|
16
16
|
<v-text-field
|
|
17
17
|
:model-value="minimum"
|
|
18
18
|
@update:model-value="(value) => (minimum = Number(value))"
|
|
@@ -33,7 +33,7 @@ const colorMap = defineModel("colorMap", { type: String });
|
|
|
33
33
|
v-tooltip="'Reset range'"
|
|
34
34
|
/>
|
|
35
35
|
</v-col>
|
|
36
|
-
<v-col cols="5">
|
|
36
|
+
<v-col cols="5" class="ps-1">
|
|
37
37
|
<v-text-field
|
|
38
38
|
:model-value="maximum"
|
|
39
39
|
@update:model-value="(value) => (maximum = Number(value))"
|
|
@@ -41,9 +41,25 @@ watch(pressed, (value) => {
|
|
|
41
41
|
ref="colorPickerRef"
|
|
42
42
|
v-model="vuetifyColor"
|
|
43
43
|
flat
|
|
44
|
-
canvas-height="
|
|
44
|
+
canvas-height="75"
|
|
45
45
|
hide-inputs
|
|
46
|
-
width="
|
|
46
|
+
width="220"
|
|
47
47
|
mode="rgba"
|
|
48
|
+
class="mx-auto"
|
|
48
49
|
/>
|
|
49
50
|
</template>
|
|
51
|
+
|
|
52
|
+
<style scoped>
|
|
53
|
+
:deep(.v-color-picker__controls) {
|
|
54
|
+
padding: 8px !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:deep(.v-color-picker__dot) {
|
|
58
|
+
width: 18px !important;
|
|
59
|
+
height: 18px !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:deep(.v-color-picker__preview) {
|
|
63
|
+
margin-bottom: 0 !important;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -161,85 +161,79 @@ watch(
|
|
|
161
161
|
);
|
|
162
162
|
</script>
|
|
163
163
|
<template>
|
|
164
|
-
<v-
|
|
165
|
-
|
|
164
|
+
<v-divider class="my-2 mx-2" />
|
|
165
|
+
<v-row justify="center" align="center" no-gutters class="px-2">
|
|
166
|
+
<v-col cols="auto" class="mr-2">
|
|
167
|
+
<v-icon size="18" icon="mdi-format-color-fill" v-tooltip:left="'Coloring'" />
|
|
168
|
+
</v-col>
|
|
166
169
|
<v-col>
|
|
167
|
-
<v-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<v-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
v-model:range="polyhedron_attribute_range"
|
|
235
|
-
v-model:colorMap="polyhedron_attribute_color_map"
|
|
236
|
-
:id="id"
|
|
237
|
-
:componentId="componentId"
|
|
238
|
-
:schema="polyhedronSchema"
|
|
239
|
-
/>
|
|
240
|
-
</template>
|
|
241
|
-
</v-col>
|
|
242
|
-
</v-row>
|
|
170
|
+
<v-select
|
|
171
|
+
v-model="coloring_style_label"
|
|
172
|
+
:items="coloring_styles.labels"
|
|
173
|
+
label="Select a coloring style"
|
|
174
|
+
density="compact"
|
|
175
|
+
hide-details
|
|
176
|
+
/>
|
|
177
|
+
</v-col>
|
|
178
|
+
</v-row>
|
|
179
|
+
<v-row class="mt-3 px-2" no-gutters>
|
|
180
|
+
<v-col cols="12" class="ps-7 pe-1">
|
|
181
|
+
<template v-if="coloring_style_key === color_dict['value']">
|
|
182
|
+
<ViewerOptionsColorPicker v-model="color" />
|
|
183
|
+
</template>
|
|
184
|
+
<template v-if="coloring_style_key === textures_dict['value']">
|
|
185
|
+
<ViewerOptionsTexturesSelector v-model="textures" :id="id" />
|
|
186
|
+
</template>
|
|
187
|
+
<template v-if="coloring_style_key === vertex_dict['value'] && hasColorMap('vertex')">
|
|
188
|
+
<ViewerOptionsAttributeSelector
|
|
189
|
+
v-model:name="vertex_attribute_name"
|
|
190
|
+
v-model:range="vertex_attribute_range"
|
|
191
|
+
v-model:colorMap="vertex_attribute_color_map"
|
|
192
|
+
:id="id"
|
|
193
|
+
:componentId="componentId"
|
|
194
|
+
:schema="vertexSchema"
|
|
195
|
+
/>
|
|
196
|
+
</template>
|
|
197
|
+
<template v-if="coloring_style_key === edge_dict['value'] && hasColorMap('edge')">
|
|
198
|
+
<ViewerOptionsAttributeSelector
|
|
199
|
+
v-model:name="edge_attribute_name"
|
|
200
|
+
v-model:range="edge_attribute_range"
|
|
201
|
+
v-model:colorMap="edge_attribute_color_map"
|
|
202
|
+
:id="id"
|
|
203
|
+
:componentId="componentId"
|
|
204
|
+
:schema="edgeSchema"
|
|
205
|
+
/>
|
|
206
|
+
</template>
|
|
207
|
+
<template v-if="coloring_style_key === cell_dict['value'] && hasColorMap('cell')">
|
|
208
|
+
<ViewerOptionsAttributeSelector
|
|
209
|
+
v-model:name="cell_attribute_name"
|
|
210
|
+
v-model:range="cell_attribute_range"
|
|
211
|
+
v-model:colorMap="cell_attribute_color_map"
|
|
212
|
+
:id="id"
|
|
213
|
+
:componentId="componentId"
|
|
214
|
+
:schema="cellSchema"
|
|
215
|
+
/>
|
|
216
|
+
</template>
|
|
217
|
+
<template v-if="coloring_style_key === polygon_dict['value'] && hasColorMap('polygon')">
|
|
218
|
+
<ViewerOptionsAttributeSelector
|
|
219
|
+
v-model:name="polygon_attribute_name"
|
|
220
|
+
v-model:range="polygon_attribute_range"
|
|
221
|
+
v-model:colorMap="polygon_attribute_color_map"
|
|
222
|
+
:id="id"
|
|
223
|
+
:componentId="componentId"
|
|
224
|
+
:schema="polygonSchema"
|
|
225
|
+
/>
|
|
226
|
+
</template>
|
|
227
|
+
<template v-if="coloring_style_key === polyhedron_dict['value'] && hasColorMap('polyhedron')">
|
|
228
|
+
<ViewerOptionsAttributeSelector
|
|
229
|
+
v-model:name="polyhedron_attribute_name"
|
|
230
|
+
v-model:range="polyhedron_attribute_range"
|
|
231
|
+
v-model:colorMap="polyhedron_attribute_color_map"
|
|
232
|
+
:id="id"
|
|
233
|
+
:componentId="componentId"
|
|
234
|
+
:schema="polyhedronSchema"
|
|
235
|
+
/>
|
|
236
|
+
</template>
|
|
243
237
|
</v-col>
|
|
244
238
|
</v-row>
|
|
245
239
|
</template>
|
|
@@ -14,7 +14,7 @@ const isCollapsed = ref(false);
|
|
|
14
14
|
mdi-chevron-down
|
|
15
15
|
</v-icon>
|
|
16
16
|
</div>
|
|
17
|
-
<v-container v-show="!isCollapsed" class="pa-
|
|
17
|
+
<v-container v-show="!isCollapsed" class="pa-0">
|
|
18
18
|
<slot />
|
|
19
19
|
</v-container>
|
|
20
20
|
</div>
|
|
@@ -24,18 +24,18 @@ const isCollapsed = ref(false);
|
|
|
24
24
|
.options-section {
|
|
25
25
|
position: relative;
|
|
26
26
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
27
|
-
border-radius:
|
|
28
|
-
padding:
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
padding: 8px 4px 6px 4px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.section-badge {
|
|
32
32
|
position: absolute;
|
|
33
|
-
top: -
|
|
34
|
-
left:
|
|
33
|
+
top: -10px;
|
|
34
|
+
left: 12px;
|
|
35
35
|
background-color: rgba(255, 255, 255, 0.1);
|
|
36
36
|
backdrop-filter: blur(8px);
|
|
37
|
-
padding:
|
|
38
|
-
font-size: 0.
|
|
37
|
+
padding: 1px 8px;
|
|
38
|
+
font-size: 0.65rem;
|
|
39
39
|
font-weight: 700;
|
|
40
40
|
text-transform: uppercase;
|
|
41
41
|
letter-spacing: 0.5px;
|
|
@@ -8,10 +8,12 @@ const { tooltip } = defineProps({
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<v-
|
|
12
|
-
<v-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
11
|
+
<v-row align="center" no-gutters class="px-2">
|
|
12
|
+
<v-col cols="auto" class="mr-2">
|
|
13
|
+
<v-icon size="18" icon="mdi-ruler" v-tooltip:left="tooltip" />
|
|
14
|
+
</v-col>
|
|
15
|
+
<v-col>
|
|
16
|
+
<BasicSlider v-model="model" />
|
|
17
|
+
</v-col>
|
|
18
|
+
</v-row>
|
|
17
19
|
</template>
|
|
@@ -71,12 +71,13 @@ watch(texture_id, (value) => {
|
|
|
71
71
|
</style>
|
|
72
72
|
|
|
73
73
|
<template>
|
|
74
|
-
<v-col cols="
|
|
74
|
+
<v-col cols="8" class="pa-1">
|
|
75
75
|
<v-select
|
|
76
76
|
v-model="texture_name"
|
|
77
77
|
:items="texture_coordinates"
|
|
78
78
|
label="Select a texture"
|
|
79
79
|
density="compact"
|
|
80
|
+
hide-details
|
|
80
81
|
/>
|
|
81
82
|
</v-col>
|
|
82
83
|
<v-badge
|
|
@@ -5,11 +5,11 @@ const visibility = defineModel();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<v-row class="pa-0" align="center">
|
|
9
|
-
<v-col cols="auto"
|
|
10
|
-
<v-icon size="
|
|
8
|
+
<v-row class="pa-0 px-2" align="center" no-gutters>
|
|
9
|
+
<v-col cols="auto" class="mr-2">
|
|
10
|
+
<v-icon size="18" icon="mdi-eye" v-tooltip:left="'Visibility'" />
|
|
11
11
|
</v-col>
|
|
12
|
-
<v-col cols="auto"
|
|
12
|
+
<v-col cols="auto">
|
|
13
13
|
<BasicSwitch v-model="visibility" />
|
|
14
14
|
</v-col>
|
|
15
15
|
</v-row>
|
|
@@ -95,28 +95,17 @@ const vertex_attribute_color_map = computed({
|
|
|
95
95
|
v-model="visibility"
|
|
96
96
|
/>
|
|
97
97
|
<template v-if="visibility">
|
|
98
|
-
<v-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<ViewerOptionsColoringTypeSelector
|
|
110
|
-
:id="id"
|
|
111
|
-
v-model:coloring_style_key="coloring_style_key"
|
|
112
|
-
v-model:color="color"
|
|
113
|
-
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
114
|
-
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
115
|
-
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
116
|
-
:vertex_has_colormap="true"
|
|
117
|
-
/>
|
|
118
|
-
</v-col>
|
|
119
|
-
</v-row>
|
|
98
|
+
<v-divider class="my-2" />
|
|
99
|
+
<ViewerOptionsSizeSlider v-model="size" />
|
|
100
|
+
<ViewerOptionsColoringTypeSelector
|
|
101
|
+
:id="id"
|
|
102
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
103
|
+
v-model:color="color"
|
|
104
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
105
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
106
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
107
|
+
:vertex_has_colormap="true"
|
|
108
|
+
/>
|
|
120
109
|
</template>
|
|
121
110
|
</template>
|
|
122
111
|
</ViewerContextMenuItem>
|
|
@@ -105,7 +105,7 @@ function performHoverHighlight(event, options) {
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
const rect = container.getBoundingClientRect();
|
|
108
|
-
const schema = viewer_schemas.opengeodeweb_viewer.viewer.
|
|
108
|
+
const schema = viewer_schemas.opengeodeweb_viewer.viewer.highlight;
|
|
109
109
|
const params = {
|
|
110
110
|
x: Math.round(event.clientX - rect.left),
|
|
111
111
|
y: Math.round(rect.height - (event.clientY - rect.top)),
|
|
@@ -125,7 +125,7 @@ function performHoverHighlight(event, options) {
|
|
|
125
125
|
|
|
126
126
|
function performClearHoverHighlight(options) {
|
|
127
127
|
const { viewerStore, viewer_schemas, hover_highlight_field_type, hybridDb } = options;
|
|
128
|
-
const schema = viewer_schemas.opengeodeweb_viewer.viewer.
|
|
128
|
+
const schema = viewer_schemas.opengeodeweb_viewer.viewer.highlight;
|
|
129
129
|
const params = {
|
|
130
130
|
x: -1,
|
|
131
131
|
y: -1,
|
package/package.json
CHANGED