@ohif/app 3.8.0-beta.82 → 3.8.0-beta.83

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.
Files changed (37) hide show
  1. package/dist/{183.bundle.a3e238998be71c4b2af8.js → 183.bundle.fd870b9c566be6b8de8d.js} +221 -209
  2. package/dist/{206.bundle.279366b01ccb5b9ed76d.js → 206.bundle.06d19d6e45eed7b2192f.js} +2 -2
  3. package/dist/{217.bundle.d44bbaa50b6fa563fe15.js → 217.bundle.c8c6e6cc3a615ceb5db3.js} +286 -219
  4. package/dist/{335.bundle.0abc8f97c6e64678a649.js → 335.bundle.b111c378b127fb97cc11.js} +2 -2
  5. package/dist/{41.bundle.5606052def90b4099491.js → 41.bundle.ee8676aea711cca4fc15.js} +3 -3
  6. package/dist/{422.bundle.591401e2fd1046890472.js → 422.bundle.53c67a0a917d8aa8baae.js} +2 -2
  7. package/dist/{433.bundle.e0018820758f5a86fa7f.js → 433.bundle.c92d3f716a797127c1be.js} +87 -52
  8. package/dist/{448.bundle.987724141ccc47b64e5f.js → 448.bundle.fc42947b8c402a8e6aa9.js} +2 -2
  9. package/dist/{487.bundle.6a9f2e06addc2e437f67.js → 487.bundle.d72821587b031a76b4db.js} +2 -2
  10. package/dist/{544.bundle.1c1f57118560046649c1.js → 544.bundle.80c013bb477a263bcf10.js} +2 -2
  11. package/dist/{574.bundle.fd744349df4adefa5f0a.js → 574.bundle.9919f94ea252d4a45aaf.js} +2 -2
  12. package/dist/{633.bundle.354714289dbec0f6559d.js → 633.bundle.7a2b17d149cb2417ecac.js} +2 -2
  13. package/dist/{669.bundle.1c1921df47ba2c6b8aeb.js → 669.bundle.687b8dc94150dcd9a1d0.js} +5 -5
  14. package/dist/{722.bundle.afab1fe6bfcd569130ac.js → 722.bundle.2ee939850f552481d21f.js} +13 -5
  15. package/dist/{862.bundle.d32ab08e64806b2e964d.js → 862.bundle.217ce894d955626c78c5.js} +1 -1
  16. package/dist/{app.bundle.938e2813744dce26cf97.js → app.bundle.9d271aebe062bb620913.js} +70 -12
  17. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  18. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  19. package/dist/index.html +1 -1
  20. package/dist/{index.worker.64c896c4316fcd506666.worker.js → index.worker.f4bda803c15bc6359d5f.worker.js} +2 -2
  21. package/dist/index.worker.f4bda803c15bc6359d5f.worker.js.map +1 -0
  22. package/dist/{polySeg.bundle.f1a6ece1396dc1385155.js → polySeg.bundle.f75afca9b957abed095e.js} +1 -1
  23. package/dist/sw.js +1 -1
  24. package/package.json +18 -18
  25. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +0 -1
  26. /package/dist/{164.bundle.c74d6044c1624a547134.js → 164.bundle.4c32ad1a75e53dbe75ff.js} +0 -0
  27. /package/dist/{188.bundle.a069c4a4f14db2ddf8cd.js → 188.bundle.8b3c0d6243a5202f89a1.js} +0 -0
  28. /package/dist/{325.bundle.681bc490286ea27e044e.js → 325.bundle.457569e62481f2df3560.js} +0 -0
  29. /package/dist/{342.bundle.e6d0bba29351b5650a8c.js → 342.bundle.8c74ac4c7871bd4a6f60.js} +0 -0
  30. /package/dist/{594.bundle.18fbb3d354d21b1ec1e7.js → 594.bundle.532db635b58ad568feb9.js} +0 -0
  31. /package/dist/{699.bundle.068ecc55a99222a30e1e.js → 699.bundle.a5048cc92cf26e1ba49a.js} +0 -0
  32. /package/dist/{724.bundle.f2b962aecf52906e148f.js → 724.bundle.0d0873ffce6d2e2d7264.js} +0 -0
  33. /package/dist/{889.bundle.9ee397b4202bea9c43f9.js → 889.bundle.2c231ce967d4030ef9d8.js} +0 -0
  34. /package/dist/{905.bundle.c22f27a5d3beb32fb068.js → 905.bundle.9a84adbd67b8bcb3b558.js} +0 -0
  35. /package/dist/{907.bundle.fe0c38c31c95eb2bd4f9.js → 907.bundle.1f009eaddbbcd656d115.js} +0 -0
  36. /package/dist/{94.bundle.01a4674bd42f866cff12.js → 94.bundle.75fe7d9d9c65e5eb30f1.js} +0 -0
  37. /package/dist/{961.bundle.c91f01fd4fac6ad701c2.js → 961.bundle.d4e7fe3917d74ae28ac0.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[217,183,141],{
2
2
 
3
- /***/ 44656:
3
+ /***/ 73868:
4
4
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
5
 
6
6
  "use strict";
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
37
37
  volumeLoader: () => (/* reexport */ volumeLoader_namespaceObject)
38
38
  });
39
39
 
40
- // UNUSED EXPORTS: ImageVolume, ProgressiveRetrieveImages, RenderingEngine, Surface, Viewport, createVolumeActor, createVolumeMapper, getOrCreateCanvas, getShouldUseCPURendering, getShouldUseSharedArrayBuffer, imageRetrievalPoolManager, init, isCornerstoneInitialized, registerImageLoader, requestPoolManager, resetUseCPURendering, resetUseSharedArrayBuffer, setConfiguration, setPreferSizeOverAccuracy, setUseCPURendering, setUseSharedArrayBuffer, setVolumesForViewports
40
+ // UNUSED EXPORTS: ImageVolume, ProgressiveRetrieveImages, RenderingEngine, Surface, Viewport, canRenderFloatTextures, createVolumeActor, createVolumeMapper, getOrCreateCanvas, getShouldUseCPURendering, getShouldUseSharedArrayBuffer, imageRetrievalPoolManager, init, isCornerstoneInitialized, registerImageLoader, requestPoolManager, resetUseCPURendering, resetUseSharedArrayBuffer, setConfiguration, setPreferSizeOverAccuracy, setUseCPURendering, setUseSharedArrayBuffer, setVolumesForViewports
41
41
 
42
42
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/VideoEnums.js
43
43
  var VideoEnums_namespaceObject = {};
