@cornerstonejs/adapters 4.5.6 → 4.5.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.
@@ -219,6 +219,7 @@ function insertPixelDataPlanar(_ref4) {
219
219
  const imageIdIndex = imageIdMaps.indices[imageId];
220
220
  const labelmapImage = labelMapImages[imageIdIndex];
221
221
  const labelmap2DView = labelmapImage.getPixelData();
222
+ const imageVoxelManager = labelmapImage.voxelManager;
222
223
  const data = alignedPixelDataI.data;
223
224
  const indexCache = [];
224
225
  for (let k = 0, len = alignedPixelDataI.data.length; k < len; ++k) {
@@ -241,7 +242,11 @@ function insertPixelDataPlanar(_ref4) {
241
242
  imageIdMaps
242
243
  }));
243
244
  }
244
- labelmap2DView[x] = segmentIndex;
245
+ if (imageVoxelManager) {
246
+ imageVoxelManager.setAtIndex(x, segmentIndex);
247
+ } else {
248
+ labelmap2DView[x] = segmentIndex;
249
+ }
245
250
  indexCache.push(x);
246
251
  }
247
252
  }
@@ -1 +1 @@
1
- export declare const version = "4.5.6";
1
+ export declare const version = "4.5.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "4.5.6",
3
+ "version": "4.5.8",
4
4
  "description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -89,8 +89,8 @@
89
89
  "ndarray": "1.0.19"
90
90
  },
91
91
  "peerDependencies": {
92
- "@cornerstonejs/core": "4.5.6",
93
- "@cornerstonejs/tools": "4.5.6"
92
+ "@cornerstonejs/core": "4.5.8",
93
+ "@cornerstonejs/tools": "4.5.8"
94
94
  },
95
- "gitHead": "4f634db4526be8197d1f5fe2aa743af9bcc1c520"
95
+ "gitHead": "8534f86040ba427cf37ae2d64b337e78a05b312c"
96
96
  }