@cornerstonejs/tools 1.21.1 → 1.22.0
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/eventDispatchers/mouseEventHandlers/mouseDown.js +1 -1
- package/dist/cjs/eventDispatchers/mouseEventHandlers/mouseDown.js.map +1 -1
- package/dist/cjs/tools/MagnifyTool.js +2 -2
- package/dist/cjs/tools/MagnifyTool.js.map +1 -1
- package/dist/cjs/tools/annotation/CobbAngleTool.d.ts +31 -5
- package/dist/cjs/tools/annotation/CobbAngleTool.js +266 -70
- package/dist/cjs/tools/annotation/CobbAngleTool.js.map +1 -1
- package/dist/cjs/tools/base/AnnotationTool.d.ts +1 -1
- package/dist/cjs/tools/base/AnnotationTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/cjs/types/ToolSpecificAnnotationTypes.d.ts +44 -0
- package/dist/cjs/utilities/math/angle/angleBetweenLines.d.ts +3 -1
- package/dist/cjs/utilities/math/angle/angleBetweenLines.js +18 -1
- package/dist/cjs/utilities/math/angle/angleBetweenLines.js.map +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDown.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDown.js.map +1 -1
- package/dist/esm/tools/MagnifyTool.js +2 -2
- package/dist/esm/tools/MagnifyTool.js.map +1 -1
- package/dist/esm/tools/annotation/CobbAngleTool.d.ts +31 -5
- package/dist/esm/tools/annotation/CobbAngleTool.js +273 -71
- package/dist/esm/tools/annotation/CobbAngleTool.js.map +1 -1
- package/dist/esm/tools/base/AnnotationTool.d.ts +1 -1
- package/dist/esm/tools/base/AnnotationTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/esm/types/ToolSpecificAnnotationTypes.d.ts +44 -0
- package/dist/esm/utilities/math/angle/angleBetweenLines.d.ts +3 -1
- package/dist/esm/utilities/math/angle/angleBetweenLines.js +19 -2
- package/dist/esm/utilities/math/angle/angleBetweenLines.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/eventDispatchers/mouseEventHandlers/mouseDown.ts +1 -1
- package/src/tools/MagnifyTool.ts +2 -2
- package/src/tools/annotation/CobbAngleTool.ts +418 -98
- package/src/tools/base/AnnotationTool.ts +2 -1
- package/src/tools/displayTools/Contour/contourDisplay.ts +0 -1
- package/src/types/ToolSpecificAnnotationTypes.ts +46 -0
- package/src/utilities/math/angle/angleBetweenLines.ts +39 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cornerstonejs/core": "^1.
|
|
32
|
+
"@cornerstonejs/core": "^1.22.0",
|
|
33
33
|
"lodash.clonedeep": "4.5.0",
|
|
34
34
|
"lodash.get": "^4.4.2"
|
|
35
35
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "ff226c7a2ed426dc568b8043d3bbbb1cdc993281"
|
|
56
56
|
}
|
|
@@ -136,7 +136,7 @@ export default function mouseDown(evt: EventTypes.MouseDownEventType) {
|
|
|
136
136
|
);
|
|
137
137
|
|
|
138
138
|
toggleAnnotationSelection(annotation.annotationUID, isMultiSelect);
|
|
139
|
-
tool.toolSelectedCallback(evt, annotation, 'Mouse');
|
|
139
|
+
tool.toolSelectedCallback(evt, annotation, 'Mouse', canvasCoords);
|
|
140
140
|
|
|
141
141
|
return;
|
|
142
142
|
}
|
package/src/tools/MagnifyTool.ts
CHANGED
|
@@ -113,7 +113,7 @@ class MagnifyTool extends BaseTool {
|
|
|
113
113
|
} = this.editData;
|
|
114
114
|
const { viewport } = enabledElement;
|
|
115
115
|
const { element } = viewport;
|
|
116
|
-
const
|
|
116
|
+
const viewportProperties = viewport.getProperties();
|
|
117
117
|
|
|
118
118
|
const { canvas: canvasPos, world: worldPos } = currentPoints;
|
|
119
119
|
|
|
@@ -158,7 +158,7 @@ class MagnifyTool extends BaseTool {
|
|
|
158
158
|
|
|
159
159
|
magnifyViewport.setStack([referencedImageId]).then(() => {
|
|
160
160
|
// match the original viewport voi range
|
|
161
|
-
magnifyViewport.setProperties(
|
|
161
|
+
magnifyViewport.setProperties(viewportProperties);
|
|
162
162
|
|
|
163
163
|
// Use the original viewport for the base for parallelScale
|
|
164
164
|
const { parallelScale } = viewport.getCamera();
|