@cornerstonejs/adapters 1.78.1 → 2.0.0-beta.10

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.
@@ -1,7 +1,6 @@
1
1
  import dcmjs, { data, utilities, derivations, normalizers, log } from 'dcmjs';
2
2
  import { Buffer } from 'buffer';
3
3
  import ndarray from 'ndarray';
4
- import cloneDeep from 'lodash.clonedeep';
5
4
  import { vec3 } from 'gl-matrix';
6
5
  import { utilities as utilities$1 } from '@cornerstonejs/tools';
7
6
 
@@ -2870,7 +2869,7 @@ function insertOverlappingPixelDataPlanar(segmentsOnFrame, segmentsOnFrameArray,
2870
2869
  var tempBuffer = labelmapBufferArray[m].slice(0);
2871
2870
 
2872
2871
  // temp list for checking overlaps
2873
- var tempSegmentsOnFrame = cloneDeep(segmentsOnFrameArray[m]);
2872
+ var tempSegmentsOnFrame = structuredClone(segmentsOnFrameArray[m]);
2874
2873
 
2875
2874
  /** split overlapping SEGs algorithm for each segment:
2876
2875
  * A) copy the labelmapBuffer in the array with index 0
@@ -2929,7 +2928,7 @@ function insertOverlappingPixelDataPlanar(segmentsOnFrame, segmentsOnFrameArray,
2929
2928
  M++;
2930
2929
  }
2931
2930
  tempBuffer = labelmapBufferArray[m].slice(0);
2932
- tempSegmentsOnFrame = cloneDeep(segmentsOnFrameArray[m]);
2931
+ tempSegmentsOnFrame = structuredClone(segmentsOnFrameArray[m]);
2933
2932
  _i2 = 0;
2934
2933
  break;
2935
2934
  } else {
@@ -2956,12 +2955,12 @@ function insertOverlappingPixelDataPlanar(segmentsOnFrame, segmentsOnFrameArray,
2956
2955
  if (_ret2 === 0) continue;
2957
2956
  }
2958
2957
  labelmapBufferArray[m] = tempBuffer.slice(0);
2959
- segmentsOnFrameArray[m] = cloneDeep(tempSegmentsOnFrame);
2958
+ segmentsOnFrameArray[m] = structuredClone(tempSegmentsOnFrame);
2960
2959
 
2961
2960
  // reset temp variables/buffers for new segment
2962
2961
  m = 0;
2963
2962
  tempBuffer = labelmapBufferArray[m].slice(0);
2964
- tempSegmentsOnFrame = cloneDeep(segmentsOnFrameArray[m]);
2963
+ tempSegmentsOnFrame = structuredClone(segmentsOnFrameArray[m]);
2965
2964
  }
2966
2965
  }
2967
2966
  var getSegmentIndex = function getSegmentIndex(multiframe, frame) {
@@ -3641,7 +3640,7 @@ var MeasurementReport = /** @class */ (function () {
3641
3640
  vr: "UI"
3642
3641
  },
3643
3642
  ImplementationClassUID: {
3644
- Value: [DicomMetaDictionary$1.uid()],
3643
+ Value: [DicomMetaDictionary$1.uid()], // TODO: could be git hash or other valid id
3645
3644
  vr: "UI"
3646
3645
  },
3647
3646
  ImplementationVersionName: {
@@ -5265,7 +5264,7 @@ function generateRTSSFromSegmentations(segmentations, metadataProvider, DicomMet
5265
5264
  vr: "UI"
5266
5265
  },
5267
5266
  ImplementationClassUID: {
5268
- Value: [DicomMetaDictionary.uid()],
5267
+ Value: [DicomMetaDictionary.uid()], // TODO: could be git hash or other valid id
5269
5268
  vr: "UI"
5270
5269
  },
5271
5270
  ImplementationVersionName: {
@@ -5317,7 +5316,7 @@ function generateRTSSFromAnnotations(annotations, metadataProvider, DicomMetadat
5317
5316
  vr: "UI"
5318
5317
  },
5319
5318
  ImplementationClassUID: {
5320
- Value: [DicomMetaDictionary.uid()],
5319
+ Value: [DicomMetaDictionary.uid()], // TODO: could be git hash or other valid id
5321
5320
  vr: "UI"
5322
5321
  },
5323
5322
  ImplementationVersionName: {