@ohif/app 3.13.0-beta.21 → 3.13.0-beta.23

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/{6409.bundle.24edbaa283b7c521b8f7.js → 2075.bundle.a9783d07b48ca241486e.js} +239 -168
  2. package/dist/{3081.bundle.69c2ed88c1fc66671e82.js → 3081.bundle.4344a3bedb7e70eb5d78.js} +2 -2
  3. package/dist/{3461.bundle.b1c56af281517014477c.js → 3461.bundle.7127d96c33ad3cd68c11.js} +3 -3
  4. package/dist/{4287.bundle.571587a1d29d54203175.js → 4287.bundle.c6bd6cf991e2dae32044.js} +111 -35
  5. package/dist/{5028.bundle.b75c0bb0fa9a490055bd.js → 5028.bundle.5833a530fe9ade4dc787.js} +2 -2
  6. package/dist/{2031.bundle.a17bc2d85cef3a9fea57.js → 581.bundle.2bb402f7316b6e8c735b.js} +326 -231
  7. package/dist/{6280.bundle.6574101421b8a4ab6777.js → 6280.bundle.828ccda61aa5c83408a5.js} +425 -567
  8. package/dist/{2816.bundle.838fa4d72921c026083c.js → 6386.bundle.d1be64fd274877e918d9.js} +30 -58
  9. package/dist/{8665.bundle.056dcd3e86743de2526c.js → 7537.bundle.5a26371cf1368d0e5cf2.js} +321 -75
  10. package/dist/{8305.bundle.e621bc861f8c16092e7c.js → 8305.bundle.61e53a1298804bd4bc46.js} +2 -2
  11. package/dist/{8583.bundle.d0773ead34455cfa28d7.js → 8583.bundle.3bae324bc92e2a4f00e4.js} +2 -2
  12. package/dist/{9195.bundle.902ab556e8909fa878a1.js → 9195.bundle.e4457f0ed6c34993e3c6.js} +3 -4
  13. package/dist/{9205.bundle.dca4f040999d069f1cc5.js → 9205.bundle.a37976b4f3ded2cbb2ab.js} +587 -709
  14. package/dist/{933.bundle.c8f45e1f380ad5a34e07.js → 933.bundle.a6220d057519db0b7651.js} +2 -2
  15. package/dist/{app.bundle.38dca800f336facdb28b.js → app.bundle.f8d7e7242f341be6acab.js} +282 -81
  16. package/dist/{compute.bundle.6bc9d64acadd16a85f59.js → compute.bundle.0fa6bd11224eb79e7474.js} +3 -3
  17. package/dist/index.html +1 -1
  18. package/dist/{polySeg.bundle.41c40b57dd1b265fb425.js → polySeg.bundle.f15c8d2cc2559db627cf.js} +3 -3
  19. package/dist/sw.js +1 -1
  20. package/package.json +21 -21
  21. /package/dist/{1459.bundle.2f3d935de1ef66d49c9b.js → 1459.bundle.fdfad1e671918501e3d2.js} +0 -0
  22. /package/dist/{1933.bundle.1b74cba28c11aaa349c1.js → 1933.bundle.f89ae7ae7baa9a38128e.js} +0 -0
  23. /package/dist/{2018.bundle.330c371c2152bc79a68e.js → 2018.bundle.a517a2a8d4b076b2c684.js} +0 -0
  24. /package/dist/{213.bundle.83766bfd0ad91206ba20.js → 213.bundle.df5bb838062f6a1aa79c.js} +0 -0
  25. /package/dist/{2424.bundle.8d41a94526449b9c27f2.js → 2424.bundle.c2786065ba1937631a79.js} +0 -0
  26. /package/dist/{3138.bundle.536017116b2a48fe8f59.js → 3138.bundle.a33cbe78017b1918c923.js} +0 -0
  27. /package/dist/{4507.bundle.2943a08dea2a96095e86.js → 4507.bundle.895bc803df58395a221f.js} +0 -0
  28. /package/dist/{4819.bundle.b817d46688ec00d46826.js → 4819.bundle.e97fa2fed6fb6e421f1a.js} +0 -0
  29. /package/dist/{5015.bundle.ea7e3b295cd3ef134df2.js → 5015.bundle.eff33bbbbd6ff055c742.js} +0 -0
  30. /package/dist/{5457.bundle.ea0a729d0bb45314d5ca.js → 5457.bundle.4b2e1e0aaf4f54d8cd1e.js} +0 -0
  31. /package/dist/{5485.bundle.8248a4caa4411103e190.js → 5485.bundle.70dbc4d41d1b5f299e6e.js} +0 -0
  32. /package/dist/{6027.bundle.b9a666f05ac57e742979.js → 6027.bundle.77ed34c72d695295cc90.js} +0 -0
  33. /package/dist/{7431.bundle.e6f5f5835a3c49e2309c.js → 7431.bundle.8ddbd21f7b2b8528a14a.js} +0 -0
  34. /package/dist/{7639.bundle.2e179ab85c66a6def98f.js → 7639.bundle.9a1d8c0a3624fff53cb9.js} +0 -0
  35. /package/dist/{8499.bundle.59df69e1919739d6e444.js → 8499.bundle.cca6ef54e2c475fc9f2b.js} +0 -0
  36. /package/dist/{85.bundle.14430d53b13d7ff9f8a8.js → 85.bundle.aa4e9485c037e1bf2cbc.js} +0 -0
  37. /package/dist/{8558.bundle.288aabeb7473ee9d7312.js → 8558.bundle.69bda0c8e9b438294401.js} +0 -0
  38. /package/dist/{9927.bundle.006c8d2dda07109c4749.js → 9927.bundle.006b27903e0450ce2e94.js} +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[8665],{
1
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[7537],{
2
2
 
3
3
  /***/ 86871
4
4
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -1888,21 +1888,38 @@ class BaseVolumeViewport extends Viewport/* default */.A {
1888
1888
  }
1889
1889
  }
1890
1890
  else if (typeof orientation === 'string') {
1891
- if (orientation === 'acquisition') {
1891
+ if (orientation === enums.OrientationAxis.ACQUISITION) {
1892
1892
  return this._getAcquisitionPlaneOrientation();
1893
1893
  }
1894
- else if (orientation === 'reformat' ||
1895
- orientation.includes('_reformat')) {
1894
+ else if (orientation === enums.OrientationAxis.REFORMAT) {
1896
1895
  return (0,getCameraVectors/* getCameraVectors */.S8)(this, {
1897
1896
  useViewportNormal: true,
1898
1897
  });
1899
1898
  }
1899
+ else if (orientation === enums.OrientationAxis.AXIAL_REFORMAT ||
1900
+ orientation === enums.OrientationAxis.SAGITTAL_REFORMAT ||
1901
+ orientation === enums.OrientationAxis.CORONAL_REFORMAT) {
1902
+ let baseOrientation;
1903
+ if (orientation === enums.OrientationAxis.AXIAL_REFORMAT) {
1904
+ baseOrientation = enums.OrientationAxis.AXIAL;
1905
+ }
1906
+ else if (orientation === enums.OrientationAxis.SAGITTAL_REFORMAT) {
1907
+ baseOrientation = enums.OrientationAxis.SAGITTAL;
1908
+ }
1909
+ else {
1910
+ baseOrientation = enums.OrientationAxis.CORONAL;
1911
+ }
1912
+ return (0,getCameraVectors/* getCameraVectors */.S8)(this, {
1913
+ useViewportNormal: true,
1914
+ orientation: baseOrientation,
1915
+ });
1916
+ }
1900
1917
  else if (constants.MPR_CAMERA_VALUES[orientation]) {
1901
1918
  this.viewportProperties.orientation = orientation;
1902
1919
  return constants.MPR_CAMERA_VALUES[orientation];
1903
1920
  }
1904
1921
  }
1905
- throw new Error(`Invalid orientation: ${orientation}. Valid orientations are: ${Object.keys(constants.MPR_CAMERA_VALUES).join(', ')}`);
1922
+ throw new Error(`Invalid orientation: ${orientation}. Valid orientations are: ${Object.keys(constants.MPR_CAMERA_VALUES).join(', ')}, ${enums.OrientationAxis.ACQUISITION}, ${enums.OrientationAxis.REFORMAT}, ${enums.OrientationAxis.AXIAL_REFORMAT}, ${enums.OrientationAxis.SAGITTAL_REFORMAT}, ${enums.OrientationAxis.CORONAL_REFORMAT}`);
1906
1923
  }
1907
1924
  _getAcquisitionPlaneOrientation() {
1908
1925
  const actorEntry = this.getDefaultActor();
@@ -7720,12 +7737,29 @@ class VolumeViewport extends BaseVolumeViewport/* default */.A {
7720
7737
  if (orientation === enums.OrientationAxis.ACQUISITION) {
7721
7738
  ({ viewPlaneNormal, viewUp } = super._getAcquisitionPlaneOrientation());
7722
7739
  }
7723
- else if (orientation === enums.OrientationAxis.REFORMAT ||
7724
- orientation.includes('_reformat')) {
7740
+ else if (orientation === enums.OrientationAxis.REFORMAT) {
7725
7741
  ({ viewPlaneNormal, viewUp } = (0,getCameraVectors/* getCameraVectors */.S8)(this, {
7726
7742
  useViewportNormal: true,
7727
7743
  }));
7728
7744
  }
7745
+ else if (orientation === enums.OrientationAxis.AXIAL_REFORMAT ||
7746
+ orientation === enums.OrientationAxis.SAGITTAL_REFORMAT ||
7747
+ orientation === enums.OrientationAxis.CORONAL_REFORMAT) {
7748
+ let baseOrientation;
7749
+ if (orientation === enums.OrientationAxis.AXIAL_REFORMAT) {
7750
+ baseOrientation = enums.OrientationAxis.AXIAL;
7751
+ }
7752
+ else if (orientation === enums.OrientationAxis.SAGITTAL_REFORMAT) {
7753
+ baseOrientation = enums.OrientationAxis.SAGITTAL;
7754
+ }
7755
+ else {
7756
+ baseOrientation = enums.OrientationAxis.CORONAL;
7757
+ }
7758
+ ({ viewPlaneNormal, viewUp } = (0,getCameraVectors/* getCameraVectors */.S8)(this, {
7759
+ useViewportNormal: true,
7760
+ orientation: baseOrientation,
7761
+ }));
7762
+ }
7729
7763
  else if (constants.MPR_CAMERA_VALUES[orientation]) {
7730
7764
  ({ viewPlaneNormal, viewUp } = constants.MPR_CAMERA_VALUES[orientation]);
7731
7765
  }
@@ -7737,7 +7771,7 @@ class VolumeViewport extends BaseVolumeViewport/* default */.A {
7737
7771
  viewUp,
7738
7772
  });
7739
7773
  this.viewportProperties.orientation = orientation;
7740
- this.resetCamera();
7774
+ this.resetCamera({ suppressEvents: true });
7741
7775
  }
7742
7776
  else {
7743
7777
  ({ viewPlaneNormal, viewUp } = orientation);
@@ -11408,7 +11442,8 @@ function convertMapperToNotSharedMapper(sharedMapper) {
11408
11442
  /* harmony export */ S8: () => (/* binding */ getCameraVectors),
11409
11443
  /* harmony export */ jq: () => (/* binding */ calculateCameraPosition)
11410
11444
  /* harmony export */ });
11411
- /* unused harmony export getOrientationFromScanAxisNormal */
11445
+ /* unused harmony exports getOrientationFromScanAxisNormal, getAcquisitionPlaneReformatOrientation */
11446
+ /* unused harmony import specifier */ var vec3;
11412
11447
  /* harmony import */ var _metaData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74876);
11413
11448
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76491);
11414
11449
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71851);
@@ -11434,6 +11469,22 @@ function calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, ori
11434
11469
  case OrientationAxis.CORONAL_REFORMAT:
