@ohif/app 3.8.0-beta.81 → 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 (38) hide show
  1. package/dist/{183.bundle.a3e238998be71c4b2af8.js → 183.bundle.fd870b9c566be6b8de8d.js} +221 -209
  2. package/dist/{206.bundle.fcaa081a0d1f68095c31.js → 206.bundle.06d19d6e45eed7b2192f.js} +5 -3
  3. package/dist/{217.bundle.d44bbaa50b6fa563fe15.js → 217.bundle.c8c6e6cc3a615ceb5db3.js} +286 -219
  4. package/dist/{335.bundle.8400aa5a88697a6b9d53.js → 335.bundle.b111c378b127fb97cc11.js} +3 -3
  5. package/dist/{41.bundle.0905b258a90a7c6437bb.js → 41.bundle.ee8676aea711cca4fc15.js} +10 -11
  6. package/dist/{422.bundle.c6fd037b075dd54f1ba7.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.5e6da31477887bf53016.js → 448.bundle.fc42947b8c402a8e6aa9.js} +2 -2
  9. package/dist/{487.bundle.89d973049defb3ba6cb7.js → 487.bundle.d72821587b031a76b4db.js} +7 -5
  10. package/dist/{544.bundle.1c1f57118560046649c1.js → 544.bundle.80c013bb477a263bcf10.js} +2 -2
  11. package/dist/{574.bundle.d648fea691d6709bf2b4.js → 574.bundle.9919f94ea252d4a45aaf.js} +8 -10
  12. package/dist/{633.bundle.acab89baaa06a299d679.js → 633.bundle.7a2b17d149cb2417ecac.js} +2 -2
  13. package/dist/{669.bundle.b17e8a621e38d92c653f.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.ed937512f7d19d61c411.js → app.bundle.9d271aebe062bb620913.js} +117 -68
  17. package/dist/app.bundle.css +1 -1
  18. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  19. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  20. package/dist/index.html +1 -1
  21. package/dist/{index.worker.64c896c4316fcd506666.worker.js → index.worker.f4bda803c15bc6359d5f.worker.js} +2 -2
  22. package/dist/index.worker.f4bda803c15bc6359d5f.worker.js.map +1 -0
  23. package/dist/{polySeg.bundle.f1a6ece1396dc1385155.js → polySeg.bundle.f75afca9b957abed095e.js} +1 -1
  24. package/dist/sw.js +1 -1
  25. package/package.json +18 -18
  26. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +0 -1
  27. /package/dist/{164.bundle.fadc7c5d634402c73b5f.js → 164.bundle.4c32ad1a75e53dbe75ff.js} +0 -0
  28. /package/dist/{188.bundle.51dc4b37920f45594393.js → 188.bundle.8b3c0d6243a5202f89a1.js} +0 -0
  29. /package/dist/{325.bundle.fd8e0c18db4708d03a91.js → 325.bundle.457569e62481f2df3560.js} +0 -0
  30. /package/dist/{342.bundle.e6d0bba29351b5650a8c.js → 342.bundle.8c74ac4c7871bd4a6f60.js} +0 -0
  31. /package/dist/{594.bundle.84076375b127b9c7f673.js → 594.bundle.532db635b58ad568feb9.js} +0 -0
  32. /package/dist/{699.bundle.9367d7ef9f7615b2e733.js → 699.bundle.a5048cc92cf26e1ba49a.js} +0 -0
  33. /package/dist/{724.bundle.55f9f49816de931af91a.js → 724.bundle.0d0873ffce6d2e2d7264.js} +0 -0
  34. /package/dist/{889.bundle.8ef8b723d0163d5d135c.js → 889.bundle.2c231ce967d4030ef9d8.js} +0 -0
  35. /package/dist/{905.bundle.8a96e1a75b7cfe5ec093.js → 905.bundle.9a84adbd67b8bcb3b558.js} +0 -0
  36. /package/dist/{907.bundle.5c88ed911bed18582da4.js → 907.bundle.1f009eaddbbcd656d115.js} +0 -0
  37. /package/dist/{94.bundle.f5f2479c214180d05d42.js → 94.bundle.75fe7d9d9c65e5eb30f1.js} +0 -0
  38. /package/dist/{961.bundle.f4e52bc76d3044d05372.js → 961.bundle.d4e7fe3917d74ae28ac0.js} +0 -0
@@ -428,8 +428,8 @@ function getDefinedCursors(context, symbol) {
428
428
  const standardCursorNames = STANDARD_CURSORS.values();
429
429
 
430
430
 
431
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
432
- var esm = __webpack_require__(44656);
431
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
432
+ var esm = __webpack_require__(73868);
433
433
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/ImageMouseCursor.js
434
434
 
435
435
 
@@ -1678,6 +1678,8 @@ var ChangeTypes;
1678
1678
  var Events;
1679
1679
  (function (Events) {
1680
1680
  Events["TOOL_ACTIVATED"] = "CORNERSTONE_TOOLS_TOOL_ACTIVATED";
1681
+ Events["TOOLGROUP_VIEWPORT_ADDED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED";
1682
+ Events["TOOLGROUP_VIEWPORT_REMOVED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED";
1681
1683
  Events["TOOL_MODE_CHANGED"] = "CORNERSTONE_TOOLS_TOOL_MODE_CHANGED";
1682
1684
  Events["ANNOTATION_ADDED"] = "CORNERSTONE_TOOLS_ANNOTATION_ADDED";
1683
1685
  Events["ANNOTATION_COMPLETED"] = "CORNERSTONE_TOOLS_ANNOTATION_COMPLETED";
@@ -1890,8 +1892,8 @@ __webpack_require__.d(__webpack_exports__, {
1890
1892
  $m: () => (/* reexport */ eventDispatchers_touchToolEventDispatcher)
1891
1893
  });
1892
1894
 
1893
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
1894
- var esm = __webpack_require__(44656);
1895
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
1896
+ var esm = __webpack_require__(73868);
1895
1897
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRender.js
1896
1898
  var triggerAnnotationRender = __webpack_require__(6805);
1897
1899
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/imageRenderedEventDispatcher.js
@@ -2090,7 +2092,7 @@ const annotationInterpolationEventDispatcher_disable = function () {
2090
2092
  /* harmony export */ A: () => (/* binding */ contourSegmentationCompletedListener),
2091
2093
  /* harmony export */ r: () => (/* binding */ createPolylineHole)
2092
2094
  /* harmony export */ });
2093
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
2095
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
2094
2096
  /* harmony import */ var _utilities_getViewportsForAnnotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65903);
2095
2097
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21013);
2096
2098
  /* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90252);
@@ -2446,8 +2448,8 @@ const segmentationRepresentationModifiedListener = function (evt) {
2446
2448
  var SegmentationRepresentations = __webpack_require__(83946);
2447
2449
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js + 2 modules
2448
2450
  var segmentationState = __webpack_require__(30322);
2449
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
2450
- var esm = __webpack_require__(44656);
2451
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
2452
+ var esm = __webpack_require__(73868);
2451
2453
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
2452
2454
  var ToolGroupManager = __webpack_require__(52610);
2453
2455
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js
@@ -2918,8 +2920,8 @@ __webpack_require__.d(synchronizers_namespaceObject, {
2918
2920
  var types_namespaceObject = {};
2919
2921
  __webpack_require__.r(types_namespaceObject);
2920
2922
 
2921
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
2922
- var esm = __webpack_require__(44656);
2923
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
2924
+ var esm = __webpack_require__(73868);
2923
2925
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
2924
2926
  var annotationState = __webpack_require__(38296);
2925
2927
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js + 2 modules
@@ -3798,7 +3800,7 @@ VideoRedactionTool.toolName = 'VideoRedaction';
3798
3800
  /* harmony export */ });
