@cornerstonejs/tools 5.0.13 → 5.0.14

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.
@@ -33,7 +33,9 @@ export function getSegmentIndexAtWorldForLabelmap(segmentation, worldPoint, { vi
33
33
  if (!segmentationVolume) {
34
34
  continue;
35
35
  }
36
- const labelValue = segmentationVolume.imageData.getScalarValueFromWorld(worldPoint);
36
+ const voxelManager = segmentationVolume.voxelManager;
37
+ const indexIJK = utilities.transformWorldToIndex(segmentationVolume.imageData, worldPoint);
38
+ const labelValue = voxelManager.getAtIJKPoint(indexIJK);
37
39
  if (!labelValue) {
38
40
  continue;
39
41
  }
@@ -1 +1 @@
1
- export declare const version = "5.0.13";
1
+ export declare const version = "5.0.14";
@@ -1 +1 @@
1
- export const version = '5.0.13';
1
+ export const version = '5.0.14';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "module": "./dist/esm/index.js",
@@ -108,11 +108,11 @@
108
108
  "lodash.get": "4.4.2"
109
109
  },
110
110
  "devDependencies": {
111
- "@cornerstonejs/core": "5.0.13",
111
+ "@cornerstonejs/core": "5.0.14",
112
112
  "canvas": "3.2.0"
113
113
  },
114
114
  "peerDependencies": {
115
- "@cornerstonejs/core": "5.0.13",
115
+ "@cornerstonejs/core": "5.0.14",
116
116
  "@kitware/vtk.js": "35.5.3",
117
117
  "@types/d3-array": "3.2.1",
118
118
  "@types/d3-interpolate": "3.0.4",
@@ -131,5 +131,5 @@
131
131
  "type": "individual",
132
132
  "url": "https://ohif.org/donate"
133
133
  },
134
- "gitHead": "7b60dbfba9ec3bc187d836acf62ea3ac76e6b3da"
134
+ "gitHead": "0cc8f0d3a269cd4e949b9be7960926447275141e"
135
135
  }