@geode/opengeodeweb-front 10.0.2-rc.4 → 10.0.2-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/CrsSelector.vue +1 -0
- package/app/components/ExtensionSelector.vue +2 -1
- package/app/components/FeedBack/ErrorBanner.vue +4 -3
- package/app/components/FeedBack/Snackers.vue +5 -3
- package/app/components/FileSelector.vue +3 -2
- package/app/components/FileUploader.vue +1 -1
- package/app/components/HybridRenderingView.vue +4 -1
- package/app/components/InfraConnected.vue +2 -0
- package/app/components/Inspector/InspectionButton.vue +1 -0
- package/app/components/Inspector/ResultPanel.vue +1 -1
- package/app/components/Launcher.vue +9 -8
- package/app/components/Loading.vue +1 -1
- package/app/components/MissingFilesSelector.vue +3 -2
- package/app/components/ObjectSelector.vue +8 -5
- package/app/components/PackagesVersions.vue +2 -1
- package/app/components/Recaptcha.vue +6 -5
- package/app/components/RemoteRenderingView.vue +3 -3
- package/app/components/Screenshot.vue +2 -0
- package/app/components/Stepper.vue +1 -1
- package/app/components/VeaseViewToolbar.vue +6 -3
- package/app/components/ViewToolbar.vue +3 -2
- package/app/components/Viewer/BreadCrumb.vue +1 -0
- package/app/components/Viewer/ContextMenu.vue +2 -0
- package/app/components/Viewer/EdgedCurve/EdgesOptions.vue +1 -1
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +9 -6
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -3
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +8 -4
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +5 -2
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Options/CellAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/TextureItem.vue +2 -1
- package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
- package/app/components/Viewer/PointSet/PointsOptions.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +7 -3
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Solid/PointsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +1 -1
- package/app/components/Viewer/Tree/ObjectTree.vue +5 -3
- package/app/components/Viewer/TreeComponent.vue +4 -0
- package/app/components/Viewer/TreeObject.vue +6 -0
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +1 -1
- package/app/components/Wrapper.vue +7 -5
- package/app/composables/project_manager.js +9 -3
- package/app/composables/run_function_when_microservices_connected.js +5 -2
- package/app/plugins/auto_store_register.js +9 -1
- package/app/stores/data_base.js +4 -1
- package/app/stores/data_style.js +5 -5
- package/app/stores/geode.js +14 -12
- package/app/stores/hybrid_viewer.js +3 -2
- package/app/stores/infra.js +4 -2
- package/app/stores/lambda.js +2 -1
- package/app/stores/menu.js +24 -24
- package/app/stores/viewer.js +9 -8
- package/app/utils/file_import_workflow.js +5 -1
- package/app/utils/upload_file.js +6 -3
- package/internal/stores/mesh/cells.js +4 -5
- package/internal/stores/mesh/edges.js +5 -3
- package/internal/stores/mesh/index.js +9 -6
- package/internal/stores/mesh/points.js +5 -4
- package/internal/stores/mesh/polygons.js +5 -5
- package/internal/stores/mesh/polyhedra.js +5 -2
- package/internal/stores/model/blocks.js +6 -2
- package/internal/stores/model/corners.js +6 -2
- package/internal/stores/model/edges.js +5 -1
- package/internal/stores/model/index.js +11 -8
- package/internal/stores/model/lines.js +6 -2
- package/internal/stores/model/points.js +5 -2
- package/internal/stores/model/surfaces.js +6 -2
- package/internal/utils/api_fetch.js +2 -1
- package/internal/utils/viewer_call.js +5 -4
- package/nuxt.config.js +1 -3
- package/package.json +6 -7
- package/scripts/generate_geode_objects.js +1 -1
- package/tests/integration/microservices/back/requirements.txt +1 -1
- package/tests/integration/microservices/viewer/requirements.txt +1 -1
- package/tests/integration/setup.js +1 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -1
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +4 -1
- package/tests/unit/components/CrsSelector.nuxt.test.js +4 -2
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +4 -2
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +9 -8
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +6 -5
- package/tests/unit/components/FileSelector.nuxt.test.js +6 -7
- package/tests/unit/components/FileUploader.nuxt.test.js +4 -3
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +3 -2
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +5 -4
- package/tests/unit/components/Launcher.nuxt.test.js +7 -5
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +5 -4
- package/tests/unit/components/ObjectSelector.nuxt.test.js +16 -7
- package/tests/unit/components/PackagesVersions.nuxt.test.js +3 -2
- package/tests/unit/components/Step.nuxt.test.js +3 -3
- package/tests/unit/components/Stepper.nuxt.test.js +3 -3
- package/tests/unit/components/Wrapper.nuxt.test.js +3 -3
- package/tests/unit/composables/ProjectManager.nuxt.test.js +15 -17
- package/tests/unit/composables/api_fetch.nuxt.test.js +5 -2
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +11 -1
- package/tests/unit/composables/upload_file.nuxt.test.js +6 -3
- package/tests/unit/plugins/project_load.nuxt.test.js +8 -2
- package/tests/unit/stores/App.nuxt.test.js +34 -32
- package/tests/unit/stores/Feedback.nuxt.test.js +25 -25
- package/tests/unit/stores/Geode.nuxt.test.js +27 -25
- package/tests/unit/stores/Infra.nuxt.test.js +73 -70
- package/tests/unit/stores/Lambda.nuxt.test.js +5 -3
- package/tests/unit/stores/Viewer.nuxt.test.js +27 -27
- package/tests/unit/utils/recaptcha.nuxt.test.js +2 -2
- package/tests/unit/utils/validate_schema.nuxt.test.js +2 -2
- package/tests/vitest.config.js +0 -1
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
<script setup>
|
|
27
27
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
28
28
|
const schema = schemas.opengeodeweb_back.geographic_coordinate_systems
|
|
29
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
29
30
|
|
|
30
31
|
const emit = defineEmits([
|
|
31
32
|
"update_values",
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
<script setup>
|
|
58
58
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
59
59
|
|
|
60
|
-
import FetchingData from "@ogw_front/components/FetchingData
|
|
60
|
+
import FetchingData from "@ogw_front/components/FetchingData"
|
|
61
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
61
62
|
|
|
62
63
|
const schema = schemas.opengeodeweb_back.geode_objects_and_output_extensions
|
|
63
64
|
const emit = defineEmits([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-banner
|
|
3
|
-
v-if="
|
|
3
|
+
v-if="feedbackStore.server_error"
|
|
4
4
|
elevation="2"
|
|
5
5
|
style="background-color: grey; z-index: 9999"
|
|
6
6
|
position="fixed"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
size="20"
|
|
34
34
|
color="grey"
|
|
35
35
|
class=".align-center"
|
|
36
|
-
@click="
|
|
36
|
+
@click="feedbackStore.delete_server_error()"
|
|
37
37
|
>
|
|
38
38
|
<v-icon icon="mdi-close" size="20" color="white" />
|
|
39
39
|
</v-btn>
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script setup>
|
|
46
|
-
|
|
46
|
+
import { useFeedbackStore } from "@ogw_front/stores/feedback"
|
|
47
|
+
const feedbackStore = useFeedbackStore()
|
|
47
48
|
|
|
48
49
|
function reload() {
|
|
49
50
|
window.location.reload()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-snackbar
|
|
3
|
-
v-for="(feedback, index) in
|
|
3
|
+
v-for="(feedback, index) in feedbackStore.feedbacks"
|
|
4
4
|
:key="feedback"
|
|
5
5
|
v-model="show"
|
|
6
6
|
:style="{ 'margin-bottom': calc_margin(index) }"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
variant="flat"
|
|
52
52
|
size="20"
|
|
53
53
|
:color="feedback.type"
|
|
54
|
-
@click="
|
|
54
|
+
@click="feedbackStore.delete_feedback(feedback.id)"
|
|
55
55
|
>
|
|
56
56
|
<v-icon icon="mdi-close" size="20" color="white" />
|
|
57
57
|
</v-btn>
|
|
@@ -61,7 +61,9 @@
|
|
|
61
61
|
</template>
|
|
62
62
|
|
|
63
63
|
<script setup>
|
|
64
|
-
|
|
64
|
+
import { useFeedbackStore } from "@ogw_front/stores/feedback"
|
|
65
|
+
|
|
66
|
+
const feedbackStore = useFeedbackStore()
|
|
65
67
|
const show = true
|
|
66
68
|
|
|
67
69
|
function calc_margin(index) {
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
<script setup>
|
|
11
11
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
12
12
|
|
|
13
|
-
import FetchingData from "@ogw_front/components/FetchingData
|
|
14
|
-
import FileUploader from "@ogw_front/components/FileUploader
|
|
13
|
+
import FetchingData from "@ogw_front/components/FetchingData"
|
|
14
|
+
import FileUploader from "@ogw_front/components/FileUploader"
|
|
15
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
15
16
|
|
|
16
17
|
const schema = schemas.opengeodeweb_back.allowed_files
|
|
17
18
|
const emit = defineEmits([
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
<script setup>
|
|
36
36
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
37
|
-
import { upload_file } from "@ogw_front/utils/upload_file
|
|
37
|
+
import { upload_file } from "@ogw_front/utils/upload_file"
|
|
38
38
|
const schema = schemas.opengeodeweb_back.upload_file
|
|
39
39
|
|
|
40
40
|
const emit = defineEmits(["files_uploaded", "decrement_step"])
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script setup>
|
|
18
|
-
import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar
|
|
18
|
+
import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar"
|
|
19
|
+
|
|
20
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
21
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
19
22
|
|
|
20
23
|
const emit = defineEmits(["click"])
|
|
21
24
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
|
-
import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel
|
|
45
|
+
import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel"
|
|
46
46
|
|
|
47
47
|
const props = defineProps({
|
|
48
48
|
inspection_result: { type: Array, required: true },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<v-container class="justify">
|
|
3
3
|
<v-row align-content="center" align="center">
|
|
4
4
|
<v-col
|
|
5
|
-
v-if="!
|
|
5
|
+
v-if="!infraStore.is_captcha_validated"
|
|
6
6
|
class="align"
|
|
7
7
|
cols="12"
|
|
8
8
|
align-self="center"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<Recaptcha :color="'secondary'" />
|
|
12
12
|
</v-col>
|
|
13
|
-
<v-col v-else-if="
|
|
13
|
+
<v-col v-else-if="infraStore.status == Status.CREATING">
|
|
14
14
|
<Loading />
|
|
15
15
|
</v-col>
|
|
16
16
|
</v-row>
|
|
@@ -18,17 +18,18 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup>
|
|
21
|
-
import Status from "@ogw_front/utils/status
|
|
22
|
-
import Loading from "@ogw_front/components/Loading
|
|
23
|
-
import Recaptcha from "@ogw_front/components/Recaptcha
|
|
21
|
+
import Status from "@ogw_front/utils/status"
|
|
22
|
+
import Loading from "@ogw_front/components/Loading"
|
|
23
|
+
import Recaptcha from "@ogw_front/components/Recaptcha"
|
|
24
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const infraStore = useInfraStore()
|
|
26
27
|
|
|
27
28
|
watch(
|
|
28
|
-
() =>
|
|
29
|
+
() => infraStore.is_captcha_validated,
|
|
29
30
|
(value, oldValue) => {
|
|
30
31
|
if (value && !oldValue && import.meta.client) {
|
|
31
|
-
|
|
32
|
+
infraStore.create_backend()
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
)
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
import derniere from "@ogw_front/assets/img/energy_sobriety/derniere.png"
|
|
38
38
|
import salon from "@ogw_front/assets/img/energy_sobriety/salon.png"
|
|
39
39
|
|
|
40
|
-
import Carousel from "@ogw_front/components/Carousel
|
|
40
|
+
import Carousel from "@ogw_front/components/Carousel"
|
|
41
41
|
|
|
42
42
|
const users_list = [
|
|
43
43
|
{
|
|
@@ -45,8 +45,9 @@
|
|
|
45
45
|
<script setup>
|
|
46
46
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
47
47
|
|
|
48
|
-
import FetchingData from "@ogw_front/components/FetchingData
|
|
49
|
-
import FileUploader from "@ogw_front/components/FileUploader
|
|
48
|
+
import FetchingData from "@ogw_front/components/FetchingData"
|
|
49
|
+
import FileUploader from "@ogw_front/components/FileUploader"
|
|
50
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
50
51
|
|
|
51
52
|
const schema = schemas.opengeodeweb_back.missing_files
|
|
52
53
|
|
|
@@ -49,20 +49,22 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script setup>
|
|
52
|
-
import geode_objects from "@ogw_front/assets/geode_objects"
|
|
53
52
|
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
54
53
|
|
|
54
|
+
import geode_objects from "@ogw_front/assets/geode_objects"
|
|
55
55
|
import FetchingData from "@ogw_front/components/FetchingData.vue"
|
|
56
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
56
57
|
|
|
57
58
|
const schema = schemas.opengeodeweb_back.allowed_objects
|
|
58
59
|
|
|
59
60
|
const emit = defineEmits(["update_values", "increment_step"])
|
|
60
|
-
|
|
61
|
+
console.log("ObjectSelector")
|
|
61
62
|
const props = defineProps({
|
|
62
63
|
filenames: { type: Array, required: true },
|
|
63
|
-
supported_feature: { type: String, required: false, default: null },
|
|
64
64
|
})
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
const geodeStore = useGeodeStore()
|
|
67
|
+
const { filenames } = props
|
|
66
68
|
|
|
67
69
|
const loading = ref(false)
|
|
68
70
|
const allowed_objects = ref({})
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
async function get_allowed_objects() {
|
|
109
111
|
toggle_loading()
|
|
110
112
|
allowed_objects.value = {}
|
|
111
|
-
|
|
113
|
+
|
|
112
114
|
const promise_array = filenames.map((filename) => {
|
|
113
115
|
return geodeStore.request(schema, { filename })
|
|
114
116
|
})
|
|
@@ -142,6 +144,7 @@
|
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
function set_geode_object(geode_object_type) {
|
|
147
|
+
console.log("set_geode_object", { geode_object_type })
|
|
145
148
|
if (geode_object_type) {
|
|
146
149
|
emit("update_values", { geode_object_type })
|
|
147
150
|
emit("increment_step")
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup>
|
|
22
|
-
import Status from "@ogw_front/utils/status
|
|
22
|
+
import Status from "@ogw_front/utils/status"
|
|
23
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
23
24
|
|
|
24
25
|
const props = defineProps({
|
|
25
26
|
schema: { type: Object, required: true },
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
|
-
import { appMode } from "@ogw_front/utils/app_mode
|
|
42
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
43
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
43
44
|
|
|
44
45
|
const props = defineProps({
|
|
45
46
|
button_label: {
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
default: "white",
|
|
54
55
|
},
|
|
55
56
|
})
|
|
56
|
-
const
|
|
57
|
+
const infraStore = useInfraStore()
|
|
57
58
|
const name = ref("")
|
|
58
59
|
const email = ref("")
|
|
59
60
|
const launch = ref(false)
|
|
@@ -76,9 +77,9 @@
|
|
|
76
77
|
if (import.meta.client) {
|
|
77
78
|
if (
|
|
78
79
|
process.env.NODE_ENV !== "production" ||
|
|
79
|
-
|
|
80
|
+
infraStore.app_mode !== appMode.CLOUD
|
|
80
81
|
) {
|
|
81
|
-
|
|
82
|
+
infraStore.$patch({ is_captcha_validated: true })
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
})
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
launch: launch.value,
|
|
92
93
|
},
|
|
93
94
|
})
|
|
94
|
-
|
|
95
|
+
infraStore.$patch({
|
|
95
96
|
is_captcha_validated: response.status === 200,
|
|
96
97
|
})
|
|
97
98
|
}
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
import vtkRemoteView from "@kitware/vtk.js/Rendering/Misc/RemoteView"
|
|
25
25
|
import { useElementSize, useWindowSize } from "@vueuse/core"
|
|
26
26
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
27
|
-
import Status from "@ogw_front/utils/status
|
|
28
|
-
|
|
29
|
-
import
|
|
27
|
+
import Status from "@ogw_front/utils/status"
|
|
28
|
+
import ViewToolbar from "@ogw_front/components/ViewToolbar"
|
|
29
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
30
30
|
|
|
31
31
|
const props = defineProps({
|
|
32
32
|
viewId: { type: String, default: "-1" },
|
|
@@ -64,6 +64,8 @@
|
|
|
64
64
|
import fileDownload from "js-file-download"
|
|
65
65
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
66
66
|
|
|
67
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
68
|
+
|
|
67
69
|
const emit = defineEmits(["close"])
|
|
68
70
|
|
|
69
71
|
const props = defineProps({
|
|
@@ -29,10 +29,14 @@
|
|
|
29
29
|
<script setup>
|
|
30
30
|
import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
31
31
|
|
|
32
|
-
import Screenshot from "@ogw_front/components/Screenshot
|
|
33
|
-
import ZScaling from "@ogw_front/components/ZScaling
|
|
32
|
+
import Screenshot from "@ogw_front/components/Screenshot"
|
|
33
|
+
import ZScaling from "@ogw_front/components/ZScaling"
|
|
34
|
+
|
|
35
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
36
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
34
37
|
|
|
35
38
|
const hybridViewerStore = useHybridViewerStore()
|
|
39
|
+
const viewerStore = useViewerStore()
|
|
36
40
|
const take_screenshot = ref(false)
|
|
37
41
|
const showZScaling = ref(false)
|
|
38
42
|
const grid_scale = ref(false)
|
|
@@ -74,7 +78,6 @@
|
|
|
74
78
|
tooltip: "Toggle grid scale",
|
|
75
79
|
icon: "mdi-ruler-square",
|
|
76
80
|
action: () => {
|
|
77
|
-
const viewerStore = useViewerStore()
|
|
78
81
|
viewerStore.request(
|
|
79
82
|
schemas.opengeodeweb_viewer.viewer.grid_scale,
|
|
80
83
|
{ visibility: !grid_scale.value },
|
|
@@ -23,8 +23,10 @@
|
|
|
23
23
|
<script setup>
|
|
24
24
|
import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
25
25
|
|
|
26
|
-
import Screenshot from "@ogw_front/components/Screenshot
|
|
26
|
+
import Screenshot from "@ogw_front/components/Screenshot"
|
|
27
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
27
28
|
|
|
29
|
+
const viewerStore = useViewerStore()
|
|
28
30
|
const take_screenshot = ref(false)
|
|
29
31
|
const grid_scale = ref(false)
|
|
30
32
|
|
|
@@ -33,7 +35,6 @@
|
|
|
33
35
|
tooltip: "Reset camera",
|
|
34
36
|
icon: "mdi-cube-scan",
|
|
35
37
|
action: () => {
|
|
36
|
-
const viewerStore = useViewerStore()
|
|
37
38
|
viewerStore.request(schemas.opengeodeweb_viewer.viewer.reset_camera)
|
|
38
39
|
},
|
|
39
40
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import EdgedCurveEdges from "@ogw_front/assets/viewer_svgs/edged_curve_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import EdgedCurvePoints from "@ogw_front/assets/viewer_svgs/edged_curve_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -21,9 +21,12 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script setup>
|
|
24
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
25
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
26
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
24
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
25
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
26
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
27
|
+
|
|
28
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
29
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
27
30
|
|
|
28
31
|
const dataStyleStore = useDataStyleStore()
|
|
29
32
|
const hybridViewerStore = useHybridViewerStore()
|
|
@@ -18,9 +18,15 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup>
|
|
21
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
22
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
23
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
21
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
22
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
23
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
24
|
+
|
|
25
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
26
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
27
|
+
|
|
28
|
+
const dataStyleStore = useDataStyleStore()
|
|
29
|
+
const hybridViewerStore = useHybridViewerStore()
|
|
24
30
|
|
|
25
31
|
const props = defineProps({
|
|
26
32
|
itemProps: { type: Object, required: true },
|
|
@@ -29,9 +35,6 @@
|
|
|
29
35
|
|
|
30
36
|
const id = toRef(() => props.itemProps.id)
|
|
31
37
|
|
|
32
|
-
const dataStyleStore = useDataStyleStore()
|
|
33
|
-
const hybridViewerStore = useHybridViewerStore()
|
|
34
|
-
|
|
35
38
|
const visibility = computed({
|
|
36
39
|
get: () => dataStyleStore.meshEdgesVisibility(id.value),
|
|
37
40
|
set: (newValue) => {
|
|
@@ -39,9 +39,12 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
43
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
44
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
42
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
43
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
44
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
45
|
+
|
|
46
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
47
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
45
48
|
|
|
46
49
|
const dataStyleStore = useDataStyleStore()
|
|
47
50
|
const hybridViewerStore = useHybridViewerStore()
|
|
@@ -21,9 +21,12 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script setup>
|
|
24
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
25
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
26
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
24
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
25
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
26
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
27
|
+
|
|
28
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
29
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
27
30
|
|
|
28
31
|
const dataStyleStore = useDataStyleStore()
|
|
29
32
|
const hybridViewerStore = useHybridViewerStore()
|
|
@@ -21,9 +21,12 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script setup>
|
|
24
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
25
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
26
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
24
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
25
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
26
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
27
|
+
|
|
28
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
29
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
27
30
|
|
|
28
31
|
const dataStyleStore = useDataStyleStore()
|
|
29
32
|
const hybridViewerStore = useHybridViewerStore()
|
|
@@ -11,18 +11,22 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script setup>
|
|
14
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
15
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
14
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
15
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
16
16
|
import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
17
17
|
|
|
18
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
19
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
20
|
+
|
|
21
|
+
const dataStyleStore = useDataStyleStore()
|
|
22
|
+
const hybridViewerStore = useHybridViewerStore()
|
|
23
|
+
|
|
18
24
|
const props = defineProps({
|
|
19
25
|
itemProps: { type: Object, required: true },
|
|
20
26
|
btn_image: { type: String, required: true },
|
|
21
27
|
})
|
|
22
28
|
|
|
23
29
|
const id = toRef(() => props.itemProps.id)
|
|
24
|
-
const dataStyleStore = useDataStyleStore()
|
|
25
|
-
const hybridViewerStore = useHybridViewerStore()
|
|
26
30
|
|
|
27
31
|
const visibility = computed({
|
|
28
32
|
get: () => dataStyleStore.modelEdgesVisibility(id.value),
|
|
@@ -30,10 +30,13 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script setup>
|
|
33
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
34
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
33
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
34
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
35
35
|
import SurfacePoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
36
36
|
|
|
37
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
38
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
39
|
+
|
|
37
40
|
const dataStyleStore = useDataStyleStore()
|
|
38
41
|
const hybridViewerStore = useHybridViewerStore()
|
|
39
42
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions
|
|
10
|
+
import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions"
|
|
11
11
|
import Grid2D_Cells from "@ogw_front/assets/viewer_svgs/grid_2d_cells.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import Grid2D_Edges from "@ogw_front/assets/viewer_svgs/grid_2d_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import Grid2D_Points from "@ogw_front/assets/viewer_svgs/grid_2d_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions
|
|
10
|
+
import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions"
|
|
11
11
|
import Grid3DCells from "@ogw_front/assets/viewer_svgs/grid_3d_cells.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import Grid3D_Edges from "@ogw_front/assets/viewer_svgs/grid_3d_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
10
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
11
11
|
import Grid3D_Facets from "@ogw_front/assets/viewer_svgs/grid_3d_facets.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import Grid3D_Points from "@ogw_front/assets/viewer_svgs/grid_3d_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|