@cornerstonejs/tools 3.9.3 → 3.9.5

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.
@@ -7,6 +7,7 @@ import RepresentationTypes from '../../enums/SegmentationRepresentations';
7
7
  import { setActiveSegmentIndex } from '../../stateManagement/segmentation/segmentIndex';
8
8
  import { getHoveredContourSegmentationAnnotation, getSegmentIndexAtLabelmapBorder, getSegmentIndexAtWorldPoint, } from '../../utilities/segmentation';
9
9
  import { state } from '../../store/state';
10
+ import { ToolModes } from '../../enums';
10
11
  class SegmentSelectTool extends BaseTool {
11
12
  static { this.SelectMode = {
12
13
  Inside: 'Inside',
@@ -22,6 +23,9 @@ class SegmentSelectTool extends BaseTool {
22
23
  }) {
23
24
  super(toolProps, defaultToolProps);
24
25
  this.mouseMoveCallback = (evt) => {
26
+ if (this.mode !== ToolModes.Active) {
27
+ return;
28
+ }
25
29
  if (this.hoverTimer) {
26
30
  clearTimeout(this.hoverTimer);
27
31
  }
@@ -108,6 +108,8 @@ const getCalibratedLengthUnitsAndScale = (image, handles) => {
108
108
  CalibrationTypes.USER,
109
109
  CalibrationTypes.ERROR,
110
110
  CalibrationTypes.PROJECTION,
111
+ CalibrationTypes.CALIBRATED,
112
+ CalibrationTypes.UNKNOWN,
111
113
  ];
112
114
  if (types.includes(calibration?.type)) {
113
115
  calibrationType = calibration.type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "3.9.3",
3
+ "version": "3.9.5",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "module": "./dist/esm/index.js",
@@ -103,7 +103,7 @@
103
103
  "canvas": "^3.1.0"
104
104
  },
105
105
  "peerDependencies": {
106
- "@cornerstonejs/core": "^3.9.3",
106
+ "@cornerstonejs/core": "^3.9.5",
107
107
  "@kitware/vtk.js": "32.12.1",
108
108
  "@types/d3-array": "^3.0.4",
109
109
  "@types/d3-interpolate": "^3.0.1",
@@ -122,5 +122,5 @@
122
122
  "type": "individual",
123
123
  "url": "https://ohif.org/donate"
124
124
  },
125
- "gitHead": "2f5fb013e50c6ac1f9a683ed32e67c28227c6333"
125
+ "gitHead": "9901c3e2eb2cf1ec0ff3ebd2466aca755ed3cedb"
126
126
  }