@cornerstonejs/adapters 3.15.2 → 3.15.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.
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.js +3 -2
- package/dist/esm/adapters/Cornerstone3D/constants/index.d.ts +1 -0
- package/dist/esm/adapters/Cornerstone3D/constants/index.js +3 -0
- package/dist/esm/adapters/index.d.ts +2 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -7,6 +7,7 @@ import 'buffer';
|
|
|
7
7
|
import { copyStudyTags } from '../helpers/copyStudyTags.js';
|
|
8
8
|
import { copySeriesTags } from '../helpers/copySeriesTags.js';
|
|
9
9
|
import CodingScheme from './CodingScheme.js';
|
|
10
|
+
import { NO_IMAGE_ID } from './constants/index.js';
|
|
10
11
|
|
|
11
12
|
var _MeasurementReport;
|
|
12
13
|
const {
|
|
@@ -248,7 +249,7 @@ class MeasurementReport {
|
|
|
248
249
|
sopInstanceUIDsToSeriesInstanceUIDMap,
|
|
249
250
|
derivationSourceDatasets
|
|
250
251
|
} = _ref5;
|
|
251
|
-
const effectiveImageId = imageId ===
|
|
252
|
+
const effectiveImageId = imageId === NO_IMAGE_ID ? this.getImageIdFromVolume({
|
|
252
253
|
toolData,
|
|
253
254
|
toolTypes
|
|
254
255
|
}) : imageId;
|
|
@@ -305,7 +306,7 @@ class MeasurementReport {
|
|
|
305
306
|
sopInstanceUIDsToSeriesInstanceUIDMap,
|
|
306
307
|
derivationSourceDatasets
|
|
307
308
|
});
|
|
308
|
-
if (imageId ===
|
|
309
|
+
if (imageId === NO_IMAGE_ID) {
|
|
309
310
|
is3DSR = true;
|
|
310
311
|
}
|
|
311
312
|
const measurementGroups = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NO_IMAGE_ID = "none";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NO_IMAGE_ID } from "./Cornerstone3D/constants";
|
|
1
2
|
import * as Enums from "./enums";
|
|
2
3
|
import * as helpers from "./helpers";
|
|
3
4
|
declare const adaptersSR: {
|
|
@@ -65,4 +66,4 @@ declare const adaptersRT: {
|
|
|
65
66
|
RTSS: typeof import("./Cornerstone3D/RTStruct");
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
|
-
export { adaptersSR, adaptersSEG, adaptersPMAP, adaptersRT, Enums, helpers };
|
|
69
|
+
export { adaptersSR, adaptersSEG, adaptersPMAP, adaptersRT, Enums, helpers, NO_IMAGE_ID };
|
package/dist/esm/index.js
CHANGED
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.15.
|
|
1
|
+
export declare const version = "3.15.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.4",
|
|
4
4
|
"description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"ndarray": "^1.0.19"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@cornerstonejs/core": "^3.15.
|
|
94
|
-
"@cornerstonejs/tools": "^3.15.
|
|
93
|
+
"@cornerstonejs/core": "^3.15.4",
|
|
94
|
+
"@cornerstonejs/tools": "^3.15.4"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "808596977a85b767415bf43675d52cd31a62b06e"
|
|
97
97
|
}
|