@geode/opengeodeweb-front 10.2.1-rc.2 → 10.2.1-rc.4
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/Carousel.vue +20 -20
- package/app/components/CrsSelector.vue +25 -25
- package/app/components/DragAndDrop.vue +31 -31
- package/app/components/ExtensionSelector.vue +56 -56
- package/app/components/FeedBack/ErrorBanner.vue +9 -9
- package/app/components/FeedBack/Snackers.vue +11 -11
- package/app/components/FileSelector.vue +9 -9
- package/app/components/FileUploader.vue +54 -54
- package/app/components/HybridRenderingView.vue +16 -16
- package/app/components/InfraConnected.vue +4 -4
- package/app/components/Inspector/InspectionButton.vue +16 -16
- package/app/components/Inspector/ResultPanel.vue +15 -15
- package/app/components/Launcher.vue +18 -18
- package/app/components/Loading.vue +26 -26
- package/app/components/MissingFilesSelector.vue +44 -44
- package/app/components/ObjectSelector.vue +50 -50
- package/app/components/PackagesVersions.vue +20 -20
- package/app/components/Recaptcha.vue +40 -40
- package/app/components/RemoteRenderingView.vue +22 -22
- package/app/components/Step.vue +46 -46
- package/app/components/Stepper.vue +8 -8
- package/app/components/VeaseViewToolbar.vue +28 -28
- package/app/components/ViewToolbar.vue +22 -22
- package/app/components/Viewer/BreadCrumb.vue +20 -20
- package/app/components/Viewer/ContextMenu.vue +34 -34
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +7 -7
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +42 -42
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +22 -22
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +40 -40
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +41 -41
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +20 -20
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +19 -19
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +12 -12
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +31 -31
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +8 -8
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +7 -7
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +7 -7
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +8 -8
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +7 -7
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +8 -8
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +7 -7
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +7 -7
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +7 -7
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +7 -7
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +7 -7
- package/app/components/Viewer/Options/CellAttributeSelector.vue +9 -9
- package/app/components/Viewer/Options/ColorPicker.vue +12 -12
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +66 -66
- package/app/components/Viewer/Options/EdgeAttributeSelector.vue +21 -21
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +9 -9
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +9 -9
- package/app/components/Viewer/Options/TextureItem.vue +37 -37
- package/app/components/Viewer/Options/TexturesSelector.vue +30 -30
- package/app/components/Viewer/Options/VertexAttributeSelector.vue +9 -9
- package/app/components/Viewer/Options/VisibilitySwitch.vue +4 -4
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +41 -41
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +7 -7
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +7 -7
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +22 -22
- package/app/components/Viewer/Solid/EdgesOptions.vue +7 -7
- package/app/components/Viewer/Solid/PointsOptions.vue +7 -7
- package/app/components/Viewer/Solid/PolygonsOptions.vue +7 -7
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +25 -25
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +8 -8
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +8 -8
- package/app/components/Viewer/Tree/ObjectTree.vue +39 -39
- package/app/components/Viewer/TreeComponent.vue +21 -21
- package/app/components/Viewer/TreeObject.vue +37 -37
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +7 -7
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +7 -7
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +8 -8
- package/app/components/Wrapper.vue +15 -15
- package/internal/stores/mesh/cells.js +3 -3
- package/internal/stores/mesh/edges.js +2 -2
- package/internal/stores/mesh/points.js +1 -1
- package/internal/stores/mesh/polygons.js +3 -3
- package/internal/stores/mesh/polyhedra.js +16 -16
- package/package.json +1 -1
- package/tests/integration/microservices/back/requirements.txt +1 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +49 -9
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +50 -18
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +6 -2
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +35 -7
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +62 -21
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +82 -46
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +7 -1
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +10 -2
- 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 +10 -2
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +6 -2
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +10 -2
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-select
|
|
3
|
-
v-model="vertex_attribute_name"
|
|
4
|
-
:items="vertex_attribute_names"
|
|
5
|
-
label="Select an attribute"
|
|
6
|
-
density="compact"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
1
|
<script setup>
|
|
11
2
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
12
3
|
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
@@ -50,3 +41,12 @@
|
|
|
50
41
|
)
|
|
51
42
|
}
|
|
52
43
|
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<v-select
|
|
47
|
+
v-model="vertex_attribute_name"
|
|
48
|
+
:items="vertex_attribute_names"
|
|
49
|
+
label="Select an attribute"
|
|
50
|
+
density="compact"
|
|
51
|
+
/>
|
|
52
|
+
</template>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const visibility = defineModel()
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<template>
|
|
2
6
|
<v-row class="pa-0" align="center">
|
|
3
7
|
<v-col cols="auto" justify="center">
|
|
@@ -8,7 +12,3 @@
|
|
|
8
12
|
</v-col>
|
|
9
13
|
</v-row>
|
|
10
14
|
</template>
|
|
11
|
-
|
|
12
|
-
<script setup>
|
|
13
|
-
const visibility = defineModel()
|
|
14
|
-
</script>
|
|
@@ -1,44 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerContextMenuItem
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
tooltip="Points options"
|
|
5
|
-
:btn_image="PointSetPoints"
|
|
6
|
-
>
|
|
7
|
-
<template #options>
|
|
8
|
-
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
9
|
-
<template v-if="visibility">
|
|
10
|
-
<v-row class="pa-0" align="center">
|
|
11
|
-
<v-divider />
|
|
12
|
-
<v-col cols="auto" justify="center">
|
|
13
|
-
<v-icon size="30" icon="mdi-ruler" v-tooltip:left="'Size'" />
|
|
14
|
-
</v-col>
|
|
15
|
-
<v-col justify="center">
|
|
16
|
-
<v-slider
|
|
17
|
-
v-model="size"
|
|
18
|
-
hide-details
|
|
19
|
-
min="0"
|
|
20
|
-
max="20"
|
|
21
|
-
step="2"
|
|
22
|
-
thumb-color="black"
|
|
23
|
-
ticks
|
|
24
|
-
/>
|
|
25
|
-
</v-col>
|
|
26
|
-
</v-row>
|
|
27
|
-
<v-row>
|
|
28
|
-
<v-col>
|
|
29
|
-
<ViewerOptionsColoringTypeSelector
|
|
30
|
-
:id="id"
|
|
31
|
-
v-model:coloring_style_key="coloring_style_key"
|
|
32
|
-
v-model:color="color"
|
|
33
|
-
v-model:vertex_attribute="vertex_attribute"
|
|
34
|
-
/>
|
|
35
|
-
</v-col>
|
|
36
|
-
</v-row>
|
|
37
|
-
</template>
|
|
38
|
-
</template>
|
|
39
|
-
</ViewerContextMenuItem>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
1
|
<script setup>
|
|
43
2
|
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
44
3
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
@@ -93,3 +52,44 @@
|
|
|
93
52
|
},
|
|
94
53
|
})
|
|
95
54
|
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<ViewerContextMenuItem
|
|
58
|
+
:itemProps="props.itemProps"
|
|
59
|
+
tooltip="Points options"
|
|
60
|
+
:btn_image="PointSetPoints"
|
|
61
|
+
>
|
|
62
|
+
<template #options>
|
|
63
|
+
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
64
|
+
<template v-if="visibility">
|
|
65
|
+
<v-row class="pa-0" align="center">
|
|
66
|
+
<v-divider />
|
|
67
|
+
<v-col cols="auto" justify="center">
|
|
68
|
+
<v-icon size="30" icon="mdi-ruler" v-tooltip:left="'Size'" />
|
|
69
|
+
</v-col>
|
|
70
|
+
<v-col justify="center">
|
|
71
|
+
<v-slider
|
|
72
|
+
v-model="size"
|
|
73
|
+
hide-details
|
|
74
|
+
min="0"
|
|
75
|
+
max="20"
|
|
76
|
+
step="2"
|
|
77
|
+
thumb-color="black"
|
|
78
|
+
ticks
|
|
79
|
+
/>
|
|
80
|
+
</v-col>
|
|
81
|
+
</v-row>
|
|
82
|
+
<v-row>
|
|
83
|
+
<v-col>
|
|
84
|
+
<ViewerOptionsColoringTypeSelector
|
|
85
|
+
:id="id"
|
|
86
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
87
|
+
v-model:color="color"
|
|
88
|
+
v-model:vertex_attribute="vertex_attribute"
|
|
89
|
+
/>
|
|
90
|
+
</v-col>
|
|
91
|
+
</v-row>
|
|
92
|
+
</template>
|
|
93
|
+
</template>
|
|
94
|
+
</ViewerContextMenuItem>
|
|
95
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshEdgesOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="PolygonalSurfaceEdges"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
3
|
import PolygonalSurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshEdgesOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="PolygonalSurfaceEdges"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPointsOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="PolygonalSurfacePoints"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
3
|
import PolygonalSurfacePoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPointsOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="PolygonalSurfacePoints"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerContextMenuItem
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:tooltip="props.tooltip"
|
|
5
|
-
:btn_image="PolygonalSurfacePolygons"
|
|
6
|
-
>
|
|
7
|
-
<template #options>
|
|
8
|
-
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
9
|
-
<template v-if="visibility">
|
|
10
|
-
<ViewerOptionsColoringTypeSelector
|
|
11
|
-
:id="id"
|
|
12
|
-
v-model:coloring_style_key="coloring_style_key"
|
|
13
|
-
v-model:color="color"
|
|
14
|
-
v-model:textures="textures"
|
|
15
|
-
v-model:vertex_attribute="vertex_attribute"
|
|
16
|
-
v-model:polygon_attribute="polygon_attribute"
|
|
17
|
-
/>
|
|
18
|
-
</template>
|
|
19
|
-
</template>
|
|
20
|
-
</ViewerContextMenuItem>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
1
|
<script setup>
|
|
24
2
|
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
25
3
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
@@ -82,3 +60,25 @@
|
|
|
82
60
|
},
|
|
83
61
|
})
|
|
84
62
|
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<ViewerContextMenuItem
|
|
66
|
+
:itemProps="props.itemProps"
|
|
67
|
+
:tooltip="props.tooltip"
|
|
68
|
+
:btn_image="PolygonalSurfacePolygons"
|
|
69
|
+
>
|
|
70
|
+
<template #options>
|
|
71
|
+
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
72
|
+
<template v-if="visibility">
|
|
73
|
+
<ViewerOptionsColoringTypeSelector
|
|
74
|
+
:id="id"
|
|
75
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
76
|
+
v-model:color="color"
|
|
77
|
+
v-model:textures="textures"
|
|
78
|
+
v-model:vertex_attribute="vertex_attribute"
|
|
79
|
+
v-model:polygon_attribute="polygon_attribute"
|
|
80
|
+
/>
|
|
81
|
+
</template>
|
|
82
|
+
</template>
|
|
83
|
+
</ViewerContextMenuItem>
|
|
84
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshEdgesOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="SolidEdges"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
3
|
import SolidEdges from "@ogw_front/assets/viewer_svgs/solid_edges.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshEdgesOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="SolidEdges"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPointsOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="SolidPoints"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
3
|
import SolidPoints from "@ogw_front/assets/viewer_svgs/solid_points.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPointsOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="SolidPoints"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPolygonsOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="SolidFacets"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
10
3
|
import SolidFacets from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPolygonsOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="SolidFacets"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerContextMenuItem
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:tooltip="props.tooltip"
|
|
5
|
-
:btn_image="SolidPolyhedra"
|
|
6
|
-
>
|
|
7
|
-
<template #options>
|
|
8
|
-
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
9
|
-
<template v-if="visibility">
|
|
10
|
-
<ViewerOptionsColoringTypeSelector
|
|
11
|
-
:id="id"
|
|
12
|
-
v-model:coloring_style_key="coloring_style_key"
|
|
13
|
-
v-model:color="color"
|
|
14
|
-
v-model:vertex_attribute="vertex_attribute"
|
|
15
|
-
v-model:polyhedron_attribute="polyhedron_attribute"
|
|
16
|
-
/>
|
|
17
|
-
</template>
|
|
18
|
-
</template>
|
|
19
|
-
</ViewerContextMenuItem>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
1
|
<script setup>
|
|
23
2
|
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
24
3
|
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
@@ -60,17 +39,38 @@
|
|
|
60
39
|
},
|
|
61
40
|
})
|
|
62
41
|
const vertex_attribute = computed({
|
|
63
|
-
get: () => dataStyleStore.
|
|
42
|
+
get: () => dataStyleStore.meshPolyhedraVertexAttribute(id.value),
|
|
64
43
|
set: (newValue) => {
|
|
65
|
-
dataStyleStore.
|
|
44
|
+
dataStyleStore.setMeshPolyhedraVertexAttribute(id.value, newValue)
|
|
66
45
|
hybridViewerStore.remoteRender()
|
|
67
46
|
},
|
|
68
47
|
})
|
|
69
48
|
const polyhedron_attribute = computed({
|
|
70
|
-
get: () => dataStyleStore.
|
|
49
|
+
get: () => dataStyleStore.meshPolyhedraPolyhedronAttribute(id.value),
|
|
71
50
|
set: (newValue) => {
|
|
72
|
-
dataStyleStore.
|
|
51
|
+
dataStyleStore.setMeshPolyhedraPolyhedronAttribute(id.value, newValue)
|
|
73
52
|
hybridViewerStore.remoteRender()
|
|
74
53
|
},
|
|
75
54
|
})
|
|
76
55
|
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<ViewerContextMenuItem
|
|
59
|
+
:itemProps="props.itemProps"
|
|
60
|
+
:tooltip="props.tooltip"
|
|
61
|
+
:btn_image="SolidPolyhedra"
|
|
62
|
+
>
|
|
63
|
+
<template #options>
|
|
64
|
+
<ViewerOptionsVisibilitySwitch v-model="visibility" />
|
|
65
|
+
<template v-if="visibility">
|
|
66
|
+
<ViewerOptionsColoringTypeSelector
|
|
67
|
+
:id="id"
|
|
68
|
+
v-model:coloring_style_key="coloring_style_key"
|
|
69
|
+
v-model:color="color"
|
|
70
|
+
v-model:vertex_attribute="vertex_attribute"
|
|
71
|
+
v-model:polyhedron_attribute="polyhedron_attribute"
|
|
72
|
+
/>
|
|
73
|
+
</template>
|
|
74
|
+
</template>
|
|
75
|
+
</ViewerContextMenuItem>
|
|
76
|
+
</template>
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPolyhedraOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="TetrahedralSolidTetrahedra"
|
|
5
|
-
tooltip="Tetrahedra options"
|
|
6
|
-
/>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
1
|
<script setup>
|
|
10
2
|
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions"
|
|
11
3
|
import TetrahedralSolidTetrahedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
@@ -14,3 +6,11 @@
|
|
|
14
6
|
itemProps: { type: Object, required: true },
|
|
15
7
|
})
|
|
16
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPolyhedraOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="TetrahedralSolidTetrahedra"
|
|
14
|
+
tooltip="Tetrahedra options"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPolygonsOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="TetrahedralSolidTriangles"
|
|
5
|
-
tooltip="Triangles options"
|
|
6
|
-
/>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
1
|
<script setup>
|
|
10
2
|
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
11
3
|
import TetrahedralSolidTriangles from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
@@ -14,3 +6,11 @@
|
|
|
14
6
|
itemProps: { type: Object, required: true },
|
|
15
7
|
})
|
|
16
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPolygonsOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="TetrahedralSolidTriangles"
|
|
14
|
+
tooltip="Triangles options"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ViewerBreadCrumb from "@ogw_front/components/Viewer/BreadCrumb"
|
|
3
|
+
import ViewerTreeObject from "@ogw_front/components/Viewer/TreeObject"
|
|
4
|
+
import ViewerTreeComponent from "@ogw_front/components/Viewer/TreeComponent"
|
|
5
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
6
|
+
|
|
7
|
+
const treeviewStore = useTreeviewStore()
|
|
8
|
+
const emit = defineEmits(["show-menu"])
|
|
9
|
+
|
|
10
|
+
function handleTreeMenu({ event, itemId }) {
|
|
11
|
+
emit("show-menu", { event, itemId })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function onResizeStart(event) {
|
|
15
|
+
const startWidth = treeviewStore.panelWidth
|
|
16
|
+
const startX = event.clientX
|
|
17
|
+
const resize = (e) => {
|
|
18
|
+
const deltaX = e.clientX - startX
|
|
19
|
+
const newWidth = Math.max(
|
|
20
|
+
150,
|
|
21
|
+
Math.min(startWidth + deltaX, window.innerWidth),
|
|
22
|
+
)
|
|
23
|
+
treeviewStore.setPanelWidth(newWidth)
|
|
24
|
+
document.body.style.userSelect = "none"
|
|
25
|
+
}
|
|
26
|
+
const stopResize = () => {
|
|
27
|
+
document.removeEventListener("mousemove", resize)
|
|
28
|
+
document.removeEventListener("mouseup", stopResize)
|
|
29
|
+
document.body.style.userSelect = ""
|
|
30
|
+
}
|
|
31
|
+
document.addEventListener("mousemove", resize)
|
|
32
|
+
document.addEventListener("mouseup", stopResize)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
onMounted(() => {})
|
|
36
|
+
|
|
37
|
+
onUnmounted(() => {})
|
|
38
|
+
</script>
|
|
39
|
+
|
|
1
40
|
<template>
|
|
2
41
|
<v-container
|
|
3
42
|
class="treeview-container"
|
|
@@ -38,45 +77,6 @@
|
|
|
38
77
|
</v-container>
|
|
39
78
|
</template>
|
|
40
79
|
|
|
41
|
-
<script setup>
|
|
42
|
-
import ViewerBreadCrumb from "@ogw_front/components/Viewer/BreadCrumb"
|
|
43
|
-
import ViewerTreeObject from "@ogw_front/components/Viewer/TreeObject"
|
|
44
|
-
import ViewerTreeComponent from "@ogw_front/components/Viewer/TreeComponent"
|
|
45
|
-
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
46
|
-
|
|
47
|
-
const treeviewStore = useTreeviewStore()
|
|
48
|
-
const emit = defineEmits(["show-menu"])
|
|
49
|
-
|
|
50
|
-
function handleTreeMenu({ event, itemId }) {
|
|
51
|
-
emit("show-menu", { event, itemId })
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function onResizeStart(event) {
|
|
55
|
-
const startWidth = treeviewStore.panelWidth
|
|
56
|
-
const startX = event.clientX
|
|
57
|
-
const resize = (e) => {
|
|
58
|
-
const deltaX = e.clientX - startX
|
|
59
|
-
const newWidth = Math.max(
|
|
60
|
-
150,
|
|
61
|
-
Math.min(startWidth + deltaX, window.innerWidth),
|
|
62
|
-
)
|
|
63
|
-
treeviewStore.setPanelWidth(newWidth)
|
|
64
|
-
document.body.style.userSelect = "none"
|
|
65
|
-
}
|
|
66
|
-
const stopResize = () => {
|
|
67
|
-
document.removeEventListener("mousemove", resize)
|
|
68
|
-
document.removeEventListener("mouseup", stopResize)
|
|
69
|
-
document.body.style.userSelect = ""
|
|
70
|
-
}
|
|
71
|
-
document.addEventListener("mousemove", resize)
|
|
72
|
-
document.addEventListener("mouseup", stopResize)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
onMounted(() => {})
|
|
76
|
-
|
|
77
|
-
onUnmounted(() => {})
|
|
78
|
-
</script>
|
|
79
|
-
|
|
80
80
|
<style scoped>
|
|
81
81
|
.treeview-container {
|
|
82
82
|
position: absolute;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-treeview
|
|
3
|
-
v-model:selected="mesh_components_selection"
|
|
4
|
-
:items="items"
|
|
5
|
-
class="transparent-treeview"
|
|
6
|
-
item-value="id"
|
|
7
|
-
select-strategy="classic"
|
|
8
|
-
selectable
|
|
9
|
-
>
|
|
10
|
-
<template #title="{ item }">
|
|
11
|
-
<span
|
|
12
|
-
class="treeview-item"
|
|
13
|
-
@contextmenu.prevent.stop="
|
|
14
|
-
emit('show-menu', { event: $event, itemId: item })
|
|
15
|
-
"
|
|
16
|
-
>{{ item.title }}</span
|
|
17
|
-
>
|
|
18
|
-
</template>
|
|
19
|
-
</v-treeview>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
1
|
<script setup>
|
|
23
2
|
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
24
3
|
import { useDataStore } from "@ogw_front/stores/data"
|
|
@@ -120,6 +99,27 @@
|
|
|
120
99
|
}
|
|
121
100
|
</script>
|
|
122
101
|
|
|
102
|
+
<template>
|
|
103
|
+
<v-treeview
|
|
104
|
+
v-model:selected="mesh_components_selection"
|
|
105
|
+
:items="items"
|
|
106
|
+
class="transparent-treeview"
|
|
107
|
+
item-value="id"
|
|
108
|
+
select-strategy="classic"
|
|
109
|
+
selectable
|
|
110
|
+
>
|
|
111
|
+
<template #title="{ item }">
|
|
112
|
+
<span
|
|
113
|
+
class="treeview-item"
|
|
114
|
+
@contextmenu.prevent.stop="
|
|
115
|
+
emit('show-menu', { event: $event, itemId: item })
|
|
116
|
+
"
|
|
117
|
+
>{{ item.title }}</span
|
|
118
|
+
>
|
|
119
|
+
</template>
|
|
120
|
+
</v-treeview>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
123
|
<style scoped>
|
|
124
124
|
.treeview-item {
|
|
125
125
|
white-space: nowrap;
|
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-treeview
|
|
3
|
-
v-model:selected="treeviewStore.selection"
|
|
4
|
-
:items="treeviewStore.items"
|
|
5
|
-
return-object
|
|
6
|
-
class="transparent-treeview"
|
|
7
|
-
item-value="id"
|
|
8
|
-
select-strategy="classic"
|
|
9
|
-
selectable
|
|
10
|
-
>
|
|
11
|
-
<template #title="{ item }">
|
|
12
|
-
<span
|
|
13
|
-
class="treeview-item"
|
|
14
|
-
@contextmenu.prevent.stop="
|
|
15
|
-
isLeafNode(item)
|
|
16
|
-
? emit('show-menu', { event: $event, itemId: item.id })
|
|
17
|
-
: null
|
|
18
|
-
"
|
|
19
|
-
>
|
|
20
|
-
{{ item.title }}
|
|
21
|
-
</span>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<template #append="{ item }">
|
|
25
|
-
<v-btn
|
|
26
|
-
v-if="isModel(item)"
|
|
27
|
-
icon="mdi-magnify-expand"
|
|
28
|
-
size="medium"
|
|
29
|
-
class="ml-8"
|
|
30
|
-
variant="text"
|
|
31
|
-
v-tooltip="'Model\'s mesh components'"
|
|
32
|
-
@click.stop="treeviewStore.displayAdditionalTree(item.id)"
|
|
33
|
-
/>
|
|
34
|
-
</template>
|
|
35
|
-
</v-treeview>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
1
|
<script setup>
|
|
39
2
|
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
40
3
|
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
@@ -84,6 +47,43 @@
|
|
|
84
47
|
})
|
|
85
48
|
</script>
|
|
86
49
|
|
|
50
|
+
<template>
|
|
51
|
+
<v-treeview
|
|
52
|
+
v-model:selected="treeviewStore.selection"
|
|
53
|
+
:items="treeviewStore.items"
|
|
54
|
+
return-object
|
|
55
|
+
class="transparent-treeview"
|
|
56
|
+
item-value="id"
|
|
57
|
+
select-strategy="classic"
|
|
58
|
+
selectable
|
|
59
|
+
>
|
|
60
|
+
<template #title="{ item }">
|
|
61
|
+
<span
|
|
62
|
+
class="treeview-item"
|
|
63
|
+
@contextmenu.prevent.stop="
|
|
64
|
+
isLeafNode(item)
|
|
65
|
+
? emit('show-menu', { event: $event, itemId: item.id })
|
|
66
|
+
: null
|
|
67
|
+
"
|
|
68
|
+
>
|
|
69
|
+
{{ item.title }}
|
|
70
|
+
</span>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<template #append="{ item }">
|
|
74
|
+
<v-btn
|
|
75
|
+
v-if="isModel(item)"
|
|
76
|
+
icon="mdi-magnify-expand"
|
|
77
|
+
size="medium"
|
|
78
|
+
class="ml-8"
|
|
79
|
+
variant="text"
|
|
80
|
+
v-tooltip="'Model\'s mesh components'"
|
|
81
|
+
@click.stop="treeviewStore.displayAdditionalTree(item.id)"
|
|
82
|
+
/>
|
|
83
|
+
</template>
|
|
84
|
+
</v-treeview>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
87
|
<style scoped>
|
|
88
88
|
.transparent-treeview {
|
|
89
89
|
background-color: transparent;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshEdgesOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="SurfaceEdges"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
3
|
import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshEdgesOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="SurfaceEdges"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ViewerGenericMeshPointsOptions
|
|
3
|
-
:itemProps="props.itemProps"
|
|
4
|
-
:btn_image="TriangulatedSurfaceEdgesPoints"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
2
|
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
3
|
import TriangulatedSurfaceEdgesPoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
@@ -13,3 +6,10 @@
|
|
|
13
6
|
itemProps: { type: Object, required: true },
|
|
14
7
|
})
|
|
15
8
|
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ViewerGenericMeshPointsOptions
|
|
12
|
+
:itemProps="props.itemProps"
|
|
13
|
+
:btn_image="TriangulatedSurfaceEdgesPoints"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|