3799
3801
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48463);
3800
3802
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__);
3801
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
3803
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
3802
3804
  /* harmony import */ var _annotationLocking__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48428);
3803
3805
  /* harmony import */ var _annotationVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21009);
3804
3806
 
@@ -4008,7 +4010,7 @@ __webpack_require__.r(__webpack_exports__);
4008
4010
  /* harmony export */ setAnnotationLocked: () => (/* binding */ setAnnotationLocked),
4009
4011
  /* harmony export */ unlockAllAnnotations: () => (/* binding */ unlockAllAnnotations)
4010
4012
  /* harmony export */ });
4011
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
4013
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
4012
4014
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
4013
4015
 
4014
4016
 
@@ -4113,7 +4115,7 @@ __webpack_require__.r(__webpack_exports__);
4113
4115
  /* harmony export */ isAnnotationSelected: () => (/* binding */ isAnnotationSelected),
4114
4116
  /* harmony export */ setAnnotationSelected: () => (/* binding */ setAnnotationSelected)
4115
4117
  /* harmony export */ });
4116
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
4118
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
4117
4119
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
4118
4120
  /* harmony import */ var _annotationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38296);
4119
4121
 
@@ -4212,7 +4214,7 @@ __webpack_require__.r(__webpack_exports__);
4212
4214
  /* harmony export */ resetAnnotationManager: () => (/* binding */ resetAnnotationManager),
4213
4215
  /* harmony export */ setAnnotationManager: () => (/* binding */ setAnnotationManager)
4214
4216
  /* harmony export */ });
4215
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
4217
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
4216
4218
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
4217
4219
  /* harmony import */ var _FrameOfReferenceSpecificAnnotationManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22581);
4218
4220
  /* harmony import */ var _helpers_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54177);
@@ -4342,7 +4344,7 @@ __webpack_require__.r(__webpack_exports__);
4342
4344
  /* harmony export */ setAnnotationVisibility: () => (/* binding */ setAnnotationVisibility),
4343
4345
  /* harmony export */ showAllAnnotations: () => (/* binding */ showAllAnnotations)
4344
4346
  /* harmony export */ });
4345
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
4347
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
4346
4348
  /* harmony import */ var _annotationState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38296);
4347
4349
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84901);
4348
4350
  /* harmony import */ var _annotationSelection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42351);
@@ -4686,7 +4688,7 @@ var ToolStyle = __webpack_require__(31862);
4686
4688
  /* harmony export */ _3: () => (/* binding */ triggerAnnotationAddedForFOR),
4687
4689
  /* harmony export */ dZ: () => (/* binding */ triggerAnnotationCompleted)
4688
4690
  /* harmony export */ });
4689
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
4691
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
4690
4692
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
4691
4693
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52610);
4692
4694
 
@@ -4794,8 +4796,8 @@ var annotationState = __webpack_require__(38296);
4794
4796
  var annotationVisibility = __webpack_require__(21009);
4795
4797
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js
4796
4798
  var FrameOfReferenceSpecificAnnotationManager = __webpack_require__(22581);
4797
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
4798
- var esm = __webpack_require__(44656);
4799
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
4800
+ var esm = __webpack_require__(73868);
4799
4801
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Events.js
4800
4802
  var Events = __webpack_require__(28117);
4801
4803
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/AnnotationGroup.js
@@ -5017,7 +5019,7 @@ function getSegmentVisibility(toolGroupId, segmentationRepresentationUID, segmen
5017
5019
  /* harmony export */ jU: () => (/* binding */ getSurfaceActorUID)
5018
5020
  /* harmony export */ });
5019
5021
  /* unused harmony exports generateCacheId, updatePolyDataCache */
5020
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
5022
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
5021
5023
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
5022
5024
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21013);
5023
5025
  /* harmony import */ var _polySeg_registerPolySegWorker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65807);
@@ -5282,8 +5284,8 @@ function addSegmentations(segmentationInputArray) {
5282
5284
 
5283
5285
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
5284
5286
  var ToolGroupManager = __webpack_require__(52610);
5285
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
5286
- var esm = __webpack_require__(44656);
5287
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
5288
+ var esm = __webpack_require__(73868);
5287
5289
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationConfig.js
5288
5290
 
5289
5291
  function getGlobalConfig() {
@@ -6687,7 +6689,7 @@ async function canConvertFromTo(fromRepresentationType, toRepresentationType) {
6687
6689
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6688
6690
  /* harmony export */ b: () => (/* binding */ registerPolySegWorker)
6689
6691
  /* harmony export */ });
6690
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
6692
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
6691
6693
 
6692
6694
  let registered = false;
6693
6695
  function registerPolySegWorker() {
@@ -6794,8 +6796,8 @@ __webpack_require__.d(__webpack_exports__, {
6794
6796
  // EXTERNAL MODULE: ../../../node_modules/lodash.clonedeep/index.js
6795
6797
  var lodash_clonedeep = __webpack_require__(48463);
6796
6798
  var lodash_clonedeep_default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep);
6797
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
6798
- var esm = __webpack_require__(44656);
6799
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
6800
+ var esm = __webpack_require__(73868);
6799
6801
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
6800
6802
  var enums = __webpack_require__(84901);
6801
6803
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourConfig.js
@@ -7248,7 +7250,7 @@ __webpack_require__.r(__webpack_exports__);
7248
7250
  /* harmony export */ triggerSegmentationRepresentationModified: () => (/* binding */ triggerSegmentationRepresentationModified),
7249
7251
  /* harmony export */ triggerSegmentationRepresentationRemoved: () => (/* binding */ triggerSegmentationRepresentationRemoved)
7250
7252
  /* harmony export */ });
7251
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
7253
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
7252
7254
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
7253
7255
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30322);
7254
7256
  /* harmony import */ var _utilities_segmentation_getUniqueSegmentIndices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94510);
@@ -7322,7 +7324,7 @@ function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse) {
7322
7324
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7323
7325
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7324
7326
  /* harmony export */ });
7325
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
7327
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
7326
7328
 
7327
7329
  class Synchronizer {
7328
7330
  constructor(synchronizerId, eventName, eventHandler, options) {
@@ -7654,7 +7656,7 @@ function destroySynchronizer(synchronizerId) {
7654
7656
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7655
7657
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7656
7658
  /* harmony export */ });
7657
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
7659
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
7658
7660
  /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61738);
7659
7661
 
7660
7662
 
@@ -7840,8 +7842,8 @@ function _appendChild(newNode, referenceNode) {
7840
7842
  referenceNode.querySelector('div.viewport-element').appendChild(newNode);
7841
7843
  }
7842
7844
 
7843
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
7844
- var esm = __webpack_require__(44656);
7845
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
7846
+ var esm = __webpack_require__(73868);
7845
7847
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/filterToolsWithAnnotationsForElement.js
7846
7848
  var store_filterToolsWithAnnotationsForElement = __webpack_require__(9933);
