@niivue/nv-web-component 1.0.0-rc.9 → 1.0.0-rc.91

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.
@@ -961,7 +961,7 @@ var q = {
961
961
  let n = this.viewers[e];
962
962
  if (!n || !await this.waitForViewerReady(n)) return;
963
963
  let r = n.niivue, i = r.volumes.findIndex((e) => e.url === t || e.name === t);
964
- i >= 0 && (r.model.removeVolume(i), await r.updateGLVolume(), this.emit("volumeRemoved", e, t), this.broadcasting && this.rewireBroadcasting(), this.notify());
964
+ i >= 0 && (await r.removeVolume(i), this.emit("volumeRemoved", e, t), this.broadcasting && this.rewireBroadcasting(), this.notify());
965
965
  }
966
966
  async findVolume(e, t) {
967
967
  let n = this.viewers[e];
@@ -1184,7 +1184,7 @@ var q = {
1184
1184
  let t = new Set(this.volumes.map(X));
1185
1185
  for (let n of this.loadedVolumes.keys()) if (!t.has(n)) {
1186
1186
  let t = Z(e.volumes, n);
1187
- t >= 0 && (e.model.removeVolume(t), await e.updateGLVolume()), this.loadedVolumes.delete(n);
1187
+ t >= 0 && await e.removeVolume(t), this.loadedVolumes.delete(n);
1188
1188
  }
1189
1189
  for (let t of this.volumes) {
1190
1190
  let n = X(t), r = Fe(t), i = this.loadedVolumes.get(n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niivue/nv-web-component",
3
- "version": "1.0.0-rc.9",
3
+ "version": "1.0.0-rc.91",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Web component bindings for NiiVue",
@@ -26,10 +26,10 @@
26
26
  "test": "bun test"
27
27
  },
28
28
  "peerDependencies": {
29
- "@niivue/niivue": "1.0.0-rc.11"
29
+ "@niivue/niivue": "1.0.0-rc.93"
30
30
  },
31
31
  "devDependencies": {
32
- "@niivue/niivue": "1.0.0-rc.11",
32
+ "@niivue/niivue": "1.0.0-rc.93",
33
33
  "@types/bun": "^1.3.12",
34
34
  "typescript": "^5.9.3",
35
35
  "vite": "^8.0.9",