@cornerstonejs/tools 4.18.0 → 4.18.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.
|
@@ -131,7 +131,7 @@ function completeDrawClosedContour(element, options) {
|
|
|
131
131
|
if (this.haltDrawing(element, canvasPoints)) {
|
|
132
132
|
return false;
|
|
133
133
|
}
|
|
134
|
-
const { annotation, viewportIdsToRender } = this.commonData;
|
|
134
|
+
const { annotation, viewportIdsToRender, movingTextBox } = this.commonData;
|
|
135
135
|
const enabledElement = getEnabledElement(element);
|
|
136
136
|
const { viewport } = enabledElement;
|
|
137
137
|
addCanvasPointsToArray(element, canvasPoints, canvasPoints[0], this.commonData);
|
|
@@ -145,7 +145,7 @@ function completeDrawClosedContour(element, options) {
|
|
|
145
145
|
targetWindingDirection: ContourWindingDirection.Clockwise,
|
|
146
146
|
}, viewport);
|
|
147
147
|
const { textBox } = annotation.data.handles;
|
|
148
|
-
if (!textBox?.hasMoved) {
|
|
148
|
+
if (!textBox?.hasMoved && !movingTextBox) {
|
|
149
149
|
triggerContourAnnotationCompleted(annotation, contourHoleProcessingEnabled);
|
|
150
150
|
}
|
|
151
151
|
this.isDrawing = false;
|
|
@@ -177,7 +177,7 @@ function completeDrawOpenContour(element, options) {
|
|
|
177
177
|
if (this.haltDrawing(element, canvasPoints)) {
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
|
-
const { annotation, viewportIdsToRender } = this.commonData;
|
|
180
|
+
const { annotation, viewportIdsToRender, movingTextBox } = this.commonData;
|
|
181
181
|
const enabledElement = getEnabledElement(element);
|
|
182
182
|
const { viewport } = enabledElement;
|
|
183
183
|
const updatedPoints = shouldSmooth(this.configuration, annotation)
|
|
@@ -200,7 +200,7 @@ function completeDrawOpenContour(element, options) {
|
|
|
200
200
|
if (annotation.data.isOpenUShapeContour) {
|
|
201
201
|
annotation.data.openUShapeContourVectorToPeak = resolveVectorToPeak(canvasPoints, viewport, annotation.data.isOpenUShapeContour);
|
|
202
202
|
}
|
|
203
|
-
if (!textBox.hasMoved) {
|
|
203
|
+
if (!textBox.hasMoved && !movingTextBox) {
|
|
204
204
|
triggerContourAnnotationCompleted(annotation, contourHoleProcessingEnabled);
|
|
205
205
|
}
|
|
206
206
|
this.isDrawing = false;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.18.
|
|
1
|
+
export declare const version = "4.18.2";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.18.
|
|
1
|
+
export const version = '4.18.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.2",
|
|
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.18.
|
|
111
|
+
"@cornerstonejs/core": "4.18.2",
|
|
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": "a978600e12def8b794ce0c1045e61bd4fc646851"
|
|
131
131
|
}
|