@@ -237,6 +237,7 @@ __webpack_require__.d(utilities_namespaceObject, {
237
237
  getVolumeSliceRangeInfo: () => (utilities_getVolumeSliceRangeInfo),
238
238
  getVolumeViewportScrollInfo: () => (utilities_getVolumeViewportScrollInfo),
239
239
  getVolumeViewportsContainingSameVolumes: () => (utilities_getVolumeViewportsContainingSameVolumes),
240
+ hasFloatScalingParameters: () => (hasFloatScalingParameters),
240
241
  hasNaNValues: () => (hasNaNValues),
241
242
  imageIdToURI: () => (imageIdToURI),
242
243
  imageRetrieveMetadataProvider: () => (utilities_imageRetrieveMetadataProvider),
@@ -3250,6 +3251,7 @@ let sharedArrayBufferMode = enums_SharedArrayBufferModes.TRUE;
3250
3251
  const defaultConfig = {
3251
3252
  gpuTier: undefined,
3252
3253
  detectGPUConfig: {},
3254
+ isMobile: false,
3253
3255
  rendering: {
3254
3256
  useCPURendering: false,
3255
3257
  preferSizeOverAccuracy: false,
@@ -3261,6 +3263,7 @@ const defaultConfig = {
3261
3263
  let config = {
3262
3264
  gpuTier: undefined,
3263
3265
  detectGPUConfig: {},
3266
+ isMobile: false,
3264
3267
  rendering: {
3265
3268
  useCPURendering: false,
3266
3269
  preferSizeOverAccuracy: false,
@@ -3294,11 +3297,42 @@ function hasSharedArrayBuffer() {
3294
3297
  return false;
3295
3298
  }
3296
3299
  }
3300
+ function _hasNorm16TextureSupport() {
3301
+ const gl = _getGLContext();
3302
+ if (gl) {
3303
+ const ext = gl.getExtension('EXT_texture_norm16');
3304
+ if (ext) {
3305
+ return true;
3306
+ }
3307
+ }
3308
+ return false;
3309
+ }
3310
+ function isMobile() {
3311
+ const ua = navigator.userAgent;
3312
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua);
3313
+ }
3314
+ function isMobileIOS() {
3315
+ return /iPhone|iPod/.test(navigator.platform);
3316
+ }
3297
3317
  async function init(configuration = config) {
3298
3318
  if (csRenderInitialized) {
3299
3319
  return csRenderInitialized;
3300
3320
  }
3301
3321
  config = deepMerge(defaultConfig, configuration);
3322
+ config.isMobile = isMobile();
3323
+ if (config.isMobile) {
3324
+ if (isMobileIOS()) {
3325
+ config.rendering.useNorm16Texture = _hasNorm16TextureSupport();
3326
+ if (!config.rendering.useNorm16Texture) {
3327
+ if (configuration.rendering?.preferSizeOverAccuracy) {
3328
+ config.rendering.preferSizeOverAccuracy = true;
3329
+ }
3330
+ else {
3331
+ console.log('norm16 texture not supported, you can turn on the preferSizeOverAccuracy flag to use native data type, but be aware of the inaccuracy of the rendering in high bits');
3332
+ }
3333
+ }
3334
+ }
3335
+ }
3302
3336
  const hasWebGLContext = _hasActiveWebGLContext();
3303
3337
  if (!hasWebGLContext) {
3304
3338
  console.log('CornerstoneRender: GPU not detected, using CPU rendering');
@@ -3333,6 +3367,16 @@ function setPreferSizeOverAccuracy(status) {
3333
3367
  csRenderInitialized = true;
3334
3368
  _updateRenderingPipelinesForAllViewports();
3335
3369
  }
3370
+ function canRenderFloatTextures() {
3371
+ const isMobile = config.isMobile;
3372
+ if (!isMobile) {
3373
+ return true;
3374
+ }
3375
+ if (isMobileIOS()) {
3376
+ return false;
3377
+ }
3378
+ return true;
3379
+ }
3336
3380
  function resetUseCPURendering() {
3337
3381
  config.rendering.useCPURendering = !_hasActiveWebGLContext();
3338
3382
  _updateRenderingPipelinesForAllViewports();
@@ -28650,14 +28694,16 @@ function loadImageToCanvas(options) {
28650
28694
  errorCallback.call(this, error, imageId);
28651
28695
  });
28652
28696
  }
28653
- const { useNorm16Texture } = getConfiguration().rendering;
28697
+ const { useNorm16Texture, preferSizeOverAccuracy } = getConfiguration().rendering;
28698
+ const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
28654
28699
  const options = {
28655
28700
  targetBuffer: {
28656
- type: useNorm16Texture ? undefined : 'Float32Array',
28701
+ type: useNativeDataType ? undefined : 'Float32Array',
28657
28702
  },
28658
28703
  preScale: {
28659
28704
  enabled: true,
28660
28705
  },
28706
+ useNativeDataType,
28661
28707
  useRGBA: !!useCPURendering,
28662
28708
  requestType,
28663
28709
  };
@@ -30090,6 +30136,12 @@ function getBufferConfiguration(targetBufferType, length, options = {}) {
30090
30136
  }
30091
30137
 
30092
30138
 
30139
+ ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/hasFloatScalingParameters.js
30140
+ const hasFloatScalingParameters = (scalingParameters) => {
30141
+ const hasFloatRescale = Object.values(scalingParameters).some((value) => typeof value === 'number' && !Number.isInteger(value));
30142
+ return hasFloatRescale;
30143
+ };
30144
+
30093
30145
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/generateVolumePropsFromImageIds.js
30094
30146
 
30095
30147
 
@@ -30102,6 +30154,7 @@ function getBufferConfiguration(targetBufferType, length, options = {}) {
30102
30154
 
30103
30155
 
30104
30156
 
30157
+
30105
30158
  function generateVolumePropsFromImageIds(imageIds, volumeId) {
30106
30159
  const { useNorm16Texture, preferSizeOverAccuracy } = getConfiguration().rendering;
30107
30160
  const use16BitDataType = useNorm16Texture || preferSizeOverAccuracy;
@@ -30111,8 +30164,8 @@ function generateVolumePropsFromImageIds(imageIds, volumeId) {
30111
30164
  const scalingParameters = getScalingParameters(imageId);
30112
30165
  const hasNegativeRescale = scalingParameters.rescaleIntercept < 0 ||
30113
30166
  scalingParameters.rescaleSlope < 0;
30114
- const hasFloatRescale = scalingParameters.rescaleIntercept % 1 !== 0 ||
30115
- scalingParameters.rescaleSlope % 1 !== 0;
30167
+ const floatAfterScale = hasFloatScalingParameters(scalingParameters);
30168
+ const canRenderFloat = canRenderFloatTextures();
30116
30169
  const { BitsAllocated, PixelRepresentation, PhotometricInterpretation, ImageOrientationPatient, PixelSpacing, Columns, Rows, } = volumeMetadata;
30117
30170
  const rowCosineVec = esm/* vec3.fromValues */.eR.fromValues(ImageOrientationPatient[0], ImageOrientationPatient[1], ImageOrientationPatient[2]);
30118
30171
  const colCosineVec = esm/* vec3.fromValues */.eR.fromValues(ImageOrientationPatient[3], ImageOrientationPatient[4], ImageOrientationPatient[5]);
@@ -30150,7 +30203,7 @@ function generateVolumePropsFromImageIds(imageIds, volumeId) {
30150
30203
  : new Uint8Array(length * numComponents);
30151
30204
  break;
30152
30205
  case 16:
30153
- if (!use16BitDataType || hasFloatRescale) {
30206
+ if (!use16BitDataType || (canRenderFloat && floatAfterScale)) {
30154
30207
  sizeInBytes = length * 4;
30155
30208
  scalarData = useSharedArrayBuffer
30156
30209
  ? utilities_createFloat32SharedArray(length)
@@ -30731,6 +30784,7 @@ async function getVOIFromMinMax(imageVolume, useNativeDataType) {
30731
30784
  },
30732
30785
  priority: PRIORITY,
30733
30786
  requestType: REQUEST_TYPE,
30787
+ useNativeDataType,
30734
30788
  preScale: {
30735
30789
  enabled: true,
30736
30790
  scalingParameters: scalingParametersToUse,
@@ -30738,7 +30792,7 @@ async function getVOIFromMinMax(imageVolume, useNativeDataType) {
30738
30792
  };
30739
30793
  let image = esm_cache.getImage(imageId);
30740
30794
  if (!imageVolume.referencedImageIds?.length) {
30741
- image = await loadAndCacheImage(imageId, options);
30795
+ image = await loadAndCacheImage(imageId, { ...options, ignoreCache: true });
30742
30796
  }
30743
30797
  const imageScalarData = image
30744
30798
  ? image.getPixelData()
@@ -33480,6 +33534,7 @@ function hexToRgb(hex) {
33480
33534
 
33481
33535
 
33482
33536
 
33537
+
33483
33538
 
33484
33539
 
33485
33540
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/VolumeViewport.js
@@ -36433,6 +36488,7 @@ class StackViewport extends RenderingEngine_Viewport {
36433
36488
  },
36434
36489
  useRGBA: false,
36435
36490
  transferSyntaxUID,
36491
+ useNativeDataType: this.useNativeDataType,
36436
36492
  priority: 5,
36437
36493
  requestType: enums_RequestType.Interaction,
36438
36494
  additionalDetails,
@@ -44092,8 +44148,8 @@ function getDefinedCursors(context, symbol) {
44092
44148
  const standardCursorNames = STANDARD_CURSORS.values();
44093
44149
 
44094
44150
 
44095
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
44096
- var esm = __webpack_require__(44656);
44151
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
44152
+ var esm = __webpack_require__(73868);
44097
44153
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/ImageMouseCursor.js
44098
44154
 
44099
44155
 
@@ -45342,6 +45398,8 @@ var ChangeTypes;
45342
45398
  var Events;
45343
45399
  (function (Events) {
45344
45400
  Events["TOOL_ACTIVATED"] = "CORNERSTONE_TOOLS_TOOL_ACTIVATED";
45401
+ Events["TOOLGROUP_VIEWPORT_ADDED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED";
45402
+ Events["TOOLGROUP_VIEWPORT_REMOVED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED";
45345
45403
  Events["TOOL_MODE_CHANGED"] = "CORNERSTONE_TOOLS_TOOL_MODE_CHANGED";
45346
45404
  Events["ANNOTATION_ADDED"] = "CORNERSTONE_TOOLS_ANNOTATION_ADDED";
45347
45405
  Events["ANNOTATION_COMPLETED"] = "CORNERSTONE_TOOLS_ANNOTATION_COMPLETED";
@@ -45549,8 +45607,8 @@ var WorkerTypes_ChangeTypes;
45549
45607
 
45550
45608
  // UNUSED EXPORTS: annotationInterpolationEventDispatcher, cameraModifiedEventDispatcher, imageRenderedEventDispatcher, imageSpacingCalibratedEventDispatcher, keyboardToolEventDispatcher, mouseToolEventDispatcher, touchToolEventDispatcher
45551
45609
 
45552
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
45553
- var esm = __webpack_require__(44656);
45610
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
45611
+ var esm = __webpack_require__(73868);
45554
45612
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRender.js
45555
45613
  var triggerAnnotationRender = __webpack_require__(6805);
45556
45614
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/imageRenderedEventDispatcher.js
@@ -45750,7 +45808,7 @@ const annotationInterpolationEventDispatcher_disable = function () {
45750
45808
  /* harmony export */ r: () => (/* binding */ createPolylineHole)
45751
45809
  /* harmony export */ });
45752
45810
  /* unused harmony export default */
45753
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
45811
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
45754
45812
  /* harmony import */ var _utilities_getViewportsForAnnotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65903);
45755
45813
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21013);
45756
45814
  /* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90252);
@@ -46097,8 +46155,8 @@ const segmentationRepresentationModifiedListener = function (evt) {
46097
46155
  var enums_SegmentationRepresentations = __webpack_require__(83946);
46098
46156
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js + 2 modules
46099
46157
  var segmentationState = __webpack_require__(30322);
46100
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
46101
- var esm = __webpack_require__(44656);
46158
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
46159
+ var esm = __webpack_require__(73868);
46102
46160
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
46103
46161
  var ToolGroupManager = __webpack_require__(52610);
46104
46162
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js
@@ -46477,8 +46535,8 @@ __webpack_require__.d(__webpack_exports__, {
46477
46535
 
46478
46536
  // UNUSED EXPORTS: AdvancedMagnifyTool, AngleTool, AnnotationDisplayTool, AnnotationTool, ArrowAnnotateTool, BaseTool, BidirectionalTool, BrushTool, CONSTANTS, CircleROIStartEndThresholdTool, CircleROITool, CircleScissorsTool, CobbAngleTool, CrosshairsTool, DragProbeTool, EllipticalROITool, Enums, EraserTool, KeyImageTool, LengthTool, LivewireContourSegmentationTool, LivewireContourTool, MIPJumpToClickTool, MagnifyTool, OrientationMarkerTool, OverlayGridTool, PaintFillTool, PanTool, PlanarFreehandContourSegmentationTool, PlanarFreehandROITool, PlanarRotateTool, ProbeTool, RectangleROIStartEndThresholdTool, RectangleROIThresholdTool, RectangleROITool, RectangleScissorsTool, ReferenceCursors, ReferenceLines, ReferenceLinesTool, ScaleOverlayTool, SegmentSelectTool, SegmentationDisplayTool, SegmentationIntersectionTool, SphereScissorsTool, SplineContourSegmentationTool, SplineROITool, StackScrollMouseWheelTool, StackScrollTool, Synchronizer, SynchronizerManager, ToolGroupManager, TrackballRotateTool, Types, UltrasoundDirectionalTool, VideoRedactionTool, VolumeRotateMouseWheelTool, WindowLevelTool, ZoomTool, addTool, annotation, cancelActiveManipulations, cursors, destroy, drawing, init, removeTool, state, synchronizers, utilities
46479
46537
 
46480
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
46481
- var esm = __webpack_require__(44656);
46538
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
46539
+ var esm = __webpack_require__(73868);
46482
46540
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
46483
46541
  var annotationState = __webpack_require__(38296);
46484
46542
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js + 2 modules
@@ -47357,7 +47415,7 @@ VideoRedactionTool.toolName = 'VideoRedaction';
47357
47415
  /* harmony export */ });
47358
47416
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48463);
47359
47417
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__);
47360
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
47418
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
47361
47419
  /* harmony import */ var _annotationLocking__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48428);
47362
47420
  /* harmony import */ var _annotationVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21009);
47363
47421
 
@@ -47564,7 +47622,7 @@ const defaultFrameOfReferenceSpecificAnnotationManager = new FrameOfReferenceSpe
47564
47622
  /* harmony export */ isAnnotationLocked: () => (/* binding */ isAnnotationLocked)
47565
47623
  /* harmony export */ });
47566
47624
  /* unused harmony exports setAnnotationLocked, getAnnotationsLocked, getAnnotationsLockedCount, unlockAllAnnotations */
47567
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
47625
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
47568
47626
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
47569
47627
 
47570
47628
 
@@ -47667,7 +47725,7 @@ function getIsLocked() {
47667
47725
  /* harmony export */ setAnnotationSelected: () => (/* binding */ setAnnotationSelected)
47668
47726
  /* harmony export */ });
47669
47727
  /* unused harmony exports getAnnotationsSelected, getAnnotationsSelectedByToolName, getAnnotationsSelectedCount */
47670
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
47728
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
47671
47729
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
47672
47730
  /* harmony import */ var _annotationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38296);
47673
47731
 
@@ -47767,7 +47825,7 @@ __webpack_require__.r(__webpack_exports__);
47767
47825
  /* harmony export */ resetAnnotationManager: () => (/* binding */ resetAnnotationManager),
47768
47826
  /* harmony export */ setAnnotationManager: () => (/* binding */ setAnnotationManager)
47769
47827
  /* harmony export */ });
47770
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
47828
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
47771
47829
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
47772
47830
  /* harmony import */ var _FrameOfReferenceSpecificAnnotationManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22581);
47773
47831
  /* harmony import */ var _helpers_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54177);
@@ -47896,7 +47954,7 @@ function invalidateAnnotation(annotation) {
47896
47954
  /* harmony export */ isAnnotationVisible: () => (/* binding */ isAnnotationVisible)
47897
47955
  /* harmony export */ });
47898
47956
  /* unused harmony exports setAnnotationVisibility, showAllAnnotations */
47899
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
47957
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
47900
47958
  /* harmony import */ var _annotationState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38296);
