@cornerstonejs/tools 1.7.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "1.7.0",
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",
@@ -22,12 +22,13 @@
22
22
  "build": "yarn run build:all",
23
23
  "api-check": "api-extractor --debug run",
24
24
  "clean": "shx rm -rf dist",
25
+ "dev": "tsc --project ./tsconfig.esm.json --watch",
25
26
  "build:update-api": "yarn run build && api-extractor run --local",
26
27
  "prepublishOnly": "yarn run build",
27
28
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
28
29
  },
29
30
  "dependencies": {
30
- "@cornerstonejs/core": "^1.7.0",
31
+ "@cornerstonejs/core": "^1.7.2",
31
32
  "lodash.clonedeep": "4.5.0",
32
33
  "lodash.get": "^4.4.2"
33
34
  },
@@ -50,5 +51,5 @@
50
51
  "type": "individual",
51
52
  "url": "https://ohif.org/donate"
52
53
  },
53
- "gitHead": "757fe06aab211f0bd506c40f262264e90290b702"
54
+ "gitHead": "8d996239bf6e2ce265a4d0bd6a5a6d8fe5e7122f"
54
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
- if (Object.prototype.hasOwnProperty.call(CursorSVG, name)) {
448
- return CursorSVG[name];
449
- }
447
+ return CursorSVG[name];
450
448
  }
451
449
 
452
450
  /*