|
32 | 32 | const id = toRef(() => props.itemProps.id) |
33 | 33 |
|
34 | 34 | const visibility = computed({ |
35 | | - get: () => dataStyleStore.polygonsVisibility(id.value), |
36 | | - set: (newValue) => dataStyleStore.setPolygonsVisibility(id.value, newValue), |
| 35 | + get: () => dataStyleStore.meshPolygonsVisibility(id.value), |
| 36 | + set: (newValue) => |
| 37 | + dataStyleStore.setMeshPolygonsVisibility(id.value, newValue), |
37 | 38 | }) |
38 | 39 | const coloring_style_key = computed({ |
39 | | - get: () => dataStyleStore.polygonsActiveColoring(id.value), |
| 40 | + get: () => dataStyleStore.meshPolygonsActiveColoring(id.value), |
40 | 41 | set: (newValue) => |
41 | | - dataStyleStore.setPolygonsActiveColoring(id.value, newValue), |
| 42 | + dataStyleStore.setMeshPolygonsActiveColoring(id.value, newValue), |
42 | 43 | }) |
43 | 44 | const color = computed({ |
44 | | - get: () => dataStyleStore.polygonsColor(id.value), |
45 | | - set: (newValue) => dataStyleStore.setPolygonsColor(id.value, newValue), |
| 45 | + get: () => dataStyleStore.meshPolygonsColor(id.value), |
| 46 | + set: (newValue) => dataStyleStore.setMeshPolygonsColor(id.value, newValue), |
46 | 47 | }) |
47 | 48 | const textures = computed({ |
48 | | - get: () => dataStyleStore.polygonsTextures(id.value), |
49 | | - set: (newValue) => dataStyleStore.setPolygonsTextures(id.value, newValue), |
| 49 | + get: () => dataStyleStore.meshPolygonsTextures(id.value), |
| 50 | + set: (newValue) => |
| 51 | + dataStyleStore.setMeshPolygonsTextures(id.value, newValue), |
50 | 52 | }) |
51 | 53 | const vertex_attribute = computed({ |
52 | | - get: () => dataStyleStore.polygonsVertexAttribute(id.value), |
| 54 | + get: () => dataStyleStore.meshPolygonsVertexAttribute(id.value), |
53 | 55 | set: (newValue) => { |
54 | | - console.log("setPolygonsVertexAttribute", id.value, newValue) |
55 | | - dataStyleStore.setPolygonsVertexAttribute(id.value, newValue) |
| 56 | + dataStyleStore.setMeshPolygonsVertexAttribute(id.value, newValue) |
56 | 57 | }, |
57 | 58 | }) |
58 | 59 | const polygon_attribute = computed({ |
59 | | - get: () => dataStyleStore.polygonsPolygonAttribute(id.value), |
| 60 | + get: () => dataStyleStore.meshPolygonsPolygonAttribute(id.value), |
60 | 61 | set: (newValue) => { |
61 | | - console.log("setPolygonsPolygonAttribute", id.value, newValue) |
62 | | - dataStyleStore.setPolygonsPolygonAttribute(id.value, newValue) |
| 62 | + dataStyleStore.setMeshPolygonsPolygonAttribute(id.value, newValue) |
63 | 63 | }, |
64 | 64 | }) |
65 | 65 | </script> |
0 commit comments