11435
11470
  referenceCameraValues = MPR_CAMERA_VALUES.coronal;
11436
11471
  break;
11472
+ case OrientationAxis.REFORMAT:
11473
+ const autoDetected = getOrientationFromScanAxisNormal(scanAxisNormal);
11474
+ switch (autoDetected) {
11475
+ case OrientationAxis.AXIAL:
11476
+ referenceCameraValues = MPR_CAMERA_VALUES.axial;
11477
+ break;
11478
+ case OrientationAxis.SAGITTAL:
11479
+ referenceCameraValues = MPR_CAMERA_VALUES.sagittal;
11480
+ break;
11481
+ case OrientationAxis.CORONAL:
11482
+ referenceCameraValues = MPR_CAMERA_VALUES.coronal;
11483
+ break;
11484
+ default:
11485
+ referenceCameraValues = MPR_CAMERA_VALUES.axial;
11486
+ }
11487
+ break;
11437
11488
  default:
11438
11489
  referenceCameraValues = MPR_CAMERA_VALUES.axial;
11439
11490
  break;
@@ -11512,7 +11563,7 @@ function getCameraVectors(viewport, config) {
11512
11563
  if (useViewportNormal) {
11513
11564
  normalPlaneForOrientation = viewport.getCamera().viewPlaneNormal;
11514
11565
  }
11515
- if (!orientation) {
11566
+ if (!orientation || orientation === OrientationAxis.REFORMAT) {
11516
11567
  orientation = getOrientationFromScanAxisNormal(normalPlaneForOrientation);
11517
11568
  }
11518
11569
  return calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, orientation);
@@ -11535,6 +11586,103 @@ function getOrientationFromScanAxisNormal(scanAxisNormal) {
11535
11586
  return OrientationAxis.CORONAL;
11536
11587
  }
11537
11588
  }
