@cornerstonejs/tools 1.7.1 → 1.7.2
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/cursors/SVGCursorDescriptor.d.ts +1 -37
- package/dist/cjs/cursors/SVGCursorDescriptor.js +1 -3
- package/dist/cjs/cursors/SVGCursorDescriptor.js.map +1 -1
- package/dist/esm/cursors/SVGCursorDescriptor.d.ts +1 -37
- package/dist/esm/cursors/SVGCursorDescriptor.js +1 -3
- package/dist/esm/cursors/SVGCursorDescriptor.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/cursors/SVGCursorDescriptor.ts +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@cornerstonejs/core": "^1.7.
|
|
31
|
+
"@cornerstonejs/core": "^1.7.2",
|
|
32
32
|
"lodash.clonedeep": "4.5.0",
|
|
33
33
|
"lodash.get": "^4.4.2"
|
|
34
34
|
},
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"type": "individual",
|
|
52
52
|
"url": "https://ohif.org/donate"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "8d996239bf6e2ce265a4d0bd6a5a6d8fe5e7122f"
|
|
55
55
|
}
|
|
@@ -39,7 +39,7 @@ const SCISSOR_ICON = `<path fill="{{color}}" d="M82.89,10a12.09,12.09,0,0,0-16.8
|
|
|
39
39
|
const RECTANGLE_ICON = `<path fill="{{color}}" d="M8.86,2.25V66.08H72.69V2.25H8.86ZM65.28,58.67h-49v-49h49v49Z" transform="translate(-8.86 -2.25)"/>`;
|
|
40
40
|
const CIRCLE_ICON = `<path fill="{{color}}" d="M40.77,2.25A31.92,31.92,0,1,0,72.69,34.16,31.92,31.92,0,0,0,40.77,2.25Zm0,57.63A25.71,25.71,0,1,1,66.48,34.16,25.71,25.71,0,0,1,40.77,59.87Z" transform="translate(-8.86 -2.25)"/>`;
|
|
41
41
|
|
|
42
|
-
const CursorSVG = {
|
|
42
|
+
const CursorSVG: Record<string, SVGCursorDescriptor> = {
|
|
43
43
|
Angle: extend(BASE, {
|
|
44
44
|
iconContent: `<path fill="{{color}}" d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50
|
|
45
45
|
50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23
|
|
@@ -444,9 +444,7 @@ function registerCursor(
|
|
|
444
444
|
function getDefinedSVGCursorDescriptor(
|
|
445
445
|
name: string
|
|
446
446
|
): SVGCursorDescriptor | undefined {
|
|
447
|
-
|
|
448
|
-
return CursorSVG[name];
|
|
449
|
-
}
|
|
447
|
+
return CursorSVG[name];
|
|
450
448
|
}
|
|
451
449
|
|
|
452
450
|
/*
|