@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,102 +1,94 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import ViewerOptionsAttributeSelector from "@ogw_front/components/Viewer/Options/AttributeSelector.vue";
|
|
3
|
+
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker.vue";
|
|
4
|
+
import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector.vue";
|
|
5
|
+
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const coloring_style_key = defineModel("coloring_style_key");
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const color = defineModel("color");
|
|
10
|
+
const textures = defineModel("textures");
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const vertex_attribute_name = defineModel("vertex_attribute_name");
|
|
13
|
+
const vertex_attribute_range = defineModel("vertex_attribute_range");
|
|
14
|
+
const vertex_attribute_color_map = defineModel("vertex_attribute_color_map");
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const edge_attribute_name = defineModel("edge_attribute_name");
|
|
17
|
+
const edge_attribute_range = defineModel("edge_attribute_range");
|
|
18
|
+
const edge_attribute_color_map = defineModel("edge_attribute_color_map");
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const cell_attribute_name = defineModel("cell_attribute_name");
|
|
21
|
+
const cell_attribute_range = defineModel("cell_attribute_range");
|
|
22
|
+
const cell_attribute_color_map = defineModel("cell_attribute_color_map");
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const polygon_attribute_name = defineModel("polygon_attribute_name");
|
|
25
|
+
const polygon_attribute_range = defineModel("polygon_attribute_range");
|
|
26
|
+
const polygon_attribute_color_map = defineModel("polygon_attribute_color_map");
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"polyhedron_attribute_color_map",
|
|
32
|
-
)
|
|
28
|
+
const polyhedron_attribute_name = defineModel("polyhedron_attribute_name");
|
|
29
|
+
const polyhedron_attribute_range = defineModel("polyhedron_attribute_range");
|
|
30
|
+
const polyhedron_attribute_color_map = defineModel("polyhedron_attribute_color_map");
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
const { id } = defineProps({
|
|
33
|
+
id: { type: String, required: true },
|
|
34
|
+
});
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
)
|
|
46
|
-
const has_polyhedra = computed(
|
|
47
|
-
() => polyhedron_attribute_range.value !== undefined,
|
|
48
|
-
)
|
|
36
|
+
const has_color = computed(() => color.value !== undefined);
|
|
37
|
+
const has_textures = computed(() => textures.value !== undefined);
|
|
38
|
+
const has_vertex = computed(() => vertex_attribute_range.value !== undefined);
|
|
39
|
+
const has_edge = computed(() => edge_attribute_range.value !== undefined);
|
|
40
|
+
const has_cells = computed(() => cell_attribute_range.value !== undefined);
|
|
41
|
+
const has_polygons = computed(() => polygon_attribute_range.value !== undefined);
|
|
42
|
+
const has_polyhedra = computed(() => polyhedron_attribute_range.value !== undefined);
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
44
|
+
const color_dict = { name: "Color", value: "color" };
|
|
45
|
+
const textures_dict = { name: "Textures", value: "textures" };
|
|
46
|
+
const vertex_dict = { name: "Vertex attribute", value: "vertex" };
|
|
47
|
+
const edge_dict = { name: "Edge attribute", value: "edge" };
|
|
48
|
+
const cell_dict = { name: "Cell attribute", value: "cell" };
|
|
49
|
+
const polygon_dict = { name: "Polygon attribute", value: "polygon" };
|
|
50
|
+
const polyhedron_dict = {
|
|
51
|
+
name: "Polyhedron attribute",
|
|
52
|
+
value: "polyhedron",
|
|
53
|
+
};
|
|
54
|
+
const coloring_styles = computed(() => {
|
|
55
|
+
const array = [];
|
|
56
|
+
if (has_color.value) {
|
|
57
|
+
array.push(color_dict);
|
|
58
|
+
}
|
|
59
|
+
if (has_textures.value) {
|
|
60
|
+
array.push(textures_dict);
|
|
61
|
+
}
|
|
62
|
+
if (has_vertex.value) {
|
|
63
|
+
array.push(vertex_dict);
|
|
64
|
+
}
|
|
65
|
+
if (has_edge.value) {
|
|
66
|
+
array.push(edge_dict);
|
|
67
|
+
}
|
|
68
|
+
if (has_cells.value) {
|
|
69
|
+
array.push(cell_dict);
|
|
70
|
+
}
|
|
71
|
+
if (has_polygons.value) {
|
|
72
|
+
array.push(polygon_dict);
|
|
73
|
+
}
|
|
74
|
+
if (has_polyhedra.value) {
|
|
75
|
+
array.push(polyhedron_dict);
|
|
59
76
|
}
|
|
60
|
-
const coloring_styles = computed(() => {
|
|
61
|
-
const array = []
|
|
62
|
-
if (has_color.value) {
|
|
63
|
-
array.push(color_dict)
|
|
64
|
-
}
|
|
65
|
-
if (has_textures.value) {
|
|
66
|
-
array.push(textures_dict)
|
|
67
|
-
}
|
|
68
|
-
if (has_vertex.value) {
|
|
69
|
-
array.push(vertex_dict)
|
|
70
|
-
}
|
|
71
|
-
if (has_edge.value) {
|
|
72
|
-
array.push(edge_dict)
|
|
73
|
-
}
|
|
74
|
-
if (has_cells.value) {
|
|
75
|
-
array.push(cell_dict)
|
|
76
|
-
}
|
|
77
|
-
if (has_polygons.value) {
|
|
78
|
-
array.push(polygon_dict)
|
|
79
|
-
}
|
|
80
|
-
if (has_polyhedra.value) {
|
|
81
|
-
array.push(polyhedron_dict)
|
|
82
|
-
}
|
|
83
77
|
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
const labels = array.map((coloring) => coloring.name);
|
|
79
|
+
const values = array.map((coloring) => coloring.value);
|
|
86
80
|
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
return { labels, values };
|
|
82
|
+
});
|
|
89
83
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
],
|
|
94
|
-
)
|
|
84
|
+
const coloring_style_label = ref(
|
|
85
|
+
coloring_styles.value.labels[coloring_styles.value.values.indexOf(coloring_style_key.value)],
|
|
86
|
+
);
|
|
95
87
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
watch(coloring_style_label, (value) => {
|
|
89
|
+
coloring_style_key.value =
|
|
90
|
+
coloring_styles.value.values[coloring_styles.value.labels.indexOf(value)];
|
|
91
|
+
});
|
|
100
92
|
</script>
|
|
101
93
|
<template>
|
|
102
94
|
<v-row justify="center" align="center">
|
|
@@ -104,11 +96,7 @@
|
|
|
104
96
|
<v-col>
|
|
105
97
|
<v-row justify="center" align="center">
|
|
106
98
|
<v-col cols="auto">
|
|
107
|
-
<v-icon
|
|
108
|
-
size="30"
|
|
109
|
-
icon="mdi-format-color-fill"
|
|
110
|
-
v-tooltip:left="'Coloring'"
|
|
111
|
-
/>
|
|
99
|
+
<v-icon size="30" icon="mdi-format-color-fill" v-tooltip:left="'Coloring'" />
|
|
112
100
|
</v-col>
|
|
113
101
|
<v-col>
|
|
114
102
|
<v-select
|
|
@@ -170,9 +158,7 @@
|
|
|
170
158
|
v-model:range="polyhedron_attribute_range"
|
|
171
159
|
v-model:colorMap="polyhedron_attribute_color_map"
|
|
172
160
|
:id="id"
|
|
173
|
-
:schema="
|
|
174
|
-
back_schemas.opengeodeweb_back.polyhedron_attribute_names
|
|
175
|
-
"
|
|
161
|
+
:schema="back_schemas.opengeodeweb_back.polyhedron_attribute_names"
|
|
176
162
|
/>
|
|
177
163
|
</template>
|
|
178
164
|
</v-col>
|
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import FileUploader from "@ogw_front/components/FileUploader";
|
|
3
|
+
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
4
|
+
import { useGeodeStore } from "@ogw_front/stores/geode";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const emit = defineEmits(["update_value"]);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const { id } = defineProps({
|
|
9
|
+
id: { type: String, required: true },
|
|
10
|
+
texture_id: { type: String, required: true },
|
|
11
|
+
texture_name: { type: String, required: true },
|
|
12
|
+
});
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const texture_name = ref("");
|
|
15
|
+
texture_name.value = texture_name;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const texture_id = ref("");
|
|
18
|
+
texture_id.value = texture_id;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const texture_coordinates = ref([]);
|
|
21
|
+
const geodeStore = useGeodeStore();
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
getTextureCoordinates();
|
|
25
|
+
});
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
27
|
+
function getTextureCoordinates() {
|
|
28
|
+
geodeStore.request(
|
|
29
|
+
back_schemas.opengeodeweb_back.texture_coordinates,
|
|
30
|
+
{ id: id },
|
|
31
|
+
{
|
|
32
|
+
response_function: (response) => {
|
|
33
|
+
texture_coordinates.value = response.texture_coordinates;
|
|
35
34
|
},
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
},
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
39
|
+
async function files_uploaded_event(value) {
|
|
40
|
+
if (value.length > 0) {
|
|
41
|
+
await geodeStore.request(
|
|
42
|
+
back_schemas.opengeodeweb_back.save_viewable_file,
|
|
43
|
+
{
|
|
44
|
+
schema: back_schemas.opengeodeweb_back.save_viewable_file,
|
|
45
|
+
params: {
|
|
46
|
+
geode_object_type: "RasterImage2D",
|
|
47
|
+
filename: value[0].name,
|
|
49
48
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
response_function: (response) => {
|
|
52
|
+
texture_id.value = response.id;
|
|
54
53
|
},
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
},
|
|
55
|
+
);
|
|
57
56
|
}
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
watch(texture_name, (value) => {
|
|
60
|
+
emit("update_value", { key: "texture_name", value });
|
|
61
|
+
});
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
watch(texture_id, (value) => {
|
|
64
|
+
emit("update_value", { key: "id", value });
|
|
65
|
+
});
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<style>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
.v-input__details {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
72
|
</style>
|
|
73
73
|
|
|
74
74
|
<template>
|
|
@@ -100,10 +100,6 @@
|
|
|
100
100
|
</v-col>
|
|
101
101
|
</v-badge>
|
|
102
102
|
<v-col v-if="texture_name == '' || texture_file_name == ''" cols="1">
|
|
103
|
-
<v-icon
|
|
104
|
-
size="20"
|
|
105
|
-
icon="mdi-close-circle"
|
|
106
|
-
v-tooltip:bottom="'Invalid texture'"
|
|
107
|
-
/>
|
|
103
|
+
<v-icon size="20" icon="mdi-close-circle" v-tooltip:bottom="'Invalid texture'" />
|
|
108
104
|
</v-col>
|
|
109
105
|
</template>
|
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const textures = defineModel();
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const { id } = defineProps({
|
|
7
|
+
id: { type: String, required: true },
|
|
8
|
+
});
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const internal_textures = ref([]);
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
onMounted(() => {
|
|
13
|
+
if (textures.value === null) {
|
|
14
|
+
internal_textures.value = [{ id: "", texture_name: "" }];
|
|
15
|
+
} else {
|
|
16
|
+
internal_textures.value = textures.value;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
20
|
+
function update_value_event($event, index) {
|
|
21
|
+
internal_textures.value[index][$event.key] = $event.value;
|
|
22
|
+
const filtered = internal_textures.value.filter(
|
|
23
|
+
(texture) => texture.texture_name !== "" && texture.id !== "",
|
|
24
|
+
);
|
|
25
|
+
if (filtered.length > 0) {
|
|
26
|
+
textures.value = filtered;
|
|
28
27
|
}
|
|
28
|
+
}
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
|
-
<v-row
|
|
33
|
-
v-for="(texture, index) in internal_textures"
|
|
34
|
-
:key="texture"
|
|
35
|
-
align="center"
|
|
36
|
-
>
|
|
32
|
+
<v-row v-for="(texture, index) in internal_textures" :key="texture" align="center">
|
|
37
33
|
<br />
|
|
38
34
|
<v-col cols="1" class="pa-0">
|
|
39
35
|
<v-icon
|
|
@@ -1,77 +1,70 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import PointSetPoints from "@ogw_front/assets/viewer_svgs/point_set_points.svg";
|
|
3
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem";
|
|
4
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector";
|
|
5
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style";
|
|
8
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const dataStyleStore = useDataStyleStore();
|
|
11
|
+
const hybridViewerStore = useHybridViewerStore();
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const { itemProps } = defineProps({
|
|
14
|
+
itemProps: { type: Object, required: true },
|
|
15
|
+
});
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
const id = toRef(() => itemProps.id);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
await dataStyleStore.setMeshPointsVertexAttributeColorMap(
|
|
69
|
-
id.value,
|
|
70
|
-
newValue,
|
|
71
|
-
)
|
|
72
|
-
hybridViewerStore.remoteRender()
|
|
73
|
-
},
|
|
74
|
-
})
|
|
19
|
+
const visibility = computed({
|
|
20
|
+
get: () => dataStyleStore.meshPointsVisibility(id.value),
|
|
21
|
+
set: async (newValue) => {
|
|
22
|
+
await dataStyleStore.setMeshPointsVisibility(id.value, newValue);
|
|
23
|
+
hybridViewerStore.remoteRender();
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
const size = computed({
|
|
27
|
+
get: () => dataStyleStore.meshPointsSize(id.value),
|
|
28
|
+
set: async (newValue) => {
|
|
29
|
+
await dataStyleStore.setMeshPointsSize(id.value, newValue);
|
|
30
|
+
hybridViewerStore.remoteRender();
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
const coloring_style_key = computed({
|
|
34
|
+
get: () => dataStyleStore.meshPointsActiveColoring(id.value),
|
|
35
|
+
set: async (newValue) => {
|
|
36
|
+
await dataStyleStore.setMeshPointsActiveColoring(id.value, newValue);
|
|
37
|
+
hybridViewerStore.remoteRender();
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
const color = computed({
|
|
41
|
+
get: () => dataStyleStore.meshPointsColor(id.value),
|
|
42
|
+
set: async (newValue) => {
|
|
43
|
+
await dataStyleStore.setMeshPointsColor(id.value, newValue);
|
|
44
|
+
hybridViewerStore.remoteRender();
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const vertex_attribute_name = computed({
|
|
48
|
+
get: () => dataStyleStore.meshPointsVertexAttributeName(id.value),
|
|
49
|
+
set: async (newValue) => {
|
|
50
|
+
await dataStyleStore.setMeshPointsVertexAttributeName(id.value, newValue);
|
|
51
|
+
hybridViewerStore.remoteRender();
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
const vertex_attribute_range = computed({
|
|
55
|
+
get: () => dataStyleStore.meshPointsVertexAttributeRange(id.value),
|
|
56
|
+
set: async (newValue) => {
|
|
57
|
+
await dataStyleStore.setMeshPointsVertexAttributeRange(id.value, newValue[0], newValue[1]);
|
|
58
|
+
hybridViewerStore.remoteRender();
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
const vertex_attribute_color_map = computed({
|
|
62
|
+
get: () => dataStyleStore.meshPointsVertexAttributeColorMap(id.value),
|
|
63
|
+
set: async (newValue) => {
|
|
64
|
+
await dataStyleStore.setMeshPointsVertexAttributeColorMap(id.value, newValue);
|
|
65
|
+
hybridViewerStore.remoteRender();
|
|
66
|
+
},
|
|
67
|
+
});
|
|
75
68
|
</script>
|
|
76
69
|
<template>
|
|
77
70
|
<ViewerContextMenuItem
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import PolygonalSurfaceEdges 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="PolygonalSurfaceEdges"
|
|
14
|
-
/>
|
|
11
|
+
<ViewerGenericMeshEdgesOptions :itemProps="itemProps" :btn_image="PolygonalSurfaceEdges" />
|
|
15
12
|
</template>
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import PolygonalSurfacePoints 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>
|
|
11
|
-
<ViewerGenericMeshPointsOptions
|
|
12
|
-
:itemProps="itemProps"
|
|
13
|
-
:btn_image="PolygonalSurfacePoints"
|
|
14
|
-
/>
|
|
11
|
+
<ViewerGenericMeshPointsOptions :itemProps="itemProps" :btn_image="PolygonalSurfacePoints" />
|
|
15
12
|
</template>
|