@niivue/nvreact 1.0.0-rc.12 → 1.0.0-rc.13
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/dist/lib.js +2 -4
- package/package.json +3 -3
package/dist/lib.js
CHANGED
|
@@ -410,8 +410,7 @@ class NvSceneController {
|
|
|
410
410
|
const nv = viewer.niivue;
|
|
411
411
|
const volIdx = nv.volumes.findIndex((v) => v.url === url || v.name === url);
|
|
412
412
|
if (volIdx >= 0) {
|
|
413
|
-
nv.
|
|
414
|
-
await nv.updateGLVolume();
|
|
413
|
+
await nv.removeVolume(volIdx);
|
|
415
414
|
this.emit("volumeRemoved", index, url);
|
|
416
415
|
if (this.broadcasting) {
|
|
417
416
|
this.rewireBroadcasting();
|
|
@@ -724,8 +723,7 @@ var NvViewer = ({
|
|
|
724
723
|
if (!desiredUrls.has(url)) {
|
|
725
724
|
const volIdx = nv.volumes.findIndex((v) => v.url === url || v.name === url);
|
|
726
725
|
if (volIdx >= 0) {
|
|
727
|
-
nv.
|
|
728
|
-
nv.updateGLVolume();
|
|
726
|
+
nv.removeVolume(volIdx);
|
|
729
727
|
}
|
|
730
728
|
currentVolumes.delete(url);
|
|
731
729
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niivue/nvreact",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib.js",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@niivue/niivue": "1.0.0-rc.
|
|
33
|
+
"@niivue/niivue": "1.0.0-rc.12",
|
|
34
34
|
"react": "^19",
|
|
35
35
|
"react-dom": "^19"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@happy-dom/global-registrator": "^20.6.1",
|
|
39
|
-
"@niivue/niivue": "1.0.0-rc.
|
|
39
|
+
"@niivue/niivue": "1.0.0-rc.12",
|
|
40
40
|
"@testing-library/dom": "^10.4.1",
|
|
41
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.2",
|