@cornerstonejs/tools 1.47.0 → 1.47.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/tools",
3
- "version": "1.47.0",
3
+ "version": "1.47.1",
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.1",
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": "4b3d112bd06f9e76fbf5996f272c4b2736b5b79b"
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(