@cornerstonejs/nifti-volume-loader 2.8.0 → 2.8.2
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,7 +10,8 @@ const NIFTI1_HEADER_SIZE = 348;
|
|
|
10
10
|
const NIFTI2_HEADER_SIZE = 540;
|
|
11
11
|
const HEADER_CHECK_SIZE = Math.max(NIFTI1_HEADER_SIZE, NIFTI2_HEADER_SIZE);
|
|
12
12
|
export async function fetchArrayBuffer({ url, onProgress, controller, onLoad, onHeader, loadFullVolume = false, }) {
|
|
13
|
-
const
|
|
13
|
+
const _url = new URL(url);
|
|
14
|
+
const isCompressed = _url.pathname.endsWith('.gz');
|
|
14
15
|
let receivedData = new Uint8Array(0);
|
|
15
16
|
let niftiHeader = null;
|
|
16
17
|
const sliceInfo = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/nifti-volume-loader",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
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.8.
|
|
64
|
+
"@cornerstonejs/core": "^2.8.2"
|
|
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": "
|
|
77
|
+
"gitHead": "ed785e68048ef651e6f4d670d537d3b0f27d7b9e"
|
|
78
78
|
}
|