@cornerstonejs/core 1.34.0 → 1.35.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.34.0",
3
+ "version": "1.35.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "a1bdeb0d4083453272dbca7e8c5f445d30d1fd4c"
50
+ "gitHead": "641ed9ce2f06e6ad6edb3a7aa001e0338b9f193d"
51
51
  }
@@ -0,0 +1,4 @@
1
+ // Axis-aligned bounding box 2D
2
+ type AABB2 = { minX: number; maxX: number; minY: number; maxY: number };
3
+
4
+ export type { AABB2 as default };
@@ -22,6 +22,7 @@ import type {
22
22
  } from './ILoadObject';
23
23
  import type Metadata from './Metadata';
24
24
  import type OrientationVectors from './OrientationVectors';
25
+ import type AABB2 from './AABB2';
25
26
  import type Point2 from './Point2';
26
27
  import type Point3 from './Point3';
27
28
  import type Point4 from './Point4';
@@ -153,6 +154,7 @@ export type {
153
154
  //
154
155
  Metadata,
155
156
  OrientationVectors,
157
+ AABB2,
156
158
  Point2,
157
159
  Point3,
158
160
  Point4,
@@ -1,4 +1,4 @@
1
- import { metaData } from '..';
1
+ import { addProvider } from '../metaData';
2
2
 
3
3
  let state: Record<string, any> = {}; // Calibrated pixel spacing per imageId
4
4
  /**
@@ -38,6 +38,6 @@ const metadataProvider = {
38
38
  },
39
39
  };
40
40
 
41
- metaData.addProvider(metadataProvider.get);
41
+ addProvider(metadataProvider.get);
42
42
 
43
43
  export default metadataProvider;