@cornerstonejs/adapters 3.32.2 → 3.32.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.
@@ -27,7 +27,7 @@ class Angle extends BaseAdapter3D {
27
27
  ...state.annotation.data,
28
28
  handles: {
29
29
  ...state.annotation.data.handles,
30
- points: worldCoords
30
+ points: [worldCoords[0], worldCoords[1], worldCoords[3]]
31
31
  },
32
32
  cachedStats,
33
33
  frameNumber: ReferencedFrameNumber
@@ -24,7 +24,7 @@ class Probe extends BaseAdapter3D {
24
24
  } = MeasurementReport.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, this.toolType);
25
25
  const cachedStats = referencedImageId ? {
26
26
  [`imageId:${referencedImageId}`]: {
27
- length: NUMGroup?.MeasuredValueSequence?.NumericValue || 0
27
+ value: NUMGroup?.MeasuredValueSequence?.NumericValue ?? null
28
28
  }
29
29
  } : {};
30
30
  state.annotation.data = {
@@ -34,7 +34,8 @@ class Probe extends BaseAdapter3D {
34
34
  points: worldCoords
35
35
  },
36
36
  cachedStats,
37
- frameNumber: ReferencedFrameNumber
37
+ frameNumber: ReferencedFrameNumber,
38
+ invalidated: true
38
39
  };
39
40
  return state;
40
41
  }
@@ -14,22 +14,22 @@ class RectangleROI extends BaseAdapter3D {
14
14
  const {
15
15
  state,
16
16
  NUMGroup,
17
- scoord,
18
- scoordArgs,
19
17
  worldCoords,
20
18
  referencedImageId,
21
19
  ReferencedFrameNumber
22
20
  } = MeasurementReport.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, this.toolType);
21
+ const areaGroup = MeasurementGroup.ContentSequence.find(g => g.ValueType === "NUM" && g.ConceptNameCodeSequence[0].CodeMeaning === "Area");
23
22
  const cachedStats = referencedImageId ? {
24
23
  [`imageId:${referencedImageId}`]: {
25
- area: NUMGroup ? NUMGroup.MeasuredValueSequence.NumericValue : 0
24
+ area: areaGroup?.MeasuredValueSequence?.[0]?.NumericValue || 0,
25
+ areaUnit: areaGroup?.MeasuredValueSequence?.[0]?.MeasurementUnitsCodeSequence?.CodeValue
26
26
  }
27
27
  } : {};
28
28
  state.annotation.data = {
29
29
  ...state.annotation.data,
30
30
  handles: {
31
31
  ...state.annotation.data.handles,
32
- points: worldCoords
32
+ points: [worldCoords[0], worldCoords[1], worldCoords[3], worldCoords[2]]
33
33
  },
34
34
  cachedStats,
35
35
  frameNumber: ReferencedFrameNumber
@@ -1 +1 @@
1
- export declare const version = "3.32.2";
1
+ export declare const version = "3.32.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "3.32.2",
3
+ "version": "3.32.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.32.2",
94
- "@cornerstonejs/tools": "^3.32.2"
93
+ "@cornerstonejs/core": "^3.32.3",
94
+ "@cornerstonejs/tools": "^3.32.3"
95
95
  },
96
- "gitHead": "60a9a8fc952debf62fbba4c7c545e9adeb882e7c"
96
+ "gitHead": "d4cc06b31a3f90368db0829db0f4b539de7a96c7"
97
97
  }