@cornerstonejs/tools 2.1.1 → 2.1.3

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.
@@ -17,7 +17,6 @@ import { getCalibratedLengthUnitsAndScale, getCalibratedAspect, } from '../../ut
17
17
  import { isViewportPreScaled } from '../../utilities/viewport/isViewportPreScaled';
18
18
  import { pointInEllipse } from '../../utilities/math/ellipse';
19
19
  import { BasicStatsCalculator } from '../../utilities/math/basic';
20
- import cloneDeep from 'lodash.clonedeep';
21
20
  import { filterAnnotationsWithinSamePlane } from '../../utilities/planar';
22
21
  import { getPixelValueUnits } from '../../utilities/getPixelValueUnits';
23
22
  const { transformWorldToIndex } = csUtils;
@@ -295,7 +294,7 @@ class CircleROIStartEndThresholdTool extends CircleROITool {
295
294
  const { points } = data.handles;
296
295
  const startIJK = transformWorldToIndex(imageData, points[0]);
297
296
  const endIJK = transformWorldToIndex(imageData, points[0]);
298
- const handlesToStart = cloneDeep(points);
297
+ const handlesToStart = csUtils.deepClone(points);
299
298
  const startWorld = vec3.create();
300
299
  imageData.indexToWorldVec3(startIJK, startWorld);
301
300
  const endWorld = vec3.create();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -105,7 +105,7 @@
105
105
  "canvas": "^2.11.2"
106
106
  },
107
107
  "peerDependencies": {
108
- "@cornerstonejs/core": "^2.1.1",
108
+ "@cornerstonejs/core": "^2.1.3",
109
109
  "@kitware/vtk.js": "32.1.0",
110
110
  "@types/d3-array": "^3.0.4",
111
111
  "@types/d3-interpolate": "^3.0.1",
@@ -124,5 +124,5 @@
124
124
  "type": "individual",
125
125
  "url": "https://ohif.org/donate"
126
126
  },
127
- "gitHead": "1a1d3b83e7513f7d72fb34d702a8260d1859883c"
127
+ "gitHead": "4fa4b3d4816dfde68694811564d3fc44c75e3e1f"
128
128
  }