7847
7849
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getToolsWithModesForElement.js
@@ -8047,7 +8049,7 @@ function resetSvgNodeCache() {
8047
8049
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
8048
8050
  /* harmony export */ });
8049
8051
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44753);
8050
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
8052
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
8051
8053
  /* harmony import */ var _utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24592);
8052
8054
  /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21013);
8053
8055
  /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(96214);
@@ -8670,22 +8672,29 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_4__/* .Annotation
8670
8672
  continue;
8671
8673
  }
8672
8674
  const { imageData, dimensions } = image;
8673
- const scale = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedScale */ .yH)(image);
8674
- const dist1 = this._calculateLength(worldPos1, worldPos2) / scale;
8675
- const dist2 = this._calculateLength(worldPos3, worldPos4) / scale;
8676
- const length = dist1 > dist2 ? dist1 : dist2;
8677
- const width = dist1 > dist2 ? dist2 : dist1;
8678
8675
  const index1 = transformWorldToIndex(imageData, worldPos1);
8679
8676
  const index2 = transformWorldToIndex(imageData, worldPos2);
8680
8677
  const index3 = transformWorldToIndex(imageData, worldPos3);
8681
8678
  const index4 = transformWorldToIndex(imageData, worldPos4);
8679
+ const handles1 = [index1, index2];
8680
+ const handles2 = [index3, index4];
8681
+ const { scale: scale1, units: units1 } = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, handles1);
8682
+ const { scale: scale2, units: units2 } = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, handles2);
8683
+ const dist1 = this._calculateLength(worldPos1, worldPos2) / scale1;
8684
+ const dist2 = this._calculateLength(worldPos3, worldPos4) / scale2;
8685
+ const length = dist1 > dist2 ? dist1 : dist2;
8686
+ const width = dist1 > dist2 ? dist2 : dist1;
8687
+ const lengthUnit = dist1 > dist2 ? units1 : units2;
8688
+ const widthUnit = dist1 > dist2 ? units2 : units1;
8682
8689
  this._isInsideVolume(index1, index2, index3, index4, dimensions)
8683
8690
  ? (this.isHandleOutsideImage = false)
8684
8691
  : (this.isHandleOutsideImage = true);
8685
8692
  cachedStats[targetId] = {
8686
8693
  length,
8687
8694
  width,
8688
- unit: (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnits */ .Nx)(null, image),
8695
+ unit: units1,
8696
+ lengthUnit,
8697
+ widthUnit,
8689
8698
  };
8690
8699
  }
8691
8700
  annotation.invalidated = false;
@@ -8773,7 +8782,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_4__/* .Annotation
8773
8782
  }
8774
8783
  function defaultGetTextLines(data, targetId) {
8775
8784
  const { cachedStats, label } = data;
8776
- const { length, width, unit } = cachedStats[targetId];
8785
+ const { length, width, unit, lengthUnit, widthUnit } = cachedStats[targetId];
8777
8786
  const textLines = [];
8778
8787
  if (label) {
8779
8788
  textLines.push(label);
@@ -8781,7 +8790,7 @@ function defaultGetTextLines(data, targetId) {
8781
8790
  if (length === undefined) {
8782
8791
  return textLines;
8783
8792
  }
8784
- textLines.push(`L: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(length)} ${unit}`, `W: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(width)} ${unit}`);
8793
+ textLines.push(`L: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(length)} ${lengthUnit || unit}`, `W: ${(0,_utilities__WEBPACK_IMPORTED_MODULE_3__.roundNumber)(width)} ${widthUnit || unit}`);
8785
8794
  return textLines;
8786
8795
  }
8787
8796
  BidirectionalTool.toolName = 'Bidirectional';
@@ -8796,7 +8805,7 @@ BidirectionalTool.toolName = 'Bidirectional';
8796
8805
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8797
8806
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
8798
8807
  /* harmony export */ });
8799
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
8808
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
8800
8809
  /* harmony import */ var _stateManagement_segmentation_triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87682);
8801
8810
  /* harmony import */ var _PlanarFreehandROITool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78279);
8802
8811
 
@@ -8839,7 +8848,7 @@ PlanarFreehandContourSegmentationTool.toolName =
8839
8848
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8840
8849
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
8841
8850
  /* harmony export */ });
8842
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
8851
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
8843
8852
  /* harmony import */ var _BaseTool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22338);
8844
8853
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38296);
8845
8854
  /* harmony import */ var _utilities_triggerAnnotationRender__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6805);
@@ -8921,7 +8930,7 @@ AnnotationDisplayTool.toolName = 'AnnotationDisplayTool';
8921
8930
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8922
8931
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
8923
8932
  /* harmony export */ });
8924
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
8933
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
8925
8934
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
8926
8935
  /* harmony import */ var _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28062);
8927
8936
  /* harmony import */ var _stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48428);
@@ -9120,7 +9129,7 @@ AnnotationTool.toolName = 'AnnotationTool';
9120
9129
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9121
9130
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
9122
9131
  /* harmony export */ });
9123
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
9132
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
9124
9133
  /* harmony import */ var _enums_ToolModes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12468);
9125
9134
 
9126
9135
 
@@ -9323,7 +9332,7 @@ function isValidLabelmapConfig(config) {
9323
9332
  /* unused harmony exports render, removeSegmentationRepresentation */
9324
9333
  /* harmony import */ var _kitware_vtk_js_Common_DataModel_PiecewiseFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29853);
9325
9334
  /* harmony import */ var _kitware_vtk_js_Rendering_Core_ColorTransferFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37452);
9326
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44656);
9335
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73868);
9327
9336
  /* harmony import */ var _enums_SegmentationRepresentations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83946);
