@cornerstonejs/tools 1.49.0 → 1.49.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.49.0",
3
+ "version": "1.49.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.49.0",
32
+ "@cornerstonejs/core": "^1.49.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": "718c297a32f861b3ecc4500e0da07ba6ecf4d589"
56
+ "gitHead": "c405ce8a57e5e3d67fab7f1b02e105a6a689ae93"
57
57
  }
@@ -785,7 +785,7 @@ class SplineROITool extends ContourSegmentationBaseTool {
785
785
  // Add an action to create a new spline data on creating an interpolated
786
786
  // instance.
787
787
  let postInterpolateAction;
788
- if (this.configuration.interpolation.enabled) {
788
+ if (this.configuration.interpolation?.enabled) {
789
789
  postInterpolateAction = (annotation) => {
790
790
  annotation.data.spline ||= createSpline();
791
791
  this.createInterpolatedSplineControl(annotation);
@@ -813,7 +813,7 @@ class SplineROITool extends ContourSegmentationBaseTool {
813
813
  const data = annotation.data;
814
814
  const targetId = this.getTargetId(viewport);
815
815
 
816
- if (!data.spline.closed || !textboxStyle.visibility) {
816
+ if (!data.spline.instance.closed || !textboxStyle.visibility) {
817
817
  return;
818
818
  }
819
819