@cornerstonejs/tools 1.66.2 → 1.66.3
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/AngleTool.js +3 -0
- package/dist/cjs/tools/annotation/AngleTool.js.map +1 -1
- package/dist/esm/tools/annotation/AngleTool.js +3 -0
- package/dist/esm/tools/annotation/AngleTool.js.map +1 -1
- package/dist/types/tools/annotation/AngleTool.d.ts.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/AngleTool.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.66.
|
|
3
|
+
"version": "1.66.3",
|
|
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.66.
|
|
32
|
+
"@cornerstonejs/core": "^1.66.3",
|
|
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": "5dcb513f1cf32f85739c47416879eb4fe1a0afc4"
|
|
63
63
|
}
|
|
@@ -838,6 +838,11 @@ function defaultGetTextLines(data, targetId): string[] {
|
|
|
838
838
|
return;
|
|
839
839
|
}
|
|
840
840
|
|
|
841
|
+
if (isNaN(angle)) {
|
|
842
|
+
// The verbiage for incomplete angle is set in cachedStats
|
|
843
|
+
return [`${angle}`];
|
|
844
|
+
}
|
|
845
|
+
|
|
841
846
|
const textLines = [`${roundNumber(angle)} ${String.fromCharCode(176)}`];
|
|
842
847
|
|
|
843
848
|
return textLines;
|