@geode/opengeodeweb-front 9.11.0-rc.5 → 9.11.0-rc.6

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.
@@ -10,6 +10,7 @@ export default function useMeshStyle() {
10
10
  const edgesStyleStore = useMeshEdgesStyle()
11
11
  const polygonsStyleStore = useMeshPolygonsStyle()
12
12
  const polyhedraStyleStore = useMeshPolyhedraStyle()
13
+ const hybridViewerStore = useHybridViewerStore()
13
14
 
14
15
  function setMeshVisibility(id, visibility) {
15
16
  viewer_call(
@@ -20,6 +21,7 @@ export default function useMeshStyle() {
20
21
  {
21
22
  response_function: () => {
22
23
  dataStyleStore.styles[id].visibility = visibility
24
+ hybridViewerStore.setVisibility(id, visibility)
23
25
  console.log("setMeshVisibility", dataStyleStore.styles[id].visibility)
24
26
  },
25
27
  },
@@ -16,6 +16,7 @@ export default function useModelStyle() {
16
16
  const blocksStyleStore = useBlocksStyle()
17
17
  const modelEdgesStore = useModelEdgesStyle()
18
18
  const modelPointsStore = useModelPointsStyle()
19
+ const hybridViewerStore = useHybridViewerStore()
19
20
 
20
21
  /** Getters **/
21
22
  function modelVisibility(id) {
@@ -70,6 +71,7 @@ export default function useModelStyle() {
70
71
  {
71
72
  response_function: () => {
72
73
  dataStyleStore.styles[id].visibility = visibility
74
+ hybridViewerStore.setVisibility(id, visibility)
73
75
  console.log("setModelVisibility", visibility)
74
76
  },
75
77
  },
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "description": "OpenSource Vue/Vuetify framework for web applications",
37
37
  "type": "module",
38
- "version": "9.11.0-rc.5",
38
+ "version": "9.11.0-rc.6",
39
39
  "main": "./nuxt.config.js",
40
40
  "dependencies": {
41
41
  "@geode/opengeodeweb-back": "file:geode-opengeodeweb-back-5.10.0-rc.5.tgz",
@@ -66,6 +66,11 @@ export const useHybridViewerStore = defineStore("hybridViewer", () => {
66
66
  db[id] = { actor, polydata, mapper }
67
67
  }
68
68
 
69
+ async function setVisibility(id, visibility) {
70
+ db[id].actor.setVisibility(visibility)
71
+ const renderWindow = genericRenderWindow.value.getRenderWindow()
72
+ renderWindow.render()
73
+ }
69
74
  async function setZScaling(z_scale) {
70
75
  zScale.value = z_scale
71
76
  const renderer = genericRenderWindow.value.getRenderer()
@@ -183,6 +188,7 @@ export const useHybridViewerStore = defineStore("hybridViewer", () => {
183
188
  db,
184
189
  genericRenderWindow,
185
190
  addItem,
191
+ setVisibility,
186
192
  setZScaling,
187
193
  syncRemoteCamera,
188
194
  initHybridViewer,