47901
47959
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84901);
47902
47960
  /* harmony import */ var _annotationSelection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42351);
@@ -48242,7 +48300,7 @@ var ToolStyle = __webpack_require__(31862);
48242
48300
  /* harmony export */ _3: () => (/* binding */ triggerAnnotationAddedForFOR),
48243
48301
  /* harmony export */ dZ: () => (/* binding */ triggerAnnotationCompleted)
48244
48302
  /* harmony export */ });
48245
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
48303
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
48246
48304
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
48247
48305
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52610);
48248
48306
 
@@ -48345,8 +48403,8 @@ var annotationState = __webpack_require__(38296);
48345
48403
  var annotationVisibility = __webpack_require__(21009);
48346
48404
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js
48347
48405
  var FrameOfReferenceSpecificAnnotationManager = __webpack_require__(22581);
48348
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
48349
- var esm = __webpack_require__(44656);
48406
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
48407
+ var esm = __webpack_require__(73868);
48350
48408
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Events.js
48351
48409
  var enums_Events = __webpack_require__(28117);
48352
48410
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/AnnotationGroup.js
@@ -48571,7 +48629,7 @@ function getSegmentVisibility(toolGroupId, segmentationRepresentationUID, segmen
48571
48629
  /* harmony export */ jU: () => (/* binding */ getSurfaceActorUID)
48572
48630
  /* harmony export */ });
48573
48631
  /* unused harmony exports generateCacheId, updatePolyDataCache */
48574
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
48632
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
48575
48633
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
48576
48634
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21013);
48577
48635
  /* harmony import */ var _polySeg_registerPolySegWorker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65807);
@@ -48837,8 +48895,8 @@ function addSegmentations(segmentationInputArray) {
48837
48895
 
48838
48896
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
48839
48897
  var ToolGroupManager = __webpack_require__(52610);
48840
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
48841
- var esm = __webpack_require__(44656);
48898
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
48899
+ var esm = __webpack_require__(73868);
48842
48900
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationConfig.js
48843
48901
 
48844
48902
  function getGlobalConfig() {
@@ -50243,7 +50301,7 @@ async function canConvertFromTo(fromRepresentationType, toRepresentationType) {
50243
50301
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
50244
50302
  /* harmony export */ b: () => (/* binding */ registerPolySegWorker)
50245
50303
  /* harmony export */ });
50246
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
50304
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
50247
50305
 
50248
50306
  let registered = false;
50249
50307
  function registerPolySegWorker() {
@@ -50352,8 +50410,8 @@ __webpack_require__.d(__webpack_exports__, {
50352
50410
  // EXTERNAL MODULE: ../../../node_modules/lodash.clonedeep/index.js
50353
50411
  var lodash_clonedeep = __webpack_require__(48463);
50354
50412
  var lodash_clonedeep_default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep);
50355
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
50356
- var esm = __webpack_require__(44656);
50413
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
50414
+ var esm = __webpack_require__(73868);
50357
50415
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
50358
50416
  var enums = __webpack_require__(84901);
50359
50417
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourConfig.js
@@ -50807,7 +50865,7 @@ __webpack_require__.r(__webpack_exports__);
50807
50865
  /* harmony export */ triggerSegmentationRepresentationModified: () => (/* binding */ triggerSegmentationRepresentationModified),
50808
50866
  /* harmony export */ triggerSegmentationRepresentationRemoved: () => (/* binding */ triggerSegmentationRepresentationRemoved)
50809
50867
  /* harmony export */ });
50810
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
50868
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
50811
50869
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
50812
50870
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30322);
50813
50871
  /* harmony import */ var _utilities_segmentation_getUniqueSegmentIndices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94510);