9328
9337
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30322);
9329
9338
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52610);
@@ -9661,8 +9670,8 @@ __webpack_require__.d(__webpack_exports__, {
9661
9670
 
9662
9671
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/index.js
9663
9672
  var base = __webpack_require__(96214);
9664
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
9665
- var esm = __webpack_require__(44656);
9673
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
9674
+ var esm = __webpack_require__(73868);
9666
9675
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/PanTool.js
9667
9676
 
9668
9677
 
@@ -15249,30 +15258,30 @@ class RectangleROITool extends base/* AnnotationTool */.EC {
15249
15258
  continue;
15250
15259
  }
15251
15260
  const { dimensions, imageData, metadata } = image;
15252
- const scalarData = 'getScalarData' in image ? image.getScalarData() : image.scalarData;
15253
- const worldPos1Index = RectangleROITool_transformWorldToIndex(imageData, worldPos1);
15254
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
15255
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
15256
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
15257
- const worldPos2Index = RectangleROITool_transformWorldToIndex(imageData, worldPos2);
15258
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
15259
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
15260
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
15261
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
15261
+ const pos1Index = RectangleROITool_transformWorldToIndex(imageData, worldPos1);
15262
+ pos1Index[0] = Math.floor(pos1Index[0]);
15263
+ pos1Index[1] = Math.floor(pos1Index[1]);
15264
+ pos1Index[2] = Math.floor(pos1Index[2]);
15265
+ const pos2Index = RectangleROITool_transformWorldToIndex(imageData, worldPos2);
15266
+ pos2Index[0] = Math.floor(pos2Index[0]);
15267
+ pos2Index[1] = Math.floor(pos2Index[1]);
15268
+ pos2Index[2] = Math.floor(pos2Index[2]);
15269
+ if (this._isInsideVolume(pos1Index, pos2Index, dimensions)) {
15262
15270
  this.isHandleOutsideImage = false;
15263
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
15264
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
15265
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
15266
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
15267
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
15268
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
15271
+ const iMin = Math.min(pos1Index[0], pos2Index[0]);
15272
+ const iMax = Math.max(pos1Index[0], pos2Index[0]);
15273
+ const jMin = Math.min(pos1Index[1], pos2Index[1]);
15274
+ const jMax = Math.max(pos1Index[1], pos2Index[1]);
15275
+ const kMin = Math.min(pos1Index[2], pos2Index[2]);
15276
+ const kMax = Math.max(pos1Index[2], pos2Index[2]);
15269
15277
  const boundsIJK = [
15270
15278
  [iMin, iMax],
15271
15279
  [jMin, jMax],
15272
15280
  [kMin, kMax],
15273
15281
  ];
15274
15282
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromCorners/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
15275
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
15283
+ const handles = [pos1Index, pos2Index];
15284
+ const { scale, areaUnits } = (0,getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op)(image, handles);
15276
15285
  const area = Math.abs(worldWidth * worldHeight) / (scale * scale);
15277
15286
  const modalityUnitOptions = {
15278
15287
  isPreScaled: (0,isViewportPreScaled/* isViewportPreScaled */.u)(viewport, targetId),
@@ -15289,7 +15298,7 @@ class RectangleROITool extends base/* AnnotationTool */.EC {
15289
15298
  max: stats.max?.value,
15290
15299
  statsArray: stats.array,
15291
15300
  pointsInShape: pointsInShape,
15292
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
15301
+ areaUnit: areaUnits,
15293
15302
  modalityUnit,
15294
15303
  };
15295
15304
  }
@@ -15772,7 +15781,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
15772
15781
  stdDev: null,
15773
15782
  areaUnit: null,
15774
15783
  };
15775
- this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
15784
+ this._calculateCachedStats(annotation, viewport, renderingEngine);
15776
15785
  }
15777
15786
  else if (annotation.invalidated) {
15778
15787
  this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
@@ -15869,7 +15878,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
15869
15878
  }
15870
15879
  return renderStatus;
15871
15880
  };
15872
- this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement) => {
15881
+ this._calculateCachedStats = (annotation, viewport, renderingEngine) => {
15873
15882
  const data = annotation.data;
15874
15883
  const { element } = viewport;
15875
15884
  const { points } = data.handles;
@@ -15888,23 +15897,23 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
15888
15897
  if (!image) {
15889
15898
  continue;
15890
15899
  }
15891
- const { dimensions, imageData, metadata, hasPixelSpacing } = image;
15892
- const worldPos1Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos1);
15893
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
15894
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
15895
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
15896
- const worldPos2Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos2);
15897
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
15898
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
15899
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
15900
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
15900
+ const { dimensions, imageData, metadata } = image;
15901
+ const pos1Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos1);
15902
+ pos1Index[0] = Math.floor(pos1Index[0]);
15903
+ pos1Index[1] = Math.floor(pos1Index[1]);
15904
+ pos1Index[2] = Math.floor(pos1Index[2]);
15905
+ const post2Index = EllipticalROITool_transformWorldToIndex(imageData, worldPos2);
15906
+ post2Index[0] = Math.floor(post2Index[0]);
15907
+ post2Index[1] = Math.floor(post2Index[1]);
15908
+ post2Index[2] = Math.floor(post2Index[2]);
15909
+ if (this._isInsideVolume(pos1Index, post2Index, dimensions)) {
15901
15910
  this.isHandleOutsideImage = false;
15902
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
15903
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
15904
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
15905
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
15906
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
15907
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
15911
+ const iMin = Math.min(pos1Index[0], post2Index[0]);
15912
+ const iMax = Math.max(pos1Index[0], post2Index[0]);
15913
+ const jMin = Math.min(pos1Index[1], post2Index[1]);
15914
+ const jMax = Math.max(pos1Index[1], post2Index[1]);
15915
+ const kMin = Math.min(pos1Index[2], post2Index[2]);
15916
+ const kMax = Math.max(pos1Index[2], post2Index[2]);
15908
15917
  const boundsIJK = [
15909
15918
  [iMin, iMax],
15910
15919
  [jMin, jMax],
@@ -15923,7 +15932,8 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
15923
15932
  };
15924
15933
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromTwoPoints/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
15925
15934
  const isEmptyArea = worldWidth === 0 && worldHeight === 0;
15926
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
15935
+ const handles = [pos1Index, post2Index];
15936
+ const { scale, areaUnits } = (0,getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op)(image, handles);
15927
15937
  const area = Math.abs(Math.PI * (worldWidth / 2) * (worldHeight / 2)) /
15928
15938
  scale /
15929
15939
  scale;
@@ -15943,7 +15953,7 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
15943
15953
  statsArray: stats.array,
15944
15954
  pointsInShape,
15945
15955
  isEmptyArea,
15946
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
15956
+ areaUnit: areaUnits,
15947
15957
  modalityUnit,
15948
15958
  };
15949
15959
  }
@@ -16488,21 +16498,21 @@ class CircleROITool extends base/* AnnotationTool */.EC {
16488
16498
  continue;
16489
16499
  }
16490
16500
  const { dimensions, imageData, metadata, hasPixelSpacing } = image;
