|
22 | 22 |
|
23 | 23 | <script setup> |
24 | 24 | const dataStyleStore = useDataStyleStore() |
| 25 | + const hybridViewerStore = useHybridViewerStore() |
25 | 26 |
|
26 | 27 | const props = defineProps({ |
27 | 28 | itemProps: { type: Object, required: true }, |
|
33 | 34 |
|
34 | 35 | const visibility = computed({ |
35 | 36 | get: () => dataStyleStore.meshPolygonsVisibility(id.value), |
36 | | - set: (newValue) => |
37 | | - dataStyleStore.setMeshPolygonsVisibility(id.value, newValue), |
| 37 | + set: (newValue) => { |
| 38 | + dataStyleStore.setMeshPolygonsVisibility(id.value, newValue) |
| 39 | + hybridViewerStore.remoteRender() |
| 40 | + }, |
38 | 41 | }) |
39 | 42 | const coloring_style_key = computed({ |
40 | 43 | get: () => dataStyleStore.meshPolygonsActiveColoring(id.value), |
41 | | - set: (newValue) => |
42 | | - dataStyleStore.setMeshPolygonsActiveColoring(id.value, newValue), |
| 44 | + set: (newValue) => { |
| 45 | + dataStyleStore.setMeshPolygonsActiveColoring(id.value, newValue) |
| 46 | + hybridViewerStore.remoteRender() |
| 47 | + }, |
43 | 48 | }) |
44 | 49 | const color = computed({ |
45 | 50 | get: () => dataStyleStore.meshPolygonsColor(id.value), |
46 | | - set: (newValue) => dataStyleStore.setMeshPolygonsColor(id.value, newValue), |
| 51 | + set: (newValue) => { |
| 52 | + dataStyleStore.setMeshPolygonsColor(id.value, newValue) |
| 53 | + hybridViewerStore.remoteRender() |
| 54 | + }, |
47 | 55 | }) |
48 | 56 | const textures = computed({ |
49 | 57 | get: () => dataStyleStore.meshPolygonsTextures(id.value), |
50 | | - set: (newValue) => |
51 | | - dataStyleStore.setMeshPolygonsTextures(id.value, newValue), |
| 58 | + set: (newValue) => { |
| 59 | + dataStyleStore.setMeshPolygonsTextures(id.value, newValue) |
| 60 | + hybridViewerStore.remoteRender() |
| 61 | + }, |
52 | 62 | }) |
53 | 63 | const vertex_attribute = computed({ |
54 | 64 | get: () => dataStyleStore.meshPolygonsVertexAttribute(id.value), |
55 | 65 | set: (newValue) => { |
56 | 66 | dataStyleStore.setMeshPolygonsVertexAttribute(id.value, newValue) |
| 67 | + hybridViewerStore.remoteRender() |
57 | 68 | }, |
58 | 69 | }) |
59 | 70 | const polygon_attribute = computed({ |
60 | 71 | get: () => dataStyleStore.meshPolygonsPolygonAttribute(id.value), |
61 | 72 | set: (newValue) => { |
62 | 73 | dataStyleStore.setMeshPolygonsPolygonAttribute(id.value, newValue) |
| 74 | + hybridViewerStore.remoteRender() |
63 | 75 | }, |
64 | 76 | }) |
65 | 77 | </script> |
0 commit comments