@cornerstonejs/tools 2.6.2 → 2.6.4
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.
|
@@ -123,8 +123,6 @@ class LengthTool extends AnnotationTool {
|
|
|
123
123
|
};
|
|
124
124
|
this._activateModify(element);
|
|
125
125
|
hideElementCursor(element);
|
|
126
|
-
const enabledElement = getEnabledElement(element);
|
|
127
|
-
const { renderingEngine } = enabledElement;
|
|
128
126
|
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
|
|
129
127
|
evt.preventDefault();
|
|
130
128
|
};
|
|
@@ -140,8 +138,6 @@ class LengthTool extends AnnotationTool {
|
|
|
140
138
|
this._deactivateModify(element);
|
|
141
139
|
this._deactivateDraw(element);
|
|
142
140
|
resetElementCursor(element);
|
|
143
|
-
const enabledElement = getEnabledElement(element);
|
|
144
|
-
const { renderingEngine } = enabledElement;
|
|
145
141
|
if (this.isHandleOutsideImage &&
|
|
146
142
|
this.configuration.preventHandleOutsideImage) {
|
|
147
143
|
removeAnnotation(annotation.annotationUID);
|
|
@@ -156,7 +152,6 @@ class LengthTool extends AnnotationTool {
|
|
|
156
152
|
this._dragCallback = (evt) => {
|
|
157
153
|
this.isDrawing = true;
|
|
158
154
|
const eventDetail = evt.detail;
|
|
159
|
-
const { element } = eventDetail;
|
|
160
155
|
const { annotation, viewportIdsToRender, handleIndex, movingTextBox } = this.editData;
|
|
161
156
|
const { data } = annotation;
|
|
162
157
|
if (movingTextBox) {
|
|
@@ -409,8 +404,6 @@ class LengthTool extends AnnotationTool {
|
|
|
409
404
|
};
|
|
410
405
|
this._activateModify(element);
|
|
411
406
|
hideElementCursor(element);
|
|
412
|
-
const enabledElement = getEnabledElement(element);
|
|
413
|
-
const { renderingEngine } = enabledElement;
|
|
414
407
|
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
|
|
415
408
|
evt.preventDefault();
|
|
416
409
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"canvas": "^2.11.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@cornerstonejs/core": "^2.6.
|
|
107
|
+
"@cornerstonejs/core": "^2.6.4",
|
|
108
108
|
"@kitware/vtk.js": "32.1.1",
|
|
109
109
|
"@types/d3-array": "^3.0.4",
|
|
110
110
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"type": "individual",
|
|
124
124
|
"url": "https://ohif.org/donate"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "f7993c8f2de74cfaf76f31c390bc1a876a00bc23"
|
|
127
127
|
}
|