@cornerstonejs/adapters 3.29.0 → 3.29.2
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/Angle.js +1 -1
- package/dist/esm/adapters/Cornerstone3D/BaseAdapter3D.d.ts +2 -10
- package/dist/esm/adapters/Cornerstone3D/Bidirectional.js +2 -2
- package/dist/esm/adapters/Cornerstone3D/CircleROI.js +2 -2
- package/dist/esm/adapters/Cornerstone3D/CobbAngle.js +1 -1
- package/dist/esm/adapters/Cornerstone3D/EllipticalROI.js +1 -1
- package/dist/esm/adapters/Cornerstone3D/Length.js +1 -1
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.d.ts +2 -0
- package/dist/esm/adapters/Cornerstone3D/PlanarFreehandROI.js +7 -7
- package/dist/esm/adapters/Cornerstone3D/UltrasoundDirectional.d.ts +1 -0
- package/dist/esm/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -34,19 +34,11 @@ export default class BaseAdapter3D {
|
|
|
34
34
|
FrameOfReferenceUID: string;
|
|
35
35
|
label: string;
|
|
36
36
|
};
|
|
37
|
+
data?: unknown;
|
|
37
38
|
};
|
|
38
39
|
finding?: unknown;
|
|
39
40
|
findingSites?: unknown;
|
|
40
41
|
};
|
|
41
42
|
static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): TID300Arguments;
|
|
42
|
-
static getTID300RepresentationArgumentsSCOORD3D(tool: any):
|
|
43
|
-
points: {
|
|
44
|
-
x: any;
|
|
45
|
-
y: any;
|
|
46
|
-
z: any;
|
|
47
|
-
}[];
|
|
48
|
-
trackingIdentifierTextValue: string;
|
|
49
|
-
findingSites: any;
|
|
50
|
-
finding: any;
|
|
51
|
-
};
|
|
43
|
+
static getTID300RepresentationArgumentsSCOORD3D(tool: any): TID300Arguments;
|
|
52
44
|
}
|
|
@@ -209,8 +209,8 @@ class Bidirectional extends BaseAdapter3D {
|
|
|
209
209
|
const shortAxisEnd = longAxisPoints[1];
|
|
210
210
|
const cachedStatsKeys = Object.keys(cachedStats)[0];
|
|
211
211
|
const {
|
|
212
|
-
length,
|
|
213
|
-
width
|
|
212
|
+
length = undefined,
|
|
213
|
+
width = undefined
|
|
214
214
|
} = cachedStatsKeys ? cachedStats[cachedStatsKeys] : {};
|
|
215
215
|
return {
|
|
216
216
|
longAxis: {
|
|
@@ -165,8 +165,8 @@ class CircleROI extends BaseAdapter3D {
|
|
|
165
165
|
});
|
|
166
166
|
const cachedStatsKeys = Object.keys(cachedStats)[0];
|
|
167
167
|
const {
|
|
168
|
-
area,
|
|
169
|
-
radius
|
|
168
|
+
area = undefined,
|
|
169
|
+
radius = 0
|
|
170
170
|
} = cachedStatsKeys ? cachedStats[cachedStatsKeys] : {};
|
|
171
171
|
const perimeter = 2 * Math.PI * radius;
|
|
172
172
|
return {
|
|
@@ -155,7 +155,7 @@ class Length extends BaseAdapter3D {
|
|
|
155
155
|
};
|
|
156
156
|
const cachedStatsKeys = Object.keys(cachedStats)[0];
|
|
157
157
|
const {
|
|
158
|
-
length: distance
|
|
158
|
+
length: distance = undefined
|
|
159
159
|
} = cachedStatsKeys ? cachedStats[cachedStatsKeys] : {};
|
|
160
160
|
return {
|
|
161
161
|
point1,
|
|
@@ -9,6 +9,7 @@ type SpatialCoordinatesState = {
|
|
|
9
9
|
FrameOfReferenceUID: string;
|
|
10
10
|
label: string;
|
|
11
11
|
};
|
|
12
|
+
data?: unknown;
|
|
12
13
|
};
|
|
13
14
|
finding?: unknown;
|
|
14
15
|
findingSites?: unknown;
|
|
@@ -108,6 +109,7 @@ export default class MeasurementReport {
|
|
|
108
109
|
FrameOfReferenceUID: string;
|
|
109
110
|
label: string;
|
|
110
111
|
};
|
|
112
|
+
data?: unknown;
|
|
111
113
|
};
|
|
112
114
|
};
|
|
113
115
|
NUMGroup: any;
|
|
@@ -188,13 +188,13 @@ class PlanarFreehandROI extends BaseAdapter3D {
|
|
|
188
188
|
}
|
|
189
189
|
const cachedStatsKeys = Object.keys(data.cachedStats)[0];
|
|
190
190
|
const {
|
|
191
|
-
area,
|
|
192
|
-
areaUnit,
|
|
193
|
-
modalityUnit,
|
|
194
|
-
perimeter,
|
|
195
|
-
mean,
|
|
196
|
-
max,
|
|
197
|
-
stdDev
|
|
191
|
+
area = undefined,
|
|
192
|
+
areaUnit = undefined,
|
|
193
|
+
modalityUnit = undefined,
|
|
194
|
+
perimeter = undefined,
|
|
195
|
+
mean = undefined,
|
|
196
|
+
max = undefined,
|
|
197
|
+
stdDev = undefined
|
|
198
198
|
} = cachedStatsKeys ? data.cachedStats[cachedStatsKeys] : {};
|
|
199
199
|
return {
|
|
200
200
|
points,
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.29.
|
|
1
|
+
export declare const version = "3.29.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "3.29.
|
|
3
|
+
"version": "3.29.2",
|
|
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.29.
|
|
94
|
-
"@cornerstonejs/tools": "^3.29.
|
|
93
|
+
"@cornerstonejs/core": "^3.29.2",
|
|
94
|
+
"@cornerstonejs/tools": "^3.29.2"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "abd76e99173a61adce1d02379fbb545bb349b9b8"
|
|
97
97
|
}
|