16491
- const worldPos1Index = CircleROITool_transformWorldToIndex(imageData, worldPos1);
16492
- worldPos1Index[0] = Math.floor(worldPos1Index[0]);
16493
- worldPos1Index[1] = Math.floor(worldPos1Index[1]);
16494
- worldPos1Index[2] = Math.floor(worldPos1Index[2]);
16495
- const worldPos2Index = CircleROITool_transformWorldToIndex(imageData, worldPos2);
16496
- worldPos2Index[0] = Math.floor(worldPos2Index[0]);
16497
- worldPos2Index[1] = Math.floor(worldPos2Index[1]);
16498
- worldPos2Index[2] = Math.floor(worldPos2Index[2]);
16499
- if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
16500
- const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
16501
- const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);
16502
- const jMin = Math.min(worldPos1Index[1], worldPos2Index[1]);
16503
- const jMax = Math.max(worldPos1Index[1], worldPos2Index[1]);
16504
- const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
16505
- const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
16501
+ const pos1Index = CircleROITool_transformWorldToIndex(imageData, worldPos1);
16502
+ pos1Index[0] = Math.floor(pos1Index[0]);
16503
+ pos1Index[1] = Math.floor(pos1Index[1]);
16504
+ pos1Index[2] = Math.floor(pos1Index[2]);
16505
+ const pos2Index = CircleROITool_transformWorldToIndex(imageData, worldPos2);
16506
+ pos2Index[0] = Math.floor(pos2Index[0]);
16507
+ pos2Index[1] = Math.floor(pos2Index[1]);
16508
+ pos2Index[2] = Math.floor(pos2Index[2]);
16509
+ if (this._isInsideVolume(pos1Index, pos2Index, dimensions)) {
16510
+ const iMin = Math.min(pos1Index[0], pos2Index[0]);
16511
+ const iMax = Math.max(pos1Index[0], pos2Index[0]);
16512
+ const jMin = Math.min(pos1Index[1], pos2Index[1]);
16513
+ const jMax = Math.max(pos1Index[1], pos2Index[1]);
16514
+ const kMin = Math.min(pos1Index[2], pos2Index[2]);
16515
+ const kMax = Math.max(pos1Index[2], pos2Index[2]);
16506
16516
  const boundsIJK = [
16507
16517
  [iMin, iMax],
16508
16518
  [jMin, jMax],
@@ -16521,7 +16531,8 @@ class CircleROITool extends base/* AnnotationTool */.EC {
16521
16531
  };
16522
16532
  const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromTwoPoints/* default */.A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
16523
16533
  const isEmptyArea = worldWidth === 0 && worldHeight === 0;
16524
- const scale = (0,getCalibratedUnits/* getCalibratedScale */.yH)(image);
16534
+ const handles = [pos1Index, pos2Index];
16535
+ const { scale, units, areaUnits } = (0,utilities.getCalibratedLengthUnitsAndScale)(image, handles);
16525
16536
  const aspect = (0,getCalibratedUnits/* getCalibratedAspect */.CQ)(image);
16526
16537
  const area = Math.abs(Math.PI *
16527
16538
  (worldWidth / scale / 2) *
@@ -16544,9 +16555,9 @@ class CircleROITool extends base/* AnnotationTool */.EC {
16544
16555
  statsArray: stats.array,
16545
16556
  pointsInShape: pointsInShape,
16546
16557
  isEmptyArea,
16547
- areaUnit: (0,getCalibratedUnits/* getCalibratedAreaUnits */.Ss)(null, image),
16558
+ areaUnit: areaUnits,
16548
16559
  radius: worldWidth / 2 / scale,
16549
- radiusUnit: (0,getCalibratedUnits/* getCalibratedLengthUnits */.Nx)(null, image),
16560
+ radiusUnit: units,
16550
16561
  perimeter: (2 * Math.PI * (worldWidth / 2)) / scale,
16551
16562
  modalityUnit,
16552
16563
  };
@@ -17062,13 +17073,27 @@ class SplineROITool extends ContourSegmentationBaseTool/* default */.A {
17062
17073
  ]);
17063
17074
  const deltaInX = gl_matrix_esm/* vec3.distance */.eR.distance(originalWorldPoint, deltaXPoint);
17064
17075
  const deltaInY = gl_matrix_esm/* vec3.distance */.eR.distance(originalWorldPoint, deltaYPoint);
17065
- const scale = (0,utilities.getCalibratedScale)(image);
17076
+ const { imageData } = image;
17077
+ const { scale, areaUnits } = (0,utilities.getCalibratedLengthUnitsAndScale)(image, () => {
17078
+ const { maxX: canvasMaxX, maxY: canvasMaxY, minX: canvasMinX, minY: canvasMinY, } = utilities.math.polyline.getAABB(canvasCoordinates);
17079
+ const topLeftBBWorld = viewport.canvasToWorld([
17080
+ canvasMinX,
17081
+ canvasMinY,
17082
+ ]);
17083
+ const topLeftBBIndex = esm.utilities.transformWorldToIndex(imageData, topLeftBBWorld);
17084
+ const bottomRightBBWorld = viewport.canvasToWorld([
17085
+ canvasMaxX,
17086
+ canvasMaxY,
17087
+ ]);
17088
+ const bottomRightBBIndex = esm.utilities.transformWorldToIndex(imageData, bottomRightBBWorld);
17089
+ return [topLeftBBIndex, bottomRightBBIndex];
17090
+ });
17066
17091
  let area = utilities.math.polyline.getArea(canvasCoordinates) / scale / scale;
17067
17092
  area *= deltaInX * deltaInY;
17068
17093
  cachedStats[targetId] = {
17069
17094
  Modality: metadata.Modality,
17070
17095
  area,
17071
- areaUnit: (0,utilities.getCalibratedAreaUnits)(null, image),
17096
+ areaUnit: areaUnits,
17072
17097
  };
17073
17098
  }
17074
17099
  this.triggerAnnotationModified(annotation, enabledElement, enums.ChangeTypes.StatsUpdated);
@@ -21988,6 +22013,7 @@ var PolyData = __webpack_require__(27398);
21988
22013
 
21989
22014
 
21990
22015
 
22016
+
21991
22017
  const OverlayMarkerType = {
21992
22018
  ANNOTATED_CUBE: 1,
21993
22019
  AXES: 2,
@@ -22039,25 +22065,18 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
22039
22065
  }) {
22040
22066
  super(toolProps, defaultToolProps);
22041
22067
  this._resizeObservers = new Map();
22042
- this.configuration_invalidated = true;
22043
22068
  this.onSetToolEnabled = () => {
22044
22069
  this.initViewports();
22045
- this.configuration_invalidated = true;
22046
22070
  this._subscribeToViewportEvents();
22047
22071
  };
22048
22072
  this.onSetToolActive = () => {
22049
22073
  this.initViewports();
22050
- this.configuration_invalidated = true;
22051
22074
  this._subscribeToViewportEvents();
22052
22075
  };
22053
22076
  this.onSetToolDisabled = () => {
22054
22077
  this.cleanUpData();
22055
22078
  this._unsubscribeToViewportNewVolumeSet();
22056
22079
  };
22057
- this.reset = () => {
22058
- this.configuration_invalidated = true;
22059
- this.initViewports();
22060
- };
22061
22080
  this._getViewportsInfo = () => {
22062
22081
  const viewports = (0,ToolGroupManager.getToolGroup)(this.toolGroupId).viewportsInfo;
22063
22082
  return viewports;
@@ -22071,35 +22090,56 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
22071
22090
  orientationWidget.updateViewport();
22072
22091
  };
22073
22092
  this.orientationMarkers = {};
22074
- this.configuration_invalidated = true;
22075
22093
  }
22076
22094
  static { this.CUBE = 1; }
22077
22095
  static { this.AXIS = 2; }
22078
22096
  static { this.VTPFILE = 3; }
22079
22097
  static { this.OVERLAY_MARKER_TYPES = OverlayMarkerType; }
22080
22098
  _unsubscribeToViewportNewVolumeSet() {
22081
- const viewportsInfo = this._getViewportsInfo();
22082
- viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
22083
- const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
22084
- const { element } = viewport;
22085
- element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
22086
- const resizeObserver = this._resizeObservers.get(viewportId);
22087
- resizeObserver.unobserve(element);
22099
+ const unsubscribe = () => {
22100
+ const viewportsInfo = this._getViewportsInfo();
22101
+ viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
22102
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
22103
+ const { element } = viewport;
22104
+ element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.initViewports.bind(this));
22105
+ const resizeObserver = this._resizeObservers.get(viewportId);
22106
+ resizeObserver.unobserve(element);
22107
+ });
22108
+ };
22109
+ esm.eventTarget.removeEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, (evt) => {
22110
+ if (evt.detail.toolGroupId !== this.toolGroupId) {
22111
+ return;
22112
+ }
22113
+ unsubscribe();
22114
+ this.initViewports();
22088
22115
  });
22089
22116
  }