11589
+ function getAcquisitionPlaneReformatOrientation(imageOrientationPatient) {
11590
+ if (!imageOrientationPatient || imageOrientationPatient.length !== 6) {
11591
+ return null;
11592
+ }
11593
+ const rowVec = vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
11594
+ const colVec = vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
11595
+ const scanAxisNormal = vec3.create();
11596
+ vec3.cross(scanAxisNormal, rowVec, colVec);
11597
+ vec3.normalize(rowVec, rowVec);
11598
+ vec3.normalize(colVec, colVec);
11599
+ vec3.normalize(scanAxisNormal, scanAxisNormal);
11600
+ const negRowVec = vec3.create();
11601
+ vec3.negate(negRowVec, rowVec);
11602
+ const negColVec = vec3.create();
11603
+ vec3.negate(negColVec, colVec);
11604
+ const negScanAxisNormal = vec3.create();
11605
+ vec3.negate(negScanAxisNormal, scanAxisNormal);
11606
+ const acquisitionVectors = [
11607
+ { vec: rowVec, name: 'row' },
11608
+ { vec: colVec, name: 'col' },
11609
+ { vec: scanAxisNormal, name: 'scanAxis' },
11610
+ { vec: negRowVec, name: '-row' },
11611
+ { vec: negColVec, name: '-col' },
11612
+ { vec: negScanAxisNormal, name: '-scanAxis' },
11613
+ ];
11614
+ const standardViews = [
11615
+ {
11616
+ name: 'axial',
11617
+ viewPlaneNormal: vec3.fromValues(MPR_CAMERA_VALUES.axial.viewPlaneNormal[0], MPR_CAMERA_VALUES.axial.viewPlaneNormal[1], MPR_CAMERA_VALUES.axial.viewPlaneNormal[2]),
11618
+ viewUp: vec3.fromValues(MPR_CAMERA_VALUES.axial.viewUp[0], MPR_CAMERA_VALUES.axial.viewUp[1], MPR_CAMERA_VALUES.axial.viewUp[2]),
11619
+ },
11620
+ {
11621
+ name: 'sagittal',
11622
+ viewPlaneNormal: vec3.fromValues(MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[0], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[1], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[2]),
11623
+ viewUp: vec3.fromValues(MPR_CAMERA_VALUES.sagittal.viewUp[0], MPR_CAMERA_VALUES.sagittal.viewUp[1], MPR_CAMERA_VALUES.sagittal.viewUp[2]),
11624
+ },
11625
+ {
11626
+ name: 'coronal',
11627
+ viewPlaneNormal: vec3.fromValues(MPR_CAMERA_VALUES.coronal.viewPlaneNormal[0], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[1], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[2]),
11628
+ viewUp: vec3.fromValues(MPR_CAMERA_VALUES.coronal.viewUp[0], MPR_CAMERA_VALUES.coronal.viewUp[1], MPR_CAMERA_VALUES.coronal.viewUp[2]),
11629
+ },
11630
+ ];
11631
+ let bestAlignment = -Infinity;
11632
+ let bestViewPlaneNormal = null;
11633
+ let bestViewUp = null;
11634
+ for (const standardView of standardViews) {
11635
+ let bestPairScore = -Infinity;
11636
+ let bestPairViewPlaneNormal = null;
11637
+ let bestPairViewUp = null;
11638
+ for (let i = 0; i < acquisitionVectors.length; i++) {
11639
+ for (let j = 0; j < acquisitionVectors.length; j++) {
11640
+ if (i === j)
11641
+ continue;
11642
+ const v1 = acquisitionVectors[i].vec;
11643
+ const v2 = acquisitionVectors[j].vec;
11644
+ const dotProduct = Math.abs(vec3.dot(v1, v2));
11645
+ if (dotProduct > 0.1)
11646
+ continue;
11647
+ const score1 = Math.abs(vec3.dot(v1, standardView.viewPlaneNormal));
11648
+ const score2 = Math.abs(vec3.dot(v2, standardView.viewUp));
11649
+ const totalScore = score1 + score2;
11650
+ const score1Swapped = Math.abs(vec3.dot(v2, standardView.viewPlaneNormal));
11651
+ const score2Swapped = Math.abs(vec3.dot(v1, standardView.viewUp));
11652
+ const totalScoreSwapped = score1Swapped + score2Swapped;
11653
+ if (totalScoreSwapped > totalScore &&
11654
+ totalScoreSwapped > bestPairScore) {
11655
+ bestPairScore = totalScoreSwapped;
11656
+ bestPairViewPlaneNormal = v2;
11657
+ bestPairViewUp = v1;
11658
+ }
11659
+ else if (totalScore > bestPairScore) {
11660
+ bestPairScore = totalScore;
11661
+ bestPairViewPlaneNormal = v1;
11662
+ bestPairViewUp = v2;
11663
+ }
11664
+ }
11665
+ }
11666
+ if (bestPairScore > bestAlignment &&
11667
+ bestPairViewPlaneNormal &&
11668
+ bestPairViewUp) {
11669
+ bestAlignment = bestPairScore;
11670
+ bestViewPlaneNormal = bestPairViewPlaneNormal;
11671
+ bestViewUp = bestPairViewUp;
11672
+ }
11673
+ }
11674
+ if (!bestViewPlaneNormal || !bestViewUp) {
11675
+ return null;
11676
+ }
11677
+ return {
11678
+ viewPlaneNormal: [
11679
+ bestViewPlaneNormal[0],
11680
+ bestViewPlaneNormal[1],
11681
+ bestViewPlaneNormal[2],
11682
+ ],
11683
+ viewUp: [bestViewUp[0], bestViewUp[1], bestViewUp[2]],
11684
+ };
11685
+ }
11538
11686
 
