@cornerstonejs/adapters 0.3.0 → 0.3.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.
@@ -0,0 +1,31 @@
1
+ import isValidCornerstoneTrackingIdentifier from "./isValidCornerstoneTrackingIdentifier";
2
+ declare class EllipticalROI {
3
+ static trackingIdentifierTextValue: string;
4
+ static toolType: string;
5
+ static utilityToolType: string;
6
+ static TID300Representation: any;
7
+ static isValidCornerstoneTrackingIdentifier: typeof isValidCornerstoneTrackingIdentifier;
8
+ static getMeasurementData(MeasurementGroup: any, sopInstanceUIDToImageIdMap: any, imageToWorldCoords: any, metadata: any): {
9
+ description: any;
10
+ sopInstanceUid: any;
11
+ annotation: {
12
+ annotationUID: any;
13
+ metadata: {
14
+ toolName: any;
15
+ referencedImageId: any;
16
+ FrameOfReferenceUID: any;
17
+ label: string;
18
+ };
19
+ };
20
+ finding: any;
21
+ findingSites: any;
22
+ };
23
+ static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): {
24
+ area: any;
25
+ points: any[];
26
+ trackingIdentifierTextValue: string;
27
+ finding: any;
28
+ findingSites: any;
29
+ };
30
+ }
31
+ export default EllipticalROI;
@@ -1,4 +1,5 @@
1
1
  export default class MeasurementReport {
2
+ static CORNERSTONE_3D_TAG: any;
2
3
  static MEASUREMENT_BY_TOOLTYPE: {};
3
4
  static CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE: {};
4
5
  static CORNERSTONE_TOOL_CLASSES_BY_TOOL_TYPE: {};
@@ -49,5 +50,9 @@ export default class MeasurementReport {
49
50
  * Generate Cornerstone tool state from dataset
50
51
  */
51
52
  static generateToolState(dataset: any, sopInstanceUIDToImageIdMap: any, imageToWorldCoords: any, metadata: any, hooks: any): {};
53
+ /**
54
+ * Register a new tool type.
55
+ * @param toolClass to perform I/O to DICOM for this tool
56
+ */
52
57
  static registerTool(toolClass: any): void;
53
58
  }
@@ -19,7 +19,7 @@ declare class RectangleROI {
19
19
  findingSites: any;
20
20
  };
21
21
  static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): {
22
- points: any;
22
+ points: any[];
23
23
  area: any;
24
24
  perimeter: any;
25
25
  trackingIdentifierTextValue: string;
@@ -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 EllipticalROI from "./EllipticalROI";
5
6
  import RectangleROI from "./RectangleROI";
6
7
  import PlanarFreehandROI from "./PlanarFreehandROI";
7
8
  declare const Cornerstone3D: {
@@ -9,7 +10,7 @@ declare const Cornerstone3D: {
9
10
  CobbAngle: typeof CobbAngle;
10
11
  Angle: typeof Angle;
11
12
  Length: any;
12
- EllipticalROI: any;
13
+ EllipticalROI: typeof EllipticalROI;
13
14
  RectangleROI: typeof RectangleROI;
14
15
  ArrowAnnotate: any;
15
16
  Probe: any;
@@ -0,0 +1 @@
1
+ export default function isValidCornerstoneTrackingIdentifier(trackingIdentifier: string): boolean;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
5
5
  "src": "src/index.ts",
6
- "main": "src/index.ts",
6
+ "main": "./dist/@cornerstonejs/adapters.es.js",
7
+ "module": "src/index.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
@@ -44,5 +45,5 @@
44
45
  "lodash.clonedeep": "^4.5.0",
45
46
  "ndarray": "^1.0.19"
46
47
  },
47
- "gitHead": "7381a5c8235939b7e23fd371da5c21d607accbe2"
48
+ "gitHead": "0bb81c32d09bc5d1f734fa6a1bf4422cf7ead49d"
48
49
  }
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import adaptersSR from "./adapters";
2
- export { adaptersSR };
3
-
4
- export default adaptersSR;