22090
22117
  _subscribeToViewportEvents() {
22091
- const viewportsInfo = this._getViewportsInfo();
22092
- viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
22093
- const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
22094
- const { element } = viewport;
22095
- element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
22096
- const resizeObserver = new ResizeObserver(() => {
22097
- setTimeout(() => {
22098
- this.reset();
22099
- }, 100);
22118
+ const subscribeToElementResize = () => {
22119
+ const viewportsInfo = this._getViewportsInfo();
22120
+ viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
22121
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
22122
+ const { element } = viewport;
22123
+ this.initViewports();
22124
+ element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.initViewports.bind(this));
22125
+ const resizeObserver = new ResizeObserver(() => {
22126
+ setTimeout(() => {
22127
+ const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
22128
+ this.resize(viewportId);
22129
+ viewport.render();
22130
+ }, 100);
22131
+ });
22132
+ resizeObserver.observe(element);
22133
+ this._resizeObservers.set(viewportId, resizeObserver);
22100
22134
  });
22101
- resizeObserver.observe(element);
22102
- this._resizeObservers.set(viewportId, resizeObserver);
22135
+ };
22136
+ subscribeToElementResize();
22137
+ esm.eventTarget.addEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, (evt) => {
22138
+ if (evt.detail.toolGroupId !== this.toolGroupId) {
22139
+ return;
22140
+ }
22141
+ subscribeToElementResize();
22142
+ this.initViewports();
22103
22143
  });
22104
22144
  }
22105
22145
  cleanUpData() {
@@ -22179,7 +22219,6 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
22179
22219
  viewport.addWidget(this.getToolName(), orientationWidget);
22180
22220
  renderWindow.render();
22181
22221
  viewport.getRenderingEngine().render();
22182
- this.configuration_invalidated = false;
22183
22222
  }
22184
22223
  async createCustomActor() {
22185
22224
  const url = this.configuration.overlayConfiguration[OverlayMarkerType.CUSTOM]
@@ -22417,7 +22456,7 @@ SegmentSelectTool.toolName = 'SegmentSelectTool';
22417
22456
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22418
22457
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
22419
22458
  /* harmony export */ });
22420
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
22459
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
22421
22460
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
22422
22461
  /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(96214);
22423
22462
  /* harmony import */ var _strategies_fillSphere__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61604);
@@ -22894,7 +22933,7 @@ BrushTool.toolName = 'Brush';
22894
22933
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22895
22934
  /* harmony export */ r: () => (/* binding */ isVolumeSegmentation)
22896
22935
  /* harmony export */ });
22897
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
22936
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
22898
22937
 
22899
22938
  function isVolumeSegmentation(operationData, viewport) {
22900
22939
  const { imageIdReferenceMap } = operationData;
@@ -22958,7 +22997,7 @@ function extend2DBoundingBoxInViewAxis(boundsIJK, numSlicesToProject) {
22958
22997
  /* harmony export */ C: () => (/* binding */ getBoundingBoxAroundShapeWorld),
22959
22998
  /* harmony export */ g: () => (/* binding */ getBoundingBoxAroundShapeIJK)
22960
22999
  /* harmony export */ });
22961
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
23000
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
22962
23001
 
22963
23002
  const { EPSILON } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.CONSTANTS;
22964
23003
  function calculateBoundingBox(points, dimensions, isWorld = false) {
@@ -23179,7 +23218,7 @@ function calculatePerimeter(polyline, closed) {
23179
23218
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23180
23219
  /* harmony export */ A: () => (/* binding */ findHandlePolylineIndex)
23181
23220
  /* harmony export */ });
23182
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
23221
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
23183
23222
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
23184
23223
 
23185
23224
 
@@ -23444,8 +23483,8 @@ function processContourHoles(contours, points, useXOR = true) {
23444
23483
  }
23445
23484
  /* harmony default export */ const detectContourHoles = ({ processContourHoles });
23446
23485
 
23447
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
23448
- var dist_esm = __webpack_require__(44656);
23486
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
23487
+ var dist_esm = __webpack_require__(73868);
23449
23488
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js
23450
23489
  var ImageMarchingSquares = __webpack_require__(52754);
23451
23490
  // EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/DataArray.js
@@ -23687,7 +23726,7 @@ __webpack_require__.r(__webpack_exports__);
23687
23726
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23688
23727
  /* harmony export */ A: () => (/* binding */ updateContourPolyline)
23689
23728
  /* harmony export */ });
23690
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
23729
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
23691
23730
  /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39956);
23692
23731
  /* harmony import */ var _stateManagement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95778);
23693
23732
 
@@ -23908,13 +23947,10 @@ function _determineCorners(canvasPoints) {
23908
23947
 
23909
23948
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23910
23949
  /* harmony export */ CQ: () => (/* binding */ getCalibratedAspect),
23911
- /* harmony export */ Nx: () => (/* binding */ getCalibratedLengthUnits),
23912
23950
  /* harmony export */ Op: () => (/* binding */ getCalibratedLengthUnitsAndScale),
23913
- /* harmony export */ Ss: () => (/* binding */ getCalibratedAreaUnits),
23914
- /* harmony export */ Xw: () => (/* binding */ getCalibratedProbeUnitsAndValue),
23915
- /* harmony export */ yH: () => (/* binding */ getCalibratedScale)
23951
+ /* harmony export */ Xw: () => (/* binding */ getCalibratedProbeUnitsAndValue)
23916
23952
  /* harmony export */ });
23917
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
23953
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
23918
23954
 
23919
23955
  const { CalibrationTypes } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.Enums;
23920
23956
  const PIXEL_UNITS = 'px';
@@ -23932,48 +23968,11 @@ const UNIT_MAPPING = {
23932
23968
  4: 'seconds',
23933
23969
  };
23934
23970
  const EPS = 1e-3;
23935
- const getCalibratedLengthUnits = (handles, image) => {
23936
- const { calibration, hasPixelSpacing } = image;
23937
- const units = hasPixelSpacing ? 'mm' : PIXEL_UNITS;
23938
- if (!calibration ||
23939
- (!calibration.type && !calibration.sequenceOfUltrasoundRegions)) {
23940
- return units;
23941
- }
23942
- if (calibration.type === CalibrationTypes.UNCALIBRATED) {
23943
- return PIXEL_UNITS;
23944
- }
23945
- if (calibration.sequenceOfUltrasoundRegions) {
23946
- return 'US Region';
23947
- }
23948
- return `${units} ${calibration.type}`;
23949
- };
23950
23971
  const SQUARE = '\xb2';