11539
11687
 
11540
11688
  /***/ },
@@ -35536,7 +35684,7 @@ function uuidv4() {
35536
35684
 
35537
35685
  "use strict";
35538
35686
  /* unused harmony export version */
35539
- const version = '4.15.29';
35687
+ const version = '4.17.2';
35540
35688
 
35541
35689
 
35542
35690
  /***/ },
@@ -36474,6 +36622,70 @@ function drawLine(svgDrawingHelper, annotationUID, lineUID, start, end, options
36474
36622
  }
36475
36623
 
36476
36624
 
36625
+ /***/ },
36626
+
36627
+ /***/ 1595
36628
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36629
+
36630
+ "use strict";
36631
+
36632
+ // EXPORTS
36633
+ __webpack_require__.d(__webpack_exports__, {
36634
+ A: () => (/* binding */ drawingSvg_drawLinkedTextBox)
36635
+ });
36636
+
36637
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawTextBox.js
36638
+ var drawTextBox = __webpack_require__(26290);
36639
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLine.js
36640
+ var drawLine = __webpack_require__(92118);
36641
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/findClosestPoint.js
36642
+ var findClosestPoint = __webpack_require__(90554);
36643
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLink.js
36644
+
36645
+
36646
+ function drawLink(svgDrawingHelper, annotationUID, linkUID, annotationAnchorPoints, refPoint, boundingBox, options = {}) {
36647
+ const start = annotationAnchorPoints.length > 0
36648
+ ? (0,findClosestPoint/* default */.A)(annotationAnchorPoints, refPoint)
36649
+ : refPoint;
36650
+ const boundingBoxPoints = _boundingBoxPoints(boundingBox);
36651
+ const end = (0,findClosestPoint/* default */.A)(boundingBoxPoints, start);
36652
+ const mergedOptions = Object.assign({
36653
+ color: 'rgb(255, 255, 0)',
36654
+ lineWidth: '1',
36655
+ lineDash: '2,3',
36656
+ }, options);
36657
+ (0,drawLine/* default */.A)(svgDrawingHelper, annotationUID, `link-${linkUID}`, start, end, mergedOptions);
36658
+ }
36659
+ function _boundingBoxPoints(boundingBox) {
36660
+ const { x: left, y: top, height, width } = boundingBox;
36661
+ const halfWidth = width / 2;
36662
+ const halfHeight = height / 2;
36663
+ const topMiddle = [left + halfWidth, top];
36664
+ const leftMiddle = [left, top + halfHeight];
36665
+ const bottomMiddle = [left + halfWidth, top + height];
36666
+ const rightMiddle = [left + width, top + halfHeight];
36667
+ return [topMiddle, leftMiddle, bottomMiddle, rightMiddle];
36668
+ }
36669
+ /* harmony default export */ const drawingSvg_drawLink = (drawLink);
36670
+
36671
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLinkedTextBox.js
36672
+
36673
+
36674
+ function drawLinkedTextBox(svgDrawingHelper, annotationUID, textBoxUID, textLines, textBoxPosition, annotationAnchorPoints, textBox, options = {}) {
36675
+ const mergedOptions = Object.assign({
36676
+ handleRadius: '6',
36677
+ centering: {
36678
+ x: false,
36679
+ y: true,
36680
+ },
36681
+ }, options);
36682
+ const canvasBoundingBox = (0,drawTextBox/* default */.A)(svgDrawingHelper, annotationUID, textBoxUID, textLines, textBoxPosition, mergedOptions);
36683
+ drawingSvg_drawLink(svgDrawingHelper, annotationUID, textBoxUID, annotationAnchorPoints, textBoxPosition, canvasBoundingBox, mergedOptions);
36684
+ return canvasBoundingBox;
36685
+ }
36686
+ /* harmony default export */ const drawingSvg_drawLinkedTextBox = (drawLinkedTextBox);
36687
+
36688
+
36477
36689
  /***/ },
