@geode/opengeodeweb-front 10.3.1 → 10.3.2-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.
Files changed (28) hide show
  1. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +0 -2
  2. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +0 -4
  3. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +59 -0
  4. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +31 -0
  5. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +68 -0
  6. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +71 -0
  7. package/app/components/Viewer/Options/AttributeColorBar.vue +2 -0
  8. package/app/components/Viewer/Options/AttributeSelector.vue +112 -0
  9. package/app/components/Viewer/Options/ColoringTypeSelector.vue +31 -29
  10. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +0 -2
  11. package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +0 -4
  12. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +0 -4
  13. package/internal/stores/data_style/mesh/cells/cell.js +20 -34
  14. package/internal/stores/data_style/mesh/cells/vertex.js +20 -34
  15. package/internal/stores/data_style/mesh/edges/edge.js +84 -86
  16. package/internal/stores/data_style/mesh/edges/vertex.js +20 -34
  17. package/internal/stores/data_style/mesh/points/vertex.js +20 -34
  18. package/internal/stores/data_style/mesh/polygons/polygon.js +23 -38
  19. package/internal/stores/data_style/mesh/polygons/vertex.js +20 -34
  20. package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +19 -32
  21. package/internal/stores/data_style/mesh/polyhedra/vertex.js +20 -34
  22. package/package.json +3 -3
  23. package/tests/integration/microservices/viewer/requirements.txt +1 -1
  24. package/app/components/Viewer/Options/CellAttributeSelector.vue +0 -87
  25. package/app/components/Viewer/Options/EdgeAttributeSelector.vue +0 -84
  26. package/app/components/Viewer/Options/PolygonAttributeSelector.vue +0 -85
  27. package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +0 -91
  28. package/app/components/Viewer/Options/VertexAttributeSelector.vue +0 -84
