@cornerstonejs/tools 3.11.6 → 3.11.8

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.
@@ -63,6 +63,7 @@ async function calculateVolumeStatistics({ operationData, indices, unit, mode, }
63
63
  segmentationInfo,
64
64
  imageInfo,
65
65
  indices,
66
+ unit,
66
67
  mode,
67
68
  });
68
69
  triggerWorkerProgress(WorkerTypes.COMPUTE_STATISTICS, 100);
@@ -105,7 +105,7 @@ const computeWorker = {
105
105
  };
106
106
  },
107
107
  calculateSegmentsStatisticsVolume: (args) => {
108
- const { mode, indices } = args;
108
+ const { mode, indices, unit } = args;
109
109
  const { segmentation, image } = computeWorker.getArgsFromInfo(args);
110
110
  const { voxelManager: segVoxelManager, spacing: segmentationSpacing } = segmentation;
111
111
  const { voxelManager: imageVoxelManager } = image;
@@ -119,8 +119,8 @@ const computeWorker = {
119
119
  });
120
120
  const stats = SegmentStatsCalculator.getStatistics({
121
121
  spacing: segmentationSpacing,
122
- unit: 'mm',
123
122
  mode,
123
+ unit,
124
124
  });
125
125
  return stats;
126
126
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "3.11.6",
3
+ "version": "3.11.8",
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.11.6",
106
+ "@cornerstonejs/core": "^3.11.8",
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": "059378fcf78f4a9d0143f7c0ad52f8c0a712ea05"
125
+ "gitHead": "c4d9fd52163b0b546ed5ab5105f5e28819ba0f08"
126
126
  }