36478
36690
 
36479
36691
  /***/ 17311
@@ -36667,6 +36879,8 @@ function drawRectByCoordinates(svgDrawingHelper, annotationUID, rectangleUID, ca
36667
36879
  /* harmony export */ });
36668
36880
  /* harmony import */ var _getHash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97181);
36669
36881
  /* harmony import */ var _setAttributesIfNecessary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85899);
36882
+ /* harmony import */ var _utilities_drawing_textBoxOverlapRegistry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49773);
36883
+
36670
36884
 
36671
36885
 
36672
36886
  function drawTextBox(svgDrawingHelper, annotationUID, textUID, textLines, position, options = {}) {
@@ -36680,6 +36894,9 @@ function drawTextBox(svgDrawingHelper, annotationUID, textUID, textLines, positi
36680
36894
  centerY: true,
36681
36895
  }, options);
36682
36896
  const textGroupBoundingBox = _drawTextGroup(svgDrawingHelper, annotationUID, textUID, textLines, position, mergedOptions);
36897
+ if (svgDrawingHelper.svgLayerElement) {
36898
+ (0,_utilities_drawing_textBoxOverlapRegistry__WEBPACK_IMPORTED_MODULE_2__/* .registerTextBox */ .AL)(svgDrawingHelper.svgLayerElement, textGroupBoundingBox);
36899
+ }
36683
36900
  return textGroupBoundingBox;
36684
36901
  }
