@cornerstonejs/tools 4.6.2 → 4.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.
|
@@ -109,6 +109,7 @@ class HeightTool extends AnnotationTool {
|
|
|
109
109
|
removeAnnotation(annotation.annotationUID);
|
|
110
110
|
}
|
|
111
111
|
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
|
|
112
|
+
this.doneEditMemo();
|
|
112
113
|
if (newAnnotation) {
|
|
113
114
|
triggerAnnotationCompleted(annotation);
|
|
114
115
|
}
|
|
@@ -119,8 +120,9 @@ class HeightTool extends AnnotationTool {
|
|
|
119
120
|
this.isDrawing = true;
|
|
120
121
|
const eventDetail = evt.detail;
|
|
121
122
|
const { element } = eventDetail;
|
|
122
|
-
const { annotation, viewportIdsToRender, handleIndex, movingTextBox } = this.editData;
|
|
123
|
+
const { annotation, viewportIdsToRender, handleIndex, movingTextBox, newAnnotation } = this.editData;
|
|
123
124
|
const { data } = annotation;
|
|
125
|
+
this.createMemo(element, annotation, { newAnnotation });
|
|
124
126
|
if (movingTextBox) {
|
|
125
127
|
const { deltaPoints } = eventDetail;
|
|
126
128
|
const worldPosDelta = deltaPoints.world;
|
|
@@ -395,7 +395,9 @@ class PlanarFreehandROITool extends ContourSegmentationBaseTool {
|
|
|
395
395
|
if (!this.configuration.calculateStats) {
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
if (annotation.invalidated) {
|
|
399
|
+
this._calculateStatsIfActive(annotation, targetId, viewport, renderingEngine, enabledElement);
|
|
400
|
+
}
|
|
399
401
|
this._renderStats(annotation, viewport, enabledElement, svgDrawingHelper);
|
|
400
402
|
return renderStatus;
|
|
401
403
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.6.
|
|
1
|
+
export declare const version = "4.6.4";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.6.
|
|
1
|
+
export const version = '4.6.4';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
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.1.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "4.6.
|
|
111
|
+
"@cornerstonejs/core": "4.6.4",
|
|
112
112
|
"@kitware/vtk.js": "32.12.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": "23bb3183cd05f6b9b6f1a9a6f134c7a2338a1e3c"
|
|
131
131
|
}
|