@cornerstonejs/nifti-volume-loader 2.11.2 → 2.11.4

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.
@@ -132,14 +132,14 @@ function handleNiftiHeader(data) {
132
132
  return { isValid: false, message: 'Error reading Nifti header' };
133
133
  }
134
134
  }
135
- async function fetchAndAllocateNiftiVolume(volumeId) {
136
- const niftiURL = volumeId.substring(NIFTI_LOADER_SCHEME.length + 1);
135
+ async function fetchAndAllocateNiftiVolume(url) {
136
+ const niftiURL = url;
137
137
  const onProgress = (loaded, total) => {
138
- const data = { volumeId, loaded, total };
138
+ const data = { volumeId: url, loaded, total };
139
139
  triggerEvent(eventTarget, Events.NIFTI_VOLUME_PROGRESS, { data });
140
140
  };
141
141
  const onLoad = () => {
142
- const data = { volumeId };
142
+ const data = { volumeId: url };
143
143
  triggerEvent(eventTarget, Events.NIFTI_VOLUME_LOADED, { data });
144
144
  };
145
145
  const controller = new AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/nifti-volume-loader",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "description": "Nifti Image Loader for Cornerstone3D",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -61,7 +61,7 @@
61
61
  "nifti-reader-js": "^0.6.8"
62
62
  },
63
63
  "peerDependencies": {
64
- "@cornerstonejs/core": "^2.11.2"
64
+ "@cornerstonejs/core": "^2.11.4"
65
65
  },
66
66
  "contributors": [
67
67
  {
@@ -74,5 +74,5 @@
74
74
  "type": "individual",
75
75
  "url": "https://ohif.org/donate"
76
76
  },
77
- "gitHead": "e0522fd764aae828ac93e05003593f21fc1b406f"
77
+ "gitHead": "a3d34e449fb8319103623fd815e4fe9c9e99d349"
78
78
  }