@@ -1,85 +0,0 @@
1
- <script setup>
2
- import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar"
3
- import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
4
- import { useGeodeStore } from "@ogw_front/stores/geode"
5
-
6
- const geodeStore = useGeodeStore()
7
-
8
- const polygon_attribute_name = defineModel("polygon_attribute_name", {
9
- type: String,
10
- })
11
- const polygon_attribute_range = defineModel("polygon_attribute_range", {
12
- type: Array,
13
- })
14
- const polygon_attribute_color_map = defineModel(
15
- "polygon_attribute_color_map",
16
- { type: String },
17
- )
18
- const polygon_attributes = ref([])
19
-
20
- const { id } = defineProps({
21
- id: { type: String, required: true },
22
- })
23
-
24
- const rangeMin = computed({
25
- get: () => polygon_attribute_range.value[0],
26
- set: (val) => {
27
- polygon_attribute_range.value = [val, polygon_attribute_range.value[1]]
28
- },
29
- })
30
- const rangeMax = computed({
31
- get: () => polygon_attribute_range.value[1],
32
- set: (val) => {
33
- polygon_attribute_range.value = [polygon_attribute_range.value[0], val]
34
- },
35
- })
36
-
37
- onMounted(() => {
38
- getPolygonAttributes()
39
- })
40
-
41
- function getPolygonAttributes() {
42
- geodeStore.request(
43
- back_schemas.opengeodeweb_back.polygon_attribute_names,
44
- { id: id },
45
- {
46
- response_function: (response) => {
47
- polygon_attributes.value = response.attributes
48
- },
49
- },
50
- )
51
- }
52
-
53
- const currentAttribute = computed(() =>
54
- polygon_attributes.value.find(
55
- (attr) => attr.attribute_name === polygon_attribute_name.value,
56
- ),
57
- )
58
-
59
- function resetRange() {
60
- if (currentAttribute.value) {
61
- polygon_attribute_range.value = [
62
- currentAttribute.value.min_value,
63
- currentAttribute.value.max_value,
64
- ]
65
- }
66
- }
67
- </script>
68
-
69
- <template>
70
- <v-select
71
- v-model="polygon_attribute_name"
72
- :items="polygon_attributes.map((attribute) => attribute.attribute_name)"
73
- item-title="attribute_name"
74
- item-value="attribute_name"
75
- label="Select an attribute"
76
- density="compact"
77
- />
78
- <ViewerOptionsAttributeColorBar
79
- v-if="polygon_attribute_name"
80
- v-model:minimum="rangeMin"
81
- v-model:maximum="rangeMax"
82
- v-model:colorMap="polygon_attribute_color_map"
83
- @reset="resetRange"
84
- />
85
- </template>
@@ -1,91 +0,0 @@
1
- <script setup>
2
- import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar"
3
- import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
4
- import { useGeodeStore } from "@ogw_front/stores/geode"
5
-
6
- const geodeStore = useGeodeStore()
7
-
8
- const polyhedron_attribute_name = defineModel("polyhedron_attribute_name", {
9
- type: String,
10
- })
11
- const polyhedron_attribute_range = defineModel("polyhedron_attribute_range", {
12
- type: Array,
13
- })
14
- const polyhedron_attribute_color_map = defineModel(
15
- "polyhedron_attribute_color_map",
16
- { type: String },
17
- )
18
- const polyhedron_attributes = ref([])
19
-
20
- const { id } = defineProps({
21
- id: { type: String, required: true },
22
- })
23
-
24
- const rangeMin = computed({
25
- get: () => polyhedron_attribute_range.value[0],
26
- set: (val) => {
27
- polyhedron_attribute_range.value = [
28
- val,
29
- polyhedron_attribute_range.value[1],
30
- ]
31
- },
32
- })
33
- const rangeMax = computed({
34
- get: () => polyhedron_attribute_range.value[1],
35
- set: (val) => {
36
- polyhedron_attribute_range.value = [
37
- polyhedron_attribute_range.value[0],
38
- val,
39
- ]
40
- },
41
- })
42
-
43
- onMounted(() => {
44
- getPolyhedronAttributes()
45
- })
46
-
47
- function getPolyhedronAttributes() {
48
- geodeStore.request(
49
- back_schemas.opengeodeweb_back.polyhedron_attribute_names,
50
- { id: id },
51
- {
52
- response_function: (response) => {
53
- polyhedron_attributes.value = response.attributes
54
- },
55
- },
56
- )
57
- }
58
-
59
- const currentAttribute = computed(() =>
60
- polyhedron_attributes.value.find(
61
- (attr) => attr.attribute_name === polyhedron_attribute_name.value,
62
- ),
63
- )
64
-
65
- function resetRange() {
66
- if (currentAttribute.value) {
67
- polyhedron_attribute_range.value = [
68
- currentAttribute.value.min_value,
69
- currentAttribute.value.max_value,
70
- ]
71
- }
72
- }
73
- </script>
74
-
75
- <template>
76
- <v-select
77
- v-model="polyhedron_attribute_name"
78
- :items="polyhedron_attributes.map((attribute) => attribute.attribute_name)"
79
- item-title="attribute_name"
80
- item-value="attribute_name"
81
- label="Select an attribute"
82
- density="compact"
83
- />
84
- <ViewerOptionsAttributeColorBar
85
- v-if="polyhedron_attribute_name"
86
- v-model:minimum="rangeMin"
87
- v-model:maximum="rangeMax"
88
- v-model:colorMap="polyhedron_attribute_color_map"
89
- @reset="resetRange"
90
- />
91
- </template>
@@ -1,84 +0,0 @@
1
- <script setup>
2
- import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar"
3
- import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
4
- import { useGeodeStore } from "@ogw_front/stores/geode"
5
-
6
- const geodeStore = useGeodeStore()
7
-
8
- const vertex_attribute_name = defineModel("vertex_attribute_name", {
9
- type: String,
10
- })
11
- const vertex_attribute_range = defineModel("vertex_attribute_range", {
12
- type: Array,
13
- })
14
- const vertex_attribute_color_map = defineModel("vertex_attribute_color_map", {
15
- type: String,
16
- })
17
- const vertex_attributes = ref([])
18
-
19
- const { id } = defineProps({
20
- id: { type: String, required: true },
21
- })
22
-
23
- const rangeMin = computed({
24
- get: () => vertex_attribute_range.value[0],
25
- set: (val) => {
26
- vertex_attribute_range.value = [val, vertex_attribute_range.value[1]]
27
- },
28
- })
29
- const rangeMax = computed({
30
- get: () => vertex_attribute_range.value[1],
31
- set: (val) => {
32
- vertex_attribute_range.value = [vertex_attribute_range.value[0], val]
33
- },
34
- })
35
-
36
- onMounted(() => {
37
- getVertexAttributes()
38
- })
39
-
40
- function getVertexAttributes() {
41
- geodeStore.request(
42
- back_schemas.opengeodeweb_back.vertex_attribute_names,
43
- { id: id },
44
- {
45
- response_function: (response) => {
46
- vertex_attributes.value = response.attributes
47
- },
48
- },
49
- )
50
- }
51
-
52
- const currentAttribute = computed(() =>
53
- vertex_attributes.value.find(
54
- (attr) => attr.attribute_name === vertex_attribute_name.value,
55
- ),
56
- )
57
-
58
- function resetRange() {
59
- if (currentAttribute.value) {
60
- vertex_attribute_range.value = [
61
- currentAttribute.value.min_value,
62
- currentAttribute.value.max_value,
63
- ]
64
- }
65
- }
66
- </script>
67
-
68
- <template>
69
- <v-select
70
- v-model="vertex_attribute_name"
71
- :items="vertex_attributes.map((attribute) => attribute.attribute_name)"
72
- item-title="attribute_name"
73
- item-value="attribute_name"
74
- label="Select an attribute"
75
- density="compact"
76
- />
77
- <ViewerOptionsAttributeColorBar
78
- v-if="vertex_attribute_name"
79
- v-model:minimum="rangeMin"
80
- v-model:maximum="rangeMax"
81
- v-model:colorMap="vertex_attribute_color_map"
82
- @reset="resetRange"
83
- />
84
- </template>