@cornerstonejs/adapters 3.15.2 → 3.15.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.
@@ -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 === "none" ? this.getImageIdFromVolume({
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 === "none") {
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";
@@ -0,0 +1,3 @@
1
+ const NO_IMAGE_ID = "none";
2
+
3
+ export { NO_IMAGE_ID };
@@ -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
@@ -3,3 +3,4 @@ import * as index from './adapters/enums/index.js';
3
3
  export { index as Enums };
4
4
  import * as index$1 from './adapters/helpers/index.js';
5
5
  export { index$1 as helpers };
6
+ export { NO_IMAGE_ID } from './adapters/Cornerstone3D/constants/index.js';
@@ -1 +1 @@
1
- export declare const version = "3.15.2";
1
+ export declare const version = "3.15.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "3.15.2",
3
+ "version": "3.15.3",
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.2",
94
- "@cornerstonejs/tools": "^3.15.2"
93
+ "@cornerstonejs/core": "^3.15.3",
94
+ "@cornerstonejs/tools": "^3.15.3"
95
95
  },
96
- "gitHead": "bd3329d7e19c13e27c8d9e9320237ef4b24f9426"
96
+ "gitHead": "7a5592ab6fed4655f7831b77e6377386c48557a7"
97
97
  }