@cornerstonejs/tools 1.71.5 → 1.71.7
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/AnnotationEraserTool.js +1 -1
- package/dist/cjs/tools/AnnotationEraserTool.js.map +1 -1
- package/dist/cjs/tools/ScaleOverlayTool.js +2 -2
- package/dist/cjs/tools/ScaleOverlayTool.js.map +1 -1
- package/dist/esm/tools/AnnotationEraserTool.js +1 -1
- package/dist/esm/tools/AnnotationEraserTool.js.map +1 -1
- package/dist/esm/tools/ScaleOverlayTool.js +2 -2
- package/dist/esm/tools/ScaleOverlayTool.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/AnnotationEraserTool.ts +1 -1
- package/src/tools/ScaleOverlayTool.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.7",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "dist/types/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.71.
|
|
32
|
+
"@cornerstonejs/core": "^1.71.7",
|
|
33
33
|
"@icr/polyseg-wasm": "0.4.0",
|
|
34
34
|
"@types/offscreencanvas": "2019.7.3",
|
|
35
35
|
"comlink": "^4.4.1",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "individual",
|
|
60
60
|
"url": "https://ohif.org/donate"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ad670a9725df1bea99ba901c3b24736c3c1926e9"
|
|
63
63
|
}
|
|
@@ -204,8 +204,8 @@ class ScaleOverlayTool extends AnnotationDisplayTool {
|
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
const canvasSize = {
|
|
207
|
-
width: canvas.width,
|
|
208
|
-
height: canvas.height,
|
|
207
|
+
width: canvas.width / window.devicePixelRatio || 1,
|
|
208
|
+
height: canvas.height / window.devicePixelRatio || 1,
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
const topLeft = annotation.data.handles.points[0];
|