36685
36902
  function _drawTextGroup(svgDrawingHelper, annotationUID, textUID, textLines = [''], position, options) {
@@ -36740,10 +36957,10 @@ function _drawTextGroup(svgDrawingHelper, annotationUID, textUID, textLines = ['
36740
36957
  textGroupBoundingBox = _drawTextBackground(textGroup, backgroundStyles);
36741
36958
  }
36742
36959
  return Object.assign({}, textGroupBoundingBox, {
36743
- x,
36744
- y,
36745
- height: textGroupBoundingBox.height + padding,
36746
- width: textGroupBoundingBox.width + padding,
36960
+ x: x + textGroupBoundingBox.x,
36961
+ y: y + textGroupBoundingBox.y,
36962
+ height: textGroupBoundingBox.height,
36963
+ width: textGroupBoundingBox.width,
36747
36964
  });
36748
36965
  }
36749
36966
  function _createTextElement(svgDrawingHelper, options) {
@@ -40647,18 +40864,16 @@ function getUpdateFunction(viewport) {
40647
40864
  /* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(60810);
40648
40865
  /* harmony import */ var _utilities_throttle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(27730);
40649
40866
  /* harmony import */ var _utilities_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52905);
40650
- /* harmony import */ var _utilities_drawing__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473);
40651
- /* harmony import */ var _utilities_planar_getWorldWidthAndHeightFromCorners__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(35489);
40652
- /* harmony import */ var _stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(29601);
40653
- /* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7001);
40654
- /* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58640);
40655
- /* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44049);
40656
- /* harmony import */ var _annotation_RectangleROITool__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(4010);
40657
- /* harmony import */ var _utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(18990);
40658
- /* harmony import */ var _utilities_math_basic__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(73262);
40659
- /* harmony import */ var _utilities_planar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(13165);
40660
- /* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(40634);
40661
-
40867
+ /* harmony import */ var _utilities_planar_getWorldWidthAndHeightFromCorners__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35489);
40868
+ /* harmony import */ var _stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29601);
40869
+ /* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7001);
40870
+ /* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(58640);
40871
+ /* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(44049);
40872
+ /* harmony import */ var _annotation_RectangleROITool__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(4010);
40873
+ /* harmony import */ var _utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18990);
40874
+ /* harmony import */ var _utilities_math_basic__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(73262);
40875
+ /* harmony import */ var _utilities_planar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(13165);
40876
+ /* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40634);
40662
40877
 
40663
40878
 
40664
40879
 
@@ -40679,14 +40894,14 @@ function getUpdateFunction(viewport) {
40679
40894
 
40680
40895
 
40681
40896
  const { transformWorldToIndex } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities;
40682
- class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A {
40897
+ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A {
40683
40898
  constructor(toolProps = {}, defaultToolProps = {
40684
40899
  configuration: {
40685
40900
  storePointData: false,
40686
40901
  numSlicesToPropagate: 10,
40687
40902
  calculatePointsInsideVolume: true,
40688
40903
  getTextLines: defaultGetTextLines,
40689
- statsCalculator: _utilities_math_basic__WEBPACK_IMPORTED_MODULE_17__.BasicStatsCalculator,
40904
+ statsCalculator: _utilities_math_basic__WEBPACK_IMPORTED_MODULE_16__.BasicStatsCalculator,
40690
40905
  showTextBox: false,
40691
40906
  throttleTimeout: 100,
40692
40907
  },
@@ -40771,9 +40986,9 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40771
40986
  hasMoved: false,
40772
40987
  };
40773
40988
  this._activateDraw(element);
40774
- (0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_12__.hideElementCursor)(element);
40989
+ (0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_11__.hideElementCursor)(element);
40775
40990
  evt.preventDefault();
40776
- (0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A)(viewportIdsToRender);
40991
+ (0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(viewportIdsToRender);
40777
40992
  return annotation;
40778
40993
  };
40779
40994
  this._endCallback = (evt) => {
@@ -40787,7 +41002,7 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40787
41002
  data.handles.activeHandleIndex = null;
40788
41003
  this._deactivateModify(element);
40789
41004
  this._deactivateDraw(element);
40790
- (0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_12__.resetElementCursor)(element);
41005
+ (0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_11__.resetElementCursor)(element);
40791
41006
  const { metadata } = annotation;
40792
41007
  const { enabledElement } = metadata;
40793
41008
  this.editData = null;
@@ -40799,12 +41014,12 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40799
41014
  const targetId = this.getTargetId(enabledElement.viewport);
40800
41015
  const imageVolume = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.cache.getVolume(targetId.split(/volumeId:|\?/)[1]);
40801
41016
  this._computePointsInsideVolume(annotation, targetId, imageVolume, enabledElement);
40802
- (0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A)(viewportIdsToRender);
41017
+ (0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(viewportIdsToRender);
40803
41018
  if (newAnnotation) {
40804
- (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationCompleted)(annotation);
41019
+ (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_13__.triggerAnnotationCompleted)(annotation);
40805
41020
  }
40806
41021
  else {
40807
- (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationModified)(annotation, element);
41022
+ (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_13__.triggerAnnotationModified)(annotation, element);
40808
41023
  }
40809
41024
  };
40810
41025
  this.renderAnnotation = (enabledElement, svgDrawingHelper) => {
@@ -40814,7 +41029,7 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40814
41029
  if (!annotations?.length) {
40815
41030
  return renderStatus;
40816
41031
  }
40817
- annotations = (0,_utilities_planar__WEBPACK_IMPORTED_MODULE_18__.filterAnnotationsWithinSamePlane)(annotations, viewport.getCamera());
41032
+ annotations = (0,_utilities_planar__WEBPACK_IMPORTED_MODULE_17__.filterAnnotationsWithinSamePlane)(annotations, viewport.getCamera());
40818
41033
  const styleSpecifier = {
40819
41034
  toolGroupId: this.toolGroupId,
40820
41035
  toolName: this.getToolName(),
@@ -40873,7 +41088,7 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40873
41088
  return renderStatus;
40874
41089
  }
40875
41090
  let activeHandleCanvasCoords;
40876
- if (!(0,_stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_11__.isAnnotationVisible)(annotationUID)) {
41091
+ if (!(0,_stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_10__.isAnnotationVisible)(annotationUID)) {
40877
41092
  continue;
40878
41093
  }
40879
41094
  if (!(0,_stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_4__.isAnnotationLocked)(annotationUID) &&
@@ -40900,39 +41115,20 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40900
41115
  });
40901
41116
  renderStatus = true;
40902
41117
  if (this.configuration.showTextBox) {
40903
- const options = this.getLinkedTextBoxStyle(styleSpecifier, annotation);
40904
- if (!options.visibility) {
40905
- data.handles.textBox = {
40906
- hasMoved: false,
40907
- worldPosition: [0, 0, 0],
40908
- worldBoundingBox: {
40909
- topLeft: [0, 0, 0],
40910
- topRight: [0, 0, 0],
40911
- bottomLeft: [0, 0, 0],
40912
- bottomRight: [0, 0, 0],
40913
- },
40914
- };
40915
- continue;
40916
- }
40917
41118
  const textLines = this.configuration.getTextLines(data, { metadata });
40918
41119
  if (!textLines || textLines.length === 0) {
40919
41120
  continue;
40920
41121
  }
40921
- if (!data.handles.textBox.hasMoved) {
40922
- const canvasTextBoxCoords = (0,_utilities_drawing__WEBPACK_IMPORTED_MODULE_9__.getTextBoxCoordsCanvas)(canvasCoordinates);
40923
- data.handles.textBox.worldPosition =
40924
- viewport.canvasToWorld(canvasTextBoxCoords);
41122
+ if (!this.renderLinkedTextBoxAnnotation({
41123
+ enabledElement,
41124
+ svgDrawingHelper,
41125
+ annotation,
41126
+ styleSpecifier,
41127
+ textLines,
41128
+ canvasCoordinates,
41129
+ })) {
41130
+ continue;
40925
41131
  }
40926
- const textBoxPosition = viewport.worldToCanvas(data.handles.textBox.worldPosition);
40927
- const textBoxUID = '1';
40928
- const boundingBox = (0,_drawingSvg__WEBPACK_IMPORTED_MODULE_5__.drawLinkedTextBox)(svgDrawingHelper, annotationUID, textBoxUID, textLines, textBoxPosition, canvasCoordinates, {}, options);
40929
- const { x: left, y: top, width, height } = boundingBox;
40930
- data.handles.textBox.worldBoundingBox = {
40931
- topLeft: viewport.canvasToWorld([left, top]),
40932
- topRight: viewport.canvasToWorld([left + width, top]),
40933
- bottomLeft: viewport.canvasToWorld([left, top + height]),
40934
- bottomRight: viewport.canvasToWorld([left + width, top + height]),
40935
- };
40936
41132
  }
40937
41133
  }
40938
41134
  return renderStatus;
@@ -40992,15 +41188,15 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
40992
41188
  const image = this.getTargetImageData(targetId);
40993
41189
  const worldPos1 = data.handles.points[0];
40994
41190
  const worldPos2 = data.handles.points[3];
40995
- const { worldWidth, worldHeight } = (0,_utilities_planar_getWorldWidthAndHeightFromCorners__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
41191
+ const { worldWidth, worldHeight } = (0,_utilities_planar_getWorldWidthAndHeightFromCorners__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(viewPlaneNormal, viewUp, worldPos1, worldPos2);
40996
41192
  const measureInfo = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_1__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, data.habdles);
40997
41193
  const area = Math.abs(worldWidth * worldHeight) /
40998
41194
  (measureInfo.scale * measureInfo.scale);
40999
41195
  const modalityUnitOptions = {
41000
- isPreScaled: (0,_utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_16__/* .isViewportPreScaled */ .u)(viewport, targetId),
41196
+ isPreScaled: (0,_utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_15__/* .isViewportPreScaled */ .u)(viewport, targetId),
41001
41197
  isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
