@cornerstonejs/adapters 0.4.2 → 0.6.0
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/@cornerstonejs/adapters.es.js +92 -8
- package/dist/@cornerstonejs/adapters.es.js.map +1 -1
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/Angle.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/Bidirectional.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/CircleROI.d.ts +41 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/CobbAngle.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/EllipticalROI.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/MeasurementReport.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/PlanarFreehandROI.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/RectangleROI.d.ts +1 -0
- package/dist/@cornerstonejs/dts/adapters/Cornerstone3D/index.d.ts +2 -0
- package/package.json +4 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import isValidCornerstoneTrackingIdentifier from "./isValidCornerstoneTrackingIdentifier";
|
|
2
|
+
declare class CircleROI {
|
|
3
|
+
static trackingIdentifierTextValue: string;
|
|
4
|
+
static toolType: string;
|
|
5
|
+
static utilityToolType: string;
|
|
6
|
+
static TID300Representation: any;
|
|
7
|
+
static isValidCornerstoneTrackingIdentifier: typeof isValidCornerstoneTrackingIdentifier;
|
|
8
|
+
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
9
|
+
static getMeasurementData(MeasurementGroup: any, sopInstanceUIDToImageIdMap: any, imageToWorldCoords: any, metadata: any): {
|
|
10
|
+
description: any;
|
|
11
|
+
sopInstanceUid: any;
|
|
12
|
+
annotation: {
|
|
13
|
+
annotationUID: any;
|
|
14
|
+
metadata: {
|
|
15
|
+
toolName: any;
|
|
16
|
+
referencedImageId: any;
|
|
17
|
+
FrameOfReferenceUID: any;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
data: any;
|
|
21
|
+
};
|
|
22
|
+
finding: any;
|
|
23
|
+
findingSites: any;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Gets the TID 300 representation of a circle, given the cornerstone representation.
|
|
27
|
+
*
|
|
28
|
+
* @param {Object} tool
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): {
|
|
32
|
+
area: any;
|
|
33
|
+
perimeter: number;
|
|
34
|
+
radius: any;
|
|
35
|
+
points: any[];
|
|
36
|
+
trackingIdentifierTextValue: string;
|
|
37
|
+
finding: any;
|
|
38
|
+
findingSites: any;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export default CircleROI;
|
|
@@ -2,6 +2,7 @@ import MeasurementReport from "./MeasurementReport";
|
|
|
2
2
|
import Bidirectional from "./Bidirectional";
|
|
3
3
|
import Angle from "./Angle";
|
|
4
4
|
import CobbAngle from "./CobbAngle";
|
|
5
|
+
import CircleROI from "./CircleROI";
|
|
5
6
|
import EllipticalROI from "./EllipticalROI";
|
|
6
7
|
import RectangleROI from "./RectangleROI";
|
|
7
8
|
import PlanarFreehandROI from "./PlanarFreehandROI";
|
|
@@ -10,6 +11,7 @@ declare const Cornerstone3D: {
|
|
|
10
11
|
CobbAngle: typeof CobbAngle;
|
|
11
12
|
Angle: typeof Angle;
|
|
12
13
|
Length: any;
|
|
14
|
+
CircleROI: typeof CircleROI;
|
|
13
15
|
EllipticalROI: typeof EllipticalROI;
|
|
14
16
|
RectangleROI: typeof RectangleROI;
|
|
15
17
|
ArrowAnnotate: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
|
|
5
5
|
"src": "src/index.ts",
|
|
6
6
|
"main": "./dist/@cornerstonejs/adapters.es.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"build": "rollup -c rollup.config.mjs",
|
|
25
25
|
"build:all": "yarn build",
|
|
26
26
|
"build:examples": "npm run build && npx cpx 'dist/**/*.{js,map}' examples/js",
|
|
27
|
+
"build:update-api": "yarn run build && api-extractor run --local",
|
|
27
28
|
"start": "rollup -c -w",
|
|
28
29
|
"format": "prettier --write 'src/**/*.js' 'test/**/*.js'",
|
|
29
30
|
"lint": "eslint --fix ."
|
|
@@ -40,10 +41,10 @@
|
|
|
40
41
|
"homepage": "https://github.com/cornerstonejs/cornerstone3D-beta/blob/main/packages/adapters/README.md",
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"@babel/runtime-corejs2": "^7.17.8",
|
|
43
|
-
"dcmjs": "^0.29.
|
|
44
|
+
"dcmjs": "^0.29.5",
|
|
44
45
|
"gl-matrix": "^3.4.3",
|
|
45
46
|
"lodash.clonedeep": "^4.5.0",
|
|
46
47
|
"ndarray": "^1.0.19"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "1e40104275742f14a7a48b076f244610f90e8657"
|
|
49
50
|
}
|