@@ -50879,7 +50937,7 @@ function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse) {
50879
50937
  /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
50880
50938
 
50881
50939
  "use strict";
50882
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
50940
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
50883
50941
 
50884
50942
  class Synchronizer {
50885
50943
  constructor(synchronizerId, eventName, eventHandler, options) {
@@ -51201,7 +51259,7 @@ function destroySynchronizer(synchronizerId) {
51201
51259
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51202
51260
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
51203
51261
  /* harmony export */ });
51204
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
51262
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
51205
51263
  /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61738);
51206
51264
 
51207
51265
 
@@ -51382,8 +51440,8 @@ function _appendChild(newNode, referenceNode) {
51382
51440
  referenceNode.querySelector('div.viewport-element').appendChild(newNode);
51383
51441
  }
51384
51442
 
51385
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
51386
- var esm = __webpack_require__(44656);
51443
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
51444
+ var esm = __webpack_require__(73868);
51387
51445
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/filterToolsWithAnnotationsForElement.js
51388
51446
  var store_filterToolsWithAnnotationsForElement = __webpack_require__(9933);
51389
51447
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getToolsWithModesForElement.js
@@ -51589,7 +51647,7 @@ function resetSvgNodeCache() {
51589
51647
 
51590
51648
  "use strict";
51591
51649
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44753);
51592
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
51650
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
51593
51651
  /* harmony import */ var _utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24592);
51594
51652
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21013);
51595
51653
  /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(96214);
@@ -52212,22 +52270,29 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_4__/* .Annotation
52212
52270
  continue;
52213
52271
  }
52214
52272
  const { imageData, dimensions } = image;
52215
- const scale = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedScale */ .yH)(image);
52216
- const dist1 = this._calculateLength(worldPos1, worldPos2) / scale;
52217
- const dist2 = this._calculateLength(worldPos3, worldPos4) / scale;
52218
- const length = dist1 > dist2 ? dist1 : dist2;
52219
- const width = dist1 > dist2 ? dist2 : dist1;
52220
52273
  const index1 = transformWorldToIndex(imageData, worldPos1);
52221
52274
  const index2 = transformWorldToIndex(imageData, worldPos2);
52222
52275
  const index3 = transformWorldToIndex(imageData, worldPos3);
52223
52276
  const index4 = transformWorldToIndex(imageData, worldPos4);
52277
+ const handles1 = [index1, index2];
52278
+ const handles2 = [index3, index4];
52279
+ const { scale: scale1, units: units1 } = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, handles1);
52280
+ const { scale: scale2, units: units2 } = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, handles2);
52281
+ const dist1 = this._calculateLength(worldPos1, worldPos2) / scale1;
52282
+ const dist2 = this._calculateLength(worldPos3, worldPos4) / scale2;
52283
+ const length = dist1 > dist2 ? dist1 : dist2;
52284
+ const width = dist1 > dist2 ? dist2 : dist1;
52285
+ const lengthUnit = dist1 > dist2 ? units1 : units2;
52286
+ const widthUnit = dist1 > dist2 ? units2 : units1;
52224
52287
  this._isInsideVolume(index1, index2, index3, index4, dimensions)
52225
52288
  ? (this.isHandleOutsideImage = false)
52226
52289
  : (this.isHandleOutsideImage = true);
52227
52290
  cachedStats[targetId] = {
52228
52291
  length,
52229
52292
  width,
52230
- unit: (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnits */ .Nx)(null, image),
52293
+ unit: units1,
52294
+ lengthUnit,
52295
+ widthUnit,
52231
52296
  };
52232
52297
  }
52233
52298
  annotation.invalidated = false;
@@ -52315,7 +52380,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_4__/* .Annotation
52315
52380
  }
52316
52381
  function defaultGetTextLines(data, targetId) {
52317
52382
  const { cachedStats, label } = data;
52318
- const { length, width, unit } = cachedStats[targetId];
52383
+ const { length, width, unit, lengthUnit, widthUnit } = cachedStats[targetId];
52319
52384
  const textLines = [];
52320
52385
  if (label) {
52321
52386
  textLines.push(label);
@@ -52323,7 +52388,7 @@ function defaultGetTextLines(data, targetId) {
52323
52388
  if (length === undefined) {
52324
52389
  return textLines;
52325
52390
  }
52326
- textLines.push(`L: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(length)} ${unit}`, `W: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(width)} ${unit}`);
52391
+ textLines.push(`L: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(length)} ${lengthUnit || unit}`, `W: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(width)} ${widthUnit || unit}`);
52327
52392
  return textLines;
52328
52393
  }
52329
52394
  BidirectionalTool.toolName = 'Bidirectional';
@@ -52339,7 +52404,7 @@ BidirectionalTool.toolName = 'Bidirectional';
52339
52404
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52340
52405
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
52341
52406
  /* harmony export */ });
52342
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
52407
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
52343
52408
  /* harmony import */ var _stateManagement_segmentation_triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87682);
52344
52409
  /* harmony import */ var _PlanarFreehandROITool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78279);
52345
52410
 
@@ -52383,7 +52448,7 @@ PlanarFreehandContourSegmentationTool.toolName =
52383
52448
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52384
52449
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
52385
52450
  /* harmony export */ });
52386
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
52451
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
52387
52452
  /* harmony import */ var _BaseTool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22338);
52388
52453
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38296);
52389
52454
  /* harmony import */ var _utilities_triggerAnnotationRender__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6805);
@@ -52466,7 +52531,7 @@ AnnotationDisplayTool.toolName = 'AnnotationDisplayTool';
52466
52531
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52467
52532
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
52468
52533
  /* harmony export */ });
52469
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
52534
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
52470
52535
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
52471
52536
  /* harmony import */ var _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28062);
52472
52537
  /* harmony import */ var _stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48428);
@@ -52666,7 +52731,7 @@ AnnotationTool.toolName = 'AnnotationTool';
52666
52731
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52667
52732
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
52668
52733
  /* harmony export */ });
52669
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
52734
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
52670
52735
  /* harmony import */ var _enums_ToolModes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12468);
52671
52736
 
52672
52737
 
@@ -52873,7 +52938,7 @@ function isValidLabelmapConfig(config) {
52873
52938
  /* unused harmony exports render, removeSegmentationRepresentation */
52874
52939
  /* harmony import */ var _kitware_vtk_js_Common_DataModel_PiecewiseFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29853);
52875
52940
  /* harmony import */ var _kitware_vtk_js_Rendering_Core_ColorTransferFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37452);
52876
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44656);
52941
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73868);
52877
52942
  /* harmony import */ var _enums_SegmentationRepresentations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83946);
52878
52943
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30322);
52879
52944
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52610);
@@ -53168,8 +53233,8 @@ __webpack_require__.d(__webpack_exports__, {
53168
53233
 
53169
53234
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/index.js
53170
53235
  var base = __webpack_require__(96214);
53171
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
53172
- var esm = __webpack_require__(44656);
53236
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
53237
+ var esm = __webpack_require__(73868);
53173
53238
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/PanTool.js
53174
53239
 
53175
53240
 
@@ -58756,30 +58821,30 @@ class RectangleROITool extends base/* AnnotationTool */.EC {
58756
58821
  continue;
58757
58822
  }
58758
58823
  const { dimensions, imageData, metadata } = image;
58759
- const scalarData = 'getScalarData' in image ? image.getScalarData() : image.scalarData;
58760
- const worldPos1Index = RectangleROITool_transformWorldToIndex(imageData, worldPos1);
58761
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
58762
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
58763
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
58764
- const worldPos2Index = RectangleROITool_transformWorldToIndex(imageData, worldPos2);
58765
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
58766
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
58767
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
58768
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
58824
+ const pos1Index = RectangleROITool_transformWorldToIndex(imageData, worldPos1);
58825
+ pos1Index[0] = Math.floor(pos1Index[0]);
58826
+ pos1Index[1] = Math.floor(pos1Index[1]);
58827
+ pos1Index[2] = Math.floor(pos1Index[2]);
58828
+ const pos2Index = RectangleROITool_transformWorldToIndex(imageData, worldPos2);
58829
+ pos2Index[0] = Math.floor(pos2Index[0]);
58830
+ pos2Index[1] = Math.floor(pos2Index[1]);
58831
+ pos2Index[2] = Math.floor(pos2Index[2]);
58832
+ if (this._isInsideVolume(pos1Index, pos2Index, dimensions)) {
58769
58833
  this.isHandleOutsideImage = false;
58770
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
58771
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
58772
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
58773
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
58774
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
58775
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
58834
+ const iMin = Math.min(pos1Index[0], pos2Index[0]);
58835
+ const iMax = Math.max(pos1Index[0], pos2Index[0]);
58836
+ const jMin = Math.min(pos1Index[1], pos2Index[1]);
58837
+ const jMax = Math.max(pos1Index[1], pos2Index[1]);
58838
+ const kMin = Math.min(pos1Index[2], pos2Index[2]);
58839
+ const kMax = Math.max(pos1Index[2], pos2Index[2]);
58776
58840
  const boundsIJK = [
58777
58841
  [iMin, iMax],
58778
58842
  [jMin, jMax],
58779
58843
  [kMin, kMax],
58780
58844
  ];
58781
58845
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromCorners/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
58782
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
58846
+ const handles = [pos1Index, pos2Index];
58847
+ const { scale, areaUnits } = (0,getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op)(image, handles);
58783
58848
  const area = Math.abs(worldWidth * worldHeight) / (scale * scale);
58784
58849
  const modalityUnitOptions = {
58785
58850
  isPreScaled: (0,isViewportPreScaled/* isViewportPreScaled */.u)(viewport, targetId),
@@ -58796,7 +58861,7 @@ class RectangleROITool extends base/* AnnotationTool */.EC {
58796
58861
  max: stats.max?.value,
58797
58862
  statsArray: stats.array,
58798
58863
  pointsInShape: pointsInShape,
58799
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
58864
+ areaUnit: areaUnits,
58800
58865
  modalityUnit,
58801
58866
  };
58802
58867
  }
@@ -59279,7 +59344,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
59279
59344
  stdDev: null,
59280
59345
  areaUnit: null,
59281
59346
  };
59282
- this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
59347
+ this._calculateCachedStats(annotation, viewport, renderingEngine);
59283
59348
  }
59284
59349
  else if (annotation.invalidated) {
59285
59350
  this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
@@ -59376,7 +59441,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
59376
59441
  }
59377
59442
  return renderStatus;
59378
59443
  };