41002
41198
  };
41003
- const modalityUnit = (0,_utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_19__/* .getPixelValueUnits */ .j)(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
41199
+ const modalityUnit = (0,_utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_18__/* .getPixelValueUnits */ .j)(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
41004
41200
  for (let i = 0; i < projectionPoints.length; i++) {
41005
41201
  if (!imageVolume) {
41006
41202
  continue;
@@ -41064,7 +41260,7 @@ class RectangleROIStartEndThresholdTool extends _annotation_RectangleROITool__WE
41064
41260
  this._computeProjectionPoints(annotation, imageVolume);
41065
41261
  this._computePointsInsideVolume(annotation, targetId, imageVolume, enabledElement);
41066
41262
  annotation.invalidated = false;
41067
- (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationModified)(annotation, viewport.element);
41263
+ (0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_13__.triggerAnnotationModified)(annotation, viewport.element);
41068
41264
  return cachedStats;
41069
41265
  }
41070
41266
  _getStartCoordinate(worldPos, viewPlaneNormal) {
@@ -41778,7 +41974,7 @@ function copyContourSegment(segmentationId, segmentIndex, targetSegmentationId,
41778
41974
  "use strict";
41779
41975
  /* unused harmony export findAllIntersectingContours */
41780
41976
  /* unused harmony import specifier */ var math;
41781
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85895);
41977
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18153);
41782
41978
 
41783
41979
  function findAllIntersectingContours(viewport, sourcePolyline, contourSegmentationAnnotations) {
41784
41980
  const intersectingContours = [];
@@ -42160,7 +42356,7 @@ function deleteOperation(segment) {
42160
42356
  /* unused harmony import specifier */ var hasToolByName;
42161
42357
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
42162
42358
  /* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93126);
42163
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85895);
42359
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18153);
42164
42360
  /* harmony import */ var _contours_updateContourPolyline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72967);
42165
42361
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82056);
42166
42362
  /* harmony import */ var _addContourSegmentationAnnotation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85263);
@@ -42413,7 +42609,7 @@ function intersectPolylinesSets(set1, set2) {
42413
42609
  /* unused harmony import specifier */ var arePolylinesIdentical;
42414
42610
  /* unused harmony import specifier */ var getViewReferenceFromAnnotation;
42415
42611
  /* unused harmony import specifier */ var areViewReferencesEqual;
42416
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85895);
42612
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18153);
42417
42613
  /* harmony import */ var _sharedOperations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65172);
