@cornerstonejs/tools 4.22.7 → 4.22.9

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.
@@ -446,7 +446,11 @@ class AngleTool extends AnnotationTool {
446
446
  for (let i = 0; i < targetIds.length; i++) {
447
447
  const targetId = targetIds[i];
448
448
  const angle = angleBetweenLines([worldPos1, worldPos2], [worldPos2, worldPos3]);
449
- const { dimensions, imageData } = this.getTargetImageData(targetId);
449
+ const image = this.getTargetImageData(targetId);
450
+ if (!image) {
451
+ continue;
452
+ }
453
+ const { dimensions, imageData } = image;
450
454
  this.isHandleOutsideImage = [worldPos1, worldPos2, worldPos3]
451
455
  .map((worldPos) => csUtils.transformWorldToIndex(imageData, worldPos))
452
456
  .some((index) => !csUtils.indexWithinDimensions(index, dimensions));
@@ -1 +1 @@
1
- export declare const version = "4.22.7";
1
+ export declare const version = "4.22.9";
@@ -1 +1 @@
1
- export const version = '4.22.7';
1
+ export const version = '4.22.9';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "4.22.7",
3
+ "version": "4.22.9",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "module": "./dist/esm/index.js",
@@ -105,11 +105,11 @@
105
105
  "lodash.get": "4.4.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@cornerstonejs/core": "4.22.7",
108
+ "@cornerstonejs/core": "4.22.9",
109
109
  "canvas": "3.2.0"
110
110
  },
111
111
  "peerDependencies": {
112
- "@cornerstonejs/core": "4.22.7",
112
+ "@cornerstonejs/core": "4.22.9",
113
113
  "@kitware/vtk.js": "34.15.1",
114
114
  "@types/d3-array": "3.2.1",
115
115
  "@types/d3-interpolate": "3.0.4",
@@ -128,5 +128,5 @@
128
128
  "type": "individual",
129
129
  "url": "https://ohif.org/donate"
130
130
  },
131
- "gitHead": "0cc73058d26dd99741a7682ff8ee1256106a8eeb"
131
+ "gitHead": "8958f5b08f3cd4a234fe7cae163f45b1cd9d009c"
132
132
  }