59379
- this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement) => {
59444
+ this._calculateCachedStats = (annotation, viewport, renderingEngine) => {
59380
59445
  const data = annotation.data;
59381
59446
  const { element } = viewport;
59382
59447
  const { points } = data.handles;
@@ -59395,23 +59460,23 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
59395
59460
  if (!image) {
59396
59461
  continue;
59397
59462
  }
59398
- const { dimensions, imageData, metadata, hasPixelSpacing } = image;
59399
- const worldPos1Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos1);
59400
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
59401
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
59402
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
59403
- const worldPos2Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos2);
59404
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
59405
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
59406
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
59407
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
59463
+ const { dimensions, imageData, metadata } = image;
59464
+ const pos1Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos1);
59465
+ pos1Index[0] = Math.floor(pos1Index[0]);
59466
+ pos1Index[1] = Math.floor(pos1Index[1]);
59467
+ pos1Index[2] = Math.floor(pos1Index[2]);
59468
+ const post2Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos2);
59469
+ post2Index[0] = Math.floor(post2Index[0]);
59470
+ post2Index[1] = Math.floor(post2Index[1]);
59471
+ post2Index[2] = Math.floor(post2Index[2]);
59472
+ if (this._isInsideVolume(pos1Index, post2Index, dimensions)) {
59408
59473
  this.isHandleOutsideImage = false;
59409
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
59410
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
59411
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
59412
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
59413
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
59414
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
59474
+ const iMin = Math.min(pos1Index[0], post2Index[0]);
59475
+ const iMax = Math.max(pos1Index[0], post2Index[0]);
59476
+ const jMin = Math.min(pos1Index[1], post2Index[1]);
59477
+ const jMax = Math.max(pos1Index[1], post2Index[1]);
59478
+ const kMin = Math.min(pos1Index[2], post2Index[2]);
59479
+ const kMax = Math.max(pos1Index[2], post2Index[2]);
59415
59480
  const boundsIJK = [
59416
59481
  [iMin, iMax],
59417
59482
  [jMin, jMax],
@@ -59430,7 +59495,8 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
59430
59495
  };
59431
59496
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromTwoPoints/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
59432
59497
  const isEmptyArea = worldWidth === 0 && worldHeight === 0;
59433
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
59498
+ const handles = [pos1Index, post2Index];
59499
+ const { scale, areaUnits } = (0,getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op)(image, handles);
59434
59500
  const area = Math.abs(Math.PI * (worldWidth / 2) * (worldHeight / 2)) /
59435
59501
  scale /
59436
59502
  scale;
@@ -59450,7 +59516,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
59450
59516
  statsArray: stats.array,
59451
59517
  pointsInShape,
59452
59518
  isEmptyArea,
59453
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
59519
+ areaUnit: areaUnits,
59454
59520
  modalityUnit,
59455
59521
  };
59456
59522
  }
@@ -59995,21 +60061,21 @@ class CircleROITool extends base/* AnnotationTool */.EC {
59995
60061
  continue;
59996
60062
  }
59997
60063
  const { dimensions, imageData, metadata, hasPixelSpacing } = image;
59998
- const worldPos1Index = CircleROITool_transformWorldToIndex(imageData, worldPos1);
59999
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
60000
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
60001
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
60002
- const worldPos2Index = CircleROITool_transformWorldToIndex(imageData, worldPos2);
60003
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
60004
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
60005
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
60006
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
60007
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
60008
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
60009
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
60010
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
60011
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
60012
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
60064
+ const pos1Index = CircleROITool_transformWorldToIndex(imageData, worldPos1);
60065
+ pos1Index[0] = Math.floor(pos1Index[0]);
60066
+ pos1Index[1] = Math.floor(pos1Index[1]);
60067
+ pos1Index[2] = Math.floor(pos1Index[2]);
60068
+ const pos2Index = CircleROITool_transformWorldToIndex(imageData, worldPos2);
60069
+ pos2Index[0] = Math.floor(pos2Index[0]);
60070
+ pos2Index[1] = Math.floor(pos2Index[1]);
60071
+ pos2Index[2] = Math.floor(pos2Index[2]);
60072
+ if (this._isInsideVolume(pos1Index, pos2Index, dimensions)) {
60073
+ const iMin = Math.min(pos1Index[0], pos2Index[0]);
60074
+ const iMax = Math.max(pos1Index[0], pos2Index[0]);
60075
+ const jMin = Math.min(pos1Index[1], pos2Index[1]);
60076
+ const jMax = Math.max(pos1Index[1], pos2Index[1]);
60077
+ const kMin = Math.min(pos1Index[2], pos2Index[2]);
60078
+ const kMax = Math.max(pos1Index[2], pos2Index[2]);
60013
60079
  const boundsIJK = [
60014
60080
  [iMin, iMax],
60015
60081
  [jMin, jMax],
@@ -60028,7 +60094,8 @@ class CircleROITool extends base/* AnnotationTool */.EC {
60028
60094
  };
60029
60095
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromTwoPoints/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
60030
60096
  const isEmptyArea = worldWidth === 0 && worldHeight === 0;
60031
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
60097
+ const handles = [pos1Index, pos2Index];
60098
+ const { scale, units, areaUnits } = (0,utilities.getCalibratedLengthUnitsAndScale)(image, handles);
60032
60099
  const aspect = (0,getCalibratedUnits/* getCalibratedAspect */.CQ)(image);
60033
60100
  const area = Math.abs(Math.PI *
60034
60101
  (worldWidth / scale / 2) *
@@ -60051,9 +60118,9 @@ class CircleROITool extends base/* AnnotationTool */.EC {
60051
60118
  statsArray: stats.array,
60052
60119
  pointsInShape: pointsInShape,
60053
60120
  isEmptyArea,
60054
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
60121
+ areaUnit: areaUnits,
60055
60122
  radius: worldWidth / 2 / scale,
60056
- radiusUnit: (0,getCalibratedUnits/* getCalibratedLengthUnits */.Nx)(null, image),
60123
+ radiusUnit: units,
60057
60124
  perimeter: (2 * Math.PI * (worldWidth / 2)) / scale,
60058
60125
  modalityUnit,
60059
60126
  };
@@ -60569,13 +60636,27 @@ class SplineROITool extends ContourSegmentationBaseTool/* default */.A {
60569
60636
  ]);
60570
60637
  const deltaInX = gl_matrix_esm/* vec3.distance */.eR.distance(originalWorldPoint, deltaXPoint);
60571
60638
  const deltaInY = gl_matrix_esm/* vec3.distance */.eR.distance(originalWorldPoint, deltaYPoint);
60572
- const scale = (0,utilities.getCalibratedScale)(image);
60639
+ const { imageData } = image;
60640
+ const { scale, areaUnits } = (0,utilities.getCalibratedLengthUnitsAndScale)(image, () => {
60641
+ const { maxX: canvasMaxX, maxY: canvasMaxY, minX: canvasMinX, minY: canvasMinY, } = utilities.math.polyline.getAABB(canvasCoordinates);
60642
+ const topLeftBBWorld = viewport.canvasToWorld([
60643
+ canvasMinX,
60644
+ canvasMinY,
60645
+ ]);
60646
+ const topLeftBBIndex = esm.utilities.transformWorldToIndex(imageData, topLeftBBWorld);
60647
+ const bottomRightBBWorld = viewport.canvasToWorld([
60648
+ canvasMaxX,
60649
+ canvasMaxY,
60650
+ ]);
60651
+ const bottomRightBBIndex = esm.utilities.transformWorldToIndex(imageData, bottomRightBBWorld);
60652
+ return [topLeftBBIndex, bottomRightBBIndex];
60653
+ });
60573
60654
  let area = utilities.math.polyline.getArea(canvasCoordinates) / scale / scale;
60574
60655
  area *= deltaInX * deltaInY;
60575
60656
  cachedStats[targetId] = {
60576
60657
  Modality: metadata.Modality,
60577
60658
  area,
60578
- areaUnit: (0,utilities.getCalibratedAreaUnits)(null, image),
60659
+ areaUnit: areaUnits,
60579
60660
  };
60580
60661
  }
60581
60662
  this.triggerAnnotationModified(annotation, enabledElement, enums.ChangeTypes.StatsUpdated);
@@ -65495,6 +65576,7 @@ var PolyData = __webpack_require__(27398);
65495
65576
 
65496
65577
 
65497
65578
 
65579
+
65498
65580
  const OverlayMarkerType = {
65499
65581
  ANNOTATED_CUBE: 1,
65500
65582
  AXES: 2,
@@ -65546,25 +65628,18 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
65546
65628
  }) {
65547
65629
  super(toolProps, defaultToolProps);
65548
65630
  this._resizeObservers = new Map();
65549
- this.configuration_invalidated = true;
65550
65631
  this.onSetToolEnabled = () => {
65551
65632
  this.initViewports();
65552
- this.configuration_invalidated = true;
65553
65633
  this._subscribeToViewportEvents();
65554
65634
  };
65555
65635
  this.onSetToolActive = () => {
65556
65636
  this.initViewports();
65557
- this.configuration_invalidated = true;
65558
65637
  this._subscribeToViewportEvents();
65559
65638
  };
65560
65639
  this.onSetToolDisabled = () => {
65561
65640
  this.cleanUpData();
65562
65641
  this._unsubscribeToViewportNewVolumeSet();
65563
65642
  };
65564
- this.reset = () => {
65565
- this.configuration_invalidated = true;
65566
- this.initViewports();
65567
- };
65568
65643
  this._getViewportsInfo = () => {
65569
65644
  const viewports = (0,ToolGroupManager.getToolGroup)(this.toolGroupId).viewportsInfo;
65570
65645
  return viewports;
@@ -65578,35 +65653,56 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
65578
65653
  orientationWidget.updateViewport();
65579
65654
  };
65580
65655
  this.orientationMarkers = {};
65581
- this.configuration_invalidated = true;
65582
65656
  }