23951
- const getCalibratedAreaUnits = (handles, image) => {
23952
- const { calibration, hasPixelSpacing } = image;
23953
- const units = (hasPixelSpacing ? 'mm' : PIXEL_UNITS) + SQUARE;
23954
- if (!calibration || !calibration.type) {
23955
- return units;
23956
- }
23957
- if (calibration.sequenceOfUltrasoundRegions) {
23958
- return 'US Region';
23959
- }
23960
- return `${units} ${calibration.type}`;
23961
- };
23962
- const getCalibratedScale = (image, handles = []) => {
23963
- if (image.calibration?.sequenceOfUltrasoundRegions) {
23964
- }
23965
- else if (image.calibration?.scale) {
23966
- return image.calibration.scale;
23967
- }
23968
- else {
23969
- return 1;
23970
- }
23971
- };
23972
23972
  const getCalibratedLengthUnitsAndScale = (image, handles) => {
23973
- const [imageIndex1, imageIndex2] = handles;
23974
23973
  const { calibration, hasPixelSpacing } = image;
23975
23974
  let units = hasPixelSpacing ? 'mm' : PIXEL_UNITS;
23976
- const areaUnits = units + SQUARE;
23975
+ let areaUnits = units + SQUARE;
23977
23976
  let scale = 1;
23978
23977
  let calibrationType = '';
23979
23978
  if (!calibration ||
@@ -23984,6 +23983,15 @@ const getCalibratedLengthUnitsAndScale = (image, handles) => {
23984
23983
  return { units: PIXEL_UNITS, areaUnits: PIXEL_UNITS + SQUARE, scale };
23985
23984
  }
23986
23985
  if (calibration.sequenceOfUltrasoundRegions) {
23986
+ let imageIndex1, imageIndex2;
23987
+ if (Array.isArray(handles) && handles.length === 2) {
23988
+ [imageIndex1, imageIndex2] = handles;
23989
+ }
23990
+ else if (typeof handles === 'function') {
23991
+ const points = handles();
23992
+ imageIndex1 = points[0];
23993
+ imageIndex2 = points[1];
23994
+ }
23987
23995
  let regions = calibration.sequenceOfUltrasoundRegions.filter((region) => imageIndex1[0] >= region.regionLocationMinX0 &&
23988
23996
  imageIndex1[0] <= region.regionLocationMaxX1 &&
23989
23997
  imageIndex1[1] >= region.regionLocationMinY0 &&
@@ -24005,9 +24013,10 @@ const getCalibratedLengthUnitsAndScale = (image, handles) => {
24005
24013
  const physicalDeltaY = Math.abs(region.physicalDeltaY);
24006
24014
  const isSamePhysicalDelta = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isEqual(physicalDeltaX, physicalDeltaY, EPS);
24007
24015
  if (isSamePhysicalDelta) {
24008
- scale = 1 / (physicalDeltaX * physicalDeltaY * 100);
24016
+ scale = 1 / (physicalDeltaX * 10);
24009
24017
  calibrationType = 'US Region';
24010
24018
  units = 'mm';
24019
+ areaUnits = 'mm' + SQUARE;
24011
24020
  }
24012
24021
  else {
24013
24022
  return { units: PIXEL_UNITS, areaUnits: PIXEL_UNITS + SQUARE, scale };
@@ -24074,7 +24083,6 @@ const getCalibratedProbeUnitsAndValue = (image, handles) => {
24074
24083
  };
24075
24084
  };
24076
24085
  const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
24077
- /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (getCalibratedLengthUnits)));
24078
24086
 
24079
24087
 
24080
24088
 
@@ -24086,7 +24094,7 @@ const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
24086
24094
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24087
24095
  /* harmony export */ R: () => (/* binding */ getSphereBoundsInfo)
24088
24096
  /* harmony export */ });
24089
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
24097
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
24090
24098
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
24091
24099
  /* harmony import */ var _boundingBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15306);
24092
24100
 
@@ -24156,7 +24164,7 @@ function getViewportForAnnotation(annotation) {
24156
24164
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24157
24165
  /* harmony export */ A: () => (/* binding */ getViewportsForAnnotation)
24158
24166
  /* harmony export */ });
24159
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
24167
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
24160
24168
 
24161
24169
  const { isEqual } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities;
24162
24170
  function getViewportsForAnnotation(annotation) {
@@ -24197,9 +24205,9 @@ __webpack_require__.d(__webpack_exports__, {
24197
24205
  dynamicVolume: () => (/* reexport */ dynamicVolume_namespaceObject),
24198
24206
  getAnnotationNearPoint: () => (/* reexport */ getAnnotationNearPoint),
24199
24207
  getAnnotationNearPointOnEnabledElement: () => (/* reexport */ getAnnotationNearPointOnEnabledElement),
24200
- getCalibratedAreaUnits: () => (/* reexport */ getCalibratedUnits/* getCalibratedAreaUnits */.Ss),
24201
- getCalibratedLengthUnits: () => (/* reexport */ getCalibratedUnits/* getCalibratedLengthUnits */.Nx),
24202
- getCalibratedScale: () => (/* reexport */ getCalibratedUnits/* getCalibratedScale */.yH),
24208
+ getCalibratedAspect: () => (/* reexport */ getCalibratedUnits/* getCalibratedAspect */.CQ),
24209
+ getCalibratedLengthUnitsAndScale: () => (/* reexport */ getCalibratedUnits/* getCalibratedLengthUnitsAndScale */.Op),
24210
+ getCalibratedProbeUnitsAndValue: () => (/* reexport */ getCalibratedUnits/* getCalibratedProbeUnitsAndValue */.Xw),
24203
24211
  getSphereBoundsInfo: () => (/* reexport */ getSphereBoundsInfo/* getSphereBoundsInfo */.R),
24204
24212
  getViewportForAnnotation: () => (/* reexport */ getViewportForAnnotation/* default */.A),
24205
24213
  isObject: () => (/* reexport */ isObject/* default */.A),
@@ -24297,8 +24305,8 @@ __webpack_require__.d(voi_namespaceObject, {
24297
24305
  colorbar: () => (colorbar_namespaceObject)
24298
24306
  });
24299
24307
 
24300
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
24301
- var esm = __webpack_require__(44656);
24308
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
24309
+ var esm = __webpack_require__(73868);
24302
24310
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
24303
24311
  var annotationState = __webpack_require__(38296);
24304
24312
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
@@ -25058,15 +25066,17 @@ function prefetch(element) {
25058
25066
  }
25059
25067
  }
25060
25068
  const requestFn = (imageId, options) => esm.imageLoader.loadAndCacheImage(imageId, options);
25061
- const { useNorm16Texture } = (0,esm.getConfiguration)().rendering;
25069
+ const { useNorm16Texture, preferSizeOverAccuracy } = (0,esm.getConfiguration)().rendering;
25070
+ const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
25062
25071
  imageIdsToPrefetch.forEach((imageId) => {
25063
25072
  const options = {
25064
25073
  targetBuffer: {
25065
- type: useNorm16Texture ? undefined : 'Float32Array',
25074
+ type: useNativeDataType ? undefined : 'Float32Array',
25066
25075
  },
25067
25076
  preScale: {
25068
25077
  enabled: true,
25069
25078
  },
25079
+ useNativeDataType,
25070
25080
  requestType: stackPrefetchUtils/* requestType */.y9,
25071
25081
  };
25072
25082
  esm.imageLoadPoolManager.addRequest(requestFn.bind(null, imageId, options), stackPrefetchUtils/* requestType */.y9, {
@@ -25230,16 +25240,18 @@ function stackContextPrefetch_prefetch(element) {
25230
25240
  }
25231
25241
  const requestFn = (imageId, options) => esm.imageLoader.loadAndCacheImage(imageId, options)
25232
25242
  .then(() => doneCallback(imageId));
25233
- const { useNorm16Texture } = (0,esm.getConfiguration)().rendering;
25243
+ const { useNorm16Texture, preferSizeOverAccuracy } = (0,esm.getConfiguration)().rendering;
25244
+ const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
25234
25245
  indicesToRequestCopy.forEach((imageIdIndex) => {
25235
25246
  const imageId = stack.imageIds[imageIdIndex];
25236
25247
  const options = {
25237
25248
  targetBuffer: {
25238
- type: useNorm16Texture ? undefined : 'Float32Array',
25249
+ type: useNativeDataType ? undefined : 'Float32Array',
25239
25250
  },
25240
25251
  preScale: {
25241
25252
  enabled: true,
25242
25253
  },
25254
+ useNativeDataType,
25243
25255
  requestType: stackPrefetchUtils/* requestType */.y9,
25244
25256
  };
25245
25257
  esm.imageLoadPoolManager.addRequest(requestFn.bind(null, imageId, options), stackPrefetchUtils/* requestType */.y9, {
@@ -27149,8 +27161,8 @@ function getClosestLineSegmentIntersection(points, p1, q1, closed = true) {
27149
27161
  };
27150
27162
  }
27151
27163
 
27152
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
27153
- var dist_esm = __webpack_require__(44656);
27164
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
27165
+ var dist_esm = __webpack_require__(73868);
27154
27166
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/getSubPixelSpacingAndXYDirections.js
27155
27167
 
27156
27168
 
@@ -27723,7 +27735,7 @@ function pointToString(point, decimals = 5) {
27723
27735
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27724
27736
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
27725
27737
  /* harmony export */ });
27726
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
27738
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
27727
27739
  /* harmony import */ var _boundingBox_getBoundingBoxAroundShape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14471);
27728
27740
  /* harmony import */ var _boundingBox_extend2DBoundingBoxInViewAxis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42290);
27729
27741
 
@@ -27781,7 +27793,7 @@ function getBoundsIJKFromRectangleAnnotations(annotations, referenceVolume, opti
27781
27793
  /* harmony export */ l: () => (/* binding */ isAxisAlignedRectangle)
27782
27794
  /* harmony export */ });
27783
27795
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44753);
27784
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44656);
27796
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73868);
27785
27797
 
27786
27798
 
27787
27799
  const { isEqual } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__.utilities;
@@ -27815,7 +27827,7 @@ function calculateAnglesWithAxes(vec, axes) {
27815
27827
  /* harmony export */ A: () => (/* binding */ scroll)
27816
27828
  /* harmony export */ });
27817
27829
  /* unused harmony export scrollVolume */
27818
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
27830
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
27819
27831
 
27820
27832
  function scroll(viewport, options) {
27821
27833
  const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(viewport.element);
@@ -27883,7 +27895,7 @@ function scrollVolume(viewport, volumeId, delta, scrollSlabs = false) {
27883
27895
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27884
27896
  /* harmony export */ A: () => (/* binding */ InterpolationManager)
27885
27897
  /* harmony export */ });
27886
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
27898
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
27887
27899
  /* harmony import */ var _stateManagement_annotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45200);
