@cornerstonejs/adapters 3.32.3 → 3.32.5
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/Cornerstone/MeasurementReport.js +1 -0
- package/dist/esm/adapters/Cornerstone3D/Length.d.ts +0 -1
- package/dist/esm/adapters/Cornerstone3D/Length.js +0 -1
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.d.ts +1 -0
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.js +5 -0
- package/dist/esm/adapters/Cornerstone3D/RectangleROI.js +0 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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: {
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.32.
|
|
1
|
+
export declare const version = "3.32.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.5",
|
|
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.
|
|
94
|
-
"@cornerstonejs/tools": "^3.32.
|
|
93
|
+
"@cornerstonejs/core": "^3.32.5",
|
|
94
|
+
"@cornerstonejs/tools": "^3.32.5"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "aba7909a09c4525ce692e3341d44a9d0f286e6f1"
|
|
97
97
|
}
|