65583
65657
  static { this.CUBE = 1; }
65584
65658
  static { this.AXIS = 2; }
65585
65659
  static { this.VTPFILE = 3; }
65586
65660
  static { this.OVERLAY_MARKER_TYPES = OverlayMarkerType; }
65587
65661
  _unsubscribeToViewportNewVolumeSet() {
65588
- const viewportsInfo = this._getViewportsInfo();
65589
- viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
65590
- const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
65591
- const { element } = viewport;
65592
- element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
65593
- const resizeObserver = this._resizeObservers.get(viewportId);
65594
- resizeObserver.unobserve(element);
65662
+ const unsubscribe = () => {
65663
+ const viewportsInfo = this._getViewportsInfo();
65664
+ viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
65665
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
65666
+ const { element } = viewport;
65667
+ element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.initViewports.bind(this));
65668
+ const resizeObserver = this._resizeObservers.get(viewportId);
65669
+ resizeObserver.unobserve(element);
65670
+ });
65671
+ };
65672
+ esm.eventTarget.removeEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, (evt) => {
65673
+ if (evt.detail.toolGroupId !== this.toolGroupId) {
65674
+ return;
65675
+ }
65676
+ unsubscribe();
65677
+ this.initViewports();
65595
65678
  });
65596
65679
  }
65597
65680
  _subscribeToViewportEvents() {
65598
- const viewportsInfo = this._getViewportsInfo();
65599
- viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
65600
- const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
65601
- const { element } = viewport;
65602
- element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
65603
- const resizeObserver = new ResizeObserver(() => {
65604
- setTimeout(() => {
65605
- this.reset();
65606
- }, 100);
65681
+ const subscribeToElementResize = () => {
65682
+ const viewportsInfo = this._getViewportsInfo();
65683
+ viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
65684
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
65685
+ const { element } = viewport;
65686
+ this.initViewports();
65687
+ element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.initViewports.bind(this));
65688
+ const resizeObserver = new ResizeObserver(() => {
65689
+ setTimeout(() => {
65690
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
65691
+ this.resize(viewportId);
65692
+ viewport.render();
65693
+ }, 100);
65694
+ });
65695
+ resizeObserver.observe(element);
65696
+ this._resizeObservers.set(viewportId, resizeObserver);
65607
65697
  });
65608
- resizeObserver.observe(element);
65609
- this._resizeObservers.set(viewportId, resizeObserver);
65698
+ };
65699
+ subscribeToElementResize();
65700
+ esm.eventTarget.addEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, (evt) => {
65701
+ if (evt.detail.toolGroupId !== this.toolGroupId) {
65702
+ return;
65703
+ }
65704
+ subscribeToElementResize();
65705
+ this.initViewports();
65610
65706
  });
65611
65707
  }
65612
65708
  cleanUpData() {
@@ -65686,7 +65782,6 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
65686
65782
  viewport.addWidget(this.getToolName(), orientationWidget);
65687
65783
  renderWindow.render();
65688
65784
  viewport.getRenderingEngine().render();
65689
- this.configuration_invalidated = false;
65690
65785
  }
65691
65786
  async createCustomActor() {
65692
65787
  const url = this.configuration.overlayConfiguration[OverlayMarkerType.CUSTOM]
@@ -65925,7 +66020,7 @@ SegmentSelectTool.toolName = 'SegmentSelectTool';
65925
66020
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
65926
66021
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
65927
66022
  /* harmony export */ });
65928
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
66023
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
65929
66024
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
65930
66025
  /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(96214);
65931
66026
  /* harmony import */ var _strategies_fillSphere__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61604);
@@ -66403,7 +66498,7 @@ BrushTool.toolName = 'Brush';
66403
66498
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
66404
66499
  /* harmony export */ r: () => (/* binding */ isVolumeSegmentation)
66405
66500
  /* harmony export */ });
66406
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
66501
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
66407
66502
 
66408
66503
  function isVolumeSegmentation(operationData, viewport) {
66409
66504
  const { imageIdReferenceMap } = operationData;
@@ -66467,7 +66562,7 @@ function extend2DBoundingBoxInViewAxis(boundsIJK, numSlicesToProject) {
66467
66562
  /* harmony export */ C: () => (/* binding */ getBoundingBoxAroundShapeWorld),
66468
66563
  /* harmony export */ g: () => (/* binding */ getBoundingBoxAroundShapeIJK)
66469
66564
  /* harmony export */ });
66470
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
66565
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
66471
66566
 
66472
66567
  const { EPSILON } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.CONSTANTS;
66473
66568
  function calculateBoundingBox(points, dimensions, isWorld = false) {
@@ -66686,7 +66781,7 @@ function calculatePerimeter(polyline, closed) {
66686
66781
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
66687
66782
  /* harmony export */ A: () => (/* binding */ findHandlePolylineIndex)
66688
66783
  /* harmony export */ });
66689
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
66784
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
66690
66785
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
66691
66786
 
66692
66787
 
@@ -66941,8 +67036,8 @@ function processContourHoles(contours, points, useXOR = true) {
66941
67036
  }
66942
67037
  /* harmony default export */ const detectContourHoles = ({ processContourHoles });
66943
67038
 
66944
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
66945
- var dist_esm = __webpack_require__(44656);
67039
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
67040
+ var dist_esm = __webpack_require__(73868);
66946
67041
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js
66947
67042
  var ImageMarchingSquares = __webpack_require__(52754);
66948
67043
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/DataArray.js
@@ -67185,7 +67280,7 @@ var calculatePerimeter = __webpack_require__(53891);
67185
67280
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
67186
67281
  /* harmony export */ A: () => (/* binding */ updateContourPolyline)
67187
67282
  /* harmony export */ });
67188
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
67283
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
67189
67284
  /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39956);
67190
67285
  /* harmony import */ var _stateManagement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95778);
67191
67286
 
@@ -67407,13 +67502,10 @@ function _determineCorners(canvasPoints) {
67407
67502
  "use strict";
67408
67503
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
67409
67504
  /* harmony export */ CQ: () => (/* binding */ getCalibratedAspect),
67410
- /* harmony export */ Nx: () => (/* binding */ getCalibratedLengthUnits),
67411
67505
  /* harmony export */ Op: () => (/* binding */ getCalibratedLengthUnitsAndScale),
67412
- /* harmony export */ Ss: () => (/* binding */ getCalibratedAreaUnits),
67413
- /* harmony export */ Xw: () => (/* binding */ getCalibratedProbeUnitsAndValue),
67414
- /* harmony export */ yH: () => (/* binding */ getCalibratedScale)
67506
+ /* harmony export */ Xw: () => (/* binding */ getCalibratedProbeUnitsAndValue)
67415
67507
  /* harmony export */ });
