@cornerstonejs/tools 3.10.27 → 3.10.29

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.
@@ -300,6 +300,9 @@ class BrushTool extends LabelmapBaseTool {
300
300
  }
301
301
  this.doneEditMemo();
302
302
  const enabledElement = getEnabledElement(element);
303
+ if (!enabledElement) {
304
+ return;
305
+ }
303
306
  this.applyActiveStrategyCallback(enabledElement, this.getOperationData(element), StrategyCallbacks.RejectPreview);
304
307
  this._previewData.preview = null;
305
308
  this._previewData.isDrag = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "3.10.27",
3
+ "version": "3.10.29",
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.10.27",
106
+ "@cornerstonejs/core": "^3.10.29",
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": "645eed0568edb1022f63342116ad92b41b6bb262"
125
+ "gitHead": "48f5d2a8f7be1363f03c6a5761cf9839bf612e40"
126
126
  }