@geode/opengeodeweb-front 10.29.0-rc.2 → 10.29.0-rc.3
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/Viewer/Generic/Model/BlocksOptions.vue +3 -3
- package/app/components/Viewer/Generic/Model/CornersOptions.vue +3 -4
- package/app/components/Viewer/Generic/Model/LinesOptions.vue +3 -3
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +5 -1
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +3 -3
- package/app/components/Viewer/ObjectTree/Views/ModelComponents.vue +6 -2
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ const hybridViewerStore = useHybridViewerStore();
|
|
|
19
19
|
const blocksVisibility = computed({
|
|
20
20
|
get: () => dataStyleStore.modelComponentTypeVisibility(modelId, "Block"),
|
|
21
21
|
set: async (newValue) => {
|
|
22
|
-
await dataStyleStore.
|
|
22
|
+
await dataStyleStore.setModelBlocksVisibility(modelId, targetBlockIds, newValue);
|
|
23
23
|
hybridViewerStore.remoteRender();
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -36,7 +36,7 @@ const blockVisibility = computed({
|
|
|
36
36
|
const blocksColor = computed({
|
|
37
37
|
get: () => dataStyleStore.modelComponentTypeColor(modelId, "Block"),
|
|
38
38
|
set: async (color) => {
|
|
39
|
-
await dataStyleStore.
|
|
39
|
+
await dataStyleStore.setModelBlocksColor(modelId, targetBlockIds, color);
|
|
40
40
|
hybridViewerStore.remoteRender();
|
|
41
41
|
},
|
|
42
42
|
});
|
|
@@ -52,7 +52,7 @@ const blockColor = computed({
|
|
|
52
52
|
const blocksActiveColoring = computed({
|
|
53
53
|
get: () => dataStyleStore.getModelComponentTypeActiveColoring(modelId, "Block"),
|
|
54
54
|
set: async (coloringType) => {
|
|
55
|
-
await dataStyleStore.
|
|
55
|
+
await dataStyleStore.setModelBlocksActiveColoring(modelId, targetBlockIds, coloringType);
|
|
56
56
|
hybridViewerStore.remoteRender();
|
|
57
57
|
},
|
|
58
58
|
});
|
|
@@ -13,14 +13,13 @@ const { modelId, cornerId, targetCornerIds } = defineProps({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const dataStyleStore = useDataStyleStore();
|
|
16
|
-
console.log("CornersOptions setup!");
|
|
17
16
|
const hybridViewerStore = useHybridViewerStore();
|
|
18
17
|
|
|
19
18
|
// Visibility
|
|
20
19
|
const cornersVisibility = computed({
|
|
21
20
|
get: () => dataStyleStore.modelComponentTypeVisibility(modelId, "Corner"),
|
|
22
21
|
set: async (newValue) => {
|
|
23
|
-
await dataStyleStore.
|
|
22
|
+
await dataStyleStore.setModelCornersVisibility(modelId, targetCornerIds, newValue);
|
|
24
23
|
hybridViewerStore.remoteRender();
|
|
25
24
|
},
|
|
26
25
|
});
|
|
@@ -37,7 +36,7 @@ const cornerVisibility = computed({
|
|
|
37
36
|
const cornersColor = computed({
|
|
38
37
|
get: () => dataStyleStore.modelComponentTypeColor(modelId, "Corner"),
|
|
39
38
|
set: async (color) => {
|
|
40
|
-
await dataStyleStore.
|
|
39
|
+
await dataStyleStore.setModelCornersColor(modelId, targetCornerIds, color);
|
|
41
40
|
hybridViewerStore.remoteRender();
|
|
42
41
|
},
|
|
43
42
|
});
|
|
@@ -53,7 +52,7 @@ const cornerColor = computed({
|
|
|
53
52
|
const cornersActiveColoring = computed({
|
|
54
53
|
get: () => dataStyleStore.getModelComponentTypeActiveColoring(modelId, "Corner"),
|
|
55
54
|
set: async (coloringType) => {
|
|
56
|
-
await dataStyleStore.
|
|
55
|
+
await dataStyleStore.setModelCornersActiveColoring(modelId, targetCornerIds, coloringType);
|
|
57
56
|
hybridViewerStore.remoteRender();
|
|
58
57
|
},
|
|
59
58
|
});
|
|
@@ -19,7 +19,7 @@ const hybridViewerStore = useHybridViewerStore();
|
|
|
19
19
|
const linesVisibility = computed({
|
|
20
20
|
get: () => dataStyleStore.modelComponentTypeVisibility(modelId, "Line"),
|
|
21
21
|
set: async (newValue) => {
|
|
22
|
-
await dataStyleStore.
|
|
22
|
+
await dataStyleStore.setModelLinesVisibility(modelId, targetLineIds, newValue);
|
|
23
23
|
hybridViewerStore.remoteRender();
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -36,7 +36,7 @@ const lineVisibility = computed({
|
|
|
36
36
|
const linesColor = computed({
|
|
37
37
|
get: () => dataStyleStore.modelComponentTypeColor(modelId, "Line"),
|
|
38
38
|
set: async (color) => {
|
|
39
|
-
await dataStyleStore.
|
|
39
|
+
await dataStyleStore.setModelLinesColor(modelId, targetLineIds, color);
|
|
40
40
|
hybridViewerStore.remoteRender();
|
|
41
41
|
},
|
|
42
42
|
});
|
|
@@ -52,7 +52,7 @@ const lineColor = computed({
|
|
|
52
52
|
const linesActiveColoring = computed({
|
|
53
53
|
get: () => dataStyleStore.getModelComponentTypeActiveColoring(modelId, "Line"),
|
|
54
54
|
set: async (coloringType) => {
|
|
55
|
-
await dataStyleStore.
|
|
55
|
+
await dataStyleStore.setModelLinesActiveColoring(modelId, targetLineIds, coloringType);
|
|
56
56
|
hybridViewerStore.remoteRender();
|
|
57
57
|
},
|
|
58
58
|
});
|
|
@@ -63,9 +63,13 @@ watch(
|
|
|
63
63
|
|
|
64
64
|
const targetComponentIds = ref([]);
|
|
65
65
|
watch(
|
|
66
|
-
() => [modelId.value, componentType.value],
|
|
66
|
+
() => [modelId.value, componentType.value, itemProps.meta_data.targetComponentIds],
|
|
67
67
|
async () => {
|
|
68
68
|
targetComponentIds.value = [];
|
|
69
|
+
if (itemProps.meta_data.targetComponentIds) {
|
|
70
|
+
targetComponentIds.value = itemProps.meta_data.targetComponentIds;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
69
73
|
if (componentType.value && modelId.value) {
|
|
70
74
|
const currentModelId = modelId.value;
|
|
71
75
|
const currentType = componentType.value;
|
|
@@ -19,7 +19,7 @@ const hybridViewerStore = useHybridViewerStore();
|
|
|
19
19
|
const surfacesVisibility = computed({
|
|
20
20
|
get: () => dataStyleStore.modelComponentTypeVisibility(modelId, "Surface"),
|
|
21
21
|
set: async (newValue) => {
|
|
22
|
-
await dataStyleStore.
|
|
22
|
+
await dataStyleStore.setModelSurfacesVisibility(modelId, targetSurfaceIds, newValue);
|
|
23
23
|
hybridViewerStore.remoteRender();
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -36,7 +36,7 @@ const surfaceVisibility = computed({
|
|
|
36
36
|
const surfacesColor = computed({
|
|
37
37
|
get: () => dataStyleStore.modelComponentTypeColor(modelId, "Surface"),
|
|
38
38
|
set: async (color) => {
|
|
39
|
-
await dataStyleStore.
|
|
39
|
+
await dataStyleStore.setModelSurfacesColor(modelId, targetSurfaceIds, color);
|
|
40
40
|
hybridViewerStore.remoteRender();
|
|
41
41
|
},
|
|
42
42
|
});
|
|
@@ -52,7 +52,7 @@ const surfaceColor = computed({
|
|
|
52
52
|
const surfacesActiveColoring = computed({
|
|
53
53
|
get: () => dataStyleStore.getModelComponentTypeActiveColoring(modelId, "Surface"),
|
|
54
54
|
set: async (coloringType) => {
|
|
55
|
-
await dataStyleStore.
|
|
55
|
+
await dataStyleStore.setModelSurfacesActiveColoring(modelId, targetSurfaceIds, coloringType);
|
|
56
56
|
hybridViewerStore.remoteRender();
|
|
57
57
|
},
|
|
58
58
|
});
|
|
@@ -79,7 +79,7 @@ const itemsForTreeView = computed(() => {
|
|
|
79
79
|
for (const category of filteredCategories.value) {
|
|
80
80
|
result.push({
|
|
81
81
|
...category,
|
|
82
|
-
children: sortAndFormatItems(componentsCache.value
|
|
82
|
+
children: sortAndFormatItems(componentsCache.value[category.id], sortType.value),
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
return result;
|
|
@@ -87,12 +87,16 @@ const itemsForTreeView = computed(() => {
|
|
|
87
87
|
|
|
88
88
|
function showContextMenu(event, item) {
|
|
89
89
|
const actualItem = item.raw || item;
|
|
90
|
+
const typeId = actualItem.category || actualItem.id;
|
|
91
|
+
const typeItem = itemsForTreeView.value.find((type) => type.id === typeId);
|
|
92
|
+
const targetComponentIds = typeItem ? typeItem.children.map((child) => child.id) : undefined;
|
|
90
93
|
emit("show-menu", {
|
|
91
94
|
event,
|
|
92
95
|
itemId: actualItem.category ? actualItem.id : id,
|
|
93
96
|
context_type: actualItem.category ? "model_component" : "model_component_type",
|
|
94
97
|
modelId: id,
|
|
95
98
|
modelComponentType: actualItem.category ? undefined : actualItem.id,
|
|
99
|
+
targetComponentIds,
|
|
96
100
|
});
|
|
97
101
|
}
|
|
98
102
|
|
|
@@ -108,7 +112,7 @@ function handleHoverEnter({ item, immediate = false }) {
|
|
|
108
112
|
() =>
|
|
109
113
|
actualItem.category
|
|
110
114
|
? [actualItem.viewer_id]
|
|
111
|
-
: actualItem.children
|
|
115
|
+
: actualItem.children.map((child) => child.viewer_id),
|
|
112
116
|
"model",
|
|
113
117
|
immediate,
|
|
114
118
|
);
|
package/package.json
CHANGED