@cornerstonejs/tools 0.67.4 → 0.67.6
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/dist/cjs/tools/annotation/ArrowAnnotateTool.js +10 -1
- package/dist/cjs/tools/annotation/ArrowAnnotateTool.js.map +1 -1
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js +10 -1
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/tools/annotation/ArrowAnnotateTool.ts +15 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.6",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cornerstonejs/core": "^0.47.
|
|
29
|
+
"@cornerstonejs/core": "^0.47.3",
|
|
30
30
|
"lodash.clonedeep": "4.5.0",
|
|
31
31
|
"lodash.get": "^4.4.2"
|
|
32
32
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"type": "individual",
|
|
50
50
|
"url": "https://ohif.org/donate"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "cae60430345c18a30265eb66bd89131750d3ee40"
|
|
53
53
|
}
|
|
@@ -25,7 +25,10 @@ import { state } from '../../store';
|
|
|
25
25
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
26
26
|
import { getTextBoxCoordsCanvas } from '../../utilities/drawing';
|
|
27
27
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
28
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
AnnotationCompletedEventDetail,
|
|
30
|
+
AnnotationModifiedEventDetail,
|
|
31
|
+
} from '../../types/EventTypes';
|
|
29
32
|
|
|
30
33
|
import {
|
|
31
34
|
resetElementCursor,
|
|
@@ -310,7 +313,7 @@ class ArrowAnnotateTool extends AnnotationTool {
|
|
|
310
313
|
resetElementCursor(element);
|
|
311
314
|
|
|
312
315
|
const enabledElement = getEnabledElement(element);
|
|
313
|
-
const { renderingEngine } = enabledElement;
|
|
316
|
+
const { viewportId, renderingEngineId, renderingEngine } = enabledElement;
|
|
314
317
|
|
|
315
318
|
if (
|
|
316
319
|
this.isHandleOutsideImage &&
|
|
@@ -346,6 +349,16 @@ class ArrowAnnotateTool extends AnnotationTool {
|
|
|
346
349
|
viewportIdsToRender
|
|
347
350
|
);
|
|
348
351
|
});
|
|
352
|
+
} else {
|
|
353
|
+
const eventType = Events.ANNOTATION_MODIFIED;
|
|
354
|
+
|
|
355
|
+
const eventDetail: AnnotationModifiedEventDetail = {
|
|
356
|
+
annotation,
|
|
357
|
+
viewportId,
|
|
358
|
+
renderingEngineId,
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
triggerEvent(eventTarget, eventType, eventDetail);
|
|
349
362
|
}
|
|
350
363
|
|
|
351
364
|
this.editData = null;
|