@cornerstonejs/dicom-image-loader 2.11.1 → 2.11.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function decodeImageFrame(imageFrame: any, transferSyntax: any, pixelData: any, decodeConfig: any, options: any, callbackFn: any): Promise<any>;
|
|
@@ -180,7 +180,7 @@ function scaleImageFrame(imageFrame, targetBuffer, TypedArrayConstructor) {
|
|
|
180
180
|
imageFrame.pixelDataLength = imageFrame.pixelData.length;
|
|
181
181
|
return imageFrame;
|
|
182
182
|
}
|
|
183
|
-
async function decodeImageFrame(imageFrame, transferSyntax, pixelData, decodeConfig, options, callbackFn) {
|
|
183
|
+
export async function decodeImageFrame(imageFrame, transferSyntax, pixelData, decodeConfig, options, callbackFn) {
|
|
184
184
|
const start = new Date().getTime();
|
|
185
185
|
let decodePromise = null;
|
|
186
186
|
let opts;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { default as getPixelData } from './imageLoader/wadors/getPixelData';
|
|
|
13
13
|
import { internal } from './imageLoader/internal/index';
|
|
14
14
|
import * as constants from './constants';
|
|
15
15
|
import type * as Types from './types';
|
|
16
|
+
import { decodeImageFrame } from './decodeImageFrameWorker';
|
|
16
17
|
declare const cornerstoneDICOMImageLoader: {
|
|
17
18
|
constants: typeof constants;
|
|
18
19
|
convertRGBColorByPixel: typeof convertRGBColorByPixel;
|
|
@@ -89,7 +90,8 @@ declare const cornerstoneDICOMImageLoader: {
|
|
|
89
90
|
setOptions: typeof import("./imageLoader/internal/options").setOptions;
|
|
90
91
|
getOptions: typeof import("./imageLoader/internal/options").getOptions;
|
|
91
92
|
};
|
|
93
|
+
decodeImageFrame: typeof decodeImageFrame;
|
|
92
94
|
};
|
|
93
|
-
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, };
|
|
95
|
+
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, };
|
|
94
96
|
export type { Types };
|
|
95
97
|
export default cornerstoneDICOMImageLoader;
|
package/dist/esm/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { default as isJPEGBaseline8BitColor } from './imageLoader/isJPEGBaseline
|
|
|
12
12
|
import { default as getPixelData } from './imageLoader/wadors/getPixelData';
|
|
13
13
|
import { internal } from './imageLoader/internal/index';
|
|
14
14
|
import * as constants from './constants';
|
|
15
|
+
import { decodeImageFrame } from './decodeImageFrameWorker';
|
|
15
16
|
const cornerstoneDICOMImageLoader = {
|
|
16
17
|
constants,
|
|
17
18
|
convertRGBColorByPixel,
|
|
@@ -31,6 +32,7 @@ const cornerstoneDICOMImageLoader = {
|
|
|
31
32
|
isColorImage,
|
|
32
33
|
isJPEGBaseline8BitColor,
|
|
33
34
|
internal,
|
|
35
|
+
decodeImageFrame,
|
|
34
36
|
};
|
|
35
|
-
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, };
|
|
37
|
+
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, };
|
|
36
38
|
export default cornerstoneDICOMImageLoader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/dicom-image-loader",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
4
4
|
"description": "Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DICOM",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"uuid": "^9.0.0"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
|
-
"@cornerstonejs/core": "^2.11.
|
|
119
|
+
"@cornerstonejs/core": "^2.11.3",
|
|
120
120
|
"dicom-parser": "^1.8.9"
|
|
121
121
|
},
|
|
122
122
|
"lint-staged": {
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"path": "./node_modules/cz-conventional-changelog"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "844eeb327029973b73d6bf26489635ea0803d2fd"
|
|
135
135
|
}
|