67416
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
67508
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
67417
67509
 
67418
67510
  const { CalibrationTypes } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.Enums;
67419
67511
  const PIXEL_UNITS = 'px';
@@ -67431,48 +67523,11 @@ const UNIT_MAPPING = {
67431
67523
  4: 'seconds',
67432
67524
  };
67433
67525
  const EPS = 1e-3;
67434
- const getCalibratedLengthUnits = (handles, image) => {
67435
- const { calibration, hasPixelSpacing } = image;
67436
- const units = hasPixelSpacing ? 'mm' : PIXEL_UNITS;
67437
- if (!calibration ||
67438
- (!calibration.type && !calibration.sequenceOfUltrasoundRegions)) {
67439
- return units;
67440
- }
67441
- if (calibration.type === CalibrationTypes.UNCALIBRATED) {
67442
- return PIXEL_UNITS;
67443
- }
67444
- if (calibration.sequenceOfUltrasoundRegions) {
67445
- return 'US Region';
67446
- }
67447
- return `${units} ${calibration.type}`;
67448
- };
67449
67526
  const SQUARE = '\xb2';
67450
- const getCalibratedAreaUnits = (handles, image) => {
67451
- const { calibration, hasPixelSpacing } = image;
67452
- const units = (hasPixelSpacing ? 'mm' : PIXEL_UNITS) + SQUARE;
67453
- if (!calibration || !calibration.type) {
67454
- return units;
67455
- }
67456
- if (calibration.sequenceOfUltrasoundRegions) {
67457
- return 'US Region';
67458
- }
67459
- return `${units} ${calibration.type}`;
67460
- };
67461
- const getCalibratedScale = (image, handles = []) => {
67462
- if (image.calibration?.sequenceOfUltrasoundRegions) {
67463
- }
67464
- else if (image.calibration?.scale) {
67465
- return image.calibration.scale;
67466
- }
67467
- else {
67468
- return 1;
67469
- }
67470
- };
67471
67527
  const getCalibratedLengthUnitsAndScale = (image, handles) => {
67472
- const [imageIndex1, imageIndex2] = handles;
67473
67528
  const { calibration, hasPixelSpacing } = image;
67474
67529
  let units = hasPixelSpacing ? 'mm' : PIXEL_UNITS;
67475
- const areaUnits = units + SQUARE;
67530
+ let areaUnits = units + SQUARE;
67476
67531
  let scale = 1;
67477
67532
  let calibrationType = '';
67478
67533
  if (!calibration ||
@@ -67483,6 +67538,15 @@ const getCalibratedLengthUnitsAndScale = (image, handles) => {
67483
67538
  return { units: PIXEL_UNITS, areaUnits: PIXEL_UNITS + SQUARE, scale };
67484
67539
  }
67485
67540
  if (calibration.sequenceOfUltrasoundRegions) {
67541
+ let imageIndex1, imageIndex2;
67542
+ if (Array.isArray(handles) && handles.length === 2) {
67543
+ [imageIndex1, imageIndex2] = handles;
67544
+ }
67545
+ else if (typeof handles === 'function') {
67546
+ const points = handles();
67547
+ imageIndex1 = points[0];
67548
+ imageIndex2 = points[1];
67549
+ }
67486
67550
  let regions = calibration.sequenceOfUltrasoundRegions.filter((region) => imageIndex1[0] >= region.regionLocationMinX0 &&
67487
67551
  imageIndex1[0] <= region.regionLocationMaxX1 &&
67488
67552
  imageIndex1[1] >= region.regionLocationMinY0 &&
@@ -67504,9 +67568,10 @@ const getCalibratedLengthUnitsAndScale = (image, handles) => {
67504
67568
  const physicalDeltaY = Math.abs(region.physicalDeltaY);
67505
67569
  const isSamePhysicalDelta = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isEqual(physicalDeltaX, physicalDeltaY, EPS);
67506
67570
  if (isSamePhysicalDelta) {
67507
- scale = 1 / (physicalDeltaX * physicalDeltaY * 100);
67571
+ scale = 1 / (physicalDeltaX * 10);
67508
67572
  calibrationType = 'US Region';
67509
67573
  units = 'mm';
67574
+ areaUnits = 'mm' + SQUARE;
67510
67575
  }
67511
67576
  else {
67512
67577
  return { units: PIXEL_UNITS, areaUnits: PIXEL_UNITS + SQUARE, scale };
@@ -67573,7 +67638,6 @@ const getCalibratedProbeUnitsAndValue = (image, handles) => {
67573
67638
  };
67574
67639
  };
67575
67640
  const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
67576
- /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (getCalibratedLengthUnits)));
67577
67641
 
67578
67642
 
67579
67643
 
@@ -67586,7 +67650,7 @@ const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
67586
67650
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
67587
67651
  /* harmony export */ R: () => (/* binding */ getSphereBoundsInfo)
67588
67652
  /* harmony export */ });
67589
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
67653
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
67590
67654
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
67591
67655
  /* harmony import */ var _boundingBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15306);
67592
67656
 
@@ -67658,7 +67722,7 @@ function getViewportForAnnotation(annotation) {
67658
67722
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
67659
67723
  /* harmony export */ A: () => (/* binding */ getViewportsForAnnotation)
67660
67724
  /* harmony export */ });
67661
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
67725
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
67662
67726
 
67663
67727
  const { isEqual } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities;
