@cornerstonejs/adapters 0.4.1 → 0.5.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.
@@ -14,6 +14,7 @@ declare class Angle {
14
14
  FrameOfReferenceUID: any;
15
15
  label: string;
16
16
  };
17
+ data: any;
17
18
  };
18
19
  finding: any;
19
20
  findingSites: any;
@@ -14,6 +14,7 @@ declare class Bidirectional {
14
14
  FrameOfReferenceUID: any;
15
15
  label: string;
16
16
  };
17
+ data: any;
17
18
  };
18
19
  finding: any;
19
20
  findingSites: any;
@@ -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;
@@ -14,6 +14,7 @@ declare class CobbAngle {
14
14
  FrameOfReferenceUID: any;
15
15
  label: string;
16
16
  };
17
+ data: any;
17
18
  };
18
19
  finding: any;
19
20
  findingSites: any;
@@ -16,6 +16,7 @@ declare class EllipticalROI {
16
16
  FrameOfReferenceUID: any;
17
17
  label: string;
18
18
  };
19
+ data: any;
19
20
  };
20
21
  finding: any;
21
22
  findingSites: any;
@@ -35,6 +35,7 @@ export default class MeasurementReport {
35
35
  FrameOfReferenceUID: any;
36
36
  label: string;
37
37
  };
38
+ data: any;
38
39
  };
39
40
  finding: any;
40
41
  findingSites: any;
@@ -14,6 +14,7 @@ declare class PlanarFreehandROI {
14
14
  FrameOfReferenceUID: any;
15
15
  label: string;
16
16
  };
17
+ data: any;
17
18
  };
18
19
  finding: any;
19
20
  findingSites: any;
@@ -14,6 +14,7 @@ declare class RectangleROI {
14
14
  FrameOfReferenceUID: any;
15
15
  label: string;
16
16
  };
17
+ data: any;
17
18
  };
18
19
  finding: any;
19
20
  findingSites: any;
@@ -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.4.1",
3
+ "version": "0.5.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",
@@ -40,10 +40,10 @@
40
40
  "homepage": "https://github.com/cornerstonejs/cornerstone3D-beta/blob/main/packages/adapters/README.md",
41
41
  "dependencies": {
42
42
  "@babel/runtime-corejs2": "^7.17.8",
43
- "dcmjs": "^0.29.4",
43
+ "dcmjs": "^0.29.5",
44
44
  "gl-matrix": "^3.4.3",
45
45
  "lodash.clonedeep": "^4.5.0",
46
46
  "ndarray": "^1.0.19"
47
47
  },
48
- "gitHead": "703ce92f95f4503553698d4f334c0e6ca17e273a"
48
+ "gitHead": "3cf344b5de9f7a747da7aa7bdfd88679ac851540"
49
49
  }