@cornerstonejs/tools 4.19.0 → 4.19.3
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.
|
@@ -118,6 +118,9 @@ class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
118
118
|
this.fireChangeOnUpdate = null;
|
|
119
119
|
this.isPointNearTool = (element, annotation, canvasCoords, proximity) => {
|
|
120
120
|
const { instance: spline } = annotation.data.spline;
|
|
121
|
+
if (!spline) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
121
124
|
return spline.isPointNearCurve(canvasCoords, proximity);
|
|
122
125
|
};
|
|
123
126
|
this.toolSelectedCallback = (evt, annotation) => {
|
|
@@ -584,6 +587,9 @@ class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
584
587
|
const { lineWidth, lineDash, color, locked: annotationLocked, } = annotationStyle;
|
|
585
588
|
const canvasCoordinates = controlPoints.map((p) => worldToCanvas(p));
|
|
586
589
|
const { drawPreviewEnabled } = this.configuration.spline;
|
|
590
|
+
if (annotation.data.spline && !annotation.data.spline.instance) {
|
|
591
|
+
annotation.data.spline.instance = new (this._getSplineConfig(annotation.data.spline.type).Class)();
|
|
592
|
+
}
|
|
587
593
|
const splineType = annotation.data.spline.type;
|
|
588
594
|
const splineConfig = this._getSplineConfig(splineType);
|
|
589
595
|
const spline = annotation.data.spline.instance;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.19.
|
|
1
|
+
export declare const version = "4.19.3";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.19.
|
|
1
|
+
export const version = '4.19.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.3",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"canvas": "3.2.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "4.19.
|
|
111
|
+
"@cornerstonejs/core": "4.19.3",
|
|
112
112
|
"@kitware/vtk.js": "34.15.1",
|
|
113
113
|
"@types/d3-array": "3.2.1",
|
|
114
114
|
"@types/d3-interpolate": "3.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "0636758908f268f4e622f72ed90e683d59bcabb6"
|
|
131
131
|
}
|