@geode/opengeodeweb-front 10.6.2 → 10.6.3-rc.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/.eslintrc.cjs +1 -1
- package/.oxlintrc.json +3 -22
- package/app/assets/geode_objects.js +26 -26
- package/app/components/Carousel.vue +62 -66
- package/app/components/CrsSelector.vue +48 -52
- package/app/components/DeleteDialog.vue +21 -37
- package/app/components/DragAndDrop.vue +35 -41
- package/app/components/ExtensionSelector.vue +50 -63
- package/app/components/FeedBack/ErrorBanner.vue +7 -10
- package/app/components/FeedBack/Snackers.vue +12 -14
- package/app/components/FetchingData.vue +1 -6
- package/app/components/FileSelector.vue +41 -47
- package/app/components/FileUploader.vue +62 -79
- package/app/components/GlassCard.vue +19 -19
- package/app/components/HybridRenderingView.vue +37 -38
- package/app/components/InfraConnected.vue +3 -3
- package/app/components/Inspector/InspectionButton.vue +27 -31
- package/app/components/Inspector/ResultPanel.vue +13 -24
- package/app/components/Launcher.vue +13 -13
- package/app/components/Loading.vue +63 -69
- package/app/components/MissingFilesSelector.vue +53 -73
- package/app/components/ObjectSelector.vue +81 -99
- package/app/components/PackagesVersions.vue +27 -30
- package/app/components/Recaptcha.vue +60 -71
- package/app/components/RemoteRenderingView.vue +102 -108
- package/app/components/Screenshot.vue +36 -42
- package/app/components/SearchBar.vue +5 -5
- package/app/components/Step.vue +37 -44
- package/app/components/Stepper.vue +29 -35
- package/app/components/VeaseViewToolbar.vue +69 -78
- package/app/components/ViewToolbar.vue +41 -45
- package/app/components/Viewer/BreadCrumb.vue +18 -30
- package/app/components/Viewer/ContextMenu.vue +176 -179
- package/app/components/Viewer/ContextMenuItem.vue +105 -117
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +6 -9
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +82 -93
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +84 -99
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +83 -98
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +62 -73
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +84 -108
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +82 -105
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +19 -23
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +26 -30
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +6 -9
- package/app/components/Viewer/Options/AttributeColorBar.vue +8 -8
- package/app/components/Viewer/Options/AttributeSelector.vue +73 -78
- package/app/components/Viewer/Options/ColorMapList.vue +115 -140
- package/app/components/Viewer/Options/ColorMapPicker.vue +128 -142
- package/app/components/Viewer/Options/ColorPicker.vue +9 -9
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +77 -91
- package/app/components/Viewer/Options/TextureItem.vue +54 -58
- package/app/components/Viewer/Options/TexturesSelector.vue +22 -26
- package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +61 -68
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +83 -103
- package/app/components/Viewer/Solid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Solid/PointsOptions.vue +6 -9
- package/app/components/Viewer/Solid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +82 -105
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +5 -5
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +5 -5
- package/app/components/Viewer/Tree/ObjectTree.vue +80 -89
- package/app/components/Viewer/TreeComponent.vue +43 -49
- package/app/components/Viewer/TreeObject.vue +48 -50
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +5 -5
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +5 -5
- package/app/components/Wrapper.vue +8 -8
- package/app/components/ZScaling.vue +18 -27
- package/app/composables/project_manager.js +57 -67
- package/app/composables/run_function_when_microservices_connected.js +8 -8
- package/app/plugins/auto_store_register.js +11 -13
- package/app/stores/app.js +118 -138
- package/app/stores/data.js +52 -68
- package/app/stores/data_style.js +36 -36
- package/app/stores/feedback.js +17 -20
- package/app/stores/geode.js +54 -55
- package/app/stores/hybrid_viewer.js +164 -177
- package/app/stores/infra.js +45 -55
- package/app/stores/lambda.js +26 -26
- package/app/stores/menu.js +78 -85
- package/app/stores/treeview.js +57 -65
- package/app/stores/viewer.js +92 -104
- package/app/utils/colormap.js +3 -3
- package/app/utils/config.js +16 -22
- package/app/utils/default_styles.js +50 -62
- package/app/utils/extension.js +44 -44
- package/app/utils/file_import_workflow.js +50 -64
- package/app/utils/local/app_mode.js +2 -2
- package/app/utils/local/cleanup.js +66 -72
- package/app/utils/local/microservices.js +61 -71
- package/app/utils/local/path.js +16 -19
- package/app/utils/local/scripts.js +22 -22
- package/app/utils/recaptcha.js +6 -6
- package/app/utils/server.js +21 -24
- package/app/utils/status.js +2 -2
- package/app/utils/treeview.js +4 -4
- package/app/utils/validate_schema.js +7 -7
- package/commitlint.config.js +2 -2
- package/eslint.config.js +4 -4
- package/internal/database/database.js +38 -46
- package/internal/database/extended_database.js +9 -10
- package/internal/database/tables/data.js +2 -3
- package/internal/database/tables/model_components.js +1 -1
- package/internal/database/tables/model_components_relation.js +1 -1
- package/internal/stores/data_style/mesh/cells/cell.js +47 -63
- package/internal/stores/data_style/mesh/cells/color.js +11 -16
- package/internal/stores/data_style/mesh/cells/common.js +6 -6
- package/internal/stores/data_style/mesh/cells/index.js +37 -47
- package/internal/stores/data_style/mesh/cells/textures.js +11 -12
- package/internal/stores/data_style/mesh/cells/vertex.js +47 -58
- package/internal/stores/data_style/mesh/cells/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/color.js +11 -16
- package/internal/stores/data_style/mesh/edges/common.js +6 -6
- package/internal/stores/data_style/mesh/edges/edge.js +47 -63
- package/internal/stores/data_style/mesh/edges/index.js +38 -52
- package/internal/stores/data_style/mesh/edges/vertex.js +47 -58
- package/internal/stores/data_style/mesh/edges/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/width.js +11 -16
- package/internal/stores/data_style/mesh/index.js +34 -34
- package/internal/stores/data_style/mesh/points/color.js +11 -16
- package/internal/stores/data_style/mesh/points/common.js +6 -6
- package/internal/stores/data_style/mesh/points/index.js +35 -49
- package/internal/stores/data_style/mesh/points/size.js +11 -16
- package/internal/stores/data_style/mesh/points/vertex.js +47 -58
- package/internal/stores/data_style/mesh/points/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polygons/color.js +11 -16
- package/internal/stores/data_style/mesh/polygons/common.js +6 -6
- package/internal/stores/data_style/mesh/polygons/index.js +36 -45
- package/internal/stores/data_style/mesh/polygons/polygon.js +45 -56
- package/internal/stores/data_style/mesh/polygons/textures.js +11 -16
- package/internal/stores/data_style/mesh/polygons/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polygons/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/color.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/common.js +6 -6
- package/internal/stores/data_style/mesh/polyhedra/index.js +29 -42
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +43 -47
- package/internal/stores/data_style/mesh/polyhedra/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polyhedra/visibility.js +11 -17
- package/internal/stores/data_style/model/blocks/color.js +21 -24
- package/internal/stores/data_style/model/blocks/common.js +6 -6
- package/internal/stores/data_style/model/blocks/index.js +13 -17
- package/internal/stores/data_style/model/blocks/visibility.js +21 -24
- package/internal/stores/data_style/model/corners/color.js +21 -24
- package/internal/stores/data_style/model/corners/common.js +6 -6
- package/internal/stores/data_style/model/corners/index.js +14 -18
- package/internal/stores/data_style/model/corners/visibility.js +21 -25
- package/internal/stores/data_style/model/edges/common.js +4 -4
- package/internal/stores/data_style/model/edges/index.js +7 -7
- package/internal/stores/data_style/model/edges/visibility.js +11 -15
- package/internal/stores/data_style/model/index.js +84 -100
- package/internal/stores/data_style/model/lines/color.js +21 -24
- package/internal/stores/data_style/model/lines/common.js +6 -6
- package/internal/stores/data_style/model/lines/index.js +13 -17
- package/internal/stores/data_style/model/lines/visibility.js +21 -24
- package/internal/stores/data_style/model/points/common.js +4 -4
- package/internal/stores/data_style/model/points/index.js +9 -9
- package/internal/stores/data_style/model/points/size.js +11 -11
- package/internal/stores/data_style/model/points/visibility.js +11 -15
- package/internal/stores/data_style/model/surfaces/color.js +21 -24
- package/internal/stores/data_style/model/surfaces/common.js +6 -6
- package/internal/stores/data_style/model/surfaces/index.js +14 -22
- package/internal/stores/data_style/model/surfaces/visibility.js +18 -22
- package/internal/stores/data_style/state.js +11 -11
- package/internal/utils/api_fetch.js +24 -34
- package/internal/utils/upload_file.js +19 -24
- package/internal/utils/viewer_call.js +23 -36
- package/nuxt.config.js +7 -11
- package/package.json +3 -3
- package/scripts/generate_geode_objects.js +14 -16
- package/server/api/app/kill.post.js +4 -4
- package/server/api/app/project_folder_path.post.js +11 -11
- package/server/api/app/run_back.post.js +12 -12
- package/server/api/app/run_viewer.post.js +12 -12
- package/server/api/extensions/run.post.js +34 -41
- package/server/api/extensions/upload.put.js +48 -62
- package/tests/integration/setup.js +43 -53
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +90 -116
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +81 -107
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +38 -41
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +85 -101
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +89 -113
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +81 -105
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +56 -73
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +59 -76
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +39 -42
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +31 -34
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +60 -73
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +52 -55
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +59 -80
- package/tests/integration/stores/viewer.nuxt.test.js +35 -38
- package/tests/setup_indexeddb.js +2 -2
- package/tests/unit/components/CrsSelector.nuxt.test.js +28 -28
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +33 -35
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +23 -23
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +18 -18
- package/tests/unit/components/FileSelector.nuxt.test.js +57 -59
- package/tests/unit/components/FileUploader.nuxt.test.js +35 -39
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +28 -28
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +22 -27
- package/tests/unit/components/Launcher.nuxt.test.js +20 -22
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +37 -37
- package/tests/unit/components/ObjectSelector.nuxt.test.js +62 -62
- package/tests/unit/components/PackagesVersions.nuxt.test.js +16 -16
- package/tests/unit/components/Step.nuxt.test.js +18 -19
- package/tests/unit/components/Stepper.nuxt.test.js +18 -18
- package/tests/unit/composables/api_fetch.nuxt.test.js +34 -36
- package/tests/unit/composables/project_manager.nuxt.test.js +93 -112
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +36 -36
- package/tests/unit/composables/upload_file.nuxt.test.js +27 -29
- package/tests/unit/plugins/project_load.nuxt.test.js +31 -33
- package/tests/unit/stores/app.nuxt.test.js +90 -92
- package/tests/unit/stores/feedback.nuxt.test.js +47 -57
- package/tests/unit/stores/geode.nuxt.test.js +111 -115
- package/tests/unit/stores/infra.nuxt.test.js +148 -148
- package/tests/unit/stores/lambda.nuxt.test.js +72 -74
- package/tests/unit/stores/treeview.nuxt.test.js +19 -21
- package/tests/unit/stores/viewer.nuxt.test.js +109 -122
- package/tests/unit/utils/recaptcha.nuxt.test.js +25 -29
- package/tests/unit/utils/validate_schema.nuxt.test.js +17 -17
- package/tests/utils.js +11 -11
- package/tests/vitest.config.js +9 -9
- package/vuetify_config.js +2 -2
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import ViewerBreadCrumb from "@ogw_front/components/Viewer/BreadCrumb";
|
|
3
|
+
import ViewerTreeComponent from "@ogw_front/components/Viewer/TreeComponent";
|
|
4
|
+
import ViewerTreeObject from "@ogw_front/components/Viewer/TreeObject";
|
|
5
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const WIDTH_MIN = 150;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const treeviewStore = useTreeviewStore();
|
|
10
|
+
const emit = defineEmits(["show-menu"]);
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
)
|
|
21
|
-
treeviewStore.setPanelWidth(newWidth)
|
|
22
|
-
document.body.style.userSelect = "none"
|
|
23
|
-
}
|
|
24
|
-
function stopResize() {
|
|
25
|
-
document.removeEventListener("mousemove", resize)
|
|
26
|
-
document.removeEventListener("mouseup", stopResize)
|
|
27
|
-
document.body.style.userSelect = ""
|
|
28
|
-
}
|
|
29
|
-
document.addEventListener("mousemove", resize)
|
|
30
|
-
document.addEventListener("mouseup", stopResize)
|
|
12
|
+
function onResizeStart(event) {
|
|
13
|
+
const startWidth = treeviewStore.panelWidth;
|
|
14
|
+
const startX = event.clientX;
|
|
15
|
+
function resize(move_event) {
|
|
16
|
+
const deltaX = move_event.clientX - startX;
|
|
17
|
+
const newWidth = Math.max(WIDTH_MIN, Math.min(startWidth + deltaX, window.innerWidth));
|
|
18
|
+
treeviewStore.setPanelWidth(newWidth);
|
|
19
|
+
document.body.style.userSelect = "none";
|
|
31
20
|
}
|
|
21
|
+
function stopResize() {
|
|
22
|
+
document.removeEventListener("mousemove", resize);
|
|
23
|
+
document.removeEventListener("mouseup", stopResize);
|
|
24
|
+
document.body.style.userSelect = "";
|
|
25
|
+
}
|
|
26
|
+
document.addEventListener("mousemove", resize);
|
|
27
|
+
document.addEventListener("mouseup", stopResize);
|
|
28
|
+
}
|
|
32
29
|
</script>
|
|
33
30
|
|
|
34
31
|
<template>
|
|
@@ -38,15 +35,9 @@
|
|
|
38
35
|
@contextmenu.prevent
|
|
39
36
|
@mousedown.stop
|
|
40
37
|
>
|
|
41
|
-
<v-row
|
|
42
|
-
class="resizable-panel"
|
|
43
|
-
:style="{ width: `${treeviewStore.panelWidth}px` }"
|
|
44
|
-
>
|
|
38
|
+
<v-row class="resizable-panel" :style="{ width: `${treeviewStore.panelWidth}px` }">
|
|
45
39
|
<div class="scrollable-wrapper">
|
|
46
|
-
<v-sheet
|
|
47
|
-
style="max-height: calc(85vh)"
|
|
48
|
-
class="transparent-treeview scrollbar-hover"
|
|
49
|
-
>
|
|
40
|
+
<v-sheet style="max-height: calc(85vh)" class="transparent-treeview scrollbar-hover">
|
|
50
41
|
<v-row v-if="treeviewStore.items.length > 0">
|
|
51
42
|
<v-col>
|
|
52
43
|
<ViewerBreadCrumb />
|
|
@@ -73,69 +64,69 @@
|
|
|
73
64
|
</template>
|
|
74
65
|
|
|
75
66
|
<style scoped>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
67
|
+
.treeview-container {
|
|
68
|
+
position: absolute;
|
|
69
|
+
z-index: 2;
|
|
70
|
+
left: 0;
|
|
71
|
+
top: 0;
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
border-radius: 16px;
|
|
74
|
+
padding: 8px;
|
|
75
|
+
display: flex;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
}
|
|
87
78
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
79
|
+
.resizable-panel {
|
|
80
|
+
display: flex;
|
|
81
|
+
height: 100%;
|
|
82
|
+
position: relative;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
}
|
|
94
85
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
86
|
+
.scrollable-wrapper {
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
padding-right: 6px;
|
|
89
|
+
flex: 1;
|
|
90
|
+
}
|
|
100
91
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
92
|
+
.resizer {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
width: 6px;
|
|
97
|
+
height: 100%;
|
|
98
|
+
cursor: ew-resize;
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
z-index: 15;
|
|
101
|
+
}
|
|
111
102
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
.resizer:hover {
|
|
104
|
+
background-color: #999;
|
|
105
|
+
}
|
|
115
106
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
.resizer:active {
|
|
108
|
+
background-color: #666;
|
|
109
|
+
}
|
|
119
110
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
.transparent-treeview {
|
|
112
|
+
background-color: transparent;
|
|
113
|
+
margin: 4px 0;
|
|
114
|
+
}
|
|
124
115
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
.scrollbar-hover {
|
|
117
|
+
overflow-x: hidden;
|
|
118
|
+
}
|
|
128
119
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
120
|
+
.scrollbar-hover::-webkit-scrollbar {
|
|
121
|
+
width: 5px;
|
|
122
|
+
}
|
|
132
123
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
.scrollbar-hover::-webkit-scrollbar-thumb {
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
}
|
|
136
127
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
128
|
+
.scrollbar-hover:hover::-webkit-scrollbar-thumb {
|
|
129
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
130
|
+
border-radius: 10px;
|
|
131
|
+
}
|
|
141
132
|
</style>
|
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { useDataStore } from "@ogw_front/stores/data";
|
|
3
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
4
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { compareSelections } from "@ogw_front/utils/treeview";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const dataStyleStore = useDataStyleStore();
|
|
9
|
+
const dataStore = useDataStore();
|
|
10
|
+
const hybridViewerStore = useHybridViewerStore();
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const { id } = defineProps({ id: { type: String, required: true } });
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const emit = defineEmits(["show-menu"]);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const items = ref([]);
|
|
17
|
+
const mesh_components_selection = dataStyleStore.visibleMeshComponents(id);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
watchEffect(async () => {
|
|
20
|
+
items.value = await dataStore.formatedMeshComponents(id);
|
|
21
|
+
});
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
watch(
|
|
24
|
+
mesh_components_selection,
|
|
25
|
+
async (current, previous) => {
|
|
26
|
+
if (!previous) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
const { added, removed } = compareSelections(current, previous);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
hybridViewerStore.remoteRender()
|
|
43
|
-
},
|
|
44
|
-
{ deep: true },
|
|
45
|
-
)
|
|
32
|
+
if (added.length > 0) {
|
|
33
|
+
await dataStyleStore.setModelMeshComponentsVisibility(id, added, true);
|
|
34
|
+
}
|
|
35
|
+
if (removed.length > 0) {
|
|
36
|
+
await dataStyleStore.setModelMeshComponentsVisibility(id, removed, false);
|
|
37
|
+
}
|
|
38
|
+
hybridViewerStore.remoteRender();
|
|
39
|
+
},
|
|
40
|
+
{ deep: true },
|
|
41
|
+
);
|
|
46
42
|
</script>
|
|
47
43
|
|
|
48
44
|
<template>
|
|
@@ -57,9 +53,7 @@
|
|
|
57
53
|
<template #title="{ item }">
|
|
58
54
|
<span
|
|
59
55
|
class="treeview-item"
|
|
60
|
-
@contextmenu.prevent.stop="
|
|
61
|
-
emit('show-menu', { event: $event, itemId: item })
|
|
62
|
-
"
|
|
56
|
+
@contextmenu.prevent.stop="emit('show-menu', { event: $event, itemId: item })"
|
|
63
57
|
>{{ item.title }}</span
|
|
64
58
|
>
|
|
65
59
|
</template>
|
|
@@ -67,16 +61,16 @@
|
|
|
67
61
|
</template>
|
|
68
62
|
|
|
69
63
|
<style scoped>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
64
|
+
.treeview-item {
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
max-width: 100%;
|
|
69
|
+
display: inline-block;
|
|
70
|
+
}
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
.transparent-treeview {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
margin: 4px 0;
|
|
75
|
+
}
|
|
82
76
|
</style>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
3
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
4
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { compareSelections } from "@ogw_front/utils/treeview";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const treeviewStore = useTreeviewStore();
|
|
9
|
+
const dataStyleStore = useDataStyleStore();
|
|
10
|
+
const hybridViewerStore = useHybridViewerStore();
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const emit = defineEmits(["show-menu"]);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
function isLeafNode(item) {
|
|
15
|
+
return !item.children || item.children.length === 0;
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
watch(
|
|
19
|
+
() => treeviewStore.selection,
|
|
20
|
+
async (current, previous) => {
|
|
21
|
+
const oldSelection = previous || [];
|
|
22
|
+
if (current === oldSelection) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const { added, removed } = compareSelections(current, previous);
|
|
26
|
+
const updates = [
|
|
27
|
+
...added.map((item) => dataStyleStore.setVisibility(item.id, true)),
|
|
28
|
+
...removed.map((item) => dataStyleStore.setVisibility(item.id, false)),
|
|
29
|
+
];
|
|
30
|
+
await Promise.all(updates);
|
|
31
|
+
hybridViewerStore.remoteRender();
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
function isModel(item) {
|
|
36
|
+
return item.viewer_type === "model";
|
|
37
|
+
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
onMounted(() => {
|
|
40
|
+
const savedSelection = treeviewStore.selection;
|
|
41
|
+
if (savedSelection && savedSelection.length > 0) {
|
|
42
|
+
treeviewStore.selection = savedSelection;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<template>
|
|
@@ -58,9 +58,7 @@
|
|
|
58
58
|
<span
|
|
59
59
|
class="treeview-item"
|
|
60
60
|
@contextmenu.prevent.stop="
|
|
61
|
-
isLeafNode(item)
|
|
62
|
-
? emit('show-menu', { event: $event, itemId: item.id })
|
|
63
|
-
: null
|
|
61
|
+
isLeafNode(item) ? emit('show-menu', { event: $event, itemId: item.id }) : null
|
|
64
62
|
"
|
|
65
63
|
>
|
|
66
64
|
{{ item.title }}
|
|
@@ -82,16 +80,16 @@
|
|
|
82
80
|
</template>
|
|
83
81
|
|
|
84
82
|
<style scoped>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
.transparent-treeview {
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
margin: 4px 0;
|
|
86
|
+
}
|
|
89
87
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
.treeview-item {
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
text-overflow: ellipsis;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
display: inline-block;
|
|
94
|
+
}
|
|
97
95
|
</style>
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg";
|
|
3
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const { itemProps } = defineProps({
|
|
6
|
+
itemProps: { type: Object, required: true },
|
|
7
|
+
});
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<ViewerGenericMeshEdgesOptions
|
|
12
|
-
:itemProps="itemProps"
|
|
13
|
-
:btn_image="SurfaceEdges"
|
|
14
|
-
/>
|
|
11
|
+
<ViewerGenericMeshEdgesOptions :itemProps="itemProps" :btn_image="SurfaceEdges" />
|
|
15
12
|
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import TriangulatedSurfaceEdgesPoints from "@ogw_front/assets/viewer_svgs/surface_points.svg";
|
|
3
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const { itemProps } = defineProps({
|
|
6
|
+
itemProps: { type: Object, required: true },
|
|
7
|
+
});
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import TriangulatedSurfaceTriangles from "@ogw_front/assets/viewer_svgs/surface_triangles.svg";
|
|
3
|
+
import ViewerSpecificPolygonsOptions from "@ogw_front/components/Viewer/PolygonalSurface/SpecificPolygonsOptions";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const { itemProps } = defineProps({
|
|
6
|
+
itemProps: { type: Object, required: true },
|
|
7
|
+
});
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import Launcher from "@ogw_front/components/Launcher";
|
|
3
|
+
import PackagesVersions from "@ogw_front/components/PackagesVersions";
|
|
4
|
+
import Stepper from "@ogw_front/components/Stepper";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { useInfraStore } from "@ogw_front/stores/infra";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const infraStore = useInfraStore();
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const { versions_schema } = defineProps({
|
|
11
|
+
versions_schema: { type: Object, required: true },
|
|
12
|
+
});
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import GlassCard from "@ogw_front/components/GlassCard";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const zScale = defineModel({ type: Number, default: 1 });
|
|
5
|
+
const { width } = defineProps({
|
|
6
|
+
width: { type: Number, default: 400 },
|
|
7
|
+
});
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const emit = defineEmits(["close"]);
|
|
10
10
|
</script>
|
|
11
11
|
<template>
|
|
12
12
|
<GlassCard
|
|
@@ -23,14 +23,7 @@
|
|
|
23
23
|
<v-container>
|
|
24
24
|
<v-row>
|
|
25
25
|
<v-col cols="12" class="py-2">
|
|
26
|
-
<v-slider
|
|
27
|
-
v-model="zScale"
|
|
28
|
-
:min="1"
|
|
29
|
-
:max="10"
|
|
30
|
-
:step="0.2"
|
|
31
|
-
label="Z Scale"
|
|
32
|
-
thumb-label
|
|
33
|
-
/>
|
|
26
|
+
<v-slider v-model="zScale" :min="1" :max="10" :step="0.2" label="Z Scale" thumb-label />
|
|
34
27
|
</v-col>
|
|
35
28
|
</v-row>
|
|
36
29
|
<v-row>
|
|
@@ -53,24 +46,22 @@
|
|
|
53
46
|
<template #actions>
|
|
54
47
|
<v-card-actions class="justify-center pb-4">
|
|
55
48
|
<v-btn variant="text" color="white" @click="emit('close')">Close</v-btn>
|
|
56
|
-
<v-btn variant="outlined" color="white" @click="emit('close')"
|
|
57
|
-
>Apply</v-btn
|
|
58
|
-
>
|
|
49
|
+
<v-btn variant="outlined" color="white" @click="emit('close')">Apply</v-btn>
|
|
59
50
|
</v-card-actions>
|
|
60
51
|
</template>
|
|
61
52
|
</GlassCard>
|
|
62
53
|
</template>
|
|
63
54
|
|
|
64
55
|
<style scoped>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
.z-scaling-menu {
|
|
57
|
+
position: absolute;
|
|
58
|
+
z-index: 2;
|
|
59
|
+
top: 90px;
|
|
60
|
+
right: 55px;
|
|
61
|
+
border-radius: 12px !important;
|
|
62
|
+
}
|
|
72
63
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
64
|
+
.custom-number-input :deep(.v-input__control) {
|
|
65
|
+
min-height: 48px;
|
|
66
|
+
}
|
|
76
67
|
</style>
|