@cornerstonejs/tools 1.39.0 → 1.40.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
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.39.0",
32
+ "@cornerstonejs/core": "^1.40.0",
33
33
  "comlink": "^4.4.1",
34
34
  "lodash.clonedeep": "4.5.0",
35
35
  "lodash.get": "^4.4.2"
@@ -53,5 +53,5 @@
53
53
  "type": "individual",
54
54
  "url": "https://ohif.org/donate"
55
55
  },
56
- "gitHead": "dfec4edcd4585f7a33884517071b77ec2c944cf6"
56
+ "gitHead": "28ed3eaf75ccd5cab7c7c0df0f4b09950cc42d7c"
57
57
  }
@@ -29,7 +29,7 @@ class VolumeRotateMouseWheelTool extends BaseTool {
29
29
  supportedInteractionTypes: ['Mouse', 'Touch'],
30
30
  configuration: {
31
31
  direction: DIRECTIONS.Z,
32
- rotateIncrementDegrees: 0.5,
32
+ rotateIncrementDegrees: 30,
33
33
  },
34
34
  }
35
35
  ) {
@@ -51,7 +51,8 @@ class VolumeRotateMouseWheelTool extends BaseTool {
51
51
  const [cx, cy, cz] = focalPoint;
52
52
  const [ax, ay, az] = direction;
53
53
 
54
- const angle = deltaY * rotateIncrementDegrees;
54
+ //Calculate angle in radian as glmatrix rotate is in radian
55
+ const angle = (deltaY * (rotateIncrementDegrees * Math.PI)) / 180;
55
56
 
56
57
  // position[3] = 1.0
57
58
  // focalPoint[3] = 1.0