@cornerstonejs/adapters 3.32.3 → 3.32.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.
@@ -49,6 +49,7 @@ const codeValueMatch = (group, code, oldCode) => {
49
49
  function getTID300ContentItem(tool, ReferencedSOPSequence, adapterClass) {
50
50
  const args = adapterClass.getTID300RepresentationArguments(tool);
51
51
  args.ReferencedSOPSequence = ReferencedSOPSequence;
52
+ args.ReferencedFrameOfReferenceUID = args.use3DSpatialCoordinates ? tool.metadata.FrameOfReferenceUID : null;
52
53
  const tid300Measurement = new adapterClass.TID300Representation(args);
53
54
  return tid300Measurement;
54
55
  }
@@ -32,7 +32,6 @@ export default class Length extends BaseAdapter3D {
32
32
  trackingIdentifierTextValue: string;
33
33
  finding: any;
34
34
  findingSites: any;
35
- ReferencedFrameOfReferenceUID: any;
36
35
  use3DSpatialCoordinates: boolean;
37
36
  };
38
37
  }
@@ -67,7 +67,6 @@ class Length extends BaseAdapter3D {
67
67
  trackingIdentifierTextValue: this.trackingIdentifierTextValue,
68
68
  finding,
69
69
  findingSites: findingSites || [],
70
- ReferencedFrameOfReferenceUID: is3DMeasurement ? metadata.FrameOfReferenceUID : null,
71
70
  use3DSpatialCoordinates: is3DMeasurement
72
71
  };
73
72
  }
@@ -105,6 +105,7 @@ export default class MeasurementReport {
105
105
  annotation: {
106
106
  data: {
107
107
  annotationUID: any;
108
+ cachedStats: {};
108
109
  handles: {
109
110
  activeHandleIndex: number;
110
111
  textBox: {
@@ -54,6 +54,9 @@ class MeasurementReport {
54
54
  static getTID300ContentItem(tool, ReferencedSOPSequence, toolClass, is3DMeasurement) {
55
55
  const args = toolClass.getTID300RepresentationArguments(tool, is3DMeasurement);
56
56
  args.ReferencedSOPSequence = ReferencedSOPSequence;
57
+ if (args.use3DSpatialCoordinates) {
58
+ args.ReferencedFrameOfReferenceUID = tool.metadata.FrameOfReferenceUID;
59
+ }
57
60
  const tid300Measurement = new toolClass.TID300Representation(args);
58
61
  const labelMeasurement = new LabelData(tid300Measurement, tool);
59
62
  return labelMeasurement;
@@ -139,6 +142,7 @@ class MeasurementReport {
139
142
  annotation: {
140
143
  data: {
141
144
  annotationUID,
145
+ cachedStats: {},
142
146
  handles: {
143
147
  activeHandleIndex: 0,
144
148
  textBox: {
@@ -171,6 +175,7 @@ class MeasurementReport {
171
175
  annotationUID,
172
176
  data: {
173
177
  annotationUID,
178
+ cachedStats: {},
174
179
  handles: {
175
180
  activeHandleIndex: 0,
176
181
  textBox: {
@@ -13,7 +13,6 @@ class RectangleROI extends BaseAdapter3D {
13
13
  static getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata) {
14
14
  const {
15
15
  state,
16
- NUMGroup,
17
16
  worldCoords,
18
17
  referencedImageId,
19
18
  ReferencedFrameNumber
@@ -1 +1 @@
1
- export declare const version = "3.32.3";
1
+ export declare const version = "3.32.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "3.32.3",
3
+ "version": "3.32.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.32.3",
94
- "@cornerstonejs/tools": "^3.32.3"
93
+ "@cornerstonejs/core": "^3.32.4",
94
+ "@cornerstonejs/tools": "^3.32.4"
95
95
  },
96
- "gitHead": "d4cc06b31a3f90368db0829db0f4b539de7a96c7"
96
+ "gitHead": "ab88654e25aefb7f43a807c0f38ce601af4c20a4"
97
97
  }