@cornerstonejs/tools 1.47.0 → 1.47.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "1.47.0",
3
+ "version": "1.47.2",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
30
30
  },
31
31
  "dependencies": {
32
- "@cornerstonejs/core": "^1.47.0",
32
+ "@cornerstonejs/core": "^1.47.2",
33
33
  "comlink": "^4.4.1",
34
34
  "lodash.clonedeep": "4.5.0",
35
35
  "lodash.get": "^4.4.2"
@@ -53,5 +53,5 @@
53
53
  "type": "individual",
54
54
  "url": "https://ohif.org/donate"
55
55
  },
56
- "gitHead": "b1235a2e36cda555341dfbd164ef45e519c4efd5"
56
+ "gitHead": "78fcd9b96ffde773c93a74d5274c17af1c5e41c5"
57
57
  }
@@ -254,6 +254,10 @@ class ReferenceLines extends AnnotationDisplayTool {
254
254
  );
255
255
  }
256
256
 
257
+ if (canvasCoordinates.length < 2) {
258
+ return renderStatus;
259
+ }
260
+
257
261
  const dataId = `${annotationUID}-line`;
258
262
  const lineUID = '1';
259
263
  drawLineSvg(
@@ -1044,6 +1044,8 @@ class EllipticalROITool extends AnnotationTool {
1044
1044
  // Some area to do stats over.
1045
1045
 
1046
1046
  if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
1047
+ this.isHandleOutsideImage = false;
1048
+
1047
1049
  const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
1048
1050
  const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
1049
1051