@geode/opengeodeweb-front 10.25.0-rc.5 → 10.25.0-rc.6
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.
|
@@ -32,6 +32,7 @@ async function handleZScalingClose() {
|
|
|
32
32
|
|
|
33
33
|
const camera_options = computed(() => [
|
|
34
34
|
{
|
|
35
|
+
testId: "resetCameraButton",
|
|
35
36
|
tooltip: "Reset camera",
|
|
36
37
|
icon: "mdi-cube-scan",
|
|
37
38
|
action: () => {
|
|
@@ -39,6 +40,7 @@ const camera_options = computed(() => [
|
|
|
39
40
|
},
|
|
40
41
|
},
|
|
41
42
|
{
|
|
43
|
+
testId: "centerOnClickButton",
|
|
42
44
|
tooltip: "Center on click",
|
|
43
45
|
icon: "mdi-crosshairs-question",
|
|
44
46
|
color: hybridViewerStore.is_picking ? "primary" : undefined,
|
|
@@ -47,6 +49,7 @@ const camera_options = computed(() => [
|
|
|
47
49
|
},
|
|
48
50
|
},
|
|
49
51
|
{
|
|
52
|
+
testId: "highlightOnHoverButton",
|
|
50
53
|
tooltip: "Highlight on hover",
|
|
51
54
|
icon: "mdi-cursor-default-click",
|
|
52
55
|
color: hybridViewerStore.is_hover_highlight ? "primary" : undefined,
|
|
@@ -92,6 +95,7 @@ const camera_options = computed(() => [
|
|
|
92
95
|
],
|
|
93
96
|
},
|
|
94
97
|
{
|
|
98
|
+
testId: "cameraOrientationButton",
|
|
95
99
|
tooltip: "Camera orientation",
|
|
96
100
|
icon: "mdi-rotate-3d",
|
|
97
101
|
action: () => {
|
|
@@ -99,6 +103,7 @@ const camera_options = computed(() => [
|
|
|
99
103
|
},
|
|
100
104
|
},
|
|
101
105
|
{
|
|
106
|
+
testId: "cameraManagerButton",
|
|
102
107
|
tooltip: "Manage camera positions",
|
|
103
108
|
icon: CameraBookmarkIcon,
|
|
104
109
|
iconSize: 34,
|
|
@@ -107,6 +112,7 @@ const camera_options = computed(() => [
|
|
|
107
112
|
},
|
|
108
113
|
},
|
|
109
114
|
{
|
|
115
|
+
testId: "screenshotButton",
|
|
110
116
|
tooltip: "Take a screenshot",
|
|
111
117
|
icon: "mdi-camera",
|
|
112
118
|
action: () => {
|
|
@@ -114,6 +120,7 @@ const camera_options = computed(() => [
|
|
|
114
120
|
},
|
|
115
121
|
},
|
|
116
122
|
{
|
|
123
|
+
testId: "gridScaleButton",
|
|
117
124
|
tooltip: "Toggle grid scale",
|
|
118
125
|
icon: "mdi-ruler-square",
|
|
119
126
|
color: grid_scale.value ? "primary" : undefined,
|
|
@@ -135,6 +142,7 @@ const camera_options = computed(() => [
|
|
|
135
142
|
},
|
|
136
143
|
},
|
|
137
144
|
{
|
|
145
|
+
testId: "zScalingButton",
|
|
138
146
|
tooltip: "Z Scaling Control",
|
|
139
147
|
icon: "mdi-sort",
|
|
140
148
|
action: () => {
|
|
@@ -146,7 +154,7 @@ const camera_options = computed(() => [
|
|
|
146
154
|
|
|
147
155
|
<template>
|
|
148
156
|
<v-container :class="[$style.floatToolbar, 'pa-0', 'view-toolbar']" width="auto">
|
|
149
|
-
<v-row v-for="camera_option in camera_options" :key="camera_option.
|
|
157
|
+
<v-row v-for="camera_option in camera_options" :key="camera_option.testId" dense>
|
|
150
158
|
<v-col>
|
|
151
159
|
<v-menu
|
|
152
160
|
v-if="camera_option.menu && !camera_option.action"
|
|
@@ -156,6 +164,7 @@ const camera_options = computed(() => [
|
|
|
156
164
|
<template #activator="{ props }">
|
|
157
165
|
<ActionButton
|
|
158
166
|
v-bind="props"
|
|
167
|
+
:data-testid="camera_option.testId"
|
|
159
168
|
:icon="
|
|
160
169
|
typeof camera_option.icon === 'function' ? camera_option.icon() : camera_option.icon
|
|
161
170
|
"
|
|
@@ -187,6 +196,7 @@ const camera_options = computed(() => [
|
|
|
187
196
|
</v-menu>
|
|
188
197
|
<ActionButton
|
|
189
198
|
v-else
|
|
199
|
+
:data-testid="camera_option.testId"
|
|
190
200
|
:icon="camera_option.icon"
|
|
191
201
|
:tooltip="camera_option.tooltip"
|
|
192
202
|
:color="camera_option.color"
|
package/package.json
CHANGED