27888
27900
  /* harmony import */ var _contours_interpolation_getInterpolationDataCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23237);
27889
27901
  /* harmony import */ var _contours_interpolation_interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7727);
@@ -28212,7 +28224,7 @@ function lpad(string, character, length) {
28212
28224
  /* harmony export */ OX: () => (/* binding */ getUniqueSegmentIndices)
28213
28225
  /* harmony export */ });
28214
28226
  /* unused harmony export setSegmentationClean */
28215
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
28227
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
28216
28228
  /* harmony import */ var _stateManagement_segmentation_segmentationState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30322);
28217
28229
  /* harmony import */ var _tools_segmentation_strategies_utils_stackVolumeCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16124);
28218
28230
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84901);
@@ -28474,8 +28486,8 @@ function _validateAnnotations(annotations) {
28474
28486
  }
28475
28487
  /* harmony default export */ const segmentation_rectangleROIThresholdVolumeByRange = (rectangleROIThresholdVolumeByRange);
28476
28488
 
28477
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
28478
- var esm = __webpack_require__(44656);
28489
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
28490
+ var esm = __webpack_require__(73868);
28479
28491
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/createMergedLabelmapForIndex.js
28480
28492
 
28481
28493
  function createMergedLabelmapForIndex(labelmaps, segmentIndex = 1, volumeId = 'mergedLabelmap') {
@@ -29292,7 +29304,7 @@ function getHoveredContourSegmentationAnnotation(segmentationId) {
29292
29304
  /* harmony export */ h6: () => (/* binding */ triggerSegmentationRender),
29293
29305
  /* harmony export */ px: () => (/* binding */ segmentationRenderingEngine)
29294
29306
  /* harmony export */ });
29295
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29307
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29296
29308
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
29297
29309
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52610);
29298
29310
  /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94152);
@@ -29416,7 +29428,7 @@ function triggerSegmentationRender(toolGroupId) {
29416
29428
  /* harmony export */ n7: () => (/* binding */ getBrushToolInstances),
29417
29429
  /* harmony export */ zf: () => (/* binding */ processVolumes)
29418
29430
  /* harmony export */ });
29419
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29431
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29420
29432
  /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52610);
29421
29433
  /* harmony import */ var _tools_segmentation_BrushTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53712);
29422
29434
  /* harmony import */ var _boundingBox_getBoundingBoxAroundShape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14471);
@@ -29702,7 +29714,7 @@ function _getDistance3D(point0, point1) {
29702
29714
  /* harmony export */ ou: () => (/* binding */ annotationRenderingEngine)
29703
29715
  /* harmony export */ });
29704
29716
  /* unused harmony export triggerAnnotationRender */
29705
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29717
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29706
29718
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84901);
29707
29719
  /* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2746);
29708
29720
  /* harmony import */ var _getToolsWithModesForElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42360);
@@ -29880,7 +29892,7 @@ __webpack_require__.r(__webpack_exports__);
29880
29892
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29881
29893
  /* harmony export */ u: () => (/* binding */ isViewportPreScaled)
29882
29894
  /* harmony export */ });
29883
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29895
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29884
29896
 
29885
29897
  function isViewportPreScaled(viewport, targetId) {
29886
29898
  if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.BaseVolumeViewport) {
@@ -29910,7 +29922,7 @@ function isViewportPreScaled(viewport, targetId) {
29910
29922
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29911
29923
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
29912
29924
  /* harmony export */ });
29913
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29925
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29914
29926
  /* harmony import */ var _clip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88484);
29915
29927
  /* harmony import */ var _scroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21783);
29916
29928
 
@@ -29959,7 +29971,7 @@ function _getImageIndexToJump(numberOfSlices, imageIndex) {
29959
29971
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29960
29972
  /* harmony export */ A: () => (/* binding */ jumpToWorld)
29961
29973
  /* harmony export */ });
29962
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44656);
29974
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73868);
29963
29975
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44753);
29964
29976
 
29965
29977
 
@@ -30058,8 +30070,8 @@ function _toolGroupHasActiveEnabledOrPassiveTool(toolGroup, toolName) {
30058
30070
  return toolMode === Active || toolMode === Passive || toolMode === Enabled;
30059
30071
  }
30060
30072
 
30061
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 327 modules
30062
- var esm = __webpack_require__(44656);
30073
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 328 modules
30074
+ var esm = __webpack_require__(73868);
30063
30075
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
30064
30076
  var gl_matrix_esm = __webpack_require__(44753);
30065
30077
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/filterViewportsWithParallelNormals.js