67664
67728
  function getViewportsForAnnotation(annotation) {
@@ -67687,8 +67751,7 @@ function getViewportsForAnnotation(annotation) {
67687
67751
  // EXPORTS
67688
67752
  __webpack_require__.d(__webpack_exports__, {
67689
67753
  debounce: () => (/* reexport */ debounce/* default */.A),
67690
- getCalibratedAreaUnits: () => (/* reexport */ getCalibratedUnits/* getCalibratedAreaUnits */.Ss),
67691
- getCalibratedScale: () => (/* reexport */ getCalibratedUnits/* getCalibratedScale */.yH),
67754
+ getCalibratedLengthUnitsAndScale: () => (/* reexport */ getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op),
67692
67755
  math: () => (/* reexport */ math),
67693
67756
  pointInShapeCallback: () => (/* reexport */ utilities_pointInShapeCallback/* default */.A),
67694
67757
  pointToString: () => (/* reexport */ pointToString/* pointToString */.l),
@@ -67700,7 +67763,7 @@ __webpack_require__.d(__webpack_exports__, {
67700
67763
  triggerAnnotationRenderForViewportIds: () => (/* reexport */ triggerAnnotationRenderForViewportIds/* default */.A)
67701
67764
  });
67702
67765
 
67703
- // UNUSED EXPORTS: annotationFrameRange, boundingBox, calibrateImageSpacing, cine, clip, contourSegmentation, contours, drawing, dynamicVolume, getAnnotationNearPoint, getAnnotationNearPointOnEnabledElement, getCalibratedLengthUnits, getSphereBoundsInfo, getViewportForAnnotation, isObject, jumpToSlice, orientation, planar, planarFreehandROITool, pointInSurroundingSphereCallback, rectangleROITool, segmentation, stackContextPrefetch, stackPrefetch, touch, triggerAnnotationRender, triggerEvent, viewport, viewportFilters, voi
67766
+ // UNUSED EXPORTS: annotationFrameRange, boundingBox, calibrateImageSpacing, cine, clip, contourSegmentation, contours, drawing, dynamicVolume, getAnnotationNearPoint, getAnnotationNearPointOnEnabledElement, getCalibratedAspect, getCalibratedProbeUnitsAndValue, getSphereBoundsInfo, getViewportForAnnotation, isObject, jumpToSlice, orientation, planar, planarFreehandROITool, pointInSurroundingSphereCallback, rectangleROITool, segmentation, stackContextPrefetch, stackPrefetch, touch, triggerAnnotationRender, triggerEvent, viewport, viewportFilters, voi
67704
67767
 
67705
67768
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/polyData/utils.js
67706
67769
  var utils_namespaceObject = {};
@@ -67711,8 +67774,8 @@ __webpack_require__.d(utils_namespaceObject, {
67711
67774
  getPolyDataPoints: () => (getPolyDataPoints)
67712
67775
  });
67713
67776
 
67714
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
67715
- var esm = __webpack_require__(44656);
67777
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
67778
+ var esm = __webpack_require__(73868);
67716
67779
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
67717
67780
  var annotationState = __webpack_require__(38296);
67718
67781
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
@@ -68472,15 +68535,17 @@ function prefetch(element) {
68472
68535
  }
68473
68536
  }
68474
68537
  const requestFn = (imageId, options) => esm.imageLoader.loadAndCacheImage(imageId, options);
68475
- const { useNorm16Texture } = (0,esm.getConfiguration)().rendering;
68538
+ const { useNorm16Texture, preferSizeOverAccuracy } = (0,esm.getConfiguration)().rendering;
68539
+ const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
68476
68540
  imageIdsToPrefetch.forEach((imageId) => {
68477
68541
  const options = {
68478
68542
  targetBuffer: {
68479
- type: useNorm16Texture ? undefined : 'Float32Array',
68543
+ type: useNativeDataType ? undefined : 'Float32Array',
68480
68544
  },
68481
68545
  preScale: {
68482
68546
  enabled: true,
68483
68547
  },
68548
+ useNativeDataType,
68484
68549
  requestType: stackPrefetchUtils/* requestType */.y9,
68485
68550
  };
68486
68551
  esm.imageLoadPoolManager.addRequest(requestFn.bind(null, imageId, options), stackPrefetchUtils/* requestType */.y9, {
@@ -68644,16 +68709,18 @@ function stackContextPrefetch_prefetch(element) {
68644
68709
  }
68645
68710
  const requestFn = (imageId, options) => esm.imageLoader.loadAndCacheImage(imageId, options)
68646
68711
  .then(() => doneCallback(imageId));
68647
- const { useNorm16Texture } = (0,esm.getConfiguration)().rendering;
68712
+ const { useNorm16Texture, preferSizeOverAccuracy } = (0,esm.getConfiguration)().rendering;
68713
+ const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
68648
68714
  indicesToRequestCopy.forEach((imageIdIndex) => {
68649
68715
  const imageId = stack.imageIds[imageIdIndex];
68650
68716
  const options = {
68651
68717
  targetBuffer: {
68652
- type: useNorm16Texture ? undefined : 'Float32Array',
68718
+ type: useNativeDataType ? undefined : 'Float32Array',
68653
68719
  },
68654
68720
  preScale: {
68655
68721
  enabled: true,
68656
68722
  },
68723
+ useNativeDataType,
68657
68724
  requestType: stackPrefetchUtils/* requestType */.y9,
68658
68725
  };
68659
68726
  esm.imageLoadPoolManager.addRequest(requestFn.bind(null, imageId, options), stackPrefetchUtils/* requestType */.y9, {
@@ -70557,8 +70624,8 @@ function getClosestLineSegmentIntersection(points, p1, q1, closed = true) {
70557
70624
  };
70558
70625
  }
70559
70626
 
70560
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
70561
- var dist_esm = __webpack_require__(44656);
70627
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
70628
+ var dist_esm = __webpack_require__(73868);
70562
70629
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/getSubPixelSpacingAndXYDirections.js
70563
70630
 
70564
70631
 
@@ -71130,7 +71197,7 @@ function pointToString(point, decimals = 5) {
71130
71197
  /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
71131
71198
 
71132
71199
  "use strict";
71133
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
71200
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
71134
71201
  /* harmony import */ var _boundingBox_getBoundingBoxAroundShape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14471);
71135
71202
  /* harmony import */ var _boundingBox_extend2DBoundingBoxInViewAxis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42290);
71136
71203
 
@@ -71189,7 +71256,7 @@ function getBoundsIJKFromRectangleAnnotations(annotations, referenceVolume, opti
71189
71256
  /* harmony export */ l: () => (/* binding */ isAxisAlignedRectangle)
71190
71257
  /* harmony export */ });
71191
71258
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44753);
71192
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
71259
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
71193
71260
 
71194
71261
 
71195
71262
  const { isEqual } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__.utilities;
@@ -71224,7 +71291,7 @@ function calculateAnglesWithAxes(vec, axes) {
71224
71291
  /* harmony export */ A: () => (/* binding */ scroll)
71225
71292
  /* harmony export */ });
71226
71293
  /* unused harmony export scrollVolume */
71227
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
71294
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
71228
71295
 
71229
71296
  function scroll(viewport, options) {
71230
71297
  const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(viewport.element);
@@ -71293,7 +71360,7 @@ function scrollVolume(viewport, volumeId, delta, scrollSlabs = false) {
71293
71360
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
71294
71361
  /* harmony export */ A: () => (/* binding */ InterpolationManager)
71295
71362
  /* harmony export */ });
71296
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
71363
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
71297
71364
  /* harmony import */ var _stateManagement_annotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45200);
71298
71365
  /* harmony import */ var _contours_interpolation_getInterpolationDataCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23237);
71299
71366
  /* harmony import */ var _contours_interpolation_interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7727);
@@ -71624,7 +71691,7 @@ function lpad(string, character, length) {
71624
71691
  /* harmony export */ OX: () => (/* binding */ getUniqueSegmentIndices)
71625
71692
  /* harmony export */ });
71626
71693
  /* unused harmony export setSegmentationClean */
71627
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
71694
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
71628
71695
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30322);
71629
71696
  /* harmony import */ var _tools_segmentation_strategies_utils_stackVolumeCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16124);
71630
71697
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84901);
@@ -71871,8 +71938,8 @@ function _validateAnnotations(annotations) {
71871
71938
  }
71872
71939
  /* harmony default export */ const segmentation_rectangleROIThresholdVolumeByRange = ((/* unused pure expression or super */ null && (rectangleROIThresholdVolumeByRange)));
71873
71940
 
71874
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
71875
- var esm = __webpack_require__(44656);
71941
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
71942
+ var esm = __webpack_require__(73868);
71876
71943
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/createMergedLabelmapForIndex.js
71877
71944
 
71878
71945
  function createMergedLabelmapForIndex(labelmaps, segmentIndex = 1, volumeId = 'mergedLabelmap') {
@@ -72689,7 +72756,7 @@ function getHoveredContourSegmentationAnnotation(segmentationId) {
72689
72756
  /* harmony export */ h6: () => (/* binding */ triggerSegmentationRender),
72690
72757
  /* harmony export */ px: () => (/* binding */ segmentationRenderingEngine)
72691
72758
  /* harmony export */ });
72692
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
72759
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
72693
72760
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
72694
72761
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52610);
72695
72762
  /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94152);
@@ -72813,7 +72880,7 @@ function triggerSegmentationRender(toolGroupId) {
72813
72880
  /* harmony export */ n7: () => (/* binding */ getBrushToolInstances)
72814
72881
  /* harmony export */ });
72815
72882
  /* unused harmony exports getVoxelOverlap, processVolumes */
72816
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
72883
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
72817
72884
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52610);
72818
72885
  /* harmony import */ var _tools_segmentation_BrushTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53712);
72819
72886
  /* harmony import */ var _boundingBox_getBoundingBoxAroundShape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14471);
@@ -73099,7 +73166,7 @@ function _getDistance3D(point0, point1) {
73099
73166
  /* harmony export */ Ay: () => (__WEBPACK_DEFAULT_EXPORT__)
73100
73167
  /* harmony export */ });
73101
73168
  /* unused harmony exports annotationRenderingEngine, triggerAnnotationRender */
73102
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
73169
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
73103
73170
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
73104
73171
  /* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2746);
73105
73172
  /* harmony import */ var _getToolsWithModesForElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42360);
@@ -73277,7 +73344,7 @@ function triggerAnnotationRenderForViewportIds(renderingEngine, viewportIdsToRen
73277
73344
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
73278
73345
  /* harmony export */ u: () => (/* binding */ isViewportPreScaled)
73279
73346
  /* harmony export */ });
73280
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
73347
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
73281
73348
 
73282
73349
  function isViewportPreScaled(viewport, targetId) {
73283
73350
  if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.BaseVolumeViewport) {
@@ -73305,7 +73372,7 @@ function isViewportPreScaled(viewport, targetId) {
73305
73372
  /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
73306
73373
 
73307
73374
  "use strict";
73308
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
73375
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
73309
73376
  /* harmony import */ var _clip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88484);
73310
73377
  /* harmony import */ var _scroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21783);
73311
73378
 
@@ -73355,7 +73422,7 @@ function _getImageIndexToJump(numberOfSlices, imageIndex) {
73355
73422
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
73356
73423
  /* harmony export */ A: () => (/* binding */ jumpToWorld)
73357
73424
  /* harmony export */ });
73358
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
73425
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
73359
73426
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
73360
73427
 
73361
73428
 
@@ -73453,8 +73520,8 @@ function _toolGroupHasActiveEnabledOrPassiveTool(toolGroup, toolName) {
73453
73520
  return toolMode === Active || toolMode === Passive || toolMode === Enabled;
73454
73521
  }
73455
73522
 
73456
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
73457
- var esm = __webpack_require__(44656);
73523
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
73524
+ var esm = __webpack_require__(73868);
73458
73525
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
73459
73526
  var gl_matrix_esm = __webpack_require__(44753);
73460
73527
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/filterViewportsWithParallelNormals.js
@@ -73589,8 +73656,8 @@ class ICRPolySeg {
73589
73656
  }
73590
73657
  }
73591
73658
 
73592
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
73593
- var esm = __webpack_require__(44656);
73659
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
73660
+ var esm = __webpack_require__(73868);
73594
73661
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
73595
73662
  var Plane = __webpack_require__(84441);
73596
73663
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 9 modules