42418
42614
  /* harmony import */ var _math_polyline_arePolylinesIdentical__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15346);
42419
42615
  /* harmony import */ var _getViewReferenceFromAnnotation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94372);
@@ -42500,7 +42696,7 @@ function subtractAnnotationPolylines(baseAnnotations, subtractorAnnotations, vie
42500
42696
  /* unused harmony import specifier */ var arePolylinesIdentical;
42501
42697
  /* unused harmony import specifier */ var getViewReferenceFromAnnotation;
42502
42698
  /* unused harmony import specifier */ var areViewReferencesEqual;
42503
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85895);
42699
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18153);
42504
42700
  /* harmony import */ var _sharedOperations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65172);
42505
42701
  /* harmony import */ var _math_polyline_arePolylinesIdentical__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15346);
42506
42702
  /* harmony import */ var _getViewReferenceFromAnnotation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94372);
@@ -42697,7 +42893,7 @@ function removeContourSegmentationAnnotation(annotation) {
42697
42893
  /* unused harmony import specifier */ var hasToolByName;
42698
42894
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
42699
42895
  /* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93126);
42700
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85895);
42896
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18153);
42701
42897
  /* harmony import */ var _contours_updateContourPolyline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72967);
42702
42898
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82056);
42703
42899
  /* harmony import */ var _addContourSegmentationAnnotation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85263);
@@ -43388,7 +43584,7 @@ var findIslands = __webpack_require__(76617);
43388
43584
  /* harmony export */ A: () => (/* binding */ updateContourPolyline)
43389
43585
  /* harmony export */ });
43390
43586
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
43391
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85895);
43587
+ /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18153);
43392
43588
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82056);
43393
43589
 
43394
43590
 
@@ -43444,6 +43640,39 @@ function updateContourPolyline(annotation, polylineData, transforms, options) {
43444
43640
  }
43445
43641
 
43446
43642
 
43643
+ /***/ },
43644
+
43645
+ /***/ 49773
43646
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
43647
+
43648
+ "use strict";
43649
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43650
+ /* harmony export */ AL: () => (/* binding */ registerTextBox),
43651
+ /* harmony export */ F4: () => (/* binding */ clearTextBoxRegistry),
43652
+ /* harmony export */ Pd: () => (/* binding */ getRegisteredTextBoxes)
43653
+ /* harmony export */ });
43654
+ const registry = new WeakMap();
43655
+ function clearTextBoxRegistry(svgLayerElement) {
43656
+ registry.set(svgLayerElement, []);
43657
+ }
43658
+ function registerTextBox(svgLayerElement, rect) {
43659
+ let boxes = registry.get(svgLayerElement);
43660
+ if (!boxes) {
43661
+ boxes = [];
43662
+ registry.set(svgLayerElement, boxes);
43663
+ }
43664
+ boxes.push({
43665
+ x: rect.x,
43666
+ y: rect.y,
43667
+ width: rect.width,
43668
+ height: rect.height,
43669
+ });
43670
+ }
43671
+ function getRegisteredTextBoxes(svgLayerElement) {
43672
+ return registry.get(svgLayerElement) || [];
43673
+ }
43674
+
43675
+
43447
43676
  /***/ },
43448
43677
 
43449
43678
  /***/ 40634
@@ -43516,6 +43745,23 @@ function getViewportsForAnnotation(annotation) {
43516
43745
  }
43517
43746
 
43518
43747
 
43748
+ /***/ },
43749
+
43750
+ /***/ 33277
43751
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
43752
+
43753
+ "use strict";
43754
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43755
+ /* harmony export */ A: () => (/* binding */ intersectAABB)
43756
+ /* harmony export */ });
43757
+ function intersectAABB(aabb1, aabb2) {
43758
+ return (aabb1.minX <= aabb2.maxX &&
43759
+ aabb1.maxX >= aabb2.minX &&
43760
+ aabb1.minY <= aabb2.maxY &&
43761
+ aabb1.maxY >= aabb2.minY);
43762
+ }
43763
+
43764
+
43519
43765
  /***/ },
43520
43766
 
43521
43767
  /***/ 83923
@@ -28,8 +28,8 @@ var i18n_src = __webpack_require__(89010);
28
28
  var esm = __webpack_require__(15327);
29
29
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
30
30
  var dist_esm = __webpack_require__(4667);
31
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 71 modules
32
- var adapters_dist_esm = __webpack_require__(22031);
31
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 75 modules
32
+ var adapters_dist_esm = __webpack_require__(80581);
33
33
  // EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
34
34
  var dcmjs_es = __webpack_require__(5842);
35
35
  ;// ../../../extensions/cornerstone-dicom-seg/src/utils/dicomlabToRGB.ts