Skip to content

Commit

Permalink
update cswil
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Dec 21, 2022
1 parent baf6d64 commit 358894a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/utilities/createUInt16SharedArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function createUint16SharedArray(length: number): Uint16Array {
);
}

const sharedArrayBuffer = new SharedArrayBuffer(length);
const sharedArrayBuffer = new SharedArrayBuffer(length * 2);

return new Uint16Array(sharedArrayBuffer);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utilities/createUint8SharedArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function createUint8SharedArray(length: number): Uint8Array {
);
}

const sharedArrayBuffer = new SharedArrayBuffer(length * 2);
const sharedArrayBuffer = new SharedArrayBuffer(length);

return new Uint8Array(sharedArrayBuffer);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^6.2.1",
"clsx": "^1.1.1",
"cornerstone-wado-image-loader": "^4.5.1",
"cornerstone-wado-image-loader": "^4.5.2",
"dcmjs": "0.19.2",
"detect-gpu": "^4.0.45",
"dicom-parser": "^1.8.11",
Expand Down
4 changes: 2 additions & 2 deletions packages/streaming-image-volume-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
},
"dependencies": {
"@cornerstonejs/core": "^0.23.0",
"cornerstone-wado-image-loader": "^4.5.1"
"cornerstone-wado-image-loader": "^4.5.2"
},
"peerDependencies": {
"@cornerstonejs/calculate-suv": "1.0.2"
},
"devDependencies": {
"@cornerstonejs/calculate-suv": "1.0.2",
"cornerstone-wado-image-loader": "^4.5.1"
"cornerstone-wado-image-loader": "^4.5.2"
},
"contributors": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function sharedArrayBufferImageLoader(
transferSyntax,
pixelData,
canvas,
options
options,
{ convertFloatPixelDataToInt: false, use16BitDataType: true }
);

decodePromise.then(() => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8199,10 +8199,10 @@ core-util-is@~1.0.0:
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==

cornerstone-wado-image-loader@^4.5.1:
version "4.5.1"
resolved "https://registry.npmjs.org/cornerstone-wado-image-loader/-/cornerstone-wado-image-loader-4.5.1.tgz#dc1b353ef3658e65e340da1c26ef919b1a4d14c3"
integrity sha512-/+bmzUSeTb5Hm/5STB0fgKHFe6wN7+zNngYSPefPHhkpEo5zVboBv57UvwJBaga8Cobyg7aEzTCxh3OCbyMcSA==
cornerstone-wado-image-loader@^4.5.2:
version "4.5.2"
resolved "https://registry.npmjs.org/cornerstone-wado-image-loader/-/cornerstone-wado-image-loader-4.5.2.tgz#a29cf9e8a05f49429054ea7dbd2e8bff5a3b54bb"
integrity sha512-rnTK1RrYcpJtf9GOKN8CnzzJHDZyS8wReKt79SrryIXqX7ZNApcKj56RQyFG1r9w8JYgOW08zzBoeUOLI3X50g==
dependencies:
"@babel/eslint-parser" "^7.19.1"
"@cornerstonejs/codec-charls" "^0.1.1"
Expand Down

0 comments on commit 358894a

Please sign in to comment.