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

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 (70) hide show
  1. package/dist/{1459.bundle.cd67aea5d65062345894.js → 1459.bundle.2f3d935de1ef66d49c9b.js} +5 -6
  2. package/dist/{147.bundle.37d627289453cb6c3937.js → 147.bundle.15c3dffbc73dab1085f5.js} +6 -5
  3. package/dist/{1608.bundle.0687c661f1c9edfb3b8a.js → 1608.bundle.7a4a3b49cae10f6ba2cf.js} +8 -8
  4. package/dist/{1927.bundle.3050588e95f43cf57cdd.js → 1927.bundle.be67b3aafe238ca9f191.js} +27 -38
  5. package/dist/{1933.bundle.03d69f1ec49e31942aa9.js → 1933.bundle.1b74cba28c11aaa349c1.js} +15 -16
  6. package/dist/{2018.bundle.0cc66d90549a02692f83.js → 2018.bundle.330c371c2152bc79a68e.js} +18 -19
  7. package/dist/{6347.bundle.784c48912700f281de1d.js → 2031.bundle.a17bc2d85cef3a9fea57.js} +13 -314
  8. package/dist/{2108.bundle.e84aa8d858d8c4f2413e.js → 2108.bundle.f1ef8e8746eb3936bb47.js} +567 -556
  9. package/dist/{213.bundle.c270b9cbfef1c3a6deeb.js → 213.bundle.83766bfd0ad91206ba20.js} +3 -5
  10. package/dist/{2424.bundle.9a15ea93fa8dfa6a6c29.js → 2424.bundle.8d41a94526449b9c27f2.js} +3 -5
  11. package/dist/{2516.bundle.1ea0988d309a757bb6da.js → 2516.bundle.f62228e9a800de8d4b31.js} +6 -6
  12. package/dist/{2701.bundle.12bd01a80a9f8ea4cd94.js → 2701.bundle.8abdc7f6578c00d4539f.js} +6 -6
  13. package/dist/{2842.bundle.860b9f10fcdd9656947a.js → 2816.bundle.838fa4d72921c026083c.js} +827 -2240
  14. package/dist/{3081.bundle.9c9d169bf2b4ac6e987f.js → 3081.bundle.69c2ed88c1fc66671e82.js} +237 -176
  15. package/dist/{1730.bundle.1a3a3ac5087af5ee5cf5.js → 3138.bundle.536017116b2a48fe8f59.js} +10 -304
  16. package/dist/{3461.bundle.375dd4b31216c8ef6b0c.js → 3461.bundle.b1c56af281517014477c.js} +19 -23
  17. package/dist/{4202.bundle.5a0f8e4004c5d8a68548.js → 4202.bundle.dd592e5575b8e302689a.js} +4 -4
  18. package/dist/{4019.bundle.83a604779f7da0101ced.js → 4287.bundle.571587a1d29d54203175.js} +237 -202
  19. package/dist/{5462.bundle.21beddaca145b7465c72.js → 4406.bundle.573d234b4641d23cf8db.js} +1083 -1308
  20. package/dist/{1403.bundle.3368c0f92547bc8b3148.js → 4507.bundle.2943a08dea2a96095e86.js} +10 -305
  21. package/dist/{4819.bundle.2ab7a41dbade682bcee9.js → 4819.bundle.b817d46688ec00d46826.js} +25 -26
  22. package/dist/{4775.bundle.cb49c11c62965c2807ef.js → 5015.bundle.ea7e3b295cd3ef134df2.js} +27 -331
  23. package/dist/{5028.bundle.82318fd632945aba4f27.js → 5028.bundle.b75c0bb0fa9a490055bd.js} +7 -9
  24. package/dist/{5261.bundle.6e1a017f8f1027557f5b.js → 5261.bundle.2655560097e9250eac44.js} +412 -345
  25. package/dist/{5457.bundle.e9733e0dc7c3ae46ea42.js → 5457.bundle.ea0a729d0bb45314d5ca.js} +16 -23
  26. package/dist/{5485.bundle.6603ea8ac3b639703e4d.js → 5485.bundle.8248a4caa4411103e190.js} +14 -29
  27. package/dist/{5491.bundle.2e01dd7ad29e4cc01bc1.js → 5491.bundle.4866d2ecb20dd089e071.js} +54 -51
  28. package/dist/{5802.bundle.3bf5e6b3ab330a594a47.js → 5802.bundle.70600f8f701ac920b932.js} +74 -16
  29. package/dist/5802.css +1 -1
  30. package/dist/{5830.bundle.b073c265c4fcea1afff3.js → 5830.bundle.791019deddd536980a11.js} +3 -3
  31. package/dist/{5858.bundle.ff6b340cf7457db76a1a.js → 5858.bundle.466e58128de344ab53f3.js} +90 -86
  32. package/dist/{6027.bundle.3e52391c5f4432911512.js → 6027.bundle.b9a666f05ac57e742979.js} +3 -5
  33. package/dist/{997.bundle.822b33e561263084e18c.js → 6280.bundle.6574101421b8a4ab6777.js} +1532 -952
  34. package/dist/{6354.bundle.c387737dc09c9cab4ff2.js → 6354.bundle.d8a592b03e9a5b7a66c2.js} +102 -96
  35. package/dist/{6376.bundle.9cb74d7bc08476e2f1a7.js → 6376.bundle.839c708f2fc41e76ee58.js} +6 -6
  36. package/dist/{6409.bundle.b36048896cb11c8571fb.js → 6409.bundle.24edbaa283b7c521b8f7.js} +73 -73
  37. package/dist/6939.bundle.41fbdef87597b5172ec6.js +3 -3
  38. package/dist/{7159.bundle.a5991a5d4f0dd8f1c95f.js → 7159.bundle.fb9df255868960f69765.js} +7 -5
  39. package/dist/{7190.bundle.e8f0193e0e06472f795c.js → 7190.bundle.6314b558746e394aeb0e.js} +40 -40
  40. package/dist/{732.bundle.6978ac30a1e36abf06db.js → 732.bundle.ea6f9d8504e37e01a208.js} +5 -13
  41. package/dist/{7431.bundle.b01791d10e6cf9f503b0.js → 7431.bundle.e6f5f5835a3c49e2309c.js} +28 -28
  42. package/dist/{7639.bundle.831b85eb99f966cefcb2.js → 7639.bundle.2e179ab85c66a6def98f.js} +3 -5
  43. package/dist/7758.bundle.c8d106364298e7d288f0.js +3 -3
  44. package/dist/{8094.bundle.5c44190a325ac23e3e5c.js → 8094.bundle.148a66619607e37cbf19.js} +3 -4
  45. package/dist/{8305.bundle.437d4dd008a2139dc96a.js → 8305.bundle.e621bc861f8c16092e7c.js} +9 -11
  46. package/dist/{6163.bundle.77ac55484671ce6159e6.js → 8499.bundle.59df69e1919739d6e444.js} +5 -300
  47. package/dist/8499.css +2 -0
  48. package/dist/{85.bundle.503f33be60625a46580d.js → 85.bundle.14430d53b13d7ff9f8a8.js} +3 -5
  49. package/dist/{8558.bundle.71c7bf070f41c6647704.js → 8558.bundle.288aabeb7473ee9d7312.js} +11 -309
  50. package/dist/{8583.bundle.4cb5dea918f010b8e56b.js → 8583.bundle.d0773ead34455cfa28d7.js} +16 -19
  51. package/dist/{4410.bundle.c5224cd7d6238a7d4660.js → 8665.bundle.056dcd3e86743de2526c.js} +3456 -1444
  52. package/dist/{9195.bundle.5c13bd1aef828d802142.js → 9195.bundle.902ab556e8909fa878a1.js} +95 -113
  53. package/dist/{7412.bundle.fab1742191b7fe937330.js → 9205.bundle.dca4f040999d069f1cc5.js} +3378 -1074
  54. package/dist/{3584.bundle.8cc0750425513433e9cc.js → 933.bundle.c8f45e1f380ad5a34e07.js} +264 -2219
  55. package/dist/{9845.bundle.255e7c7f7a88193b4e47.js → 9845.bundle.d52e8993eb5cde995219.js} +6 -6
  56. package/dist/{9862.bundle.3a8958a82c572015d25d.js → 9862.bundle.4704bce0c5b039dfdec3.js} +6 -4
  57. package/dist/{9927.bundle.9fdb8b442eb22aa97e73.js → 9927.bundle.006c8d2dda07109c4749.js} +3 -5
  58. package/dist/{app.bundle.7777a62215a4f90957f2.js → app.bundle.38dca800f336facdb28b.js} +65533 -64635
  59. package/dist/app.bundle.css +3 -3
  60. package/dist/{compute.bundle.64280c7af19ff567465f.js → compute.bundle.6bc9d64acadd16a85f59.js} +10 -22
  61. package/dist/{histogram-worker.bundle.d4e40a8018d2698b072e.js → histogram-worker.bundle.5b679ce4142c803c80a4.js} +11 -23
  62. package/dist/index.html +1 -1
  63. package/dist/{interpolation.bundle.c70cb95d164dc494e6dc.js → interpolation.bundle.072a28b303f2dbafe05c.js} +14 -26
  64. package/dist/{polySeg.bundle.a5aa9130b4191253c410.js → polySeg.bundle.41c40b57dd1b265fb425.js} +8 -20
  65. package/dist/sw.js +1 -1
  66. package/package.json +22 -21
  67. package/dist/3343.bundle.d7578ce8f75d158c0bab.js +0 -297
  68. /package/dist/{1730.css → 3138.css} +0 -0
  69. /package/dist/{3343.css → 4972.css} +0 -0
  70. /package/dist/{6163.css → 7829.css} +0 -0
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2842],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2816],{
3
3
 
4
- /***/ 5057:
5
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4
+ /***/ 5057
5
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
6
 
7
7
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8
8
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -50,10 +50,10 @@
50
50
  }
51
51
 
52
52
 
53
- /***/ }),
53
+ /***/ },
54
54
 
55
- /***/ 7808:
56
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
55
+ /***/ 7808
56
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
57
57
 
58
58
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
59
59
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -134,10 +134,10 @@
134
134
  }
135
135
 
136
136
 
137
- /***/ }),
137
+ /***/ },
138
138
 
139
- /***/ 36931:
140
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
139
+ /***/ 36931
140
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
141
141
 
142
142
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
143
143
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -205,10 +205,10 @@
205
205
  }
206
206
 
207
207
 
208
- /***/ }),
208
+ /***/ },
209
209
 
210
- /***/ 50584:
211
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
210
+ /***/ 50584
211
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
212
212
 
213
213
  /* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49038);
214
214
  /* harmony import */ var _classes_ImageVolume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86252);
@@ -225,10 +225,10 @@
225
225
 
226
226
 
227
227
 
228
- /***/ }),
228
+ /***/ },
229
229
 
230
- /***/ 71851:
231
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
230
+ /***/ 71851
231
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
232
232
 
233
233
 
234
234
  // EXPORTS
@@ -319,10 +319,10 @@ var RenderingEngineModeEnum = __webpack_require__(8128);
319
319
 
320
320
 
321
321
 
322
- /***/ }),
322
+ /***/ },
323
323
 
324
- /***/ 15327:
325
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
324
+ /***/ 15327
325
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
326
326
 
327
327
 
328
328
  // EXPORTS
@@ -658,10 +658,10 @@ var helpers = __webpack_require__(40661);
658
658
 
659
659
 
660
660
 
661
- /***/ }),
661
+ /***/ },
662
662
 
663
- /***/ 80068:
664
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
663
+ /***/ 80068
664
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
665
665
 
666
666
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
667
667
  /* harmony export */ createAndCacheDerivedImages: () => (/* binding */ createAndCacheDerivedImages),
@@ -670,6 +670,8 @@ var helpers = __webpack_require__(40661);
670
670
  /* harmony export */ loadImage: () => (/* binding */ loadImage)
671
671
  /* harmony export */ });
672
672
  /* unused harmony exports loadAndCacheImages, createAndCacheDerivedImage, cancelLoadImage, cancelLoadImages, cancelLoadAll, registerImageLoader, registerUnknownImageLoader, unregisterAllImageLoaders, createAndCacheDerivedLabelmapImages, createAndCacheDerivedLabelmapImage */
673
+ /* unused harmony import specifier */ var cache;
674
+ /* unused harmony import specifier */ var imageLoadPoolManager;
673
675
  /* harmony import */ var _cache_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49038);
674
676
  /* harmony import */ var _enums_Events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32643);
675
677
  /* harmony import */ var _eventTarget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10364);
@@ -1050,10 +1052,10 @@ function createAndCacheDerivedLabelmapImage(referencedImageId, options = {}) {
1050
1052
  }
1051
1053
 
1052
1054
 
1053
- /***/ }),
1055
+ /***/ },
1054
1056
 
1055
- /***/ 56750:
1056
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1057
+ /***/ 56750
1058
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1057
1059
 
1058
1060
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1059
1061
  /* harmony export */ A: () => (/* binding */ FrameRange)
@@ -1096,10 +1098,10 @@ class FrameRange {
1096
1098
  }
1097
1099
 
1098
1100
 
1099
- /***/ }),
1101
+ /***/ },
1100
1102
 
1101
- /***/ 13876:
1102
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1103
+ /***/ 13876
1104
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1103
1105
 
1104
1106
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1105
1107
  /* harmony export */ A: () => (/* binding */ PointsManager)
@@ -1251,10 +1253,10 @@ class PointsManager {
1251
1253
  }
1252
1254
 
1253
1255
 
1254
- /***/ }),
1256
+ /***/ },
1255
1257
 
1256
- /***/ 22191:
1257
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1258
+ /***/ 22191
1259
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1258
1260
 
1259
1261
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1260
1262
  /* harmony export */ A: () => (/* binding */ ProgressiveIterator)
@@ -1403,10 +1405,10 @@ class ProgressiveIterator {
1403
1405
  }
1404
1406
 
1405
1407
 
1406
- /***/ }),
1408
+ /***/ },
1407
1409
 
1408
- /***/ 67645:
1409
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1410
+ /***/ 67645
1411
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1410
1412
 
1411
1413
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1412
1414
  /* harmony export */ A: () => (/* binding */ RLEVoxelMap)
@@ -1788,10 +1790,10 @@ class RLEVoxelMap {
1788
1790
  }
1789
1791
 
1790
1792
 
1791
- /***/ }),
1793
+ /***/ },
1792
1794
 
1793
- /***/ 98039:
1794
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1795
+ /***/ 98039
1796
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1795
1797
 
1796
1798
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1797
1799
  /* harmony export */ N: () => (/* binding */ actorIsA),
@@ -1809,10 +1811,10 @@ function actorIsA(actorEntry, actorType) {
1809
1811
  }
1810
1812
 
1811
1813
 
1812
- /***/ }),
1814
+ /***/ },
1813
1815
 
1814
- /***/ 96833:
1815
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1816
+ /***/ 96833
1817
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1816
1818
 
1817
1819
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1818
1820
  /* harmony export */ A: () => (/* binding */ applyPreset)
@@ -1910,10 +1912,10 @@ function applyPointsToPiecewiseFunction(points, range, pwf) {
1910
1912
  }
1911
1913
 
1912
1914
 
1913
- /***/ }),
1915
+ /***/ },
1914
1916
 
1915
- /***/ 91979:
1916
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1917
+ /***/ 91979
1918
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1917
1919
 
1918
1920
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1919
1921
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -1950,16 +1952,17 @@ function getRenderingEngineAndViewportsContainingVolume(volumeId) {
1950
1952
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (autoLoad);
1951
1953
 
1952
1954
 
1953
- /***/ }),
1955
+ /***/ },
1954
1956
 
1955
- /***/ 89131:
1956
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1957
+ /***/ 89131
1958
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1957
1959
 
1958
1960
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1959
1961
  /* harmony export */ KP: () => (/* binding */ buildMetadata),
1960
1962
  /* harmony export */ SJ: () => (/* binding */ getImagePlaneModule)
1961
1963
  /* harmony export */ });
1962
1964
  /* unused harmony exports getValidVOILUTFunction, calibrateImagePlaneModule */
1965
+ /* unused harmony import specifier */ var metaData;
1963
1966
  /* harmony import */ var _metaData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74876);
1964
1967
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71851);
1965
1968
 
@@ -2046,10 +2049,10 @@ function buildMetadata(image) {
2046
2049
  }
2047
2050
 
2048
2051
 
2049
- /***/ }),
2052
+ /***/ },
2050
2053
 
2051
- /***/ 42384:
2052
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2054
+ /***/ 42384
2055
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2053
2056
 
2054
2057
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2055
2058
  /* harmony export */ A: () => (/* binding */ calculateSpacingBetweenImageIds)
@@ -2170,10 +2173,10 @@ function calculateSpacingBetweenImageIds(imageIds) {
2170
2173
  }
2171
2174
 
2172
2175
 
2173
- /***/ }),
2176
+ /***/ },
2174
2177
 
2175
- /***/ 84061:
2176
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2178
+ /***/ 84061
2179
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2177
2180
 
2178
2181
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2179
2182
  /* harmony export */ A: () => (/* binding */ clamp),
@@ -2185,10 +2188,10 @@ function clamp(value, min, max) {
2185
2188
 
2186
2189
 
2187
2190
 
2188
- /***/ }),
2191
+ /***/ },
2189
2192
 
2190
- /***/ 13859:
2191
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2193
+ /***/ 13859
2194
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2192
2195
 
2193
2196
  __webpack_require__.r(__webpack_exports__);
2194
2197
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -2347,10 +2350,10 @@ function getMaxOpacity(volumeActor) {
2347
2350
 
2348
2351
 
2349
2352
 
2350
- /***/ }),
2353
+ /***/ },
2351
2354
 
2352
- /***/ 74657:
2353
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2355
+ /***/ 74657
2356
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2354
2357
 
2355
2358
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2356
2359
  /* harmony export */ A: () => (/* binding */ createLinearRGBTransferFunction)
@@ -2371,10 +2374,10 @@ function createLinearRGBTransferFunction(voiRange) {
2371
2374
  }
2372
2375
 
2373
2376
 
2374
- /***/ }),
2377
+ /***/ },
2375
2378
 
2376
- /***/ 40256:
2377
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2379
+ /***/ 40256
2380
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2378
2381
 
2379
2382
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2380
2383
  /* harmony export */ A: () => (/* binding */ createSigmoidRGBTransferFunction)
@@ -2403,10 +2406,10 @@ function createSigmoidRGBTransferFunction(voiRange, approximationNodes = 1024) {
2403
2406
  }
2404
2407
 
2405
2408
 
2406
- /***/ }),
2409
+ /***/ },
2407
2410
 
2408
- /***/ 99949:
2409
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2411
+ /***/ 99949
2412
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2410
2413
 
2411
2414
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2412
2415
  /* harmony export */ G: () => (/* binding */ deepClone)
@@ -2436,10 +2439,10 @@ function deepClone(obj) {
2436
2439
  }
2437
2440
 
2438
2441
 
2439
- /***/ }),
2442
+ /***/ },
2440
2443
 
2441
- /***/ 20286:
2442
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2444
+ /***/ 20286
2445
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2443
2446
 
2444
2447
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2445
2448
  /* harmony export */ A: () => (/* binding */ fnv1aHash)
@@ -2455,10 +2458,10 @@ function fnv1aHash(str) {
2455
2458
  }
2456
2459
 
2457
2460
 
2458
- /***/ }),
2461
+ /***/ },
2459
2462
 
2460
- /***/ 88619:
2461
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2463
+ /***/ 88619
2464
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2462
2465
 
2463
2466
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2464
2467
  /* harmony export */ A: () => (/* binding */ getClosestImageId)
@@ -2523,10 +2526,10 @@ function getClosestImageId(imageVolume, worldPos, viewPlaneNormal, options) {
2523
2526
  }
2524
2527
 
2525
2528
 
2526
- /***/ }),
2529
+ /***/ },
2527
2530
 
2528
- /***/ 53932:
2529
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2531
+ /***/ 53932
2532
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2530
2533
 
2531
2534
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2532
2535
  /* harmony export */ T: () => (/* binding */ getImageDataMetadata)
@@ -2592,10 +2595,10 @@ function _getNumCompsFromPhotometricInterpretation(photometricInterpretation) {
2592
2595
  }
2593
2596
 
2594
2597
 
2595
- /***/ }),
2598
+ /***/ },
2596
2599
 
2597
- /***/ 47476:
2598
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2600
+ /***/ 47476
2601
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2599
2602
 
2600
2603
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2601
2604
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -2638,10 +2641,10 @@ function getImageSliceDataForVolumeViewport(viewport) {
2638
2641
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getImageSliceDataForVolumeViewport);
2639
2642
 
2640
2643
 
2641
- /***/ }),
2644
+ /***/ },
2642
2645
 
2643
- /***/ 52623:
2644
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2646
+ /***/ 52623
2647
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2645
2648
 
2646
2649
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2647
2650
  /* harmony export */ H: () => (/* binding */ getCubeSizeInView)
@@ -2677,10 +2680,10 @@ function getCubeSizeInView(imageData, viewPlaneNormal, viewUp) {
2677
2680
  }
2678
2681
 
2679
2682
 
2680
- /***/ }),
2683
+ /***/ },
2681
2684
 
2682
- /***/ 32173:
2683
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2685
+ /***/ 32173
2686
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2684
2687
 
2685
2688
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2686
2689
  /* harmony export */ A: () => (/* binding */ getScalingParameters)
@@ -2714,10 +2717,10 @@ function getScalingParameters(imageId) {
2714
2717
  }
2715
2718
 
2716
2719
 
2717
- /***/ }),
2720
+ /***/ },
2718
2721
 
2719
- /***/ 20537:
2720
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2722
+ /***/ 20537
2723
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2721
2724
 
2722
2725
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2723
2726
  /* harmony export */ A: () => (/* binding */ getSliceRange)
@@ -2783,10 +2786,10 @@ function getSliceRange(volumeActor, viewPlaneNormal, focalPoint) {
2783
2786
  }
2784
2787
 
2785
2788
 
2786
- /***/ }),
2789
+ /***/ },
2787
2790
 
2788
- /***/ 85008:
2789
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2791
+ /***/ 85008
2792
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2790
2793
 
2791
2794
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2792
2795
  /* harmony export */ A: () => (/* binding */ getSpacingInNormalDirection)
@@ -2810,10 +2813,10 @@ function getSpacingInNormalDirection(imageVolume, viewPlaneNormal) {
2810
2813
  }
2811
2814
 
2812
2815
 
2813
- /***/ }),
2816
+ /***/ },
2814
2817
 
2815
- /***/ 65292:
2816
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2818
+ /***/ 65292
2819
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2817
2820
 
2818
2821
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2819
2822
  /* harmony export */ A: () => (/* binding */ getTargetVolumeAndSpacingInNormalDir)
@@ -2893,10 +2896,10 @@ function getSpacingInNormal(imageVolume, viewPlaneNormal, viewport, useSlabThick
2893
2896
  }
2894
2897
 
2895
2898
 
2896
- /***/ }),
2899
+ /***/ },
2897
2900
 
2898
- /***/ 24724:
2899
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2901
+ /***/ 24724
2902
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2900
2903
 
2901
2904
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2902
2905
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -2916,10 +2919,10 @@ function getViewportsWithVolumeId(volumeId) {
2916
2919
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getViewportsWithVolumeId);
2917
2920
 
2918
2921
 
2919
- /***/ }),
2922
+ /***/ },
2920
2923
 
2921
- /***/ 70210:
2922
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2924
+ /***/ 70210
2925
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2923
2926
 
2924
2927
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2925
2928
  /* harmony export */ A: () => (/* binding */ getVoiFromSigmoidRGBTransferFunction)
@@ -2944,10 +2947,10 @@ function getVoiFromSigmoidRGBTransferFunction(cfun) {
2944
2947
  }
2945
2948
 
2946
2949
 
2947
- /***/ }),
2950
+ /***/ },
2948
2951
 
2949
- /***/ 15105:
2950
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2952
+ /***/ 15105
2953
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2951
2954
 
2952
2955
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2953
2956
  /* harmony export */ A: () => (/* binding */ getVolumeActorCorners)
@@ -2968,10 +2971,10 @@ function getVolumeActorCorners(volumeActor) {
2968
2971
  }
2969
2972
 
2970
2973
 
2971
- /***/ }),
2974
+ /***/ },
2972
2975
 
2973
- /***/ 12437:
2974
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2976
+ /***/ 12437
2977
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2975
2978
 
2976
2979
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2977
2980
  /* harmony export */ A: () => (/* binding */ getVolumeId)
@@ -2986,10 +2989,10 @@ const getVolumeId = (targetId) => {
2986
2989
  };
2987
2990
 
2988
2991
 
2989
- /***/ }),
2992
+ /***/ },
2990
2993
 
2991
- /***/ 4031:
2992
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2994
+ /***/ 4031
2995
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2993
2996
 
2994
2997
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2995
2998
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -3021,10 +3024,10 @@ function getVolumeSliceRangeInfo(viewport, volumeId, useSlabThickness = false) {
3021
3024
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getVolumeSliceRangeInfo);
3022
3025
 
3023
3026
 
3024
- /***/ }),
3027
+ /***/ },
3025
3028
 
3026
- /***/ 61375:
3027
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3029
+ /***/ 61375
3030
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3028
3031
 
3029
3032
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3030
3033
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -3051,10 +3054,10 @@ function getVolumeViewportScrollInfo(viewport, volumeId, useSlabThickness = fals
3051
3054
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getVolumeViewportScrollInfo);
3052
3055
 
3053
3056
 
3054
- /***/ }),
3057
+ /***/ },
3055
3058
 
3056
- /***/ 30169:
3057
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3059
+ /***/ 30169
3060
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3058
3061
 
3059
3062
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3060
3063
  /* harmony export */ a: () => (/* binding */ hasFloatScalingParameters)
@@ -3065,10 +3068,10 @@ const hasFloatScalingParameters = (scalingParameters) => {
3065
3068
  };
3066
3069
 
3067
3070
 
3068
- /***/ }),
3071
+ /***/ },
3069
3072
 
3070
- /***/ 38883:
3071
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3073
+ /***/ 38883
3074
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3072
3075
 
3073
3076
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3074
3077
  /* harmony export */ A: () => (/* binding */ hasNaNValues)
@@ -3081,10 +3084,10 @@ function hasNaNValues(input) {
3081
3084
  }
3082
3085
 
3083
3086
 
3084
- /***/ }),
3087
+ /***/ },
3085
3088
 
3086
- /***/ 39537:
3087
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3089
+ /***/ 39537
3090
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3088
3091
 
3089
3092
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3090
3093
  /* harmony export */ A: () => (/* binding */ imageIdToURI)
@@ -3095,10 +3098,10 @@ function imageIdToURI(imageId) {
3095
3098
  }
3096
3099
 
3097
3100
 
3098
- /***/ }),
3101
+ /***/ },
3099
3102
 
3100
- /***/ 17791:
3101
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3103
+ /***/ 17791
3104
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3102
3105
 
3103
3106
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3104
3107
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -3136,10 +3139,10 @@ const imageRetrieveMetadataProvider = {
3136
3139
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (imageRetrieveMetadataProvider);
3137
3140
 
3138
3141
 
3139
- /***/ }),
3142
+ /***/ },
3140
3143
 
3141
- /***/ 85343:
3142
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3144
+ /***/ 85343
3145
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3143
3146
 
3144
3147
  // ESM COMPAT FLAG
3145
3148
  __webpack_require__.r(__webpack_exports__);
@@ -5515,10 +5518,10 @@ const getViewportModality = (viewport, volumeId) => _getViewportModality(viewpor
5515
5518
 
5516
5519
 
5517
5520
 
5518
- /***/ }),
5521
+ /***/ },
5519
5522
 
5520
- /***/ 50134:
5521
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5523
+ /***/ 50134
5524
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5522
5525
 
5523
5526
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5524
5527
  /* harmony export */ A: () => (/* binding */ invertRgbTransferFunction)
@@ -5539,10 +5542,10 @@ function invertRgbTransferFunction(rgbTransferFunction) {
5539
5542
  }
5540
5543
 
5541
5544
 
5542
- /***/ }),
5545
+ /***/ },
5543
5546
 
5544
- /***/ 74638:
5545
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5547
+ /***/ 74638
5548
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5546
5549
 
5547
5550
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5548
5551
  /* harmony export */ Ay: () => (__WEBPACK_DEFAULT_EXPORT__),
@@ -5601,10 +5604,10 @@ function isNumber(n) {
5601
5604
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isEqual);
5602
5605
 
5603
5606
 
5604
- /***/ }),
5607
+ /***/ },
5605
5608
 
5606
- /***/ 7608:
5607
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5609
+ /***/ 7608
5610
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5608
5611
 
5609
5612
  __webpack_require__.r(__webpack_exports__);
5610
5613
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -5646,10 +5649,10 @@ const dicomConsistencyLog = getLogger('consistency', 'dicom');
5646
5649
  const imageConsistencyLog = getLogger('consistency', 'image');
5647
5650
 
5648
5651
 
5649
- /***/ }),
5652
+ /***/ },
5650
5653
 
5651
- /***/ 1865:
5652
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5654
+ /***/ 1865
5655
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5653
5656
 
5654
5657
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5655
5658
  /* harmony export */ A: () => (/* binding */ makeVolumeMetadata)
@@ -5708,10 +5711,10 @@ function makeVolumeMetadata(imageIds) {
5708
5711
  }
5709
5712
 
5710
5713
 
5711
- /***/ }),
5714
+ /***/ },
5712
5715
 
5713
- /***/ 52268:
5714
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5716
+ /***/ 52268
5717
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5715
5718
 
5716
5719
  __webpack_require__.r(__webpack_exports__);
5717
5720
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -5774,10 +5777,10 @@ function isPointOnPlane(point, plane, tolerance = _constants__WEBPACK_IMPORTED_M
5774
5777
 
5775
5778
 
5776
5779
 
5777
- /***/ }),
5780
+ /***/ },
5778
5781
 
5779
- /***/ 56577:
5780
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5782
+ /***/ 56577
5783
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5781
5784
 
5782
5785
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5783
5786
  /* harmony export */ X6: () => (/* binding */ iterateOverPointsInShapeVoxelManager),
@@ -5898,10 +5901,10 @@ function iterateOverPointsInShapeVoxelManager({ voxelManager, bounds, imageData,
5898
5901
  }
5899
5902
 
5900
5903
 
5901
- /***/ }),
5904
+ /***/ },
5902
5905
 
5903
- /***/ 35568:
5904
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5906
+ /***/ 35568
5907
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5905
5908
 
5906
5909
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5907
5910
  /* harmony export */ P: () => (/* binding */ rotateToViewCoordinates)
@@ -5942,10 +5945,10 @@ function rotateToViewCoordinates(imageData, viewPlaneNormal, viewUp) {
5942
5945
  }
5943
5946
 
5944
5947
 
5945
- /***/ }),
5948
+ /***/ },
5946
5949
 
5947
- /***/ 80500:
5948
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5950
+ /***/ 80500
5951
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5949
5952
 
5950
5953
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5951
5954
  /* harmony export */ A: () => (/* binding */ snapFocalPointToSlice)
@@ -5990,10 +5993,10 @@ function snapFocalPointToSlice(focalPoint, position, sliceRange, viewPlaneNormal
5990
5993
  }
5991
5994
 
5992
5995
 
5993
- /***/ }),
5996
+ /***/ },
5994
5997
 
5995
- /***/ 90537:
5996
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5998
+ /***/ 90537
5999
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5997
6000
 
5998
6001
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5999
6002
  /* harmony export */ A: () => (/* binding */ sortImageIdsAndGetSpacing)
@@ -6054,10 +6057,10 @@ function sortImageIdsAndGetSpacing(imageIds, scanAxisNormal) {
6054
6057
  }
6055
6058
 
6056
6059
 
6057
- /***/ }),
6060
+ /***/ },
6058
6061
 
6059
- /***/ 8126:
6060
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6062
+ /***/ 8126
6063
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6061
6064
 
6062
6065
  __webpack_require__.r(__webpack_exports__);
6063
6066
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -6086,10 +6089,10 @@ function setTransferFunctionNodes(transferFunction, nodes) {
6086
6089
 
6087
6090
 
6088
6091
 
6089
- /***/ }),
6092
+ /***/ },
6090
6093
 
6091
- /***/ 51919:
6092
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6094
+ /***/ 51919
6095
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6093
6096
 
6094
6097
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6095
6098
  /* harmony export */ e: () => (/* binding */ transformCanvasToIJK)
@@ -6103,10 +6106,10 @@ function transformCanvasToIJK(viewport, canvasPoint) {
6103
6106
  }
6104
6107
 
6105
6108
 
6106
- /***/ }),
6109
+ /***/ },
6107
6110
 
6108
- /***/ 94741:
6109
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6111
+ /***/ 94741
6112
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6110
6113
 
6111
6114
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6112
6115
  /* harmony export */ A: () => (/* binding */ transformIndexToWorld)
@@ -6116,10 +6119,10 @@ function transformIndexToWorld(imageData, voxelPos) {
6116
6119
  }
6117
6120
 
6118
6121
 
6119
- /***/ }),
6122
+ /***/ },
6120
6123
 
6121
- /***/ 38669:
6122
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6124
+ /***/ 38669
6125
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6123
6126
 
6124
6127
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6125
6128
  /* harmony export */ A: () => (/* binding */ transformWorldToIndex),
@@ -6135,10 +6138,10 @@ function transformWorldToIndexContinuous(imageData, worldPos) {
6135
6138
  }
6136
6139
 
6137
6140
 
6138
- /***/ }),
6141
+ /***/ },
6139
6142
 
6140
- /***/ 41365:
6141
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6143
+ /***/ 41365
6144
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6142
6145
 
6143
6146
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6144
6147
  /* harmony export */ O: () => (/* binding */ updatePlaneRestriction)
@@ -6188,10 +6191,10 @@ function updatePlaneRestriction(points, reference) {
6188
6191
  }
6189
6192
 
6190
6193
 
6191
- /***/ }),
6194
+ /***/ },
6192
6195
 
6193
- /***/ 45278:
6194
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6196
+ /***/ 45278
6197
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6195
6198
 
6196
6199
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6197
6200
  /* harmony export */ J: () => (/* binding */ updateVTKImageDataWithCornerstoneImage)
@@ -6224,10 +6227,10 @@ function updateVTKImageDataWithCornerstoneImage(sourceImageData, image) {
6224
6227
 
6225
6228
 
6226
6229
 
6227
- /***/ }),
6230
+ /***/ },
6228
6231
 
6229
- /***/ 68136:
6230
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6232
+ /***/ 68136
6233
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6231
6234
 
6232
6235
  __webpack_require__.r(__webpack_exports__);
6233
6236
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -6264,10 +6267,10 @@ function toLowHighRange(windowWidth, windowCenter, voiLUTFunction = _enums_VOILU
6264
6267
 
6265
6268
 
6266
6269
 
6267
- /***/ }),
6270
+ /***/ },
6268
6271
 
6269
- /***/ 93952:
6270
- /***/ (() => {
6272
+ /***/ 93952
6273
+ () {
6271
6274
 
6272
6275
  const CORNERSTONE_COLOR_LUT = (/* unused pure expression or super */ null && ([
6273
6276
  [0, 0, 0, 0],
@@ -6529,11 +6532,14 @@ const CORNERSTONE_COLOR_LUT = (/* unused pure expression or super */ null && ([
6529
6532
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (CORNERSTONE_COLOR_LUT)));
6530
6533
 
6531
6534
 
6532
- /***/ }),
6535
+ /***/ },
6533
6536
 
6534
- /***/ 95074:
6535
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
6537
+ /***/ 95074
6538
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
6536
6539
 
6540
+ /* unused harmony import specifier */ var _getHash;
6541
+ /* unused harmony import specifier */ var setAttributesIfNecessary;
6542
+ /* unused harmony import specifier */ var setNewAttributesIfValid;
6537
6543
  /* harmony import */ var _getHash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97181);
6538
6544
  /* harmony import */ var _setAttributesIfNecessary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85899);
6539
6545
  /* harmony import */ var _setNewAttributesIfValid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56442);
@@ -6585,10 +6591,10 @@ function drawEllipseByCoordinates(svgDrawingHelper, annotationUID, ellipseUID, c
6585
6591
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (drawEllipseByCoordinates)));
6586
6592
 
6587
6593
 
6588
- /***/ }),
6594
+ /***/ },
6589
6595
 
6590
- /***/ 74347:
6591
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6596
+ /***/ 74347
6597
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6592
6598
 
6593
6599
 
6594
6600
  // EXPORTS
@@ -6596,7 +6602,7 @@ __webpack_require__.d(__webpack_exports__, {
6596
6602
  draw: () => (/* reexport */ draw/* default */.A),
6597
6603
  drawCircle: () => (/* reexport */ drawCircle/* default */.A),
6598
6604
  drawHandles: () => (/* reexport */ drawHandles/* default */.A),
6599
- drawLine: () => (/* reexport */ drawingSvg_drawLine/* default */.A),
6605
+ drawLine: () => (/* reexport */ drawLine/* default */.A),
6600
6606
  drawLinkedTextBox: () => (/* reexport */ drawLinkedTextBox/* default */.A),
6601
6607
  drawPath: () => (/* reexport */ drawPath/* default */.A),
6602
6608
  drawPolyline: () => (/* reexport */ drawPolyline/* default */.A),
@@ -6619,8 +6625,9 @@ var drawHandles = __webpack_require__(56745);
6619
6625
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawHandle.js
6620
6626
  var drawHandle = __webpack_require__(94042);
6621
6627
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLine.js
6622
- var drawingSvg_drawLine = __webpack_require__(92118);
6628
+ var drawLine = __webpack_require__(92118);
6623
6629
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawHeight.js
6630
+ /* unused harmony import specifier */ var drawHeight_drawLine;
6624
6631
 
6625
6632
  function drawHeight(svgDrawingHelper, annotationUID, heightUID, start, end, options = {}) {
6626
6633
  if (isNaN(start[0]) || isNaN(start[1]) || isNaN(end[0]) || isNaN(end[1])) {
@@ -6647,19 +6654,19 @@ function drawHeight(svgDrawingHelper, annotationUID, heightUID, start, end, opti
6647
6654
  start: endsecondLine,
6648
6655
  end: end,
6649
6656
  };
6650
- drawLine(svgDrawingHelper, annotationUID, '1', firstLine.start, firstLine.end, {
6657
+ drawHeight_drawLine(svgDrawingHelper, annotationUID, '1', firstLine.start, firstLine.end, {
6651
6658
  color,
6652
6659
  width,
6653
6660
  lineWidth,
6654
6661
  lineDash,
6655
6662
  });
6656
- drawLine(svgDrawingHelper, annotationUID, '2', secondLine.start, secondLine.end, {
6663
+ drawHeight_drawLine(svgDrawingHelper, annotationUID, '2', secondLine.start, secondLine.end, {
6657
6664
  color,
6658
6665
  width,
6659
6666
  lineWidth,
6660
6667
  lineDash,
6661
6668
  });
6662
- drawLine(svgDrawingHelper, annotationUID, '3', threeLine.start, threeLine.end, {
6669
+ drawHeight_drawLine(svgDrawingHelper, annotationUID, '3', threeLine.start, threeLine.end, {
6663
6670
  color,
6664
6671
  width,
6665
6672
  lineWidth,
@@ -6672,12 +6679,15 @@ var drawPolyline = __webpack_require__(98812);
6672
6679
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawPath.js
6673
6680
  var drawPath = __webpack_require__(17311);
6674
6681
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/_getHash.js
6675
- var drawingSvg_getHash = __webpack_require__(97181);
6682
+ var _getHash = __webpack_require__(97181);
6676
6683
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/setAttributesIfNecessary.js
6677
- var drawingSvg_setAttributesIfNecessary = __webpack_require__(85899);
6684
+ var setAttributesIfNecessary = __webpack_require__(85899);
6678
6685
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/setNewAttributesIfValid.js
6679
- var drawingSvg_setNewAttributesIfValid = __webpack_require__(56442);
6686
+ var setNewAttributesIfValid = __webpack_require__(56442);
6680
6687
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawFan.js
6688
+ /* unused harmony import specifier */ var drawFan_getHash;
6689
+ /* unused harmony import specifier */ var drawFan_setAttributesIfNecessary;
6690
+ /* unused harmony import specifier */ var drawFan_setNewAttributesIfValid;
6681
6691
 
6682
6692
 
6683
6693
 
@@ -6693,7 +6703,7 @@ function drawFan(svgDrawingHelper, annotationUID, fanUID, center, innerRadius, o
6693
6703
  }, options);
6694
6704
  const strokeWidth = lineWidth || width;
6695
6705
  const svgns = 'http://www.w3.org/2000/svg';
6696
- const svgNodeHash = _getHash(annotationUID, 'fan', fanUID);
6706
+ const svgNodeHash = drawFan_getHash(annotationUID, 'fan', fanUID);
6697
6707
  const existingFanElement = svgDrawingHelper.getSvgNode(svgNodeHash);
6698
6708
  const startRad = (startAngle * Math.PI) / 180;
6699
6709
  const endRad = (endAngle * Math.PI) / 180;
@@ -6724,7 +6734,7 @@ function drawFan(svgDrawingHelper, annotationUID, fanUID, center, innerRadius, o
6724
6734
  'mix-blend-mode': 'normal',
6725
6735
  };
6726
6736
  if (existingFanElement) {
6727
- setAttributesIfNecessary(attributes, existingFanElement);
6737
+ drawFan_setAttributesIfNecessary(attributes, existingFanElement);
6728
6738
  svgDrawingHelper.setNodeTouched(svgNodeHash);
6729
6739
  }
6730
6740
  else {
@@ -6735,7 +6745,7 @@ function drawFan(svgDrawingHelper, annotationUID, fanUID, center, innerRadius, o
6735
6745
  if (zIndex !== undefined) {
6736
6746
  newFanElement.style.zIndex = zIndex.toString();
6737
6747
  }
6738
- setNewAttributesIfValid(attributes, newFanElement);
6748
+ drawFan_setNewAttributesIfValid(attributes, newFanElement);
6739
6749
  svgDrawingHelper.appendNode(newFanElement, svgNodeHash);
6740
6750
  }
6741
6751
  }
@@ -6750,6 +6760,7 @@ var drawRectByCoordinates = __webpack_require__(75076);
6750
6760
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawTextBox.js
6751
6761
  var drawTextBox = __webpack_require__(26290);
6752
6762
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawArrow.js
6763
+ /* unused harmony import specifier */ var drawArrow_drawLine;
6753
6764
 
6754
6765
  const svgns = 'http://www.w3.org/2000/svg';
6755
6766
  function drawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, options = {}) {
@@ -6790,7 +6801,7 @@ function drawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, option
6790
6801
  }
6791
6802
  }
6792
6803
  options.markerEndId = markerFullId;
6793
- drawLine(svgDrawingHelper, annotationUID, arrowUID, start, end, options);
6804
+ drawArrow_drawLine(svgDrawingHelper, annotationUID, arrowUID, start, end, options);
6794
6805
  }
6795
6806
  function legacyDrawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, options = {}) {
6796
6807
  const { color = 'rgb(0, 255, 0)', width = 2, lineWidth, lineDash } = options;
@@ -6810,19 +6821,19 @@ function legacyDrawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end,
6810
6821
  ],
6811
6822
  end: end,
6812
6823
  };
6813
- drawLine(svgDrawingHelper, annotationUID, arrowUID, start, end, {
6824
+ drawArrow_drawLine(svgDrawingHelper, annotationUID, arrowUID, start, end, {
6814
6825
  color,
6815
6826
  width,
6816
6827
  lineWidth,
6817
6828
  lineDash,
6818
6829
  });
6819
- drawLine(svgDrawingHelper, annotationUID, '2', firstLine.start, firstLine.end, {
6830
+ drawArrow_drawLine(svgDrawingHelper, annotationUID, '2', firstLine.start, firstLine.end, {
6820
6831
  color,
6821
6832
  width,
6822
6833
  lineWidth,
6823
6834
  lineDash,
6824
6835
  });
6825
- drawLine(svgDrawingHelper, annotationUID, '3', secondLine.start, secondLine.end, {
6836
+ drawArrow_drawLine(svgDrawingHelper, annotationUID, '3', secondLine.start, secondLine.end, {
6826
6837
  color,
6827
6838
  width,
6828
6839
  lineWidth,
@@ -6831,6 +6842,9 @@ function legacyDrawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end,
6831
6842
  }
6832
6843
 
6833
6844
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawRedactionRect.js
6845
+ /* unused harmony import specifier */ var drawRedactionRect_getHash;
6846
+ /* unused harmony import specifier */ var _setAttributesIfNecessary;
6847
+ /* unused harmony import specifier */ var _setNewAttributesIfValid;
6834
6848
 
6835
6849
 
6836
6850
 
@@ -6843,7 +6857,7 @@ function drawRedactionRect(svgDrawingHelper, annotationUID, rectangleUID, start,
6843
6857
  }, options);
6844
6858
  const strokeWidth = lineWidth || _width;
6845
6859
  const svgns = 'http://www.w3.org/2000/svg';
6846
- const svgNodeHash = _getHash(annotationUID, 'rect', rectangleUID);
6860
+ const svgNodeHash = drawRedactionRect_getHash(annotationUID, 'rect', rectangleUID);
6847
6861
  const existingRect = svgDrawingHelper.getSvgNode(svgNodeHash);
6848
6862
  const tlhc = [Math.min(start[0], end[0]), Math.min(start[1], end[1])];
6849
6863
  const width = Math.abs(start[0] - end[0]);
@@ -6892,10 +6906,10 @@ function drawRedactionRect(svgDrawingHelper, annotationUID, rectangleUID, start,
6892
6906
 
6893
6907
 
6894
6908
 
6895
- /***/ }),
6909
+ /***/ },
6896
6910
 
6897
- /***/ 75183:
6898
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6911
+ /***/ 75183
6912
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6899
6913
 
6900
6914
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6901
6915
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -6915,10 +6929,10 @@ var ChangeTypes;
6915
6929
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChangeTypes);
6916
6930
 
6917
6931
 
6918
- /***/ }),
6932
+ /***/ },
6919
6933
 
6920
- /***/ 10401:
6921
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6934
+ /***/ 10401
6935
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6922
6936
 
6923
6937
  /* unused harmony export Swipe */
6924
6938
  var Swipe;
@@ -6931,10 +6945,10 @@ var Swipe;
6931
6945
 
6932
6946
 
6933
6947
 
6934
- /***/ }),
6948
+ /***/ },
6935
6949
 
6936
- /***/ 6802:
6937
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6950
+ /***/ 6802
6951
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6938
6952
 
6939
6953
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6940
6954
  /* harmony export */ O8: () => (/* reexport safe */ _annotation_annotationState__WEBPACK_IMPORTED_MODULE_3__.removeAnnotation),
@@ -6954,15 +6968,17 @@ var Swipe;
6954
6968
 
6955
6969
 
6956
6970
 
6957
- /***/ }),
6971
+ /***/ },
6958
6972
 
6959
- /***/ 59475:
6960
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6973
+ /***/ 59475
6974
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6961
6975
 
6962
6976
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6963
6977
  /* harmony export */ _6: () => (/* binding */ defaultSegmentationStateManager)
6964
6978
  /* harmony export */ });
6965
6979
  /* unused harmony exports default, internalConvertStackToVolumeLabelmap, internalComputeVolumeLabelmapFromStack */
6980
+ /* unused harmony import specifier */ var csUtils;
6981
+ /* unused harmony import specifier */ var volumeLoader;
6966
6982
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
6967
6983
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
6968
6984
  /* harmony import */ var _kitware_vtk_js_Rendering_Core_ColorTransferFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88345);
@@ -7484,10 +7500,10 @@ const defaultSegmentationStateManager = new SegmentationStateManager('DEFAULT');
7484
7500
 
7485
7501
 
7486
7502
 
7487
- /***/ }),
7503
+ /***/ },
7488
7504
 
7489
- /***/ 26228:
7490
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7505
+ /***/ 26228
7506
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7491
7507
 
7492
7508
 
7493
7509
  // EXPORTS
@@ -7502,6 +7518,7 @@ var getActiveSegmentation = __webpack_require__(67165);
7502
7518
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStateManager.js
7503
7519
  var SegmentationStateManager = __webpack_require__(59475);
7504
7520
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/setActiveSegmentation.js
7521
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7505
7522
 
7506
7523
  function setActiveSegmentation(viewportId, segmentationId) {
7507
7524
  const segmentationStateManager = defaultSegmentationStateManager;
@@ -7509,6 +7526,7 @@ function setActiveSegmentation(viewportId, segmentationId) {
7509
7526
  }
7510
7527
 
7511
7528
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/activeSegmentation.js
7529
+ /* unused harmony import specifier */ var _setActiveSegmentation;
7512
7530
 
7513
7531
 
7514
7532
  function activeSegmentation_getActiveSegmentation(viewportId) {
@@ -7520,12 +7538,16 @@ function activeSegmentation_setActiveSegmentation(viewportId, segmentationId) {
7520
7538
 
7521
7539
 
7522
7540
 
7523
- /***/ }),
7541
+ /***/ },
7524
7542
 
7525
- /***/ 4714:
7526
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7543
+ /***/ 4714
7544
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7527
7545
 
7528
7546
  /* unused harmony export addColorLUT */
7547
+ /* unused harmony import specifier */ var utilities;
7548
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7549
+ /* unused harmony import specifier */ var getNextColorLUTIndex;
7550
+ /* unused harmony import specifier */ var CORNERSTONE_COLOR_LUT;
7529
7551
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
7530
7552
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59475);
7531
7553
  /* harmony import */ var _getNextColorLUTIndex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70906);
@@ -7557,10 +7579,10 @@ function addColorLUT(colorLUT, index) {
7557
7579
  }
7558
7580
 
7559
7581
 
7560
- /***/ }),
7582
+ /***/ },
7561
7583
 
7562
- /***/ 30935:
7563
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
7584
+ /***/ 30935
7585
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7564
7586
 
7565
7587
 
7566
7588
  // UNUSED EXPORTS: addSegmentations, default
@@ -7574,9 +7596,11 @@ var enums = __webpack_require__(29857);
7574
7596
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
7575
7597
  var esm = __webpack_require__(15327);
7576
7598
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js
7599
+ /* unused harmony import specifier */ var SegmentationRepresentations;
7600
+ /* unused harmony import specifier */ var cache;
7577
7601
 
7578
7602
 
7579
- function normalizeSegmentationInput_normalizeSegmentationInput(segmentationInput) {
7603
+ function normalizeSegmentationInput(segmentationInput) {
7580
7604
  const { segmentationId, representation, config } = segmentationInput;
7581
7605
  const { type, data: inputData } = representation;
7582
7606
  const data = inputData ? { ...inputData } : {};
@@ -7660,16 +7684,19 @@ function createDefaultSegment() {
7660
7684
  active: true,
7661
7685
  };
7662
7686
  }
7663
- /* harmony default export */ const helpers_normalizeSegmentationInput = ((/* unused pure expression or super */ null && (normalizeSegmentationInput_normalizeSegmentationInput)));
7687
+ /* harmony default export */ const helpers_normalizeSegmentationInput = ((/* unused pure expression or super */ null && (normalizeSegmentationInput)));
7664
7688
 
7665
7689
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/addSegmentations.js
7690
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7691
+ /* unused harmony import specifier */ var triggerSegmentationModified;
7692
+ /* unused harmony import specifier */ var addSegmentations_normalizeSegmentationInput;
7666
7693
 
7667
7694
 
7668
7695
 
7669
7696
  function addSegmentations(segmentationInputArray, suppressEvents) {
7670
7697
  const segmentationStateManager = defaultSegmentationStateManager;
7671
7698
  segmentationInputArray.forEach((segmentationInput) => {
7672
- const segmentation = normalizeSegmentationInput(segmentationInput);
7699
+ const segmentation = addSegmentations_normalizeSegmentationInput(segmentationInput);
7673
7700
  segmentationStateManager.addSegmentation(segmentation);
7674
7701
  if (!suppressEvents) {
7675
7702
  triggerSegmentationModified(segmentation.segmentationId);
@@ -7679,16 +7706,20 @@ function addSegmentations(segmentationInputArray, suppressEvents) {
7679
7706
  /* harmony default export */ const segmentation_addSegmentations = ((/* unused pure expression or super */ null && (addSegmentations)));
7680
7707
 
7681
7708
 
7682
- /***/ }),
7709
+ /***/ },
7683
7710
 
7684
- /***/ 93733:
7685
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7711
+ /***/ 93733
7712
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7686
7713
 
7687
7714
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7688
7715
  /* harmony export */ getSegmentIndexColor: () => (/* binding */ getSegmentIndexColor),
7689
7716
  /* harmony export */ setSegmentIndexColor: () => (/* binding */ setSegmentIndexColor)
7690
7717
  /* harmony export */ });
7691
7718
  /* unused harmony exports addColorLUT, setColorLUT */
7719
+ /* unused harmony import specifier */ var _addColorLUT;
7720
+ /* unused harmony import specifier */ var _getColorLUT;
7721
+ /* unused harmony import specifier */ var getSegmentationRepresentations;
7722
+ /* unused harmony import specifier */ var triggerSegmentationRepresentationModified;
7692
7723
  /* harmony import */ var _addColorLUT__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4714);
7693
7724
  /* harmony import */ var _getColorLUT__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50409);
7694
7725
  /* harmony import */ var _getSegmentationRepresentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93210);
@@ -7746,12 +7777,13 @@ function setSegmentIndexColor(viewportId, segmentationId, segmentIndex, color) {
7746
7777
 
7747
7778
 
7748
7779
 
7749
- /***/ }),
7780
+ /***/ },
7750
7781
 
7751
- /***/ 70906:
7752
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7782
+ /***/ 70906
7783
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7753
7784
 
7754
7785
  /* unused harmony export getNextColorLUTIndex */
7786
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7755
7787
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59475);
7756
7788
 
7757
7789
  function getNextColorLUTIndex() {
@@ -7760,16 +7792,17 @@ function getNextColorLUTIndex() {
7760
7792
  }
7761
7793
 
7762
7794
 
7763
- /***/ }),
7795
+ /***/ },
7764
7796
 
7765
- /***/ 93210:
7766
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7797
+ /***/ 93210
7798
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7767
7799
 
7768
7800
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7769
7801
  /* harmony export */ Ut: () => (/* binding */ getSegmentationRepresentation),
7770
7802
  /* harmony export */ r$: () => (/* binding */ getSegmentationRepresentations)
7771
7803
  /* harmony export */ });
7772
7804
  /* unused harmony export getSegmentationRepresentationsBySegmentationId */
7805
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7773
7806
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59475);
7774
7807
 
7775
7808
  function getSegmentationRepresentations(viewportId, specifier = {}) {
@@ -7790,12 +7823,13 @@ function getSegmentationRepresentationsBySegmentationId(segmentationId) {
7790
7823
  }
7791
7824
 
7792
7825
 
7793
- /***/ }),
7826
+ /***/ },
7794
7827
 
7795
- /***/ 70758:
7796
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7828
+ /***/ 70758
7829
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7797
7830
 
7798
7831
  /* unused harmony export getSegmentations */
7832
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7799
7833
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59475);
7800
7834
 
7801
7835
  function getSegmentations() {
@@ -7805,12 +7839,14 @@ function getSegmentations() {
7805
7839
  }
7806
7840
 
7807
7841
 
7808
- /***/ }),
7842
+ /***/ },
7809
7843
 
7810
- /***/ 42568:
7811
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7844
+ /***/ 42568
7845
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7812
7846
 
7813
7847
  /* unused harmony exports getViewportSegmentations, getViewportSegmentationRepresentations */
7848
+ /* unused harmony import specifier */ var getSegmentation;
7849
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7814
7850
  /* harmony import */ var _getSegmentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33283);
7815
7851
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59475);
7816
7852
 
@@ -7834,12 +7870,15 @@ function getViewportSegmentationRepresentations(viewportId) {
7834
7870
  }
7835
7871
 
7836
7872
 
7837
- /***/ }),
7873
+ /***/ },
7838
7874
 
7839
- /***/ 63427:
7840
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7875
+ /***/ 63427
7876
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7841
7877
 
7842
7878
  /* unused harmony exports removeSegmentation, removeAllSegmentations */
7879
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7880
+ /* unused harmony import specifier */ var triggerSegmentationRemoved;
7881
+ /* unused harmony import specifier */ var removeSegmentationRepresentations;
7843
7882
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59475);
7844
7883
  /* harmony import */ var _triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49906);
7845
7884
  /* harmony import */ var _removeSegmentationRepresentations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53662);
@@ -7869,20 +7908,20 @@ function removeAllSegmentations() {
7869
7908
  }
7870
7909
 
7871
7910
 
7872
- /***/ }),
7911
+ /***/ },
7873
7912
 
7874
- /***/ 53662:
7875
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
7913
+ /***/ 53662
7914
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7876
7915
 
7877
7916
 
7878
7917
  // UNUSED EXPORTS: removeAllSegmentationRepresentations, removeContourRepresentation, removeLabelmapRepresentation, removeSegmentationRepresentation, removeSegmentationRepresentations, removeSurfaceRepresentation
7879
7918
 
7880
7919
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/SegmentationRepresentations.js
7881
- var enums_SegmentationRepresentations = __webpack_require__(18682);
7920
+ var SegmentationRepresentations = __webpack_require__(18682);
7882
7921
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js
7883
- var Labelmap_labelmapDisplay = __webpack_require__(684);
7922
+ var labelmapDisplay = __webpack_require__(684);
7884
7923
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourDisplay.js
7885
- var Contour_contourDisplay = __webpack_require__(25894);
7924
+ var contourDisplay = __webpack_require__(25894);
7886
7925
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js
7887
7926
  var getSegmentationRepresentation = __webpack_require__(93210);
7888
7927
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
@@ -7890,7 +7929,7 @@ var esm = __webpack_require__(15327);
7890
7929
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStateManager.js
7891
7930
  var SegmentationStateManager = __webpack_require__(59475);
7892
7931
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Surface/surfaceDisplay.js
7893
- var Surface_surfaceDisplay = __webpack_require__(67014);
7932
+ var surfaceDisplay = __webpack_require__(67014);
7894
7933
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Surface/index.js
7895
7934
 
7896
7935
 
@@ -7898,6 +7937,14 @@ var Surface_surfaceDisplay = __webpack_require__(67014);
7898
7937
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationEventManager.js
7899
7938
  var segmentationEventManager = __webpack_require__(10692);
7900
7939
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/removeSegmentationRepresentations.js
7940
+ /* unused harmony import specifier */ var removeSegmentationRepresentations_SegmentationRepresentations;
7941
+ /* unused harmony import specifier */ var removeSegmentationRepresentations_labelmapDisplay;
7942
+ /* unused harmony import specifier */ var removeSegmentationRepresentations_contourDisplay;
7943
+ /* unused harmony import specifier */ var getSegmentationRepresentations;
7944
+ /* unused harmony import specifier */ var getEnabledElementByViewportId;
7945
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
7946
+ /* unused harmony import specifier */ var removeSegmentationRepresentations_surfaceDisplay;
7947
+ /* unused harmony import specifier */ var removeSegmentationListener;
7901
7948
 
7902
7949
 
7903
7950
 
@@ -7935,19 +7982,19 @@ function removeAllSegmentationRepresentations() {
7935
7982
  function removeLabelmapRepresentation(viewportId, segmentationId, immediate) {
7936
7983
  removeSegmentationRepresentation(viewportId, {
7937
7984
  segmentationId,
7938
- type: SegmentationRepresentations.Labelmap,
7985
+ type: removeSegmentationRepresentations_SegmentationRepresentations.Labelmap,
7939
7986
  }, immediate);
7940
7987
  }
7941
7988
  function removeContourRepresentation(viewportId, segmentationId, immediate) {
7942
7989
  removeSegmentationRepresentation(viewportId, {
7943
7990
  segmentationId,
7944
- type: SegmentationRepresentations.Contour,
7991
+ type: removeSegmentationRepresentations_SegmentationRepresentations.Contour,
7945
7992
  }, immediate);
7946
7993
  }
7947
7994
  function removeSurfaceRepresentation(viewportId, segmentationId, immediate) {
7948
7995
  removeSegmentationRepresentation(viewportId, {
7949
7996
  segmentationId,
7950
- type: SegmentationRepresentations.Surface,
7997
+ type: removeSegmentationRepresentations_SegmentationRepresentations.Surface,
7951
7998
  }, immediate);
7952
7999
  }
7953
8000
  function _removeRepresentationObject(viewportId, segmentationId, type, immediate) {
@@ -7956,14 +8003,14 @@ function _removeRepresentationObject(viewportId, segmentationId, type, immediate
7956
8003
  type,
7957
8004
  });
7958
8005
  representations.forEach((representation) => {
7959
- if (representation.type === SegmentationRepresentations.Labelmap) {
7960
- labelmapDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
8006
+ if (representation.type === removeSegmentationRepresentations_SegmentationRepresentations.Labelmap) {
8007
+ removeSegmentationRepresentations_labelmapDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
7961
8008
  }
7962
- else if (representation.type === SegmentationRepresentations.Contour) {
7963
- contourDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
8009
+ else if (representation.type === removeSegmentationRepresentations_SegmentationRepresentations.Contour) {
8010
+ removeSegmentationRepresentations_contourDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
7964
8011
  }
7965
- else if (representation.type === SegmentationRepresentations.Surface) {
7966
- surfaceDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
8012
+ else if (representation.type === removeSegmentationRepresentations_SegmentationRepresentations.Surface) {
8013
+ removeSegmentationRepresentations_surfaceDisplay.removeRepresentation(viewportId, representation.segmentationId, immediate);
7967
8014
  }
7968
8015
  removeSegmentationListener(representation.segmentationId, representation.type);
7969
8016
  });
@@ -7975,15 +8022,19 @@ function _removeRepresentationObject(viewportId, segmentationId, type, immediate
7975
8022
 
7976
8023
 
7977
8024
 
7978
- /***/ }),
8025
+ /***/ },
7979
8026
 
7980
- /***/ 26795:
7981
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8027
+ /***/ 26795
8028
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7982
8029
 
7983
8030
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7984
8031
  /* harmony export */ getLockedSegmentIndices: () => (/* binding */ getLockedSegmentIndices)
7985
8032
  /* harmony export */ });
7986
8033
  /* unused harmony exports isSegmentIndexLocked, setSegmentIndexLocked */
8034
+ /* unused harmony import specifier */ var getSegmentation;
8035
+ /* unused harmony import specifier */ var setAnnotationLocked;
8036
+ /* unused harmony import specifier */ var triggerSegmentationModified;
8037
+ /* unused harmony import specifier */ var getAnnotationsUIDMapFromSegmentation;
7987
8038
  /* harmony import */ var _stateManagement_segmentation_getSegmentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33283);
7988
8039
  /* harmony import */ var _annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2076);
7989
8040
  /* harmony import */ var _triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49906);
@@ -8037,15 +8088,17 @@ function getLockedSegmentIndices(segmentationId) {
8037
8088
 
8038
8089
 
8039
8090
 
8040
- /***/ }),
8091
+ /***/ },
8041
8092
 
8042
- /***/ 10692:
8043
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8093
+ /***/ 10692
8094
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8044
8095
 
8045
8096
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8046
8097
  /* harmony export */ Np: () => (/* binding */ addDefaultSegmentationListener)
8047
8098
  /* harmony export */ });
8048
8099
  /* unused harmony exports addSegmentationListener, removeSegmentationListener, removeAllSegmentationListeners */
8100
+ /* unused harmony import specifier */ var eventTarget;
8101
+ /* unused harmony import specifier */ var Events;
8049
8102
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
8050
8103
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
8051
8104
  /* harmony import */ var _triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49906);
@@ -8125,10 +8178,10 @@ function createDebouncedSegmentationListener(segmentationId, representationType,
8125
8178
 
8126
8179
 
8127
8180
 
8128
- /***/ }),
8181
+ /***/ },
8129
8182
 
8130
- /***/ 98870:
8131
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8183
+ /***/ 98870
8184
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8132
8185
 
8133
8186
 
8134
8187
  // EXPORTS
@@ -8157,6 +8210,7 @@ var getNextColorLUTIndex = __webpack_require__(70906);
8157
8210
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStateManager.js
8158
8211
  var SegmentationStateManager = __webpack_require__(59475);
8159
8212
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/removeColorLUT.js
8213
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
8160
8214
 
8161
8215
  function removeColorLUT(colorLUTIndex) {
8162
8216
  const segmentationStateManager = defaultSegmentationStateManager;
@@ -8172,15 +8226,17 @@ var getCurrentLabelmapImageIdForViewport = __webpack_require__(97577);
8172
8226
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/updateLabelmapSegmentationImageReferences.js
8173
8227
  var updateLabelmapSegmentationImageReferences = __webpack_require__(78231);
8174
8228
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getStackSegmentationImageIdsForViewport.js
8229
+ /* unused harmony import specifier */ var getStackSegmentationImageIdsForViewport_defaultSegmentationStateManager;
8175
8230
 
8176
8231
  function getStackSegmentationImageIdsForViewport(viewportId, segmentationId) {
8177
- const segmentationStateManager = defaultSegmentationStateManager;
8232
+ const segmentationStateManager = getStackSegmentationImageIdsForViewport_defaultSegmentationStateManager;
8178
8233
  return segmentationStateManager.getStackSegmentationImageIdsForViewport(viewportId, segmentationId);
8179
8234
  }
8180
8235
 
8181
8236
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js
8182
8237
  var getSegmentationRepresentation = __webpack_require__(93210);
8183
8238
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js
8239
+ /* unused harmony import specifier */ var segmentationState_defaultSegmentationStateManager;
8184
8240
 
8185
8241
 
8186
8242
 
@@ -8198,17 +8254,18 @@ var getSegmentationRepresentation = __webpack_require__(93210);
8198
8254
 
8199
8255
 
8200
8256
  function destroy() {
8201
- defaultSegmentationStateManager.resetState();
8257
+ segmentationState_defaultSegmentationStateManager.resetState();
8202
8258
  }
8203
8259
 
8204
8260
 
8205
8261
 
8206
- /***/ }),
8262
+ /***/ },
8207
8263
 
8208
- /***/ 78231:
8209
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8264
+ /***/ 78231
8265
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8210
8266
 
8211
8267
  /* unused harmony export updateLabelmapSegmentationImageReferences */
8268
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
8212
8269
  /* harmony import */ var _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59475);
8213
8270
 
8214
8271
  function updateLabelmapSegmentationImageReferences(viewportId, segmentationId) {
@@ -8217,12 +8274,13 @@ function updateLabelmapSegmentationImageReferences(viewportId, segmentationId) {
8217
8274
  }
8218
8275
 
8219
8276
 
8220
- /***/ }),
8277
+ /***/ },
8221
8278
 
8222
- /***/ 98484:
8223
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8279
+ /***/ 98484
8280
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8224
8281
 
8225
8282
  /* unused harmony export getAnnotationsUIDMapFromSegmentation */
8283
+ /* unused harmony import specifier */ var getSegmentation;
8226
8284
  /* harmony import */ var _getSegmentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33283);
8227
8285
 
8228
8286
  function getAnnotationsUIDMapFromSegmentation(segmentationId) {
@@ -8243,10 +8301,10 @@ function getAnnotationsUIDMapFromSegmentation(segmentationId) {
8243
8301
  }
8244
8302
 
8245
8303
 
8246
- /***/ }),
8304
+ /***/ },
8247
8305
 
8248
- /***/ 31994:
8249
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
8306
+ /***/ 31994
8307
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
8250
8308
 
8251
8309
  /* harmony import */ var _getAnnotationsUIDMapFromSegmentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98484);
8252
8310
  /* harmony import */ var _getViewportAssociatedToSegmentation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16493);
@@ -8271,10 +8329,10 @@ function getAnnotationsUIDMapFromSegmentation(segmentationId) {
8271
8329
 
8272
8330
 
8273
8331
 
8274
- /***/ }),
8332
+ /***/ },
8275
8333
 
8276
- /***/ 48145:
8277
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8334
+ /***/ 48145
8335
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8278
8336
 
8279
8337
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8280
8338
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -8287,10 +8345,10 @@ function resetSvgNodeCache() {
8287
8345
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (svgNodeCache);
8288
8346
 
8289
8347
 
8290
- /***/ }),
8348
+ /***/ },
8291
8349
 
8292
- /***/ 25072:
8293
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
8350
+ /***/ 25072
8351
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
8294
8352
 
8295
8353
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
8296
8354
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15327);
@@ -9057,10 +9115,10 @@ function defaultGetTextLines(data, targetId) {
9057
9115
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (BidirectionalTool)));
9058
9116
 
9059
9117
 
9060
- /***/ }),
9118
+ /***/ },
9061
9119
 
9062
- /***/ 85817:
9063
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9120
+ /***/ 85817
9121
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9064
9122
 
9065
9123
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9066
9124
  /* harmony export */ EC: () => (/* reexport safe */ _AnnotationTool__WEBPACK_IMPORTED_MODULE_1__.A),
@@ -9075,10 +9133,10 @@ function defaultGetTextLines(data, targetId) {
9075
9133
 
9076
9134
 
9077
9135
 
9078
- /***/ }),
9136
+ /***/ },
9079
9137
 
9080
- /***/ 48736:
9081
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
9138
+ /***/ 48736
9139
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
9082
9140
 
9083
9141
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
9084
9142
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
@@ -9455,10 +9513,10 @@ BrushTool.toolName = 'Brush';
9455
9513
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (BrushTool)));
9456
9514
 
9457
9515
 
9458
- /***/ }),
9516
+ /***/ },
9459
9517
 
9460
- /***/ 56789:
9461
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9518
+ /***/ 56789
9519
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9462
9520
 
9463
9521
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9464
9522
  /* harmony export */ C$: () => (/* binding */ getEllipseCornersFromCanvasCoordinates),
@@ -9685,10 +9743,10 @@ function fillOutsideCircle() {
9685
9743
 
9686
9744
 
9687
9745
 
9688
- /***/ }),
9746
+ /***/ },
9689
9747
 
9690
- /***/ 10088:
9691
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9748
+ /***/ 10088
9749
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9692
9750
 
9693
9751
  /* unused harmony exports RECTANGLE_STRATEGY, RECTANGLE_THRESHOLD_STRATEGY, fillInsideRectangle, thresholdInsideRectangle */
9694
9752
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
@@ -9772,10 +9830,10 @@ const thresholdInsideRectangle = RECTANGLE_THRESHOLD_STRATEGY.strategyFunction;
9772
9830
 
9773
9831
 
9774
9832
 
9775
- /***/ }),
9833
+ /***/ },
9776
9834
 
9777
- /***/ 99522:
9778
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9835
+ /***/ 99522
9836
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9779
9837
 
9780
9838
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9781
9839
  /* harmony export */ fillInsideCircle: () => (/* reexport safe */ _fillCircle__WEBPACK_IMPORTED_MODULE_1__.kr)
@@ -9787,15 +9845,20 @@ const thresholdInsideRectangle = RECTANGLE_THRESHOLD_STRATEGY.strategyFunction;
9787
9845
 
9788
9846
 
9789
9847
 
9790
- /***/ }),
9848
+ /***/ },
9791
9849
 
9792
- /***/ 64485:
9793
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9850
+ /***/ 64485
9851
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9794
9852
 
9795
9853
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9796
9854
  /* harmony export */ x: () => (/* binding */ getClosestImageIdForStackViewport)
9797
9855
  /* harmony export */ });
9798
9856
  /* unused harmony export annotationHydration */
9857
+ /* unused harmony import specifier */ var utilities;
9858
+ /* unused harmony import specifier */ var StackViewport;
9859
+ /* unused harmony import specifier */ var BaseVolumeViewport;
9860
+ /* unused harmony import specifier */ var cache;
9861
+ /* unused harmony import specifier */ var addAnnotation;
9799
9862
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
9800
9863
  /* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82056);
9801
9864
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3823);
@@ -9883,27 +9946,10 @@ function calculateDistanceToImage(worldPos, ImagePositionPatient, viewPlaneNorma
9883
9946
 
9884
9947
 
9885
9948
 
9886
- /***/ }),
9887
-
9888
- /***/ 76802:
9889
- /***/ (() => {
9890
-
9891
- function extend2DBoundingBoxInViewAxis(boundsIJK, numSlicesToProject) {
9892
- const sliceNormalIndex = boundsIJK.findIndex(([min, max]) => min === max);
9893
- if (sliceNormalIndex === -1) {
9894
- throw new Error('3D bounding boxes not supported in an oblique plane');
9895
- }
9896
- boundsIJK[sliceNormalIndex][0] -= numSlicesToProject;
9897
- boundsIJK[sliceNormalIndex][1] += numSlicesToProject;
9898
- return boundsIJK;
9899
- }
9900
- /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (extend2DBoundingBoxInViewAxis)));
9901
-
9949
+ /***/ },
9902
9950
 
9903
- /***/ }),
9904
-
9905
- /***/ 87063:
9906
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9951
+ /***/ 87063
9952
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9907
9953
 
9908
9954
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9909
9955
  /* harmony export */ g: () => (/* binding */ getBoundingBoxAroundShapeIJK)
@@ -9967,10 +10013,10 @@ function getBoundingBoxAroundShapeWorld(points, clipBounds) {
9967
10013
  }
9968
10014
 
9969
10015
 
9970
- /***/ }),
10016
+ /***/ },
9971
10017
 
9972
- /***/ 72282:
9973
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10018
+ /***/ 72282
10019
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9974
10020
 
9975
10021
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9976
10022
  /* harmony export */ getBoundingBoxAroundShapeIJK: () => (/* reexport safe */ _getBoundingBoxAroundShape__WEBPACK_IMPORTED_MODULE_1__.g)
@@ -9982,17 +10028,17 @@ function getBoundingBoxAroundShapeWorld(points, clipBounds) {
9982
10028
 
9983
10029
 
9984
10030
 
9985
- /***/ }),
10031
+ /***/ },
9986
10032
 
9987
- /***/ 56534:
9988
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10033
+ /***/ 56534
10034
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9989
10035
 
9990
10036
 
9991
10037
  // EXPORTS
9992
10038
  __webpack_require__.d(__webpack_exports__, {
9993
- addContourSegmentationAnnotation: () => (/* reexport */ contourSegmentation_addContourSegmentationAnnotation/* addContourSegmentationAnnotation */.V),
10039
+ addContourSegmentationAnnotation: () => (/* reexport */ addContourSegmentationAnnotation/* addContourSegmentationAnnotation */.V),
9994
10040
  createPolylineHole: () => (/* reexport */ sharedOperations/* createPolylineHole */.rK),
9995
- removeContourSegmentationAnnotation: () => (/* reexport */ contourSegmentation_removeContourSegmentationAnnotation/* removeContourSegmentationAnnotation */.M)
10041
+ removeContourSegmentationAnnotation: () => (/* reexport */ removeContourSegmentationAnnotation/* removeContourSegmentationAnnotation */.M)
9996
10042
  });
9997
10043
 
9998
10044
  // UNUSED EXPORTS: LogicalOperation, add, areSameSegment, checkIntersection, cleanupPolylines, combinePolylines, contourSegmentationOperation, convertContourPolylineToCanvasSpace, convertContourPolylineToWorld, convertContourSegmentationAnnotation, copy, copyAnnotation, copyContourSegment, createNewAnnotationFromPolyline, deleteOperation, findAllIntersectingContours, getContourHolesData, intersect, intersectPolylinesSets, isContourSegmentationAnnotation, processMultipleIntersections, removeDuplicatePoints, subtract, subtractAnnotationPolylines, subtractMultiplePolylineSets, subtractPolylineSets, unifyAnnotationPolylines, unifyMultiplePolylineSets, unifyPolylineSets, updateViewportsForAnnotations, xor, xorPolylinesSets
@@ -10004,12 +10050,18 @@ var esm = __webpack_require__(15327);
10004
10050
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/index.js
10005
10051
  var stateManagement = __webpack_require__(6802);
10006
10052
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contourSegmentation/removeContourSegmentationAnnotation.js
10007
- var contourSegmentation_removeContourSegmentationAnnotation = __webpack_require__(37354);
10053
+ var removeContourSegmentationAnnotation = __webpack_require__(37354);
10008
10054
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contourSegmentation/addContourSegmentationAnnotation.js
10009
- var contourSegmentation_addContourSegmentationAnnotation = __webpack_require__(85263);
10055
+ var addContourSegmentationAnnotation = __webpack_require__(85263);
10010
10056
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/helpers/state.js
10011
10057
  var state = __webpack_require__(44049);
10012
10058
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contourSegmentation/convertContourSegmentation.js
10059
+ /* unused harmony import specifier */ var utilities;
10060
+ /* unused harmony import specifier */ var removeAnnotation;
10061
+ /* unused harmony import specifier */ var addAnnotation;
10062
+ /* unused harmony import specifier */ var convertContourSegmentation_removeContourSegmentationAnnotation;
10063
+ /* unused harmony import specifier */ var convertContourSegmentation_addContourSegmentationAnnotation;
10064
+ /* unused harmony import specifier */ var triggerAnnotationModified;
10013
10065
 
10014
10066
 
10015
10067
 
@@ -10023,7 +10075,7 @@ function convertContourSegmentationAnnotation(annotation) {
10023
10075
  return;
10024
10076
  }
10025
10077
  removeAnnotation(annotation.annotationUID);
10026
- removeContourSegmentationAnnotation(annotation);
10078
+ convertContourSegmentation_removeContourSegmentationAnnotation(annotation);
10027
10079
  const startPointWorld = polyline[0];
10028
10080
  const endPointWorld = polyline[polyline.length - 1];
10029
10081
  const newAnnotation = {
@@ -10057,7 +10109,7 @@ function convertContourSegmentationAnnotation(annotation) {
10057
10109
  interpolationCompleted: annotation.interpolationCompleted,
10058
10110
  };
10059
10111
  addAnnotation(newAnnotation, annotation.metadata.FrameOfReferenceUID);
10060
- addContourSegmentationAnnotation(newAnnotation);
10112
+ convertContourSegmentation_addContourSegmentationAnnotation(newAnnotation);
10061
10113
  triggerAnnotationModified(newAnnotation);
10062
10114
  return newAnnotation;
10063
10115
  }
@@ -10103,10 +10155,10 @@ var polylineXor = __webpack_require__(63890);
10103
10155
 
10104
10156
 
10105
10157
 
10106
- /***/ }),
10158
+ /***/ },
10107
10159
 
10108
- /***/ 46228:
10109
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10160
+ /***/ 46228
10161
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10110
10162
 
10111
10163
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10112
10164
  /* harmony export */ d1: () => (/* binding */ findContoursFromReducedSet)
@@ -10176,12 +10228,13 @@ function findContoursFromReducedSet(lines) {
10176
10228
  });
10177
10229
 
10178
10230
 
10179
- /***/ }),
10231
+ /***/ },
10180
10232
 
10181
- /***/ 98013:
10182
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10233
+ /***/ 98013
10234
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10183
10235
 
10184
10236
  /* unused harmony export default */
10237
+ /* unused harmony import specifier */ var vec3;
10185
10238
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
10186
10239
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
10187
10240
 
@@ -10217,10 +10270,10 @@ function findHandlePolylineIndex(annotation, handleIndex) {
10217
10270
  }
10218
10271
 
10219
10272
 
10220
- /***/ }),
10273
+ /***/ },
10221
10274
 
10222
- /***/ 37546:
10223
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10275
+ /***/ 37546
10276
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10224
10277
 
10225
10278
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10226
10279
  /* harmony export */ v: () => (/* binding */ getDeduplicatedVTKPolyDataPoints)
@@ -10272,10 +10325,10 @@ function getDeduplicatedVTKPolyDataPoints(polyData, bypass = false) {
10272
10325
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({ getDeduplicatedVTKPolyDataPoints });
10273
10326
 
10274
10327
 
10275
- /***/ }),
10328
+ /***/ },
10276
10329
 
10277
- /***/ 473:
10278
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10330
+ /***/ 473
10331
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10279
10332
 
10280
10333
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10281
10334
  /* harmony export */ getTextBoxCoordsCanvas: () => (/* reexport safe */ _getTextBoxCoordsCanvas__WEBPACK_IMPORTED_MODULE_0__.A)
@@ -10285,10 +10338,10 @@ function getDeduplicatedVTKPolyDataPoints(polyData, bypass = false) {
10285
10338
 
10286
10339
 
10287
10340
 
10288
- /***/ }),
10341
+ /***/ },
10289
10342
 
10290
- /***/ 4096:
10291
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10343
+ /***/ 4096
10344
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10292
10345
 
10293
10346
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10294
10347
  /* harmony export */ Op: () => (/* binding */ getCalibratedLengthUnitsAndScale)
@@ -10433,15 +10486,16 @@ const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
10433
10486
 
10434
10487
 
10435
10488
 
10436
- /***/ }),
10489
+ /***/ },
10437
10490
 
10438
- /***/ 4296:
10439
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10491
+ /***/ 4296
10492
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10440
10493
 
10441
10494
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10442
10495
  /* harmony export */ l: () => (/* binding */ getSphereBoundsInfoFromViewport)
10443
10496
  /* harmony export */ });
10444
10497
  /* unused harmony export getSphereBoundsInfo */
10498
+ /* unused harmony import specifier */ var vec3;
10445
10499
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
10446
10500
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
10447
10501
  /* harmony import */ var _boundingBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72282);
@@ -10511,16 +10565,16 @@ function _computeBoundsIJK(imageData, directionVectors, circlePoints, centerWorl
10511
10565
 
10512
10566
 
10513
10567
 
10514
- /***/ }),
10568
+ /***/ },
10515
10569
 
10516
- /***/ 39848:
10517
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10570
+ /***/ 39848
10571
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10518
10572
 
10519
10573
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10520
10574
  /* harmony export */ A: () => (/* binding */ getToolsWithModesForElement)
10521
10575
  /* harmony export */ });
10522
10576
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
10523
- /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77609);
10577
+ /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7754);
10524
10578
 
10525
10579
 
10526
10580
  function getToolsWithModesForElement(element, modesFilter) {
@@ -10547,62 +10601,14 @@ function getToolsWithModesForElement(element, modesFilter) {
10547
10601
  }
10548
10602
 
10549
10603
 
10550
- /***/ }),
10551
-
10552
- /***/ 88638:
10553
- /***/ (() => {
10554
-
10555
-
10556
- // UNUSED EXPORTS: distanceToPoint, distanceToPointSquared, intersectAABB
10557
-
10558
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/intersectAABB.js
10559
- function intersectAABB(aabb1, aabb2) {
10560
- return (aabb1.minX <= aabb2.maxX &&
10561
- aabb1.maxX >= aabb2.minX &&
10562
- aabb1.minY <= aabb2.maxY &&
10563
- aabb1.maxY >= aabb2.minY);
10564
- }
10565
-
10566
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/distanceToPointSquared.js
10567
- function distanceToPointSquared_distanceToPointSquared(aabb, point) {
10568
- const aabbWidth = aabb.maxX - aabb.minX;
10569
- const aabbHeight = aabb.maxY - aabb.minY;
10570
- const aabbSize = [aabbWidth, aabbHeight];
10571
- const aabbCenter = [
10572
- aabb.minX + aabbWidth / 2,
10573
- aabb.minY + aabbHeight / 2,
10574
- ];
10575
- const translatedPoint = [
10576
- Math.abs(point[0] - aabbCenter[0]),
10577
- Math.abs(point[1] - aabbCenter[1]),
10578
- ];
10579
- const dx = translatedPoint[0] - aabbSize[0] * 0.5;
10580
- const dy = translatedPoint[1] - aabbSize[1] * 0.5;
10581
- if (dx > 0 && dy > 0) {
10582
- return dx * dx + dy * dy;
10583
- }
10584
- const dist = Math.max(dx, 0) + Math.max(dy, 0);
10585
- return dist * dist;
10586
- }
10587
-
10588
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/distanceToPoint.js
10589
-
10590
- function distanceToPoint(aabb, point) {
10591
- return Math.sqrt(distanceToPointSquared(aabb, point));
10592
- }
10593
-
10594
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/index.js
10595
-
10596
-
10604
+ /***/ },
10597
10605
 
10598
-
10599
-
10600
- /***/ }),
10601
-
10602
- /***/ 25963:
10603
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10606
+ /***/ 25963
10607
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10604
10608
 
10605
10609
  /* unused harmony export default */
10610
+ /* unused harmony import specifier */ var vec3;
10611
+ /* unused harmony import specifier */ var vec2;
10606
10612
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
10607
10613
 
10608
10614
  function angleBetween3DLines(line1, line2) {
@@ -10636,89 +10642,69 @@ function angleBetweenLines(line1, line2) {
10636
10642
  }
10637
10643
 
10638
10644
 
10639
- /***/ }),
10640
-
10641
- /***/ 83923:
10642
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
10645
+ /***/ },
10643
10646
 
10644
- /* harmony import */ var _angleBetweenLines__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25963);
10647
+ /***/ 11256
10648
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10645
10649
 
10650
+ /* unused harmony export default */
10651
+ /* unused harmony import specifier */ var distanceToPoint;
10652
+ /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5767);
10646
10653
 
10647
-
10648
-
10649
- /***/ }),
10650
-
10651
- /***/ 28364:
10652
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10653
-
10654
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10655
- /* harmony export */ I: () => (/* binding */ InstanceCalculator),
10656
- /* harmony export */ t: () => (/* binding */ Calculator)
10657
- /* harmony export */ });
10658
- class Calculator {
10659
- }
10660
- class InstanceCalculator {
10661
- constructor(options) {
10662
- this.storePointData = options.storePointData;
10663
- }
10664
- getStatistics() {
10665
- console.debug('InstanceCalculator getStatistics called');
10666
- }
10654
+ function getCanvasCircleCorners(circleCanvasPoints) {
10655
+ const [center, end] = circleCanvasPoints;
10656
+ const radius = distanceToPoint(center, end);
10657
+ const topLeft = [center[0] - radius, center[1] - radius];
10658
+ const bottomRight = [center[0] + radius, center[1] + radius];
10659
+ return [topLeft, bottomRight];
10667
10660
  }
10668
10661
 
10669
10662
 
10670
- /***/ }),
10663
+ /***/ },
10671
10664
 
10672
- /***/ 73262:
10673
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10665
+ /***/ 76090
10666
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10674
10667
 
10675
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10676
- /* harmony export */ BasicStatsCalculator: () => (/* reexport safe */ _BasicStatsCalculator__WEBPACK_IMPORTED_MODULE_0__.O)
10677
- /* harmony export */ });
10678
- /* harmony import */ var _BasicStatsCalculator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69013);
10679
- /* harmony import */ var _Calculator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28364);
10668
+ /* unused harmony export default */
10669
+ /* unused harmony import specifier */ var distanceToPoint;
10670
+ /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5767);
10680
10671
 
10672
+ function getCanvasCircleRadius(circleCanvasPoints) {
10673
+ const [center, end] = circleCanvasPoints;
10674
+ return distanceToPoint(center, end);
10675
+ }
10681
10676
 
10682
10677
 
10678
+ /***/ },
10683
10679
 
10680
+ /***/ 3336
10681
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
10684
10682
 
10685
- /***/ }),
10683
+ /* harmony import */ var _getCanvasCircleRadius__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76090);
10684
+ /* harmony import */ var _getCanvasCircleCorners__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11256);
10686
10685
 
10687
- /***/ 77081:
10688
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
10689
10686
 
10690
10687
 
10691
- // UNUSED EXPORTS: getCanvasCircleCorners, getCanvasCircleRadius
10692
10688
 
10693
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js + 3 modules
10694
- var point = __webpack_require__(82216);
10695
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/getCanvasCircleRadius.js
10696
10689
 
10697
- function getCanvasCircleRadius(circleCanvasPoints) {
10698
- const [center, end] = circleCanvasPoints;
10699
- return distanceToPoint(center, end);
10700
- }
10690
+ /***/ },
10701
10691
 
10702
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/getCanvasCircleCorners.js
10692
+ /***/ 2222
10693
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10703
10694
 
10704
- function getCanvasCircleCorners(circleCanvasPoints) {
10705
- const [center, end] = circleCanvasPoints;
10706
- const radius = distanceToPoint(center, end);
10707
- const topLeft = [center[0] - radius, center[1] - radius];
10708
- const bottomRight = [center[0] + radius, center[1] + radius];
10695
+ /* unused harmony export default */
10696
+ function getCanvasEllipseCorners(ellipseCanvasPoints) {
10697
+ const [bottom, top, left, right] = ellipseCanvasPoints;
10698
+ const topLeft = [left[0], top[1]];
10699
+ const bottomRight = [right[0], bottom[1]];
10709
10700
  return [topLeft, bottomRight];
10710
10701
  }
10711
10702
 
10712
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/index.js
10713
-
10714
-
10715
-
10716
10703
 
10704
+ /***/ },
10717
10705
 
10718
- /***/ }),
10719
-
10720
- /***/ 87009:
10721
- /***/ (() => {
10706
+ /***/ 11683
10707
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
10722
10708
 
10723
10709
 
10724
10710
  // UNUSED EXPORTS: getCanvasEllipseCorners, pointInEllipse, precalculatePointInEllipse
@@ -10761,111 +10747,106 @@ const precalculatePointInEllipse = (ellipse, inverts = {}) => {
10761
10747
  };
10762
10748
 
10763
10749
 
10764
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/getCanvasEllipseCorners.js
10765
- function getCanvasEllipseCorners(ellipseCanvasPoints) {
10766
- const [bottom, top, left, right] = ellipseCanvasPoints;
10767
- const topLeft = [left[0], top[1]];
10768
- const bottomRight = [right[0], bottom[1]];
10769
- return [topLeft, bottomRight];
10770
- }
10771
-
10750
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/getCanvasEllipseCorners.js
10751
+ var getCanvasEllipseCorners = __webpack_require__(2222);
10772
10752
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/index.js
10773
10753
 
10774
10754
 
10775
10755
 
10776
10756
 
10777
10757
 
10778
- /***/ }),
10758
+ /***/ },
10779
10759
 
10780
- /***/ 95527:
10781
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10760
+ /***/ 85895
10761
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10782
10762
 
10783
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10784
- /* harmony export */ point: () => (/* reexport module object */ _point__WEBPACK_IMPORTED_MODULE_5__),
10785
- /* harmony export */ polyline: () => (/* reexport module object */ _polyline__WEBPACK_IMPORTED_MODULE_6__)
10786
- /* harmony export */ });
10787
- /* harmony import */ var _aabb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88638);
10788
- /* harmony import */ var _basic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73262);
10789
- /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77081);
10790
- /* harmony import */ var _ellipse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87009);
10791
- /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93258);
10792
- /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82216);
10793
- /* harmony import */ var _polyline__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92984);
10794
- /* harmony import */ var _rectangle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33657);
10795
- /* harmony import */ var _vec2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23324);
10796
- /* harmony import */ var _angle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83923);
10797
10763
 
10764
+ // EXPORTS
10765
+ __webpack_require__.d(__webpack_exports__, {
10766
+ point: () => (/* reexport */ point),
10767
+ polyline: () => (/* reexport */ polyline)
10768
+ });
10769
+
10770
+ // UNUSED EXPORTS: BasicStatsCalculator, aabb, angle, circle, ellipse, lineSegment, rectangle, vec2
10798
10771
 
10772
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/intersectAABB.js
10773
+ function intersectAABB(aabb1, aabb2) {
10774
+ return (aabb1.minX <= aabb2.maxX &&
10775
+ aabb1.maxX >= aabb2.minX &&
10776
+ aabb1.minY <= aabb2.maxY &&
10777
+ aabb1.maxY >= aabb2.minY);
10778
+ }
10799
10779
 
10780
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/distanceToPointSquared.js
10781
+ function distanceToPointSquared(aabb, point) {
10782
+ const aabbWidth = aabb.maxX - aabb.minX;
10783
+ const aabbHeight = aabb.maxY - aabb.minY;
10784
+ const aabbSize = [aabbWidth, aabbHeight];
10785
+ const aabbCenter = [
10786
+ aabb.minX + aabbWidth / 2,
10787
+ aabb.minY + aabbHeight / 2,
10788
+ ];
10789
+ const translatedPoint = [
10790
+ Math.abs(point[0] - aabbCenter[0]),
10791
+ Math.abs(point[1] - aabbCenter[1]),
10792
+ ];
10793
+ const dx = translatedPoint[0] - aabbSize[0] * 0.5;
10794
+ const dy = translatedPoint[1] - aabbSize[1] * 0.5;
10795
+ if (dx > 0 && dy > 0) {
10796
+ return dx * dx + dy * dy;
10797
+ }
10798
+ const dist = Math.max(dx, 0) + Math.max(dy, 0);
10799
+ return dist * dist;
10800
+ }
10800
10801
 
10802
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/distanceToPoint.js
10803
+ /* unused harmony import specifier */ var distanceToPoint_distanceToPointSquared;
10801
10804
 
10805
+ function distanceToPoint(aabb, point) {
10806
+ return Math.sqrt(distanceToPoint_distanceToPointSquared(aabb, point));
10807
+ }
10802
10808
 
10809
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/index.js
10803
10810
 
10804
10811
 
10805
10812
 
10806
10813
 
10814
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/basic/index.js
10815
+ var basic = __webpack_require__(73262);
10816
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/index.js
10817
+ var circle = __webpack_require__(3336);
10818
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/index.js + 1 modules
10819
+ var ellipse = __webpack_require__(11683);
10820
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/index.js
10821
+ var line = __webpack_require__(93258);
10822
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js + 1 modules
10823
+ var point = __webpack_require__(5767);
10824
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js
10825
+ var polyline = __webpack_require__(92984);
10826
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/rectangle/index.js
10827
+ var rectangle = __webpack_require__(33657);
10828
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/index.js
10829
+ var vec2 = __webpack_require__(23324);
10830
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/angle/index.js
10831
+ var angle = __webpack_require__(83923);
10832
+ ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/index.js
10807
10833
 
10808
10834
 
10809
10835
 
10810
- /***/ }),
10811
10836
 
10812
- /***/ 18989:
10813
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10814
10837
 
10815
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10816
- /* harmony export */ A: () => (/* binding */ distanceToPointSquared)
10817
- /* harmony export */ });
10818
- /* harmony import */ var _distanceToPointSquaredInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73149);
10819
10838
 
10820
- function distanceToPointSquared(lineStart, lineEnd, point) {
10821
- return (0,_distanceToPointSquaredInfo__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(lineStart, lineEnd, point).distanceSquared;
10822
- }
10823
10839
 
10824
10840
 
10825
- /***/ }),
10826
10841
 
10827
- /***/ 73149:
10828
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10829
10842
 
10830
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10831
- /* harmony export */ A: () => (/* binding */ distanceToPointSquaredInfo)
10832
- /* harmony export */ });
10833
- /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82216);
10834
10843
 
10835
- function distanceToPointSquaredInfo(lineStart, lineEnd, point) {
10836
- let closestPoint;
10837
- const distanceSquared = (0,_point__WEBPACK_IMPORTED_MODULE_0__.distanceToPointSquared)(lineStart, lineEnd);
10838
- if (lineStart[0] === lineEnd[0] && lineStart[1] === lineEnd[1]) {
10839
- closestPoint = lineStart;
10840
- }
10841
- if (!closestPoint) {
10842
- const dotProduct = ((point[0] - lineStart[0]) * (lineEnd[0] - lineStart[0]) +
10843
- (point[1] - lineStart[1]) * (lineEnd[1] - lineStart[1])) /
10844
- distanceSquared;
10845
- if (dotProduct < 0) {
10846
- closestPoint = lineStart;
10847
- }
10848
- else if (dotProduct > 1) {
10849
- closestPoint = lineEnd;
10850
- }
10851
- else {
10852
- closestPoint = [
10853
- lineStart[0] + dotProduct * (lineEnd[0] - lineStart[0]),
10854
- lineStart[1] + dotProduct * (lineEnd[1] - lineStart[1]),
10855
- ];
10856
- }
10857
- }
10858
- return {
10859
- point: [...closestPoint],
10860
- distanceSquared: (0,_point__WEBPACK_IMPORTED_MODULE_0__.distanceToPointSquared)(point, closestPoint),
10861
- };
10862
- }
10863
10844
 
10864
10845
 
10865
- /***/ }),
10846
+ /***/ },
10866
10847
 
10867
- /***/ 93258:
10868
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10848
+ /***/ 93258
10849
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10869
10850
 
10870
10851
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10871
10852
  /* harmony export */ distanceToPoint: () => (/* reexport safe */ _distanceToPoint__WEBPACK_IMPORTED_MODULE_0__.A),
@@ -10886,38 +10867,10 @@ function distanceToPointSquaredInfo(lineStart, lineEnd, point) {
10886
10867
 
10887
10868
 
10888
10869
 
10889
- /***/ }),
10890
-
10891
- /***/ 91818:
10892
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10893
-
10894
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10895
- /* harmony export */ A: () => (/* binding */ isPointOnLineSegment)
10896
- /* harmony export */ });
10897
- const ORIENTATION_TOLERANCE = 1e-2;
10898
- function isPointOnLineSegment(lineStart, lineEnd, point) {
10899
- const minX = lineStart[0] <= lineEnd[0] ? lineStart[0] : lineEnd[0];
10900
- const maxX = lineStart[0] >= lineEnd[0] ? lineStart[0] : lineEnd[0];
10901
- const minY = lineStart[1] <= lineEnd[1] ? lineStart[1] : lineEnd[1];
10902
- const maxY = lineStart[1] >= lineEnd[1] ? lineStart[1] : lineEnd[1];
10903
- const aabbContainsPoint = point[0] >= minX - ORIENTATION_TOLERANCE &&
10904
- point[0] <= maxX + ORIENTATION_TOLERANCE &&
10905
- point[1] >= minY - ORIENTATION_TOLERANCE &&
10906
- point[1] <= maxY + ORIENTATION_TOLERANCE;
10907
- if (!aabbContainsPoint) {
10908
- return false;
10909
- }
10910
- const orientation = (lineEnd[1] - lineStart[1]) * (point[0] - lineEnd[0]) -
10911
- (lineEnd[0] - lineStart[0]) * (point[1] - lineEnd[1]);
10912
- const absOrientation = orientation >= 0 ? orientation : -orientation;
10913
- return absOrientation <= ORIENTATION_TOLERANCE;
10914
- }
10915
-
10870
+ /***/ },
10916
10871
 
10917
- /***/ }),
10918
-
10919
- /***/ 82216:
10920
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10872
+ /***/ 5767
10873
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10921
10874
 
10922
10875
  // ESM COMPAT FLAG
10923
10876
  __webpack_require__.r(__webpack_exports__);
@@ -10925,881 +10878,107 @@ __webpack_require__.r(__webpack_exports__);
10925
10878
  // EXPORTS
10926
10879
  __webpack_require__.d(__webpack_exports__, {
10927
10880
  distanceToPoint: () => (/* reexport */ distanceToPoint),
10928
- distanceToPointSquared: () => (/* reexport */ distanceToPointSquared),
10929
- mirror: () => (/* reexport */ mirror)
10881
+ distanceToPointSquared: () => (/* reexport */ distanceToPointSquared/* default */.A),
10882
+ mirror: () => (/* reexport */ mirror/* default */.A)
10930
10883
  });
10931
10884
 
10932
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/distanceToPointSquared.js
10933
- function distanceToPointSquared(p1, p2) {
10934
- if (p1.length !== p2.length) {
10935
- throw Error('Both points should have the same dimensionality');
10936
- }
10937
- const [x1, y1, z1 = 0] = p1;
10938
- const [x2, y2, z2 = 0] = p2;
10939
- const dx = x2 - x1;
10940
- const dy = y2 - y1;
10941
- const dz = z2 - z1;
10942
- return dx * dx + dy * dy + dz * dz;
10943
- }
10944
-
10885
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/distanceToPointSquared.js
10886
+ var distanceToPointSquared = __webpack_require__(31489);
10945
10887
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/distanceToPoint.js
10946
10888
 
10947
10889
  function distanceToPoint(p1, p2) {
10948
- return Math.sqrt(distanceToPointSquared(p1, p2));
10949
- }
10950
-
10951
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/mirror.js
10952
- function mirror(mirrorPoint, staticPoint) {
10953
- const [x1, y1] = mirrorPoint;
10954
- const [x2, y2] = staticPoint;
10955
- const newX = 2 * x2 - x1;
10956
- const newY = 2 * y2 - y1;
10957
- return [newX, newY];
10890
+ return Math.sqrt((0,distanceToPointSquared/* default */.A)(p1, p2));
10958
10891
  }
10959
10892
 
10893
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/mirror.js
10894
+ var mirror = __webpack_require__(83483);
10960
10895
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js
10961
10896
 
10962
10897
 
10963
10898
 
10964
10899
 
10965
10900
 
10966
- /***/ }),
10901
+ /***/ },
10967
10902
 
10968
- /***/ 97792:
10969
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10903
+ /***/ 98122
10904
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10970
10905
 
10971
10906
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10972
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
10907
+ /* harmony export */ A: () => (/* binding */ getAABB)
10973
10908
  /* harmony export */ });
10974
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
10975
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
10976
-
10977
-
10978
- const addCanvasPointsToArray = (element, canvasPoints, newCanvasPoint, commonData) => {
10979
- const { xDir, yDir, spacing } = commonData;
10980
- const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
10981
- const { viewport } = enabledElement;
10982
- if (!canvasPoints.length) {
10983
- canvasPoints.push(newCanvasPoint);
10984
- console.log('>>>>> !canvasPoints. :: RETURN');
10985
- return 1;
10986
- }
10987
- const lastWorldPos = viewport.canvasToWorld(canvasPoints[canvasPoints.length - 1]);
10988
- const newWorldPos = viewport.canvasToWorld(newCanvasPoint);
10989
- const worldPosDiff = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create();
10990
- gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.subtract */ .eR.subtract(worldPosDiff, newWorldPos, lastWorldPos);
10991
- const xDist = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(worldPosDiff, xDir));
10992
- const yDist = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(worldPosDiff, yDir));
10993
- const numPointsToAdd = Math.max(Math.floor(xDist / spacing[0]), Math.floor(yDist / spacing[0]));
10994
- if (numPointsToAdd > 1) {
10995
- const lastCanvasPoint = canvasPoints[canvasPoints.length - 1];
10996
- const canvasDist = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dist */ .Zc.dist(lastCanvasPoint, newCanvasPoint);
10997
- const canvasDir = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create();
10998
- gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(canvasDir, newCanvasPoint, lastCanvasPoint);
10999
- gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.set */ .Zc.set(canvasDir, canvasDir[0] / canvasDist, canvasDir[1] / canvasDist);
11000
- const distPerPoint = canvasDist / numPointsToAdd;
11001
- for (let i = 1; i <= numPointsToAdd; i++) {
11002
- canvasPoints.push([
11003
- lastCanvasPoint[0] + distPerPoint * canvasDir[0] * i,
11004
- lastCanvasPoint[1] + distPerPoint * canvasDir[1] * i,
11005
- ]);
10909
+ function getAABB(polyline, options) {
10910
+ let polylineToUse = polyline;
10911
+ const numDimensions = options?.numDimensions || 2;
10912
+ const is3D = numDimensions === 3;
10913
+ if (!Array.isArray(polyline[0])) {
10914
+ const currentPolyline = polyline;
10915
+ const totalPoints = currentPolyline.length / numDimensions;
10916
+ polylineToUse = new Array(currentPolyline.length / numDimensions);
10917
+ for (let i = 0, len = totalPoints; i < len; i++) {
10918
+ polylineToUse[i] = [
10919
+ currentPolyline[i * numDimensions],
10920
+ currentPolyline[i * numDimensions + 1],
10921
+ ];
10922
+ if (is3D) {
10923
+ polylineToUse[i].push(currentPolyline[i * numDimensions + 2]);
10924
+ }
11006
10925
  }
11007
10926
  }
11008
- else {
11009
- canvasPoints.push(newCanvasPoint);
10927
+ let minX = Infinity;
10928
+ let minY = Infinity;
10929
+ let maxX = -Infinity;
10930
+ let maxY = -Infinity;
10931
+ let minZ = Infinity;
10932
+ let maxZ = -Infinity;
10933
+ polylineToUse = polylineToUse;
10934
+ for (let i = 0, len = polylineToUse.length; i < len; i++) {
10935
+ const [x, y, z] = polylineToUse[i];
10936
+ minX = minX < x ? minX : x;
10937
+ minY = minY < y ? minY : y;
10938
+ maxX = maxX > x ? maxX : x;
10939
+ maxY = maxY > y ? maxY : y;
10940
+ if (is3D) {
10941
+ minZ = minZ < z ? minZ : z;
10942
+ maxZ = maxZ > z ? maxZ : z;
10943
+ }
11010
10944
  }
11011
- return numPointsToAdd;
11012
- };
11013
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (addCanvasPointsToArray);
10945
+ return is3D
10946
+ ? { minX, maxX, minY, maxY, minZ, maxZ }
10947
+ : { minX, maxX, minY, maxY };
10948
+ }
11014
10949
 
11015
10950
 
11016
- /***/ }),
10951
+ /***/ },
11017
10952
 
11018
- /***/ 56777:
11019
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10953
+ /***/ 50932
10954
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11020
10955
 
11021
10956
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11022
- /* harmony export */ A: () => (/* binding */ areLineSegmentsIntersecting)
10957
+ /* harmony export */ A: () => (/* binding */ getLineSegmentIntersectionsCoordinates)
11023
10958
  /* harmony export */ });
11024
- function areLineSegmentsIntersecting(p1, q1, p2, q2) {
11025
- let result = false;
11026
- const line1MinX = p1[0] < q1[0] ? p1[0] : q1[0];
11027
- const line1MinY = p1[1] < q1[1] ? p1[1] : q1[1];
11028
- const line1MaxX = p1[0] > q1[0] ? p1[0] : q1[0];
11029
- const line1MaxY = p1[1] > q1[1] ? p1[1] : q1[1];
11030
- const line2MinX = p2[0] < q2[0] ? p2[0] : q2[0];
11031
- const line2MinY = p2[1] < q2[1] ? p2[1] : q2[1];
11032
- const line2MaxX = p2[0] > q2[0] ? p2[0] : q2[0];
11033
- const line2MaxY = p2[1] > q2[1] ? p2[1] : q2[1];
11034
- if (line1MinX > line2MaxX ||
11035
- line1MaxX < line2MinX ||
11036
- line1MinY > line2MaxY ||
11037
- line1MaxY < line2MinY) {
11038
- return false;
11039
- }
11040
- const orient = [
11041
- orientation(p1, q1, p2),
11042
- orientation(p1, q1, q2),
11043
- orientation(p2, q2, p1),
11044
- orientation(p2, q2, q1),
11045
- ];
11046
- if (orient[0] !== orient[1] && orient[2] !== orient[3]) {
11047
- return true;
11048
- }
11049
- if (orient[0] === 0 && onSegment(p1, p2, q1)) {
11050
- result = true;
11051
- }
11052
- else if (orient[1] === 0 && onSegment(p1, q2, q1)) {
11053
- result = true;
11054
- }
11055
- else if (orient[2] === 0 && onSegment(p2, p1, q2)) {
11056
- result = true;
11057
- }
11058
- else if (orient[3] === 0 && onSegment(p2, q1, q2)) {
11059
- result = true;
10959
+ /* harmony import */ var _getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37135);
10960
+ /* harmony import */ var _getLinesIntersection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10812);
10961
+
10962
+
10963
+ function getLineSegmentIntersectionsCoordinates(points, p1, q1, closed = true) {
10964
+ const result = [];
10965
+ const polylineIndexes = (0,_getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(points, p1, q1, closed);
10966
+ for (let i = 0; i < polylineIndexes.length; i++) {
10967
+ const p2 = points[polylineIndexes[i][0]];
10968
+ const q2 = points[polylineIndexes[i][1]];
10969
+ const intersection = (0,_getLinesIntersection__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(p1, q1, p2, q2);
10970
+ result.push(intersection);
11060
10971
  }
11061
10972
  return result;
11062
10973
  }
11063
- function orientation(p, q, r) {
11064
- const orientationValue = (q[1] - p[1]) * (r[0] - q[0]) - (q[0] - p[0]) * (r[1] - q[1]);
11065
- if (orientationValue === 0) {
11066
- return 0;
11067
- }
11068
- return orientationValue > 0 ? 1 : 2;
11069
- }
11070
- function onSegment(p, q, r) {
11071
- if (q[0] <= Math.max(p[0], r[0]) &&
11072
- q[0] >= Math.min(p[0], r[0]) &&
11073
- q[1] <= Math.max(p[1], r[1]) &&
11074
- q[1] >= Math.min(p[1], r[1])) {
11075
- return true;
11076
- }
11077
- return false;
11078
- }
11079
10974
 
11080
10975
 
11081
- /***/ }),
10976
+ /***/ },
11082
10977
 
11083
- /***/ 68385:
11084
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10978
+ /***/ 92984
10979
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11085
10980
 
11086
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11087
- /* harmony export */ S: () => (/* binding */ mergePolylines)
11088
- /* harmony export */ });
11089
- /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82216);
11090
- /* harmony import */ var _getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37135);
11091
- /* harmony import */ var _containsPoint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46513);
11092
- /* harmony import */ var _containsPoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42436);
11093
- /* harmony import */ var _intersectPolyline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(405);
11094
- /* harmony import */ var _getNormal2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11377);
11095
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3823);
11096
- /* harmony import */ var _getLinesIntersection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10812);
11097
-
11098
-
11099
-
11100
-
11101
-
11102
-
11103
-
11104
-
11105
- var PolylinePointType;
11106
- (function (PolylinePointType) {
11107
- PolylinePointType[PolylinePointType["Vertex"] = 0] = "Vertex";
11108
- PolylinePointType[PolylinePointType["Intersection"] = 1] = "Intersection";
11109
- })(PolylinePointType || (PolylinePointType = {}));
11110
- var PolylinePointPosition;
11111
- (function (PolylinePointPosition) {
11112
- PolylinePointPosition[PolylinePointPosition["Outside"] = -1] = "Outside";
11113
- PolylinePointPosition[PolylinePointPosition["Edge"] = 0] = "Edge";
11114
- PolylinePointPosition[PolylinePointPosition["Inside"] = 1] = "Inside";
11115
- })(PolylinePointPosition || (PolylinePointPosition = {}));
11116
- var PolylinePointDirection;
11117
- (function (PolylinePointDirection) {
11118
- PolylinePointDirection[PolylinePointDirection["Exiting"] = -1] = "Exiting";
11119
- PolylinePointDirection[PolylinePointDirection["Unknown"] = 0] = "Unknown";
11120
- PolylinePointDirection[PolylinePointDirection["Entering"] = 1] = "Entering";
11121
- })(PolylinePointDirection || (PolylinePointDirection = {}));
11122
- function ensuresNextPointers(polylinePoints) {
11123
- for (let i = 0, len = polylinePoints.length; i < len; i++) {
11124
- const currentPoint = polylinePoints[i];
11125
- if (!currentPoint.next) {
11126
- currentPoint.next = polylinePoints[i === len - 1 ? 0 : i + 1];
11127
- }
11128
- }
11129
- }
11130
- function getSourceAndTargetPointsList(targetPolyline, sourcePolyline) {
11131
- const targetPolylinePoints = [];
11132
- const sourcePolylinePoints = [];
11133
- const sourceIntersectionsCache = new Map();
11134
- const isFirstPointInside = (0,_containsPoint__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(sourcePolyline, targetPolyline[0]);
11135
- let intersectionPointDirection = isFirstPointInside
11136
- ? PolylinePointDirection.Exiting
11137
- : PolylinePointDirection.Entering;
11138
- for (let i = 0, len = targetPolyline.length; i < len; i++) {
11139
- const p1 = targetPolyline[i];
11140
- const pointInside = (0,_containsPoint__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(sourcePolyline, p1);
11141
- const vertexPoint = {
11142
- type: PolylinePointType.Vertex,
11143
- coordinates: p1,
11144
- position: pointInside
11145
- ? PolylinePointPosition.Inside
11146
- : PolylinePointPosition.Outside,
11147
- visited: false,
11148
- next: null,
11149
- };
11150
- targetPolylinePoints.push(vertexPoint);
11151
- const q1 = targetPolyline[i === len - 1 ? 0 : i + 1];
11152
- const intersectionsInfo = (0,_getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(sourcePolyline, p1, q1).map((intersectedLineSegment) => {
11153
- const sourceLineSegmentId = intersectedLineSegment[0];
11154
- const p2 = sourcePolyline[intersectedLineSegment[0]];
11155
- const q2 = sourcePolyline[intersectedLineSegment[1]];
11156
- const intersectionCoordinate = (0,_getLinesIntersection__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)(p1, q1, p2, q2);
11157
- const targetStartPointDistSquared = _point__WEBPACK_IMPORTED_MODULE_0__.distanceToPointSquared(p1, intersectionCoordinate);
11158
- return {
11159
- sourceLineSegmentId,
11160
- coordinate: intersectionCoordinate,
11161
- targetStartPointDistSquared,
11162
- };
11163
- });
11164
- intersectionsInfo.sort((left, right) => left.targetStartPointDistSquared - right.targetStartPointDistSquared);
11165
- intersectionsInfo.forEach((intersectionInfo) => {
11166
- const { sourceLineSegmentId, coordinate: intersectionCoordinate } = intersectionInfo;
11167
- const targetEdgePoint = {
11168
- type: PolylinePointType.Intersection,
11169
- coordinates: intersectionCoordinate,
11170
- position: PolylinePointPosition.Edge,
11171
- direction: intersectionPointDirection,
11172
- visited: false,
11173
- next: null,
11174
- };
11175
- const sourceEdgePoint = {
11176
- ...targetEdgePoint,
11177
- direction: PolylinePointDirection.Unknown,
11178
- cloned: true,
11179
- };
11180
- if (intersectionPointDirection === PolylinePointDirection.Entering) {
11181
- targetEdgePoint.next = sourceEdgePoint;
11182
- }
11183
- else {
11184
- sourceEdgePoint.next = targetEdgePoint;
11185
- }
11186
- let sourceIntersectionPoints = sourceIntersectionsCache.get(sourceLineSegmentId);
11187
- if (!sourceIntersectionPoints) {
11188
- sourceIntersectionPoints = [];
11189
- sourceIntersectionsCache.set(sourceLineSegmentId, sourceIntersectionPoints);
11190
- }
11191
- targetPolylinePoints.push(targetEdgePoint);
11192
- sourceIntersectionPoints.push(sourceEdgePoint);
11193
- intersectionPointDirection *= -1;
11194
- });
11195
- }
11196
- for (let i = 0, len = sourcePolyline.length; i < len; i++) {
11197
- const lineSegmentId = i;
11198
- const p1 = sourcePolyline[i];
11199
- const vertexPoint = {
11200
- type: PolylinePointType.Vertex,
11201
- coordinates: p1,
11202
- visited: false,
11203
- next: null,
11204
- };
11205
- sourcePolylinePoints.push(vertexPoint);
11206
- const sourceIntersectionPoints = sourceIntersectionsCache.get(lineSegmentId);
11207
- if (!sourceIntersectionPoints?.length) {
11208
- continue;
11209
- }
11210
- sourceIntersectionPoints
11211
- .map((intersectionPoint) => ({
11212
- intersectionPoint,
11213
- lineSegStartDistSquared: _point__WEBPACK_IMPORTED_MODULE_0__.distanceToPointSquared(p1, intersectionPoint.coordinates),
11214
- }))
11215
- .sort((left, right) => left.lineSegStartDistSquared - right.lineSegStartDistSquared)
11216
- .map(({ intersectionPoint }) => intersectionPoint)
11217
- .forEach((intersectionPoint) => sourcePolylinePoints.push(intersectionPoint));
11218
- }
11219
- ensuresNextPointers(targetPolylinePoints);
11220
- ensuresNextPointers(sourcePolylinePoints);
11221
- return { targetPolylinePoints, sourcePolylinePoints };
11222
- }
11223
- function getUnvisitedOutsidePoint(polylinePoints) {
11224
- for (let i = 0, len = polylinePoints.length; i < len; i++) {
11225
- const point = polylinePoints[i];
11226
- if (!point.visited &&
11227
- point.position === PolylinePointPosition.Outside &&
11228
- point.type === PolylinePointType.Vertex) {
11229
- return point;
11230
- }
11231
- }
11232
- for (let i = 0, len = polylinePoints.length; i < len; i++) {
11233
- const point = polylinePoints[i];
11234
- if (!point.visited && point.position === PolylinePointPosition.Outside) {
11235
- return point;
11236
- }
11237
- }
11238
- return undefined;
11239
- }
11240
- function mergePolylines(targetPolyline, sourcePolyline) {
11241
- const targetNormal = (0,_getNormal2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(targetPolyline);
11242
- const sourceNormal = (0,_getNormal2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(sourcePolyline);
11243
- const dotNormals = gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .vec3.dot */ .eR.dot(sourceNormal, targetNormal);
11244
- if (!gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .glMatrix.equals */ .Fd.equals(1, dotNormals)) {
11245
- sourcePolyline = sourcePolyline.slice().reverse();
11246
- }
11247
- const lineSegmentsIntersect = (0,_intersectPolyline__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(sourcePolyline, targetPolyline);
11248
- const targetContainedInSource = !lineSegmentsIntersect && (0,_containsPoints__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(sourcePolyline, targetPolyline);
11249
- if (targetContainedInSource) {
11250
- return sourcePolyline.slice();
11251
- }
11252
- const { targetPolylinePoints } = getSourceAndTargetPointsList(targetPolyline, sourcePolyline);
11253
- const startPoint = getUnvisitedOutsidePoint(targetPolylinePoints);
11254
- if (!startPoint) {
11255
- return targetPolyline.slice();
11256
- }
11257
- const mergedPolyline = [startPoint.coordinates];
11258
- let currentPoint = startPoint.next;
11259
- let iterationCount = 0;
11260
- const maxIterations = targetPolyline.length + sourcePolyline.length + 1000;
11261
- while (currentPoint !== startPoint && iterationCount < maxIterations) {
11262
- iterationCount++;
11263
- if (currentPoint.type === PolylinePointType.Intersection &&
11264
- currentPoint.cloned) {
11265
- currentPoint = currentPoint.next;
11266
- continue;
11267
- }
11268
- mergedPolyline.push(currentPoint.coordinates);
11269
- currentPoint = currentPoint.next;
11270
- if (!currentPoint) {
11271
- console.warn('Broken linked list detected in mergePolylines, breaking loop');
11272
- break;
11273
- }
11274
- }
11275
- if (iterationCount >= maxIterations) {
11276
- console.warn('Maximum iterations reached in mergePolylines, possible infinite loop detected');
11277
- }
11278
- return mergedPolyline;
11279
- }
11280
-
11281
-
11282
-
11283
- /***/ }),
11284
-
11285
- /***/ 46513:
11286
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11287
-
11288
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11289
- /* harmony export */ A: () => (/* binding */ containsPoint)
11290
- /* harmony export */ });
11291
- /* harmony import */ var _isClosed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19246);
11292
-
11293
- function containsPoint(polyline, point, options = {
11294
- closed: undefined,
11295
- }) {
11296
- if (polyline.length < 3) {
11297
- return false;
11298
- }
11299
- const numPolylinePoints = polyline.length;
11300
- let numIntersections = 0;
11301
- const { closed, holes } = options;
11302
- if (holes?.length) {
11303
- for (const hole of holes) {
11304
- if (containsPoint(hole, point)) {
11305
- return false;
11306
- }
11307
- }
11308
- }
11309
- const shouldClose = !(closed === undefined ? (0,_isClosed__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(polyline) : closed);
11310
- const maxSegmentIndex = polyline.length - (shouldClose ? 1 : 2);
11311
- for (let i = 0; i <= maxSegmentIndex; i++) {
11312
- const p1 = polyline[i];
11313
- const p2Index = i === numPolylinePoints - 1 ? 0 : i + 1;
11314
- const p2 = polyline[p2Index];
11315
- const maxX = p1[0] >= p2[0] ? p1[0] : p2[0];
11316
- const maxY = p1[1] >= p2[1] ? p1[1] : p2[1];
11317
- const minY = p1[1] <= p2[1] ? p1[1] : p2[1];
11318
- const mayIntersectLineSegment = point[0] <= maxX && point[1] >= minY && point[1] < maxY;
11319
- if (mayIntersectLineSegment) {
11320
- const isVerticalLine = p1[0] === p2[0];
11321
- let intersects = isVerticalLine;
11322
- if (!intersects) {
11323
- const xIntersection = ((point[1] - p1[1]) * (p2[0] - p1[0])) / (p2[1] - p1[1]) + p1[0];
11324
- intersects = point[0] <= xIntersection;
11325
- }
11326
- numIntersections += intersects ? 1 : 0;
11327
- }
11328
- }
11329
- return !!(numIntersections % 2);
11330
- }
11331
-
11332
-
11333
- /***/ }),
11334
-
11335
- /***/ 58754:
11336
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11337
-
11338
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11339
- /* harmony export */ A: () => (/* binding */ convexHull)
11340
- /* harmony export */ });
11341
- function convexHull(pts) {
11342
- if (pts.length < 3) {
11343
- return pts.slice();
11344
- }
11345
- const points = pts
11346
- .map((p) => [p[0], p[1]])
11347
- .sort((a, b) => a[0] === b[0] ? a[1] - b[1] : a[0] - b[0]);
11348
- function cross(o, a, b) {
11349
- return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]);
11350
- }
11351
- const lower = [];
11352
- for (const p of points) {
11353
- while (lower.length >= 2 &&
11354
- cross(lower[lower.length - 2], lower[lower.length - 1], p) <= 0) {
11355
- lower.pop();
11356
- }
11357
- lower.push(p);
11358
- }
11359
- const upper = [];
11360
- for (let i = points.length - 1; i >= 0; i--) {
11361
- const p = points[i];
11362
- while (upper.length >= 2 &&
11363
- cross(upper[upper.length - 2], upper[upper.length - 1], p) <= 0) {
11364
- upper.pop();
11365
- }
11366
- upper.push(p);
11367
- }
11368
- lower.pop();
11369
- upper.pop();
11370
- return lower.concat(upper);
11371
- }
11372
-
11373
-
11374
- /***/ }),
11375
-
11376
- /***/ 98122:
11377
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11378
-
11379
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11380
- /* harmony export */ A: () => (/* binding */ getAABB)
11381
- /* harmony export */ });
11382
- function getAABB(polyline, options) {
11383
- let polylineToUse = polyline;
11384
- const numDimensions = options?.numDimensions || 2;
11385
- const is3D = numDimensions === 3;
11386
- if (!Array.isArray(polyline[0])) {
11387
- const currentPolyline = polyline;
11388
- const totalPoints = currentPolyline.length / numDimensions;
11389
- polylineToUse = new Array(currentPolyline.length / numDimensions);
11390
- for (let i = 0, len = totalPoints; i < len; i++) {
11391
- polylineToUse[i] = [
11392
- currentPolyline[i * numDimensions],
11393
- currentPolyline[i * numDimensions + 1],
11394
- ];
11395
- if (is3D) {
11396
- polylineToUse[i].push(currentPolyline[i * numDimensions + 2]);
11397
- }
11398
- }
11399
- }
11400
- let minX = Infinity;
11401
- let minY = Infinity;
11402
- let maxX = -Infinity;
11403
- let maxY = -Infinity;
11404
- let minZ = Infinity;
11405
- let maxZ = -Infinity;
11406
- polylineToUse = polylineToUse;
11407
- for (let i = 0, len = polylineToUse.length; i < len; i++) {
11408
- const [x, y, z] = polylineToUse[i];
11409
- minX = minX < x ? minX : x;
11410
- minY = minY < y ? minY : y;
11411
- maxX = maxX > x ? maxX : x;
11412
- maxY = maxY > y ? maxY : y;
11413
- if (is3D) {
11414
- minZ = minZ < z ? minZ : z;
11415
- maxZ = maxZ > z ? maxZ : z;
11416
- }
11417
- }
11418
- return is3D
11419
- ? { minX, maxX, minY, maxY, minZ, maxZ }
11420
- : { minX, maxX, minY, maxY };
11421
- }
11422
-
11423
-
11424
- /***/ }),
11425
-
11426
- /***/ 86909:
11427
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11428
-
11429
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11430
- /* harmony export */ A: () => (/* binding */ getArea)
11431
- /* harmony export */ });
11432
- function getArea(points) {
11433
- const n = points.length;
11434
- let area = 0.0;
11435
- let j = n - 1;
11436
- for (let i = 0; i < n; i++) {
11437
- area += (points[j][0] + points[i][0]) * (points[j][1] - points[i][1]);
11438
- j = i;
11439
- }
11440
- return Math.abs(area / 2.0);
11441
- }
11442
-
11443
-
11444
- /***/ }),
11445
-
11446
- /***/ 32979:
11447
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11448
-
11449
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11450
- /* harmony export */ A: () => (/* binding */ getClosestLineSegmentIntersection)
11451
- /* harmony export */ });
11452
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
11453
- /* harmony import */ var _areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56777);
11454
-
11455
-
11456
- function getClosestLineSegmentIntersection(points, p1, q1, closed = true) {
11457
- let initialQ2Index;
11458
- let p2Index;
11459
- if (closed) {
11460
- p2Index = points.length - 1;
11461
- initialQ2Index = 0;
11462
- }
11463
- else {
11464
- p2Index = 0;
11465
- initialQ2Index = 1;
11466
- }
11467
- const intersections = [];
11468
- for (let q2Index = initialQ2Index; q2Index < points.length; q2Index++) {
11469
- const p2 = points[p2Index];
11470
- const q2 = points[q2Index];
11471
- if ((0,_areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(p1, q1, p2, q2)) {
11472
- intersections.push([p2Index, q2Index]);
11473
- }
11474
- p2Index = q2Index;
11475
- }
11476
- if (intersections.length === 0) {
11477
- return;
11478
- }
11479
- const distances = [];
11480
- intersections.forEach((intersection) => {
11481
- const intersectionPoints = [
11482
- points[intersection[0]],
11483
- points[intersection[1]],
11484
- ];
11485
- const midpoint = [
11486
- (intersectionPoints[0][0] + intersectionPoints[1][0]) / 2,
11487
- (intersectionPoints[0][1] + intersectionPoints[1][1]) / 2,
11488
- ];
11489
- distances.push(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.distance */ .Zc.distance(midpoint, p1));
11490
- });
11491
- const minDistance = Math.min(...distances);
11492
- const indexOfMinDistance = distances.indexOf(minDistance);
11493
- return {
11494
- segment: intersections[indexOfMinDistance],
11495
- distance: minDistance,
11496
- };
11497
- }
11498
-
11499
-
11500
- /***/ }),
11501
-
11502
- /***/ 4338:
11503
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11504
-
11505
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11506
- /* harmony export */ A: () => (/* binding */ getFirstLineSegmentIntersectionIndexes)
11507
- /* harmony export */ });
11508
- /* harmony import */ var _areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56777);
11509
-
11510
- function getFirstLineSegmentIntersectionIndexes(points, p1, q1, closed = true) {
11511
- let initialI;
11512
- let j;
11513
- if (closed) {
11514
- j = points.length - 1;
11515
- initialI = 0;
11516
- }
11517
- else {
11518
- j = 0;
11519
- initialI = 1;
11520
- }
11521
- for (let i = initialI; i < points.length; i++) {
11522
- const p2 = points[j];
11523
- const q2 = points[i];
11524
- if ((0,_areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(p1, q1, p2, q2)) {
11525
- return [j, i];
11526
- }
11527
- j = i;
11528
- }
11529
- }
11530
-
11531
-
11532
- /***/ }),
11533
-
11534
- /***/ 50932:
11535
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11536
-
11537
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11538
- /* harmony export */ A: () => (/* binding */ getLineSegmentIntersectionsCoordinates)
11539
- /* harmony export */ });
11540
- /* harmony import */ var _getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37135);
11541
- /* harmony import */ var _getLinesIntersection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10812);
11542
-
11543
-
11544
- function getLineSegmentIntersectionsCoordinates(points, p1, q1, closed = true) {
11545
- const result = [];
11546
- const polylineIndexes = (0,_getLineSegmentIntersectionsIndexes__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(points, p1, q1, closed);
11547
- for (let i = 0; i < polylineIndexes.length; i++) {
11548
- const p2 = points[polylineIndexes[i][0]];
11549
- const q2 = points[polylineIndexes[i][1]];
11550
- const intersection = (0,_getLinesIntersection__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(p1, q1, p2, q2);
11551
- result.push(intersection);
11552
- }
11553
- return result;
11554
- }
11555
-
11556
-
11557
- /***/ }),
11558
-
11559
- /***/ 37135:
11560
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11561
-
11562
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11563
- /* harmony export */ A: () => (/* binding */ getLineSegmentIntersectionsIndexes)
11564
- /* harmony export */ });
11565
- /* harmony import */ var _areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56777);
11566
-
11567
- function getLineSegmentIntersectionsIndexes(polyline, p1, q1, closed = true) {
11568
- const intersections = [];
11569
- const numPoints = polyline.length;
11570
- const maxI = numPoints - (closed ? 1 : 2);
11571
- for (let i = 0; i <= maxI; i++) {
11572
- const p2 = polyline[i];
11573
- const j = i === numPoints - 1 ? 0 : i + 1;
11574
- const q2 = polyline[j];
11575
- if ((0,_areLineSegmentsIntersecting__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(p1, q1, p2, q2)) {
11576
- intersections.push([i, j]);
11577
- }
11578
- }
11579
- return intersections;
11580
- }
11581
-
11582
-
11583
- /***/ }),
11584
-
11585
- /***/ 10812:
11586
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11587
-
11588
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11589
- /* harmony export */ A: () => (/* binding */ getLinesIntersection)
11590
- /* harmony export */ });
11591
- /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93258);
11592
-
11593
- const PARALLEL_LINES_TOLERANCE = 1e-2;
11594
- function getLinesIntersection(p1, q1, p2, q2) {
11595
- const diffQ1P1 = [q1[0] - p1[0], q1[1] - p1[1]];
11596
- const diffQ2P2 = [q2[0] - p2[0], q2[1] - p2[1]];
11597
- const denominator = diffQ2P2[1] * diffQ1P1[0] - diffQ2P2[0] * diffQ1P1[1];
11598
- const absDenominator = denominator >= 0 ? denominator : -denominator;
11599
- if (absDenominator < PARALLEL_LINES_TOLERANCE) {
11600
- const line1AABB = [
11601
- p1[0] < q1[0] ? p1[0] : q1[0],
11602
- p1[0] > q1[0] ? p1[0] : q1[0],
11603
- p1[1] < q1[1] ? p1[1] : q1[1],
11604
- p1[1] > q1[1] ? p1[1] : q1[1],
11605
- ];
11606
- const line2AABB = [
11607
- p2[0] < q2[0] ? p2[0] : q2[0],
11608
- p2[0] > q2[0] ? p2[0] : q2[0],
11609
- p2[1] < q2[1] ? p2[1] : q2[1],
11610
- p2[1] > q2[1] ? p2[1] : q2[1],
11611
- ];
11612
- const aabbIntersects = line1AABB[0] <= line2AABB[1] &&
11613
- line1AABB[1] >= line2AABB[0] &&
11614
- line1AABB[2] <= line2AABB[3] &&
11615
- line1AABB[3] >= line2AABB[2];
11616
- if (!aabbIntersects) {
11617
- return;
11618
- }
11619
- const overlap = _line__WEBPACK_IMPORTED_MODULE_0__.isPointOnLineSegment(p1, q1, p2) ||
11620
- _line__WEBPACK_IMPORTED_MODULE_0__.isPointOnLineSegment(p1, q1, q2) ||
11621
- _line__WEBPACK_IMPORTED_MODULE_0__.isPointOnLineSegment(p2, q2, p1);
11622
- if (!overlap) {
11623
- return;
11624
- }
11625
- const minX = line1AABB[0] > line2AABB[0] ? line1AABB[0] : line2AABB[0];
11626
- const maxX = line1AABB[1] < line2AABB[1] ? line1AABB[1] : line2AABB[1];
11627
- const minY = line1AABB[2] > line2AABB[2] ? line1AABB[2] : line2AABB[2];
11628
- const maxY = line1AABB[3] < line2AABB[3] ? line1AABB[3] : line2AABB[3];
11629
- const midX = (minX + maxX) * 0.5;
11630
- const midY = (minY + maxY) * 0.5;
11631
- return [midX, midY];
11632
- }
11633
- let a = p1[1] - p2[1];
11634
- let b = p1[0] - p2[0];
11635
- const numerator1 = diffQ2P2[0] * a - diffQ2P2[1] * b;
11636
- const numerator2 = diffQ1P1[0] * a - diffQ1P1[1] * b;
11637
- a = numerator1 / denominator;
11638
- b = numerator2 / denominator;
11639
- const resultX = p1[0] + a * diffQ1P1[0];
11640
- const resultY = p1[1] + a * diffQ1P1[1];
11641
- return [resultX, resultY];
11642
- }
11643
-
11644
-
11645
- /***/ }),
11646
-
11647
- /***/ 11377:
11648
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11649
-
11650
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11651
- /* harmony export */ A: () => (/* binding */ getNormal2)
11652
- /* harmony export */ });
11653
- /* harmony import */ var _getSignedArea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63113);
11654
-
11655
- function getNormal2(polyline) {
11656
- const area = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(polyline);
11657
- return [0, 0, area / Math.abs(area)];
11658
- }
11659
-
11660
-
11661
- /***/ }),
11662
-
11663
- /***/ 43490:
11664
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11665
-
11666
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11667
- /* harmony export */ A: () => (/* binding */ getNormal3)
11668
- /* harmony export */ });
11669
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
11670
-
11671
- function _getAreaVector(polyline) {
11672
- const vecArea = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec3.create */ .eR.create();
11673
- const refPoint = polyline[0];
11674
- for (let i = 0, len = polyline.length; i < len; i++) {
11675
- const p1 = polyline[i];
11676
- const p2Index = i === len - 1 ? 0 : i + 1;
11677
- const p2 = polyline[p2Index];
11678
- const aX = p1[0] - refPoint[0];
11679
- const aY = p1[1] - refPoint[1];
11680
- const aZ = p1[2] - refPoint[2];
11681
- const bX = p2[0] - refPoint[0];
11682
- const bY = p2[1] - refPoint[1];
11683
- const bZ = p2[2] - refPoint[2];
11684
- vecArea[0] += aY * bZ - aZ * bY;
11685
- vecArea[1] += aZ * bX - aX * bZ;
11686
- vecArea[2] += aX * bY - aY * bX;
11687
- }
11688
- gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec3.scale */ .eR.scale(vecArea, vecArea, 0.5);
11689
- return vecArea;
11690
- }
11691
- function getNormal3(polyline) {
11692
- const vecArea = _getAreaVector(polyline);
11693
- return gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec3.normalize */ .eR.normalize(vecArea, vecArea);
11694
- }
11695
-
11696
-
11697
- /***/ }),
11698
-
11699
- /***/ 61785:
11700
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11701
-
11702
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11703
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
11704
- /* harmony export */ });
11705
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
11706
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
11707
-
11708
-
11709
- const EPSILON = 1e-3;
11710
- const getSubPixelSpacingAndXYDirections = (viewport, subPixelResolution) => {
11711
- let spacing;
11712
- let xDir;
11713
- let yDir;
11714
- if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.StackViewport) {
11715
- const imageData = viewport.getImageData();
11716
- if (!imageData) {
11717
- return;
11718
- }
11719
- xDir = imageData.direction.slice(0, 3);
11720
- yDir = imageData.direction.slice(3, 6);
11721
- spacing = imageData.spacing;
11722
- }
11723
- else {
11724
- const imageData = viewport.getImageData();
11725
- const { direction, spacing: volumeSpacing } = imageData;
11726
- const { viewPlaneNormal, viewUp } = viewport.getCamera();
11727
- const iVector = direction.slice(0, 3);
11728
- const jVector = direction.slice(3, 6);
11729
- const kVector = direction.slice(6, 9);
11730
- const viewRight = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create();
11731
- gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.cross */ .eR.cross(viewRight, viewUp, viewPlaneNormal);
11732
- const absViewRightDotI = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewRight, iVector));
11733
- const absViewRightDotJ = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewRight, jVector));
11734
- const absViewRightDotK = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewRight, kVector));
11735
- let xSpacing;
11736
- if (Math.abs(1 - absViewRightDotI) < EPSILON) {
11737
- xSpacing = volumeSpacing[0];
11738
- xDir = iVector;
11739
- }
11740
- else if (Math.abs(1 - absViewRightDotJ) < EPSILON) {
11741
- xSpacing = volumeSpacing[1];
11742
- xDir = jVector;
11743
- }
11744
- else if (Math.abs(1 - absViewRightDotK) < EPSILON) {
11745
- xSpacing = volumeSpacing[2];
11746
- xDir = kVector;
11747
- }
11748
- else {
11749
- throw new Error('No support yet for oblique plane planar contours');
11750
- }
11751
- const absViewUpDotI = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewUp, iVector));
11752
- const absViewUpDotJ = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewUp, jVector));
11753
- const absViewUpDotK = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewUp, kVector));
11754
- let ySpacing;
11755
- if (Math.abs(1 - absViewUpDotI) < EPSILON) {
11756
- ySpacing = volumeSpacing[0];
11757
- yDir = iVector;
11758
- }
11759
- else if (Math.abs(1 - absViewUpDotJ) < EPSILON) {
11760
- ySpacing = volumeSpacing[1];
11761
- yDir = jVector;
11762
- }
11763
- else if (Math.abs(1 - absViewUpDotK) < EPSILON) {
11764
- ySpacing = volumeSpacing[2];
11765
- yDir = kVector;
11766
- }
11767
- else {
11768
- throw new Error('No support yet for oblique plane planar contours');
11769
- }
11770
- spacing = [xSpacing, ySpacing];
11771
- }
11772
- const subPixelSpacing = [
11773
- spacing[0] / subPixelResolution,
11774
- spacing[1] / subPixelResolution,
11775
- ];
11776
- return { spacing: subPixelSpacing, xDir, yDir };
11777
- };
11778
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getSubPixelSpacingAndXYDirections);
11779
-
11780
-
11781
- /***/ }),
11782
-
11783
- /***/ 4239:
11784
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11785
-
11786
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11787
- /* harmony export */ A: () => (/* binding */ getWindingDirection)
11788
- /* harmony export */ });
11789
- /* harmony import */ var _getSignedArea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63113);
11790
-
11791
- function getWindingDirection(polyline) {
11792
- const signedArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(polyline);
11793
- return signedArea >= 0 ? 1 : -1;
11794
- }
11795
-
11796
-
11797
- /***/ }),
11798
-
11799
- /***/ 92984:
11800
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11801
-
11802
- __webpack_require__.r(__webpack_exports__);
10981
+ __webpack_require__.r(__webpack_exports__);
11803
10982
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11804
10983
  /* harmony export */ addCanvasPointsToArray: () => (/* reexport safe */ _addCanvasPointsToArray__WEBPACK_IMPORTED_MODULE_20__.A),
11805
10984
  /* harmony export */ arePolylinesIdentical: () => (/* reexport safe */ _arePolylinesIdentical__WEBPACK_IMPORTED_MODULE_25__.A),
@@ -11883,319 +11062,10 @@ __webpack_require__.r(__webpack_exports__);
11883
11062
 
11884
11063
 
11885
11064
 
11886
- /***/ }),
11887
-
11888
- /***/ 405:
11889
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11890
-
11891
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11892
- /* harmony export */ A: () => (/* binding */ intersectPolyline)
11893
- /* harmony export */ });
11894
- /* harmony import */ var _getFirstLineSegmentIntersectionIndexes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4338);
11895
-
11896
- function intersectPolyline(sourcePolyline, targetPolyline) {
11897
- for (let i = 0, sourceLen = sourcePolyline.length; i < sourceLen; i++) {
11898
- const sourceP1 = sourcePolyline[i];
11899
- const sourceP2Index = i === sourceLen - 1 ? 0 : i + 1;
11900
- const sourceP2 = sourcePolyline[sourceP2Index];
11901
- const intersectionPointIndexes = (0,_getFirstLineSegmentIntersectionIndexes__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(targetPolyline, sourceP1, sourceP2);
11902
- if (intersectionPointIndexes?.length === 2) {
11903
- return true;
11904
- }
11905
- }
11906
- return false;
11907
- }
11908
-
11909
-
11910
- /***/ }),
11911
-
11912
- /***/ 70112:
11913
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11914
-
11915
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11916
- /* harmony export */ A: () => (/* binding */ intersectPolylines)
11917
- /* harmony export */ });
11918
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
11919
- /* harmony import */ var _containsPoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46513);
11920
- /* harmony import */ var _getSignedArea__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63113);
11921
- /* harmony import */ var _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36039);
11922
-
11923
-
11924
-
11925
-
11926
- function intersectPolylines(mainPolyCoords, clipPolyCoordsInput) {
11927
- if (mainPolyCoords.length < 3 || clipPolyCoordsInput.length < 3) {
11928
- return [];
11929
- }
11930
- let clipPolyCoords = clipPolyCoordsInput.slice();
11931
- const mainArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(mainPolyCoords);
11932
- const clipArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(clipPolyCoords);
11933
- if (Math.abs(mainArea) < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8 || Math.abs(clipArea) < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8) {
11934
- return [];
11935
- }
11936
- if (mainArea < 0) {
11937
- mainPolyCoords = mainPolyCoords.slice().reverse();
11938
- }
11939
- if (clipArea < 0) {
11940
- clipPolyCoords = clipPolyCoords.slice().reverse();
11941
- }
11942
- const currentClipPolyForPIP = clipPolyCoords;
11943
- const intersections = [];
11944
- for (let i = 0; i < mainPolyCoords.length; i++) {
11945
- const p1 = mainPolyCoords[i];
11946
- const p2 = mainPolyCoords[(i + 1) % mainPolyCoords.length];
11947
- for (let j = 0; j < clipPolyCoords.length; j++) {
11948
- const q1 = clipPolyCoords[j];
11949
- const q2 = clipPolyCoords[(j + 1) % clipPolyCoords.length];
11950
- const intersectPt = (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .robustSegmentIntersection */ .O4)(p1, p2, q1, q2);
11951
- if (intersectPt) {
11952
- const lenP = Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(p1, p2));
11953
- const lenQ = Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(q1, q2));
11954
- intersections.push({
11955
- coord: [...intersectPt],
11956
- seg1Idx: i,
11957
- seg2Idx: j,
11958
- alpha1: lenP < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8
11959
- ? 0
11960
- : Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(p1, intersectPt)) / lenP,
11961
- alpha2: lenQ < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8
11962
- ? 0
11963
- : Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(q1, intersectPt)) / lenQ,
11964
- });
11965
- }
11966
- }
11967
- }
11968
- if (intersections.length === 0) {
11969
- if ((0,_containsPoint__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(currentClipPolyForPIP, mainPolyCoords[0]) &&
11970
- mainPolyCoords.every((pt) => (0,_containsPoint__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(currentClipPolyForPIP, pt))) {
11971
- return [[...mainPolyCoords.map((p) => [...p])]];
11972
- }
11973
- if ((0,_containsPoint__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(mainPolyCoords, clipPolyCoords[0]) &&
11974
- clipPolyCoords.every((pt) => (0,_containsPoint__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(mainPolyCoords, pt))) {
11975
- return [[...clipPolyCoords.map((p) => [...p])]];
11976
- }
11977
- return [];
11978
- }
11979
- const buildAugmentedList = (polyCoords, polyIndex, allIntersections) => {
11980
- const augmentedList = [];
11981
- let nodeIdCounter = 0;
11982
- for (let i = 0; i < polyCoords.length; i++) {
11983
- const p1 = polyCoords[i];
11984
- augmentedList.push({
11985
- id: `${polyIndex}_v${nodeIdCounter++}`,
11986
- coordinates: [...p1],
11987
- type: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .PolylineNodeType */ .n7.Vertex,
11988
- originalPolyIndex: polyIndex,
11989
- originalVertexIndex: i,
11990
- next: null,
11991
- prev: null,
11992
- isIntersection: false,
11993
- visited: false,
11994
- processedInPath: false,
11995
- intersectionDir: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Unknown,
11996
- });
11997
- const segmentIntersections = allIntersections
11998
- .filter((isect) => (polyIndex === 0 ? isect.seg1Idx : isect.seg2Idx) === i)
11999
- .sort((a, b) => (polyIndex === 0 ? a.alpha1 : a.alpha2) -
12000
- (polyIndex === 0 ? b.alpha1 : b.alpha2));
12001
- for (const isect of segmentIntersections) {
12002
- if (augmentedList.length > 0 &&
12003
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(augmentedList[augmentedList.length - 1].coordinates, isect.coord)) {
12004
- const lastNode = augmentedList[augmentedList.length - 1];
12005
- if (!lastNode.isIntersection) {
12006
- lastNode.isIntersection = true;
12007
- lastNode.intersectionInfo = isect;
12008
- lastNode.alpha = polyIndex === 0 ? isect.alpha1 : isect.alpha2;
12009
- lastNode.type = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .PolylineNodeType */ .n7.Intersection;
12010
- }
12011
- continue;
12012
- }
12013
- augmentedList.push({
12014
- id: `${polyIndex}_i${nodeIdCounter++}`,
12015
- coordinates: [...isect.coord],
12016
- type: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .PolylineNodeType */ .n7.Intersection,
12017
- originalPolyIndex: polyIndex,
12018
- next: null,
12019
- prev: null,
12020
- isIntersection: true,
12021
- visited: false,
12022
- processedInPath: false,
12023
- alpha: polyIndex === 0 ? isect.alpha1 : isect.alpha2,
12024
- intersectionInfo: isect,
12025
- intersectionDir: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Unknown,
12026
- });
12027
- }
12028
- }
12029
- const finalList = [];
12030
- if (augmentedList.length > 0) {
12031
- finalList.push(augmentedList[0]);
12032
- for (let i = 1; i < augmentedList.length; i++) {
12033
- if (!(0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(augmentedList[i].coordinates, finalList[finalList.length - 1].coordinates)) {
12034
- finalList.push(augmentedList[i]);
12035
- }
12036
- else {
12037
- const lastNodeInFinal = finalList[finalList.length - 1];
12038
- if (augmentedList[i].isIntersection &&
12039
- augmentedList[i].intersectionInfo) {
12040
- lastNodeInFinal.isIntersection = true;
12041
- lastNodeInFinal.intersectionInfo =
12042
- augmentedList[i].intersectionInfo;
12043
- lastNodeInFinal.alpha = augmentedList[i].alpha;
12044
- lastNodeInFinal.type = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .PolylineNodeType */ .n7.Intersection;
12045
- }
12046
- }
12047
- }
12048
- }
12049
- if (finalList.length > 1 &&
12050
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(finalList[0].coordinates, finalList[finalList.length - 1].coordinates)) {
12051
- const firstNode = finalList[0];
12052
- const lastNodePopped = finalList.pop();
12053
- if (lastNodePopped.isIntersection &&
12054
- !firstNode.isIntersection &&
12055
- lastNodePopped.intersectionInfo) {
12056
- firstNode.isIntersection = true;
12057
- firstNode.intersectionInfo = lastNodePopped.intersectionInfo;
12058
- firstNode.alpha = lastNodePopped.alpha;
12059
- firstNode.type = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .PolylineNodeType */ .n7.Intersection;
12060
- }
12061
- }
12062
- if (finalList.length > 0) {
12063
- for (let i = 0; i < finalList.length; i++) {
12064
- finalList[i].next = finalList[(i + 1) % finalList.length];
12065
- finalList[i].prev =
12066
- finalList[(i - 1 + finalList.length) % finalList.length];
12067
- }
12068
- }
12069
- return finalList;
12070
- };
12071
- const mainAugmented = buildAugmentedList(mainPolyCoords, 0, intersections);
12072
- const clipAugmented = buildAugmentedList(clipPolyCoords, 1, intersections);
12073
- if (mainAugmented.length === 0 || clipAugmented.length === 0) {
12074
- return [];
12075
- }
12076
- mainAugmented.forEach((mainNode) => {
12077
- if (mainNode.isIntersection && mainNode.intersectionInfo) {
12078
- const mainIntersectData = mainNode.intersectionInfo;
12079
- const partnerNode = clipAugmented.find((clipNode) => clipNode.isIntersection &&
12080
- clipNode.intersectionInfo &&
12081
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(clipNode.coordinates, mainNode.coordinates) &&
12082
- clipNode.intersectionInfo.seg1Idx === mainIntersectData.seg1Idx &&
12083
- clipNode.intersectionInfo.seg2Idx === mainIntersectData.seg2Idx);
12084
- if (partnerNode) {
12085
- mainNode.partnerNode = partnerNode;
12086
- partnerNode.partnerNode = mainNode;
12087
- const v_arrival_main = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create(), mainNode.coordinates, mainNode.prev.coordinates);
12088
- const v_departure_clip = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create(), partnerNode.next.coordinates, partnerNode.coordinates);
12089
- const crossZ = v_arrival_main[0] * v_departure_clip[1] -
12090
- v_arrival_main[1] * v_departure_clip[0];
12091
- if (crossZ > _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8) {
12092
- mainNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Entering;
12093
- partnerNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Exiting;
12094
- }
12095
- else if (crossZ < -_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .EPSILON */ .p8) {
12096
- mainNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Exiting;
12097
- partnerNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Entering;
12098
- }
12099
- else {
12100
- const midPrevMainSeg = [
12101
- (mainNode.prev.coordinates[0] + mainNode.coordinates[0]) / 2,
12102
- (mainNode.prev.coordinates[1] + mainNode.coordinates[1]) / 2,
12103
- ];
12104
- if ((0,_containsPoint__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(currentClipPolyForPIP, midPrevMainSeg)) {
12105
- mainNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Exiting;
12106
- partnerNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Entering;
12107
- }
12108
- else {
12109
- mainNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Entering;
12110
- partnerNode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Exiting;
12111
- }
12112
- }
12113
- }
12114
- else {
12115
- mainNode.isIntersection = false;
12116
- mainNode.intersectionInfo = undefined;
12117
- }
12118
- }
12119
- });
12120
- const resultPolygons = [];
12121
- for (const startCand of mainAugmented) {
12122
- if (!startCand.isIntersection ||
12123
- startCand.visited ||
12124
- startCand.intersectionDir !== _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .IntersectionDirection */ .lG.Entering) {
12125
- continue;
12126
- }
12127
- let currentPathCoords = [];
12128
- let currentNode = startCand;
12129
- let onMainList = true;
12130
- const pathStartNode = startCand;
12131
- let safetyBreak = 0;
12132
- const maxIter = (mainAugmented.length + clipAugmented.length) * 2;
12133
- mainAugmented.forEach((n) => (n.processedInPath = false));
12134
- clipAugmented.forEach((n) => (n.processedInPath = false));
12135
- do {
12136
- if (safetyBreak++ > maxIter) {
12137
- console.warn('Intersection: Max iterations in path tracing.', pathStartNode.id, currentNode.id);
12138
- currentPathCoords = [];
12139
- break;
12140
- }
12141
- if (currentNode.processedInPath && currentNode !== pathStartNode) {
12142
- console.warn('Intersection: Path processing loop detected, discarding path segment.', pathStartNode.id, currentNode.id);
12143
- currentPathCoords = [];
12144
- break;
12145
- }
12146
- currentNode.processedInPath = true;
12147
- currentNode.visited = true;
12148
- if (currentPathCoords.length === 0 ||
12149
- !(0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(currentPathCoords[currentPathCoords.length - 1], currentNode.coordinates)) {
12150
- currentPathCoords.push([...currentNode.coordinates]);
12151
- }
12152
- let switchedList = false;
12153
- if (currentNode.isIntersection && currentNode.partnerNode) {
12154
- if (onMainList) {
12155
- currentNode = currentNode.partnerNode;
12156
- onMainList = false;
12157
- switchedList = true;
12158
- }
12159
- else {
12160
- currentNode = currentNode.partnerNode;
12161
- onMainList = true;
12162
- switchedList = true;
12163
- }
12164
- }
12165
- if (!switchedList) {
12166
- currentNode = currentNode.next;
12167
- }
12168
- else {
12169
- currentNode = currentNode.next;
12170
- }
12171
- } while (currentNode !== pathStartNode ||
12172
- (onMainList && currentNode.originalPolyIndex !== 0) ||
12173
- (!onMainList && currentNode.originalPolyIndex !== 1));
12174
- if (safetyBreak > maxIter || currentPathCoords.length === 0) {
12175
- }
12176
- else if (currentPathCoords.length > 0 &&
12177
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_3__/* .pointsAreEqual */ .Sk)(currentPathCoords[0], currentPathCoords[currentPathCoords.length - 1])) {
12178
- currentPathCoords.pop();
12179
- }
12180
- if (currentPathCoords.length >= 3) {
12181
- const resultArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(currentPathCoords);
12182
- if (mainArea > 0 && resultArea < 0) {
12183
- currentPathCoords.reverse();
12184
- }
12185
- else if (mainArea < 0 && resultArea > 0) {
12186
- currentPathCoords.reverse();
12187
- }
12188
- resultPolygons.push(currentPathCoords.map((p) => [...p]));
12189
- }
12190
- }
12191
- return resultPolygons;
12192
- }
12193
-
12194
-
12195
- /***/ }),
11065
+ /***/ },
12196
11066
 
12197
- /***/ 8361:
12198
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11067
+ /***/ 8361
11068
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12199
11069
 
12200
11070
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12201
11071
  /* harmony export */ i: () => (/* binding */ isPointInsidePolyline3D)
@@ -12229,10 +11099,10 @@ function isPointInsidePolyline3D(point, polyline, options = {}) {
12229
11099
  }
12230
11100
 
12231
11101
 
12232
- /***/ }),
11102
+ /***/ },
12233
11103
 
12234
- /***/ 80514:
12235
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11104
+ /***/ 80514
11105
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12236
11106
 
12237
11107
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12238
11108
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -12272,26 +11142,10 @@ const pointCanProjectOnLine = (p, p1, p2, proximity) => {
12272
11142
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pointCanProjectOnLine);
12273
11143
 
12274
11144
 
12275
- /***/ }),
11145
+ /***/ },
12276
11146
 
12277
- /***/ 82265:
12278
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12279
-
12280
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12281
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
12282
- /* harmony export */ });
12283
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
12284
-
12285
- const pointsAreWithinCloseContourProximity = (p1, p2, closeContourProximity) => {
12286
- return gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.dist */ .Zc.dist(p1, p2) < closeContourProximity;
12287
- };
12288
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pointsAreWithinCloseContourProximity);
12289
-
12290
-
12291
- /***/ }),
12292
-
12293
- /***/ 28502:
12294
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11147
+ /***/ 28502
11148
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12295
11149
 
12296
11150
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12297
11151
  /* harmony export */ p: () => (/* binding */ projectTo2D)
@@ -12324,355 +11178,10 @@ function projectTo2D(polyline) {
12324
11178
  }
12325
11179
 
12326
11180
 
12327
- /***/ }),
11181
+ /***/ },
12328
11182
 
12329
- /***/ 36039:
12330
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12331
-
12332
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12333
- /* harmony export */ O4: () => (/* binding */ robustSegmentIntersection),
12334
- /* harmony export */ Sk: () => (/* binding */ pointsAreEqual),
12335
- /* harmony export */ lG: () => (/* binding */ IntersectionDirection),
12336
- /* harmony export */ n7: () => (/* binding */ PolylineNodeType),
12337
- /* harmony export */ p8: () => (/* binding */ EPSILON)
12338
- /* harmony export */ });
12339
- /* unused harmony export vec2CrossZ */
12340
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
12341
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
12342
-
12343
-
12344
- const EPSILON = 1e-7;
12345
- function vec2CrossZ(a, b) {
12346
- return a[0] * b[1] - a[1] * b[0];
12347
- }
12348
- function pointsAreEqual(p1, p2) {
12349
- return _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isEqual(p1, p2, EPSILON);
12350
- }
12351
- function robustSegmentIntersection(p1, p2, q1, q2) {
12352
- const r = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), p2, p1);
12353
- const s = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q2, q1);
12354
- const rxs = vec2CrossZ(r, s);
12355
- const qmp = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q1, p1);
12356
- const qmpxr = vec2CrossZ(qmp, r);
12357
- if (Math.abs(rxs) < EPSILON) {
12358
- if (Math.abs(qmpxr) < EPSILON) {
12359
- const rDotR = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(r, r);
12360
- const sDotS = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(s, s);
12361
- if (rDotR < EPSILON || sDotS < EPSILON) {
12362
- if (pointsAreEqual(p1, q1) || pointsAreEqual(p1, q2)) {
12363
- return p1;
12364
- }
12365
- if (pointsAreEqual(p2, q1) || pointsAreEqual(p2, q2)) {
12366
- return p2;
12367
- }
12368
- return null;
12369
- }
12370
- const t0 = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q1, p1), r) / rDotR;
12371
- const t1 = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q2, p1), r) / rDotR;
12372
- const u0 = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), p1, q1), s) / sDotS;
12373
- const u1 = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.dot */ .Zc.dot(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), p2, q1), s) / sDotS;
12374
- const isInRange = (t) => t >= -EPSILON && t <= 1 + EPSILON;
12375
- if (isInRange(t0)) {
12376
- const projectedPoint = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.scaleAndAdd */ .Zc.scaleAndAdd(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), p1, r, t0);
12377
- if (pointsAreEqual(q1, projectedPoint)) {
12378
- return q1;
12379
- }
12380
- }
12381
- if (isInRange(t1)) {
12382
- const projectedPoint = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.scaleAndAdd */ .Zc.scaleAndAdd(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), p1, r, t1);
12383
- if (pointsAreEqual(q2, projectedPoint)) {
12384
- return q2;
12385
- }
12386
- }
12387
- if (isInRange(u0)) {
12388
- const projectedPoint = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.scaleAndAdd */ .Zc.scaleAndAdd(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q1, s, u0);
12389
- if (pointsAreEqual(p1, projectedPoint)) {
12390
- return p1;
12391
- }
12392
- }
12393
- if (isInRange(u1)) {
12394
- const projectedPoint = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.scaleAndAdd */ .Zc.scaleAndAdd(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.create */ .Zc.create(), q1, s, u1);
12395
- if (pointsAreEqual(p2, projectedPoint)) {
12396
- return p2;
12397
- }
12398
- }
12399
- }
12400
- return null;
12401
- }
12402
- const t = vec2CrossZ(qmp, s) / rxs;
12403
- const u = qmpxr / rxs;
12404
- if (t >= -EPSILON && t <= 1 + EPSILON && u >= -EPSILON && u <= 1 + EPSILON) {
12405
- return [p1[0] + t * r[0], p1[1] + t * r[1]];
12406
- }
12407
- return null;
12408
- }
12409
- var PolylineNodeType;
12410
- (function (PolylineNodeType) {
12411
- PolylineNodeType[PolylineNodeType["Vertex"] = 0] = "Vertex";
12412
- PolylineNodeType[PolylineNodeType["Intersection"] = 1] = "Intersection";
12413
- })(PolylineNodeType || (PolylineNodeType = {}));
12414
- var IntersectionDirection;
12415
- (function (IntersectionDirection) {
12416
- IntersectionDirection[IntersectionDirection["Entering"] = 0] = "Entering";
12417
- IntersectionDirection[IntersectionDirection["Exiting"] = 1] = "Exiting";
12418
- IntersectionDirection[IntersectionDirection["Unknown"] = 2] = "Unknown";
12419
- })(IntersectionDirection || (IntersectionDirection = {}));
12420
-
12421
-
12422
- /***/ }),
12423
-
12424
- /***/ 6521:
12425
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12426
-
12427
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12428
- /* harmony export */ A: () => (/* binding */ subtractPolylines)
12429
- /* harmony export */ });
12430
- /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
12431
- /* harmony import */ var _getSignedArea__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63113);
12432
- /* harmony import */ var _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36039);
12433
- /* harmony import */ var _containsPoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(46513);
12434
- /* harmony import */ var _arePolylinesIdentical__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15346);
12435
-
12436
-
12437
-
12438
-
12439
-
12440
- function subtractPolylines(targetPolylineCoords, sourcePolylineCoordsInput) {
12441
- if (targetPolylineCoords.length < 3) {
12442
- return [];
12443
- }
12444
- if (sourcePolylineCoordsInput.length < 3) {
12445
- return [targetPolylineCoords.slice()];
12446
- }
12447
- const sourcePolylineCoords = sourcePolylineCoordsInput.slice();
12448
- if ((0,_arePolylinesIdentical__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(targetPolylineCoords, sourcePolylineCoordsInput)) {
12449
- return [];
12450
- }
12451
- const targetArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(targetPolylineCoords);
12452
- const sourceArea = (0,_getSignedArea__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(sourcePolylineCoords);
12453
- if (Math.sign(targetArea) === Math.sign(sourceArea) &&
12454
- Math.abs(sourceArea) > _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .p8) {
12455
- sourcePolylineCoords.reverse();
12456
- }
12457
- const intersections = [];
12458
- for (let i = 0; i < targetPolylineCoords.length; i++) {
12459
- const p1 = targetPolylineCoords[i];
12460
- const p2 = targetPolylineCoords[(i + 1) % targetPolylineCoords.length];
12461
- for (let j = 0; j < sourcePolylineCoords.length; j++) {
12462
- const q1 = sourcePolylineCoords[j];
12463
- const q2 = sourcePolylineCoords[(j + 1) % sourcePolylineCoords.length];
12464
- const intersectPt = (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .robustSegmentIntersection */ .O4)(p1, p2, q1, q2);
12465
- if (intersectPt) {
12466
- const lenP = Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(p1, p2));
12467
- const lenQ = Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(q1, q2));
12468
- intersections.push({
12469
- coord: intersectPt,
12470
- seg1Idx: i,
12471
- seg2Idx: j,
12472
- alpha1: lenP < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .p8
12473
- ? 0
12474
- : Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(p1, intersectPt)) / lenP,
12475
- alpha2: lenQ < _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .p8
12476
- ? 0
12477
- : Math.sqrt(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.squaredDistance */ .Zc.squaredDistance(q1, intersectPt)) / lenQ,
12478
- });
12479
- }
12480
- }
12481
- }
12482
- const buildAugmentedList = (polyCoords, polyIndex, allIntersections) => {
12483
- const augmentedList = [];
12484
- let nodeIdCounter = 0;
12485
- for (let i = 0; i < polyCoords.length; i++) {
12486
- const p1 = polyCoords[i];
12487
- augmentedList.push({
12488
- id: `${polyIndex}_v${nodeIdCounter++}`,
12489
- coordinates: p1,
12490
- type: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .PolylineNodeType */ .n7.Vertex,
12491
- originalPolyIndex: polyIndex,
12492
- originalVertexIndex: i,
12493
- next: null,
12494
- prev: null,
12495
- isIntersection: false,
12496
- visited: false,
12497
- });
12498
- const segmentIntersections = allIntersections
12499
- .filter((isect) => (polyIndex === 0 ? isect.seg1Idx : isect.seg2Idx) === i)
12500
- .sort((a, b) => (polyIndex === 0 ? a.alpha1 : a.alpha2) -
12501
- (polyIndex === 0 ? b.alpha1 : b.alpha2));
12502
- for (const isect of segmentIntersections) {
12503
- if (augmentedList.length > 0 &&
12504
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .pointsAreEqual */ .Sk)(augmentedList[augmentedList.length - 1].coordinates, isect.coord)) {
12505
- if (!augmentedList[augmentedList.length - 1].isIntersection) {
12506
- augmentedList[augmentedList.length - 1].isIntersection = true;
12507
- augmentedList[augmentedList.length - 1].intersectionInfo = isect;
12508
- augmentedList[augmentedList.length - 1].alpha =
12509
- polyIndex === 0 ? isect.alpha1 : isect.alpha2;
12510
- }
12511
- continue;
12512
- }
12513
- augmentedList.push({
12514
- id: `${polyIndex}_i${nodeIdCounter++}`,
12515
- coordinates: isect.coord,
12516
- type: _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .PolylineNodeType */ .n7.Intersection,
12517
- originalPolyIndex: polyIndex,
12518
- next: null,
12519
- prev: null,
12520
- isIntersection: true,
12521
- visited: false,
12522
- alpha: polyIndex === 0 ? isect.alpha1 : isect.alpha2,
12523
- intersectionInfo: isect,
12524
- });
12525
- }
12526
- }
12527
- const finalList = [];
12528
- if (augmentedList.length > 0) {
12529
- finalList.push(augmentedList[0]);
12530
- for (let i = 1; i < augmentedList.length; i++) {
12531
- if (!(0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .pointsAreEqual */ .Sk)(augmentedList[i].coordinates, finalList[finalList.length - 1].coordinates)) {
12532
- finalList.push(augmentedList[i]);
12533
- }
12534
- else {
12535
- if (augmentedList[i].isIntersection) {
12536
- finalList[finalList.length - 1].isIntersection = true;
12537
- finalList[finalList.length - 1].intersectionInfo =
12538
- augmentedList[i].intersectionInfo;
12539
- finalList[finalList.length - 1].alpha = augmentedList[i].alpha;
12540
- }
12541
- }
12542
- }
12543
- }
12544
- if (finalList.length > 0) {
12545
- for (let i = 0; i < finalList.length; i++) {
12546
- finalList[i].next = finalList[(i + 1) % finalList.length];
12547
- finalList[i].prev =
12548
- finalList[(i - 1 + finalList.length) % finalList.length];
12549
- }
12550
- }
12551
- return finalList;
12552
- };
12553
- const targetAugmented = buildAugmentedList(targetPolylineCoords, 0, intersections);
12554
- const sourceAugmented = buildAugmentedList(sourcePolylineCoords, 1, intersections);
12555
- targetAugmented.forEach((tnode) => {
12556
- if (tnode.isIntersection) {
12557
- const tData = tnode.intersectionInfo;
12558
- const partner = sourceAugmented.find((snode) => snode.isIntersection &&
12559
- (0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .pointsAreEqual */ .Sk)(snode.coordinates, tnode.coordinates) &&
12560
- snode.intersectionInfo.seg1Idx ===
12561
- tData.seg1Idx &&
12562
- snode.intersectionInfo.seg2Idx === tData.seg2Idx);
12563
- if (partner) {
12564
- tnode.partnerNode = partner;
12565
- partner.partnerNode = tnode;
12566
- const p_prev = tnode.prev.coordinates;
12567
- const p_curr = tnode.coordinates;
12568
- const p_next_source = partner.next.coordinates;
12569
- const v_target_arrival = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create(), p_curr, p_prev);
12570
- const v_source_departure = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.subtract */ .Zc.subtract(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create(), p_next_source, p_curr);
12571
- const midPrevTargetSeg = [
12572
- (tnode.prev.coordinates[0] + tnode.coordinates[0]) / 2,
12573
- (tnode.prev.coordinates[1] + tnode.coordinates[1]) / 2,
12574
- ];
12575
- const prevSegMidpointInsideSource = (0,_containsPoint__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(sourcePolylineCoordsInput, midPrevTargetSeg);
12576
- if (prevSegMidpointInsideSource) {
12577
- tnode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .IntersectionDirection */ .lG.Exiting;
12578
- }
12579
- else {
12580
- tnode.intersectionDir = _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .IntersectionDirection */ .lG.Entering;
12581
- }
12582
- }
12583
- else {
12584
- tnode.isIntersection = false;
12585
- }
12586
- }
12587
- });
12588
- targetAugmented.forEach((n) => delete n.intersectionInfo);
12589
- sourceAugmented.forEach((n) => delete n.intersectionInfo);
12590
- const resultPolylines = [];
12591
- for (let i = 0; i < targetAugmented.length; i++) {
12592
- const startNode = targetAugmented[i];
12593
- if (startNode.visited || startNode.isIntersection) {
12594
- continue;
12595
- }
12596
- if ((0,_containsPoint__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(sourcePolylineCoordsInput, startNode.coordinates)) {
12597
- continue;
12598
- }
12599
- const currentPathCoords = [];
12600
- let currentNode = startNode;
12601
- let onTargetList = true;
12602
- let safetyBreak = 0;
12603
- const maxIter = (targetAugmented.length + sourceAugmented.length) * 2;
12604
- do {
12605
- if (safetyBreak++ > maxIter) {
12606
- console.warn('Subtraction: Max iterations reached, possible infinite loop.');
12607
- break;
12608
- }
12609
- currentNode.visited = true;
12610
- if (currentPathCoords.length === 0 ||
12611
- !(0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .pointsAreEqual */ .Sk)(currentPathCoords[currentPathCoords.length - 1], currentNode.coordinates)) {
12612
- currentPathCoords.push(currentNode.coordinates);
12613
- }
12614
- if (currentNode.isIntersection) {
12615
- if (onTargetList) {
12616
- if (currentNode.intersectionDir === _robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .IntersectionDirection */ .lG.Entering &&
12617
- currentNode.partnerNode) {
12618
- currentNode = currentNode.partnerNode;
12619
- onTargetList = false;
12620
- }
12621
- }
12622
- else {
12623
- if (currentNode.partnerNode) {
12624
- currentNode = currentNode.partnerNode;
12625
- onTargetList = true;
12626
- }
12627
- else {
12628
- console.warn('Subtraction: Intersection on source without partner.');
12629
- }
12630
- }
12631
- }
12632
- currentNode = currentNode.next;
12633
- } while (currentNode !== startNode || !onTargetList);
12634
- if (currentPathCoords.length >= 3) {
12635
- if ((0,_robustSegmentIntersection__WEBPACK_IMPORTED_MODULE_2__/* .pointsAreEqual */ .Sk)(currentPathCoords[0], currentPathCoords[currentPathCoords.length - 1])) {
12636
- currentPathCoords.pop();
12637
- }
12638
- if (currentPathCoords.length >= 3) {
12639
- resultPolylines.push(currentPathCoords);
12640
- }
12641
- }
12642
- }
12643
- return resultPolylines;
12644
- }
12645
-
12646
-
12647
- /***/ }),
12648
-
12649
- /***/ 33657:
12650
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12651
-
12652
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12653
- /* harmony export */ distanceToPoint: () => (/* reexport safe */ _distanceToPoint__WEBPACK_IMPORTED_MODULE_0__.A)
12654
- /* harmony export */ });
12655
- /* harmony import */ var _distanceToPoint__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87105);
12656
-
12657
-
12658
-
12659
-
12660
- /***/ }),
12661
-
12662
- /***/ 23324:
12663
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
12664
-
12665
- /* harmony import */ var _findClosestPoint__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90554);
12666
- /* harmony import */ var _liangBarksyClip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35381);
12667
-
12668
-
12669
-
12670
-
12671
-
12672
- /***/ }),
12673
-
12674
- /***/ 35381:
12675
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11183
+ /***/ 35381
11184
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12676
11185
 
12677
11186
  /* unused harmony export default */
12678
11187
  const EPSILON = 1e-6;
@@ -12745,10 +11254,10 @@ function clip(a, b, box, da, db) {
12745
11254
  }
12746
11255
 
12747
11256
 
12748
- /***/ }),
11257
+ /***/ },
12749
11258
 
12750
- /***/ 13165:
12751
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11259
+ /***/ 13165
11260
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12752
11261
 
12753
11262
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12754
11263
  /* harmony export */ filterAnnotationsForDisplay: () => (/* reexport safe */ _filterAnnotationsForDisplay__WEBPACK_IMPORTED_MODULE_2__.A),
@@ -12781,15 +11290,16 @@ function clip(a, b, box, da, db) {
12781
11290
 
12782
11291
 
12783
11292
 
12784
- /***/ }),
11293
+ /***/ },
12785
11294
 
12786
- /***/ 60199:
12787
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11295
+ /***/ 60199
11296
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12788
11297
 
12789
11298
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12790
11299
  /* harmony export */ H: () => (/* binding */ createBidirectionalForSlice)
12791
11300
  /* harmony export */ });
12792
11301
  /* unused harmony export default */
11302
+ /* unused harmony import specifier */ var createIsInSegment;
12793
11303
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
12794
11304
  /* harmony import */ var _isLineInSegment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60213);
12795
11305
 
@@ -12889,13 +11399,15 @@ function createBidirectionalForSlice(sliceContour, isInSegment, currentMax = { m
12889
11399
  }
12890
11400
 
12891
11401
 
12892
- /***/ }),
11402
+ /***/ },
12893
11403
 
12894
- /***/ 14957:
12895
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11404
+ /***/ 14957
11405
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12896
11406
 
12897
11407
  /* unused harmony export getBrushToolInstances */
12898
- /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77609);
11408
+ /* unused harmony import specifier */ var getToolGroup;
11409
+ /* unused harmony import specifier */ var BrushTool;
11410
+ /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7754);
12899
11411
  /* harmony import */ var _tools_segmentation_BrushTool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48736);
12900
11412
 
12901
11413
 
@@ -12916,16 +11428,17 @@ function getBrushToolInstances(toolGroupId, toolName) {
12916
11428
  }
12917
11429
 
12918
11430
 
12919
- /***/ }),
11431
+ /***/ },
12920
11432
 
12921
- /***/ 60213:
12922
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11433
+ /***/ 60213
11434
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12923
11435
 
12924
11436
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12925
11437
  /* harmony export */ On: () => (/* binding */ createIsInSegmentMetadata),
12926
11438
  /* harmony export */ pW: () => (/* binding */ isLineInSegment)
12927
11439
  /* harmony export */ });
12928
11440
  /* unused harmony exports default, createIsInSegment */
11441
+ /* unused harmony import specifier */ var cache;
12929
11442
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
12930
11443
  /* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
12931
11444
 
@@ -12987,17 +11500,17 @@ function createIsInSegment(segVolumeId, segmentIndex, containedSegmentIndices) {
12987
11500
 
12988
11501
 
12989
11502
 
12990
- /***/ }),
11503
+ /***/ },
12991
11504
 
12992
- /***/ 94779:
12993
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11505
+ /***/ 94779
11506
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12994
11507
 
12995
11508
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12996
11509
  /* harmony export */ _: () => (/* binding */ triggerAnnotationRenderForToolGroupIds)
12997
11510
  /* harmony export */ });
12998
11511
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
12999
11512
  /* harmony import */ var _triggerAnnotationRender__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56069);
13000
- /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77609);
11513
+ /* harmony import */ var _store_ToolGroupManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7754);
13001
11514
 
13002
11515
 
13003
11516
 
@@ -13024,10 +11537,10 @@ function triggerAnnotationRenderForToolGroupIds(toolGroupIds) {
13024
11537
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (triggerAnnotationRenderForToolGroupIds)));
13025
11538
 
13026
11539
 
13027
- /***/ }),
11540
+ /***/ },
13028
11541
 
13029
- /***/ 58640:
13030
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11542
+ /***/ 58640
11543
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13031
11544
 
13032
11545
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13033
11546
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -13059,10 +11572,10 @@ function triggerAnnotationRenderForViewportIds(viewportIdsToRender) {
13059
11572
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (triggerAnnotationRenderForViewportIds);
13060
11573
 
13061
11574
 
13062
- /***/ }),
11575
+ /***/ },
13063
11576
 
13064
- /***/ 60810:
13065
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11577
+ /***/ 60810
11578
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13066
11579
 
13067
11580
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13068
11581
  /* harmony export */ getViewportIdsWithToolToRender: () => (/* reexport safe */ _getViewportIdsWithToolToRender__WEBPACK_IMPORTED_MODULE_2__.A)
@@ -13078,10 +11591,10 @@ function triggerAnnotationRenderForViewportIds(viewportIdsToRender) {
13078
11591
 
13079
11592
 
13080
11593
 
13081
- /***/ }),
11594
+ /***/ },
13082
11595
 
13083
- /***/ 82487:
13084
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
11596
+ /***/ 82487
11597
+ (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
13085
11598
 
13086
11599
 
13087
11600
  // EXTERNAL MODULE: ../../../node_modules/comlink/dist/esm/comlink.mjs
@@ -13147,9 +11660,9 @@ var createLabelmapVolumeForViewport = __webpack_require__(97492);
13147
11660
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
13148
11661
  var enums = __webpack_require__(29857);
13149
11662
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/SegmentationRepresentations.js
13150
- var enums_SegmentationRepresentations = __webpack_require__(18682);
11663
+ var SegmentationRepresentations = __webpack_require__(18682);
13151
11664
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentation.js
13152
- var segmentation_getSegmentation = __webpack_require__(33283);
11665
+ var getSegmentation = __webpack_require__(33283);
13153
11666
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js
13154
11667
  var getSegmentationRepresentation = __webpack_require__(93210);
13155
11668
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Surface/surfaceDisplay.js
@@ -13164,8 +11677,8 @@ var addTool = __webpack_require__(68040);
13164
11677
  var state = __webpack_require__(85204);
13165
11678
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/PlanarFreehandContourSegmentationTool.js
13166
11679
  var PlanarFreehandContourSegmentationTool = __webpack_require__(37590);
13167
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js + 6 modules
13168
- var ToolGroupManager = __webpack_require__(77609);
11680
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js + 7 modules
11681
+ var ToolGroupManager = __webpack_require__(7754);
13169
11682
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationEventManager.js
13170
11683
  var segmentationEventManager = __webpack_require__(10692);
13171
11684
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationRenderingEngine.js
@@ -13183,9 +11696,9 @@ var segmentationEventManager = __webpack_require__(10692);
13183
11696
 
13184
11697
 
13185
11698
  const renderers = {
13186
- [enums_SegmentationRepresentations/* default */.A.Labelmap]: labelmapDisplay/* default */.Ay,
13187
- [enums_SegmentationRepresentations/* default */.A.Contour]: contourDisplay/* default */.A,
13188
- [enums_SegmentationRepresentations/* default */.A.Surface]: surfaceDisplay/* default */.Ay,
11699
+ [SegmentationRepresentations/* default */.A.Labelmap]: labelmapDisplay/* default */.Ay,
11700
+ [SegmentationRepresentations/* default */.A.Contour]: contourDisplay/* default */.A,
11701
+ [SegmentationRepresentations/* default */.A.Surface]: surfaceDisplay/* default */.Ay,
13189
11702
  };
13190
11703
  const planarContourToolName = PlanarFreehandContourSegmentationTool/* default */.A.toolName;
13191
11704
  class SegmentationRenderingEngine {
@@ -13280,7 +11793,7 @@ class SegmentationRenderingEngine {
13280
11793
  this._addPlanarFreeHandToolIfAbsent(viewport);
13281
11794
  }
13282
11795
  const display = renderers[representation.type];
13283
- const segmentation = (0,segmentation_getSegmentation/* getSegmentation */.T)(representation.segmentationId);
11796
+ const segmentation = (0,getSegmentation/* getSegmentation */.T)(representation.segmentationId);
13284
11797
  const existingRepresentation = segmentation.representationData[representation.type] !== undefined;
13285
11798
  try {
13286
11799
  display.render(viewport, representation).then(() => {
@@ -13475,19 +11988,22 @@ var createBidirectionalToolData = __webpack_require__(14514);
13475
11988
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/segmentContourAction.js
13476
11989
  var segmentContourAction = __webpack_require__(22592);
13477
11990
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRenderForViewportIds.js
13478
- var utilities_triggerAnnotationRenderForViewportIds = __webpack_require__(58640);
11991
+ var triggerAnnotationRenderForViewportIds = __webpack_require__(58640);
13479
11992
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getBrushToolInstances.js
13480
- var segmentation_getBrushToolInstances = __webpack_require__(14957);
11993
+ var getBrushToolInstances = __webpack_require__(14957);
13481
11994
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/invalidateBrushCursor.js
11995
+ /* unused harmony import specifier */ var getToolGroup;
11996
+ /* unused harmony import specifier */ var invalidateBrushCursor_triggerAnnotationRenderForViewportIds;
11997
+ /* unused harmony import specifier */ var invalidateBrushCursor_getBrushToolInstances;
13482
11998
 
13483
11999
 
13484
12000
 
13485
- function invalidateBrushCursor_invalidateBrushCursor(toolGroupId) {
12001
+ function invalidateBrushCursor(toolGroupId) {
13486
12002
  const toolGroup = getToolGroup(toolGroupId);
13487
12003
  if (toolGroup === undefined) {
13488
12004
  return;
13489
12005
  }
13490
- const brushBasedToolInstances = getBrushToolInstances(toolGroupId);
12006
+ const brushBasedToolInstances = invalidateBrushCursor_getBrushToolInstances(toolGroupId);
13491
12007
  brushBasedToolInstances.forEach((tool) => {
13492
12008
  tool.invalidateBrushCursor();
13493
12009
  });
@@ -13497,7 +12013,7 @@ function invalidateBrushCursor_invalidateBrushCursor(toolGroupId) {
13497
12013
  return;
13498
12014
  }
13499
12015
  const viewportIds = toolGroup.getViewportIds();
13500
- triggerAnnotationRenderForViewportIds(viewportIds);
12016
+ invalidateBrushCursor_triggerAnnotationRenderForViewportIds(viewportIds);
13501
12017
  }
13502
12018
 
13503
12019
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getUniqueSegmentIndices.js
@@ -13511,6 +12027,15 @@ var polyline = __webpack_require__(92984);
13511
12027
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/getSegmentationActor.js
13512
12028
  var getSegmentationActor = __webpack_require__(59452);
13513
12029
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getSegmentIndexAtWorldPoint.js
12030
+ /* unused harmony import specifier */ var BaseVolumeViewport;
12031
+ /* unused harmony import specifier */ var cache;
12032
+ /* unused harmony import specifier */ var utilities;
12033
+ /* unused harmony import specifier */ var getSegmentIndexAtWorldPoint_SegmentationRepresentations;
12034
+ /* unused harmony import specifier */ var getSegmentIndexAtWorldPoint_getSegmentation;
12035
+ /* unused harmony import specifier */ var getCurrentLabelmapImageIdsForViewport;
12036
+ /* unused harmony import specifier */ var getAnnotation;
12037
+ /* unused harmony import specifier */ var isPointInsidePolyline3D;
12038
+ /* unused harmony import specifier */ var getLabelmapActorEntry;
13514
12039
 
13515
12040
 
13516
12041
 
@@ -13518,16 +12043,16 @@ var getSegmentationActor = __webpack_require__(59452);
13518
12043
 
13519
12044
 
13520
12045
  function getSegmentIndexAtWorldPoint(segmentationId, worldPoint, options = {}) {
13521
- const segmentation = getSegmentation(segmentationId);
12046
+ const segmentation = getSegmentIndexAtWorldPoint_getSegmentation(segmentationId);
13522
12047
  const representationData = segmentation.representationData;
13523
12048
  const desiredRepresentation = options?.representationType ?? Object.keys(representationData)[0];
13524
12049
  if (!desiredRepresentation) {
13525
12050
  throw new Error(`Segmentation ${segmentationId} does not have any representations`);
13526
12051
  }
13527
12052
  switch (desiredRepresentation) {
13528
- case SegmentationRepresentations.Labelmap:
12053
+ case getSegmentIndexAtWorldPoint_SegmentationRepresentations.Labelmap:
13529
12054
  return getSegmentIndexAtWorldForLabelmap(segmentation, worldPoint, options);
13530
- case SegmentationRepresentations.Contour:
12055
+ case getSegmentIndexAtWorldPoint_SegmentationRepresentations.Contour:
13531
12056
  return getSegmentIndexAtWorldForContour(segmentation, worldPoint, options);
13532
12057
  default:
13533
12058
  return;
@@ -13594,37 +12119,43 @@ function getSegmentIndexAtWorldForContour(segmentation, worldPoint, { viewport }
13594
12119
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/index.js
13595
12120
  var helpers = __webpack_require__(91963);
13596
12121
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getSegmentIndexAtLabelmapBorder.js
12122
+ /* unused harmony import specifier */ var getSegmentIndexAtLabelmapBorder_BaseVolumeViewport;
12123
+ /* unused harmony import specifier */ var getSegmentIndexAtLabelmapBorder_cache;
12124
+ /* unused harmony import specifier */ var getSegmentIndexAtLabelmapBorder_utilities;
12125
+ /* unused harmony import specifier */ var getSegmentIndexAtLabelmapBorder_getSegmentation;
12126
+ /* unused harmony import specifier */ var getCurrentLabelmapImageIdForViewport;
12127
+ /* unused harmony import specifier */ var getSegmentIndexAtLabelmapBorder_getLabelmapActorEntry;
13597
12128
 
13598
12129
 
13599
12130
 
13600
12131
  function getSegmentIndexAtLabelmapBorder(segmentationId, worldPoint, { viewport, searchRadius }) {
13601
- const segmentation = getSegmentation(segmentationId);
12132
+ const segmentation = getSegmentIndexAtLabelmapBorder_getSegmentation(segmentationId);
13602
12133
  const labelmapData = segmentation.representationData.Labelmap;
13603
- if (viewport instanceof BaseVolumeViewport) {
12134
+ if (viewport instanceof getSegmentIndexAtLabelmapBorder_BaseVolumeViewport) {
13604
12135
  const { volumeId } = labelmapData;
13605
- const segmentationVolume = cache.getVolume(volumeId);
12136
+ const segmentationVolume = getSegmentIndexAtLabelmapBorder_cache.getVolume(volumeId);
13606
12137
  if (!segmentationVolume) {
13607
12138
  return;
13608
12139
  }
13609
12140
  const voxelManager = segmentationVolume.voxelManager;
13610
12141
  const imageData = segmentationVolume.imageData;
13611
- const indexIJK = utilities.transformWorldToIndex(imageData, worldPoint);
12142
+ const indexIJK = getSegmentIndexAtLabelmapBorder_utilities.transformWorldToIndex(imageData, worldPoint);
13612
12143
  const segmentIndex = voxelManager.getAtIJK(indexIJK[0], indexIJK[1], indexIJK[2]);
13613
12144
  const canvasPoint = viewport.worldToCanvas(worldPoint);
13614
12145
  const onEdge = isSegmentOnEdgeCanvas(canvasPoint, segmentIndex, viewport, imageData, searchRadius);
13615
12146
  return onEdge ? segmentIndex : undefined;
13616
12147
  }
13617
12148
  const segmentationImageId = getCurrentLabelmapImageIdForViewport(viewport.id, segmentationId);
13618
- const image = cache.getImage(segmentationImageId);
12149
+ const image = getSegmentIndexAtLabelmapBorder_cache.getImage(segmentationImageId);
13619
12150
  if (!image) {
13620
12151
  return;
13621
12152
  }
13622
- const segmentationActorEntry = getLabelmapActorEntry(viewport.id, segmentationId);
12153
+ const segmentationActorEntry = getSegmentIndexAtLabelmapBorder_getLabelmapActorEntry(viewport.id, segmentationId);
13623
12154
  const imageData = segmentationActorEntry?.actor.getMapper().getInputData();
13624
- const indexIJK = utilities.transformWorldToIndex(imageData, worldPoint);
12155
+ const indexIJK = getSegmentIndexAtLabelmapBorder_utilities.transformWorldToIndex(imageData, worldPoint);
13625
12156
  const dimensions = imageData.getDimensions();
13626
12157
  const voxelManager = (imageData.voxelManager ||
13627
- utilities.VoxelManager.createScalarVolumeVoxelManager({
12158
+ getSegmentIndexAtLabelmapBorder_utilities.VoxelManager.createScalarVolumeVoxelManager({
13628
12159
  dimensions,
13629
12160
  scalarData: imageData.getPointData().getScalars().getData(),
13630
12161
  }));
@@ -13665,20 +12196,22 @@ function isSegmentOnEdgeCanvas(canvasPoint, segmentIndex, viewport, imageData, s
13665
12196
  const neighborCanvas = [canvasPoint[0] + deltaI, canvasPoint[1] + deltaJ];
13666
12197
  const worldPoint = viewport.canvasToWorld(neighborCanvas);
13667
12198
  const voxelManager = imageData.get('voxelManager').voxelManager;
13668
- const indexIJK = utilities.transformWorldToIndex(imageData, worldPoint);
12199
+ const indexIJK = getSegmentIndexAtLabelmapBorder_utilities.transformWorldToIndex(imageData, worldPoint);
13669
12200
  return voxelManager.getAtIJK(indexIJK[0], indexIJK[1], indexIJK[2]);
13670
12201
  };
13671
12202
  return isSegmentOnEdge(getNeighborIndex, segmentIndex, searchRadius);
13672
12203
  }
13673
12204
 
13674
12205
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getHoveredContourSegmentationAnnotation.js
12206
+ /* unused harmony import specifier */ var getHoveredContourSegmentationAnnotation_getAnnotation;
12207
+ /* unused harmony import specifier */ var getHoveredContourSegmentationAnnotation_getSegmentation;
13675
12208
 
13676
12209
 
13677
12210
  function getHoveredContourSegmentationAnnotation(segmentationId) {
13678
- const segmentation = getSegmentation(segmentationId);
12211
+ const segmentation = getHoveredContourSegmentationAnnotation_getSegmentation(segmentationId);
13679
12212
  const { annotationUIDsMap } = segmentation.representationData.Contour;
13680
12213
  for (const [segmentIndex, annotationUIDs] of annotationUIDsMap.entries()) {
13681
- const highlightedAnnotationUID = Array.from(annotationUIDs).find((annotationUID) => getAnnotation(annotationUID).highlighted);
12214
+ const highlightedAnnotationUID = Array.from(annotationUIDs).find((annotationUID) => getHoveredContourSegmentationAnnotation_getAnnotation(annotationUID).highlighted);
13682
12215
  if (highlightedAnnotationUID) {
13683
12216
  return segmentIndex;
13684
12217
  }
@@ -13836,6 +12369,8 @@ fn main(
13836
12369
  /* harmony default export */ const growCutShader = ((/* unused pure expression or super */ null && (shader)));
13837
12370
 
13838
12371
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/growCut/runGrowCut.js
12372
+ /* unused harmony import specifier */ var runGrowCut_cache;
12373
+ /* unused harmony import specifier */ var shaderCode;
13839
12374
 
13840
12375
 
13841
12376
  const GB = 1024 * 1024 * 1024;
@@ -13853,8 +12388,8 @@ async function runGrowCut(referenceVolumeId, labelmapVolumeId, options = DEFAULT
13853
12388
  const workGroupSize = [8, 8, 4];
13854
12389
  const { windowSize, maxProcessingTime } = Object.assign({}, DEFAULT_GROWCUT_OPTIONS, options);
13855
12390
  const inspection = Object.assign({}, DEFAULT_GROWCUT_OPTIONS.inspection, options.inspection);
13856
- const volume = cache.getVolume(referenceVolumeId);
13857
- const labelmap = cache.getVolume(labelmapVolumeId);
12391
+ const volume = runGrowCut_cache.getVolume(referenceVolumeId);
12392
+ const labelmap = runGrowCut_cache.getVolume(labelmapVolumeId);
13858
12393
  const [columns, rows, numSlices] = volume.dimensions;
13859
12394
  if (labelmap.dimensions[0] !== columns ||
13860
12395
  labelmap.dimensions[1] !== rows ||
@@ -14156,8 +12691,15 @@ async function runGrowCut(referenceVolumeId, labelmapVolumeId, options = DEFAULT
14156
12691
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
14157
12692
  var gl_matrix_esm = __webpack_require__(3823);
14158
12693
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getSphereBoundsInfo.js
14159
- var utilities_getSphereBoundsInfo = __webpack_require__(4296);
12694
+ var getSphereBoundsInfo = __webpack_require__(4296);
14160
12695
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/growCut/runGrowCutForSphere.js
12696
+ /* unused harmony import specifier */ var vec3;
12697
+ /* unused harmony import specifier */ var quat;
12698
+ /* unused harmony import specifier */ var csUtils;
12699
+ /* unused harmony import specifier */ var volumeLoader;
12700
+ /* unused harmony import specifier */ var runGrowCutForSphere_cache;
12701
+ /* unused harmony import specifier */ var run;
12702
+ /* unused harmony import specifier */ var runGrowCutForSphere_getSphereBoundsInfo;
14161
12703
 
14162
12704
 
14163
12705
 
@@ -14184,7 +12726,7 @@ function _getSphereBoundsInfo(referencedVolume, sphereInfo) {
14184
12726
  const refVolImageData = referencedVolume.imageData;
14185
12727
  const topCirclePoint = vec3.scaleAndAdd(vec3.create(), sphereCenterPoint, vecColumn, -sphereRadius);
14186
12728
  const bottomCirclePoint = vec3.scaleAndAdd(vec3.create(), sphereCenterPoint, vecColumn, sphereRadius);
14187
- const sphereBoundsInfo = getSphereBoundsInfo([bottomCirclePoint, topCirclePoint], refVolImageData);
12729
+ const sphereBoundsInfo = runGrowCutForSphere_getSphereBoundsInfo([bottomCirclePoint, topCirclePoint], refVolImageData);
14188
12730
  return _getGrowCutSphereBoundsInfo(referencedVolume, sphereBoundsInfo);
14189
12731
  }
14190
12732
  function _createSubVolumeFromSphere(referencedVolume, sphereInfo, viewport) {
@@ -14315,7 +12857,7 @@ async function _createAndCacheSegmentationSubVolumeForSphere(subVolume, sphereIn
14315
12857
  return labelmap;
14316
12858
  }
14317
12859
  async function runGrowCutForSphere(referencedVolumeId, sphereInfo, viewport, options) {
14318
- const referencedVolume = cache.getVolume(referencedVolumeId);
12860
+ const referencedVolume = runGrowCutForSphere_cache.getVolume(referencedVolumeId);
14319
12861
  const subVolume = _createSubVolumeFromSphere(referencedVolume, sphereInfo, viewport);
14320
12862
  const labelmap = await _createAndCacheSegmentationSubVolumeForSphere(subVolume, sphereInfo, viewport, options);
14321
12863
  await run(subVolume.volumeId, labelmap.volumeId);
@@ -14324,6 +12866,9 @@ async function runGrowCutForSphere(referencedVolumeId, sphereInfo, viewport, opt
14324
12866
 
14325
12867
 
14326
12868
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/growCut/runGrowCutForBoundingBox.js
12869
+ /* unused harmony import specifier */ var runGrowCutForBoundingBox_volumeLoader;
12870
+ /* unused harmony import specifier */ var runGrowCutForBoundingBox_csUtils;
12871
+ /* unused harmony import specifier */ var runGrowCutForBoundingBox_run;
14327
12872
 
14328
12873
 
14329
12874
  const runGrowCutForBoundingBox_POSITIVE_SEED_VALUE = 254;
@@ -14408,7 +12953,7 @@ function runGrowCutForBoundingBox_setPositiveSeedValues(subVolume, labelmap, opt
14408
12953
  }
14409
12954
  }
14410
12955
  async function _createAndCacheSegmentationSubVolumeForBoundingBox(subVolume, options) {
14411
- const labelmap = volumeLoader.createAndCacheDerivedLabelmapVolume(subVolume.volumeId);
12956
+ const labelmap = runGrowCutForBoundingBox_volumeLoader.createAndCacheDerivedLabelmapVolume(subVolume.volumeId);
14412
12957
  runGrowCutForBoundingBox_setPositiveSeedValues(subVolume, labelmap, options);
14413
12958
  runGrowCutForBoundingBox_setNegativeSeedValues(subVolume, labelmap, options);
14414
12959
  return labelmap;
@@ -14424,28 +12969,40 @@ async function runGrowCutForBoundingBox(referencedVolumeId, boundingBoxInfo, opt
14424
12969
  minZ: ijkTopLeft[2],
14425
12970
  maxZ: ijkBottomRight[2],
14426
12971
  };
14427
- const subVolume = csUtils.createSubVolume(referencedVolumeId, subVolumeBoundsIJK, {
12972
+ const subVolume = runGrowCutForBoundingBox_csUtils.createSubVolume(referencedVolumeId, subVolumeBoundsIJK, {
14428
12973
  targetBuffer: {
14429
12974
  type: 'Float32Array',
14430
12975
  },
14431
12976
  });
14432
12977
  const labelmap = await _createAndCacheSegmentationSubVolumeForBoundingBox(subVolume, options);
14433
- await run(subVolume.volumeId, labelmap.volumeId);
12978
+ await runGrowCutForBoundingBox_run(subVolume.volumeId, labelmap.volumeId);
14434
12979
  return labelmap;
14435
12980
  }
14436
12981
 
14437
12982
 
14438
12983
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/growCut/constants.js
14439
- const constants_POSITIVE_SEED_LABEL = 254;
14440
- const constants_NEGATIVE_SEED_LABEL = 255;
14441
- const constants_DEFAULT_NEIGHBORHOOD_RADIUS = 1;
14442
- const constants_DEFAULT_POSITIVE_STD_DEV_MULTIPLIER = 1.8;
14443
- const constants_DEFAULT_NEGATIVE_STD_DEV_MULTIPLIER = 3.2;
14444
- const constants_DEFAULT_NEGATIVE_SEED_MARGIN = 30;
14445
- const constants_DEFAULT_NEGATIVE_SEEDS_COUNT = 70;
14446
- const constants_MAX_NEGATIVE_SEED_ATTEMPTS_MULTIPLIER = 50;
12984
+ const POSITIVE_SEED_LABEL = 254;
12985
+ const NEGATIVE_SEED_LABEL = 255;
12986
+ const DEFAULT_NEIGHBORHOOD_RADIUS = 1;
12987
+ const DEFAULT_POSITIVE_STD_DEV_MULTIPLIER = 1.8;
12988
+ const DEFAULT_NEGATIVE_STD_DEV_MULTIPLIER = 3.2;
12989
+ const DEFAULT_NEGATIVE_SEED_MARGIN = 30;
12990
+ const DEFAULT_NEGATIVE_SEEDS_COUNT = 70;
12991
+ const MAX_NEGATIVE_SEED_ATTEMPTS_MULTIPLIER = 50;
14447
12992
 
14448
12993
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/growCut/runOneClickGrowCut.js
12994
+ /* unused harmony import specifier */ var runOneClickGrowCut_csUtils;
12995
+ /* unused harmony import specifier */ var runOneClickGrowCut_cache;
12996
+ /* unused harmony import specifier */ var runOneClickGrowCut_volumeLoader;
12997
+ /* unused harmony import specifier */ var runOneClickGrowCut_run;
12998
+ /* unused harmony import specifier */ var runOneClickGrowCut_DEFAULT_NEIGHBORHOOD_RADIUS;
12999
+ /* unused harmony import specifier */ var runOneClickGrowCut_DEFAULT_POSITIVE_STD_DEV_MULTIPLIER;
13000
+ /* unused harmony import specifier */ var runOneClickGrowCut_DEFAULT_NEGATIVE_STD_DEV_MULTIPLIER;
13001
+ /* unused harmony import specifier */ var runOneClickGrowCut_DEFAULT_NEGATIVE_SEED_MARGIN;
13002
+ /* unused harmony import specifier */ var runOneClickGrowCut_DEFAULT_NEGATIVE_SEEDS_COUNT;
13003
+ /* unused harmony import specifier */ var runOneClickGrowCut_MAX_NEGATIVE_SEED_ATTEMPTS_MULTIPLIER;
13004
+ /* unused harmony import specifier */ var runOneClickGrowCut_POSITIVE_SEED_LABEL;
13005
+ /* unused harmony import specifier */ var runOneClickGrowCut_NEGATIVE_SEED_LABEL;
14449
13006
 
14450
13007
 
14451
13008
 
@@ -14457,11 +13014,11 @@ function calculateGrowCutSeeds(referencedVolume, worldPosition, options) {
14457
13014
  const referenceVolumeVoxelManager = referencedVolume.voxelManager;
14458
13015
  const scalarData = referenceVolumeVoxelManager.getCompleteScalarDataArray();
14459
13016
  const numPixelsPerSlice = width * height;
14460
- const neighborhoodRadius = options?.initialNeighborhoodRadius ?? DEFAULT_NEIGHBORHOOD_RADIUS;
14461
- const positiveK = options?.positiveStdDevMultiplier ?? DEFAULT_POSITIVE_STD_DEV_MULTIPLIER;
14462
- const negativeK = options?.negativeStdDevMultiplier ?? DEFAULT_NEGATIVE_STD_DEV_MULTIPLIER;
14463
- const negativeSeedMargin = options?.negativeSeedMargin ?? DEFAULT_NEGATIVE_SEED_MARGIN;
14464
- const negativeSeedsTargetPatches = options?.negativeSeedsTargetPatches ?? DEFAULT_NEGATIVE_SEEDS_COUNT;
13017
+ const neighborhoodRadius = options?.initialNeighborhoodRadius ?? runOneClickGrowCut_DEFAULT_NEIGHBORHOOD_RADIUS;
13018
+ const positiveK = options?.positiveStdDevMultiplier ?? runOneClickGrowCut_DEFAULT_POSITIVE_STD_DEV_MULTIPLIER;
13019
+ const negativeK = options?.negativeStdDevMultiplier ?? runOneClickGrowCut_DEFAULT_NEGATIVE_STD_DEV_MULTIPLIER;
13020
+ const negativeSeedMargin = options?.negativeSeedMargin ?? runOneClickGrowCut_DEFAULT_NEGATIVE_SEED_MARGIN;
13021
+ const negativeSeedsTargetPatches = options?.negativeSeedsTargetPatches ?? runOneClickGrowCut_DEFAULT_NEGATIVE_SEEDS_COUNT;
14465
13022
  const ijkStart = runOneClickGrowCut_transformWorldToIndex(refImageData, worldPosition).map(Math.round);
14466
13023
  const startIndex = referenceVolumeVoxelManager.toIndex(ijkStart);
14467
13024
  if (ijkStart[0] < 0 ||
@@ -14473,7 +13030,7 @@ function calculateGrowCutSeeds(referencedVolume, worldPosition, options) {
14473
13030
  console.warn('Click position is outside volume bounds.');
14474
13031
  return null;
14475
13032
  }
14476
- const initialStats = csUtils.calculateNeighborhoodStats(scalarData, dimensions, ijkStart, neighborhoodRadius);
13033
+ const initialStats = runOneClickGrowCut_csUtils.calculateNeighborhoodStats(scalarData, dimensions, ijkStart, neighborhoodRadius);
14477
13034
  if (initialStats.count === 0) {
14478
13035
  initialStats.mean = scalarData[startIndex];
14479
13036
  initialStats.stdDev = 0;
@@ -14570,7 +13127,7 @@ function calculateGrowCutSeeds(referencedVolume, worldPosition, options) {
14570
13127
  const negativeSeedIndices = new Set();
14571
13128
  let attempts = 0;
14572
13129
  let patchesAdded = 0;
14573
- const maxAttempts = negativeSeedsTargetPatches * MAX_NEGATIVE_SEED_ATTEMPTS_MULTIPLIER;
13130
+ const maxAttempts = negativeSeedsTargetPatches * runOneClickGrowCut_MAX_NEGATIVE_SEED_ATTEMPTS_MULTIPLIER;
14574
13131
  while (patchesAdded < negativeSeedsTargetPatches && attempts < maxAttempts) {
14575
13132
  attempts++;
14576
13133
  const rx = Math.floor(Math.random() * (maxXm - minXm + 1) + minXm);
@@ -14616,8 +13173,8 @@ function calculateGrowCutSeeds(referencedVolume, worldPosition, options) {
14616
13173
  return { positiveSeedIndices, negativeSeedIndices };
14617
13174
  }
14618
13175
  async function runOneClickGrowCut({ referencedVolumeId, worldPosition, options, }) {
14619
- const referencedVolume = cache.getVolume(referencedVolumeId);
14620
- const labelmap = volumeLoader.createAndCacheDerivedLabelmapVolume(referencedVolumeId);
13176
+ const referencedVolume = runOneClickGrowCut_cache.getVolume(referencedVolumeId);
13177
+ const labelmap = runOneClickGrowCut_volumeLoader.createAndCacheDerivedLabelmapVolume(referencedVolumeId);
14621
13178
  labelmap.voxelManager.forEach(({ index, value }) => {
14622
13179
  if (value !== 0) {
14623
13180
  labelmap.voxelManager.setAtIndex(index, 0);
@@ -14625,8 +13182,8 @@ async function runOneClickGrowCut({ referencedVolumeId, worldPosition, options,
14625
13182
  });
14626
13183
  const seeds = options.seeds ??
14627
13184
  calculateGrowCutSeeds(referencedVolume, worldPosition, options);
14628
- const positiveSeedLabel = options?.positiveSeedValue ?? POSITIVE_SEED_LABEL;
14629
- const negativeSeedLabel = options?.negativeSeedValue ?? NEGATIVE_SEED_LABEL;
13185
+ const positiveSeedLabel = options?.positiveSeedValue ?? runOneClickGrowCut_POSITIVE_SEED_LABEL;
13186
+ const negativeSeedLabel = options?.negativeSeedValue ?? runOneClickGrowCut_NEGATIVE_SEED_LABEL;
14630
13187
  if (!seeds) {
14631
13188
  return null;
14632
13189
  }
@@ -14643,7 +13200,7 @@ async function runOneClickGrowCut({ referencedVolumeId, worldPosition, options,
14643
13200
  negativeSeedIndices.forEach((index) => {
14644
13201
  labelmap.voxelManager.setAtIndex(index, negativeSeedLabel);
14645
13202
  });
14646
- await run(referencedVolumeId, labelmap.volumeId, options);
13203
+ await runOneClickGrowCut_run(referencedVolumeId, labelmap.volumeId, options);
14647
13204
  return labelmap;
14648
13205
  }
14649
13206
 
@@ -14671,14 +13228,20 @@ var triggerSegmentationEvents = __webpack_require__(49906);
14671
13228
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/constants/COLOR_LUT.js
14672
13229
  var COLOR_LUT = __webpack_require__(93952);
14673
13230
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/addColorLUT.js
14674
- var segmentation_addColorLUT = __webpack_require__(4714);
13231
+ var addColorLUT = __webpack_require__(4714);
14675
13232
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStateManager.js
14676
13233
  var SegmentationStateManager = __webpack_require__(59475);
14677
13234
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getViewportIdsWithSegmentation.js
14678
- var segmentation_getViewportIdsWithSegmentation = __webpack_require__(58859);
13235
+ var getViewportIdsWithSegmentation = __webpack_require__(58859);
14679
13236
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getActiveSegmentIndex.js
14680
- var segmentation_getActiveSegmentIndex = __webpack_require__(60740);
13237
+ var getActiveSegmentIndex = __webpack_require__(60740);
14681
13238
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentIndex.js
13239
+ /* unused harmony import specifier */ var getToolGroupForViewport;
13240
+ /* unused harmony import specifier */ var segmentIndex_invalidateBrushCursor;
13241
+ /* unused harmony import specifier */ var segmentIndex_getSegmentation;
13242
+ /* unused harmony import specifier */ var segmentIndex_getViewportIdsWithSegmentation;
13243
+ /* unused harmony import specifier */ var triggerSegmentationModified;
13244
+ /* unused harmony import specifier */ var getSegmentationRepresentations;
14682
13245
 
14683
13246
 
14684
13247
 
@@ -14686,8 +13249,8 @@ var segmentation_getActiveSegmentIndex = __webpack_require__(60740);
14686
13249
 
14687
13250
 
14688
13251
 
14689
- function segmentIndex_setActiveSegmentIndex(segmentationId, segmentIndex) {
14690
- const segmentation = getSegmentation(segmentationId);
13252
+ function setActiveSegmentIndex(segmentationId, segmentIndex) {
13253
+ const segmentation = segmentIndex_getSegmentation(segmentationId);
14691
13254
  if (typeof segmentIndex === 'string') {
14692
13255
  console.warn('segmentIndex is a string, converting to number');
14693
13256
  segmentIndex = Number(segmentIndex);
@@ -14708,7 +13271,7 @@ function segmentIndex_setActiveSegmentIndex(segmentationId, segmentIndex) {
14708
13271
  segmentation.segments[segmentIndex].active = true;
14709
13272
  triggerSegmentationModified(segmentationId);
14710
13273
  }
14711
- const viewportIds = getViewportIdsWithSegmentation(segmentationId);
13274
+ const viewportIds = segmentIndex_getViewportIdsWithSegmentation(segmentationId);
14712
13275
  viewportIds.forEach((viewportId) => {
14713
13276
  const representations = getSegmentationRepresentations(viewportId, {
14714
13277
  segmentationId,
@@ -14726,12 +13289,23 @@ function segmentIndex_setActiveSegmentIndex(segmentationId, segmentIndex) {
14726
13289
  if (!toolGroup) {
14727
13290
  return;
14728
13291
  }
14729
- invalidateBrushCursor(toolGroup.id);
13292
+ segmentIndex_invalidateBrushCursor(toolGroup.id);
14730
13293
  });
14731
13294
  }
14732
13295
 
14733
13296
 
14734
13297
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/internalAddSegmentationRepresentation.js
13298
+ /* unused harmony import specifier */ var getEnabledElementByViewportId;
13299
+ /* unused harmony import specifier */ var CORNERSTONE_COLOR_LUT;
13300
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_triggerAnnotationRenderForViewportIds;
13301
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_SegmentationRepresentations;
13302
+ /* unused harmony import specifier */ var triggerSegmentationDataModified;
13303
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_triggerSegmentationModified;
13304
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_addColorLUT;
13305
+ /* unused harmony import specifier */ var defaultSegmentationStateManager;
13306
+ /* unused harmony import specifier */ var addDefaultSegmentationListener;
13307
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_getActiveSegmentIndex;
13308
+ /* unused harmony import specifier */ var internalAddSegmentationRepresentation_setActiveSegmentIndex;
14735
13309
 
14736
13310
 
14737
13311
 
@@ -14741,7 +13315,7 @@ function segmentIndex_setActiveSegmentIndex(segmentationId, segmentIndex) {
14741
13315
 
14742
13316
 
14743
13317
 
14744
- function internalAddSegmentationRepresentation_internalAddSegmentationRepresentation(viewportId, representationInput) {
13318
+ function internalAddSegmentationRepresentation(viewportId, representationInput) {
14745
13319
  const { segmentationId, config } = representationInput;
14746
13320
  const renderingConfig = {
14747
13321
  colorLUTIndex: getColorLUTIndex(config),
@@ -14752,7 +13326,7 @@ function internalAddSegmentationRepresentation_internalAddSegmentationRepresenta
14752
13326
  if (viewport) {
14753
13327
  addDefaultSegmentationListener(viewport, segmentationId, representationInput.type);
14754
13328
  }
14755
- if (!getActiveSegmentIndex(segmentationId)) {
13329
+ if (!internalAddSegmentationRepresentation_getActiveSegmentIndex(segmentationId)) {
14756
13330
  let firstSegmentIndex = 1;
14757
13331
  const segmentation = defaultSegmentationStateManager.getSegmentation(segmentationId);
14758
13332
  if (segmentation) {
@@ -14760,21 +13334,21 @@ function internalAddSegmentationRepresentation_internalAddSegmentationRepresenta
14760
13334
  if (segmentKeys.length > 0) {
14761
13335
  firstSegmentIndex = segmentKeys.map((k) => Number(k)).sort()[0];
14762
13336
  }
14763
- setActiveSegmentIndex(segmentationId, firstSegmentIndex);
13337
+ internalAddSegmentationRepresentation_setActiveSegmentIndex(segmentationId, firstSegmentIndex);
14764
13338
  }
14765
13339
  }
14766
- if (representationInput.type === SegmentationRepresentations.Contour) {
14767
- triggerAnnotationRenderForViewportIds([viewportId]);
13340
+ if (representationInput.type === internalAddSegmentationRepresentation_SegmentationRepresentations.Contour) {
13341
+ internalAddSegmentationRepresentation_triggerAnnotationRenderForViewportIds([viewportId]);
14768
13342
  }
14769
- if (representationInput.type === SegmentationRepresentations.Surface) {
13343
+ if (representationInput.type === internalAddSegmentationRepresentation_SegmentationRepresentations.Surface) {
14770
13344
  triggerSegmentationDataModified(segmentationId);
14771
13345
  }
14772
- triggerSegmentationModified(segmentationId);
13346
+ internalAddSegmentationRepresentation_triggerSegmentationModified(segmentationId);
14773
13347
  }
14774
13348
  function getColorLUTIndex(config) {
14775
13349
  const { colorLUTOrIndex } = config || {};
14776
13350
  if (colorLUTOrIndex === undefined) {
14777
- const index = addColorLUT(JSON.parse(JSON.stringify(CORNERSTONE_COLOR_LUT)));
13351
+ const index = internalAddSegmentationRepresentation_addColorLUT(JSON.parse(JSON.stringify(CORNERSTONE_COLOR_LUT)));
14778
13352
  return index;
14779
13353
  }
14780
13354
  if (typeof colorLUTOrIndex === 'number') {
@@ -14782,26 +13356,28 @@ function getColorLUTIndex(config) {
14782
13356
  }
14783
13357
  if (Array.isArray(colorLUTOrIndex) &&
14784
13358
  colorLUTOrIndex.every((item) => Array.isArray(item) && item.length === 4)) {
14785
- const index = addColorLUT(colorLUTOrIndex);
13359
+ const index = internalAddSegmentationRepresentation_addColorLUT(colorLUTOrIndex);
14786
13360
  return index;
14787
13361
  }
14788
- const index = addColorLUT(JSON.parse(JSON.stringify(CORNERSTONE_COLOR_LUT)));
13362
+ const index = internalAddSegmentationRepresentation_addColorLUT(JSON.parse(JSON.stringify(CORNERSTONE_COLOR_LUT)));
14789
13363
  return index;
14790
13364
  }
14791
13365
 
14792
13366
 
14793
13367
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/addSegmentationRepresentationsToViewport.js
13368
+ /* unused harmony import specifier */ var addSegmentationRepresentationsToViewport_SegmentationRepresentations;
13369
+ /* unused harmony import specifier */ var addSegmentationRepresentationsToViewport_internalAddSegmentationRepresentation;
14794
13370
 
14795
13371
 
14796
- function addSegmentationRepresentationsToViewport_addSegmentationRepresentations(viewportId, segmentationInputArray) {
13372
+ function addSegmentationRepresentations(viewportId, segmentationInputArray) {
14797
13373
  segmentationInputArray.map((segmentationInput) => {
14798
- return internalAddSegmentationRepresentation(viewportId, segmentationInput);
13374
+ return addSegmentationRepresentationsToViewport_internalAddSegmentationRepresentation(viewportId, segmentationInput);
14799
13375
  });
14800
13376
  }
14801
13377
  function addContourRepresentationToViewport(viewportId, contourInputArray) {
14802
- return addSegmentationRepresentationsToViewport_addSegmentationRepresentations(viewportId, contourInputArray.map((input) => ({
13378
+ return addSegmentationRepresentations(viewportId, contourInputArray.map((input) => ({
14803
13379
  ...input,
14804
- type: SegmentationRepresentations.Contour,
13380
+ type: addSegmentationRepresentationsToViewport_SegmentationRepresentations.Contour,
14805
13381
  })));
14806
13382
  }
14807
13383
  function addContourRepresentationToViewportMap(viewportInputMap) {
@@ -14812,9 +13388,9 @@ function addContourRepresentationToViewportMap(viewportInputMap) {
14812
13388
  return results;
14813
13389
  }
14814
13390
  function addLabelmapRepresentationToViewport(viewportId, labelmapInputArray) {
14815
- return addSegmentationRepresentationsToViewport_addSegmentationRepresentations(viewportId, labelmapInputArray.map((input) => ({
13391
+ return addSegmentationRepresentations(viewportId, labelmapInputArray.map((input) => ({
14816
13392
  ...input,
14817
- type: SegmentationRepresentations.Labelmap,
13393
+ type: addSegmentationRepresentationsToViewport_SegmentationRepresentations.Labelmap,
14818
13394
  })));
14819
13395
  }
14820
13396
  function addLabelmapRepresentationToViewportMap(viewportInputMap) {
@@ -14822,14 +13398,14 @@ function addLabelmapRepresentationToViewportMap(viewportInputMap) {
14822
13398
  for (const [viewportId, inputArray] of Object.entries(viewportInputMap)) {
14823
13399
  results[viewportId] = addLabelmapRepresentationToViewport(viewportId, inputArray.map((input) => ({
14824
13400
  ...input,
14825
- type: SegmentationRepresentations.Labelmap,
13401
+ type: addSegmentationRepresentationsToViewport_SegmentationRepresentations.Labelmap,
14826
13402
  })));
14827
13403
  }
14828
13404
  }
14829
13405
  function addSurfaceRepresentationToViewport(viewportId, surfaceInputArray) {
14830
- return addSegmentationRepresentationsToViewport_addSegmentationRepresentations(viewportId, surfaceInputArray.map((input) => ({
13406
+ return addSegmentationRepresentations(viewportId, surfaceInputArray.map((input) => ({
14831
13407
  ...input,
14832
- type: SegmentationRepresentations.Surface,
13408
+ type: addSegmentationRepresentationsToViewport_SegmentationRepresentations.Surface,
14833
13409
  })));
14834
13410
  }
14835
13411
  function addSurfaceRepresentationToViewportMap(viewportInputMap) {
@@ -14842,18 +13418,25 @@ function addSurfaceRepresentationToViewportMap(viewportInputMap) {
14842
13418
 
14843
13419
 
14844
13420
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/updateStackSegmentationState.js
13421
+ /* unused harmony import specifier */ var updateStackSegmentationState_cache;
13422
+ /* unused harmony import specifier */ var eventTarget;
13423
+ /* unused harmony import specifier */ var updateStackSegmentationState_SegmentationRepresentations;
13424
+ /* unused harmony import specifier */ var Events;
13425
+ /* unused harmony import specifier */ var updateStackSegmentationState_getSegmentation;
13426
+ /* unused harmony import specifier */ var updateStackSegmentationState_triggerSegmentationDataModified;
13427
+ /* unused harmony import specifier */ var updateStackSegmentationState_addSegmentationRepresentations;
14845
13428
 
14846
13429
 
14847
13430
 
14848
13431
 
14849
13432
 
14850
- async function updateStackSegmentationState_updateStackSegmentationState({ segmentationId, viewportId, imageIds, options, }) {
14851
- const segmentation = getSegmentation(segmentationId);
13433
+ async function updateStackSegmentationState({ segmentationId, viewportId, imageIds, options, }) {
13434
+ const segmentation = updateStackSegmentationState_getSegmentation(segmentationId);
14852
13435
  if (options?.removeOriginal) {
14853
13436
  const data = segmentation.representationData
14854
13437
  .Labelmap;
14855
- if (cache.getVolume(data.volumeId)) {
14856
- cache.removeVolumeLoadObject(data.volumeId);
13438
+ if (updateStackSegmentationState_cache.getVolume(data.volumeId)) {
13439
+ updateStackSegmentationState_cache.removeVolumeLoadObject(data.volumeId);
14857
13440
  }
14858
13441
  segmentation.representationData.Labelmap = {
14859
13442
  imageIds,
@@ -14865,32 +13448,35 @@ async function updateStackSegmentationState_updateStackSegmentationState({ segme
14865
13448
  imageIds,
14866
13449
  };
14867
13450
  }
14868
- await addSegmentationRepresentations(viewportId, [
13451
+ await updateStackSegmentationState_addSegmentationRepresentations(viewportId, [
14869
13452
  {
14870
13453
  segmentationId,
14871
- type: SegmentationRepresentations.Labelmap,
13454
+ type: updateStackSegmentationState_SegmentationRepresentations.Labelmap,
14872
13455
  },
14873
13456
  ]);
14874
- eventTarget.addEventListenerOnce(Events.SEGMENTATION_RENDERED, () => triggerSegmentationDataModified(segmentationId));
13457
+ eventTarget.addEventListenerOnce(Events.SEGMENTATION_RENDERED, () => updateStackSegmentationState_triggerSegmentationDataModified(segmentationId));
14875
13458
  }
14876
13459
 
14877
13460
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/computeStackLabelmapFromVolume.js
13461
+ /* unused harmony import specifier */ var computeStackLabelmapFromVolume_cache;
13462
+ /* unused harmony import specifier */ var computeStackLabelmapFromVolume_getSegmentation;
13463
+ /* unused harmony import specifier */ var computeStackLabelmapFromVolume_updateStackSegmentationState;
14878
13464
 
14879
13465
 
14880
13466
 
14881
13467
  async function computeStackLabelmapFromVolume({ volumeId, }) {
14882
- const segmentationVolume = cache.getVolume(volumeId);
13468
+ const segmentationVolume = computeStackLabelmapFromVolume_cache.getVolume(volumeId);
14883
13469
  return { imageIds: segmentationVolume.imageIds };
14884
13470
  }
14885
13471
  function convertVolumeToStackLabelmap({ segmentationId, options, }) {
14886
- const segmentation = getSegmentation(segmentationId);
13472
+ const segmentation = computeStackLabelmapFromVolume_getSegmentation(segmentationId);
14887
13473
  if (!segmentation) {
14888
13474
  return;
14889
13475
  }
14890
13476
  const { volumeId } = segmentation.representationData
14891
13477
  .Labelmap;
14892
- const segmentationVolume = cache.getVolume(volumeId);
14893
- return updateStackSegmentationState({
13478
+ const segmentationVolume = computeStackLabelmapFromVolume_cache.getVolume(volumeId);
13479
+ return computeStackLabelmapFromVolume_updateStackSegmentationState({
14894
13480
  segmentationId,
14895
13481
  viewportId: options.viewportId,
14896
13482
  imageIds: segmentationVolume.imageIds,
@@ -14899,6 +13485,7 @@ function convertVolumeToStackLabelmap({ segmentationId, options, }) {
14899
13485
  }
14900
13486
 
14901
13487
  ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/computeVolumeLabelmapFromStack.js
13488
+ /* unused harmony import specifier */ var internalComputeVolumeLabelmapFromStack;
14902
13489
 
14903
13490
  async function computeVolumeLabelmapFromStack(args) {
14904
13491
  return internalComputeVolumeLabelmapFromStack(args);
@@ -15703,10 +14290,10 @@ const computeWorker = {
15703
14290
  (0,comlink/* expose */.p)(computeWorker);
15704
14291
 
15705
14292
 
15706
- /***/ }),
14293
+ /***/ },
15707
14294
 
15708
- /***/ 9175:
15709
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
14295
+ /***/ 9175
14296
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
15710
14297
 
15711
14298
  __webpack_require__.r(__webpack_exports__);
15712
14299
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -16548,10 +15135,10 @@ var forEach = function () {
16548
15135
  };
16549
15136
  }();
16550
15137
 
16551
- /***/ }),
15138
+ /***/ },
16552
15139
 
16553
- /***/ 5695:
16554
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
15140
+ /***/ 5695
15141
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
16555
15142
 
16556
15143
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16557
15144
  /* harmony export */ Ay: () => (/* binding */ Constants)
@@ -16622,10 +15209,10 @@ var Constants = {
16622
15209
 
16623
15210
 
16624
15211
 
16625
- /***/ }),
15212
+ /***/ },
16626
15213
 
16627
- /***/ 26393:
16628
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
15214
+ /***/ 26393
15215
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
16629
15216
 
16630
15217
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16631
15218
  /* harmony export */ Ay: () => (/* binding */ vtkImageData$1)
@@ -17026,10 +15613,10 @@ var vtkImageData$1 = {
17026
15613
 
17027
15614
 
17028
15615
 
17029
- /***/ }),
15616
+ /***/ },
17030
15617
 
17031
- /***/ 88345:
17032
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
15618
+ /***/ 88345
15619
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
17033
15620
 
17034
15621
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17035
15622
  /* harmony export */ Ay: () => (/* binding */ vtkColorTransferFunction$1)
@@ -18261,10 +16848,10 @@ var vtkColorTransferFunction$1 = {
18261
16848
 
18262
16849
 
18263
16850
 
18264
- /***/ }),
16851
+ /***/ },
18265
16852
 
18266
- /***/ 38153:
18267
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16853
+ /***/ 38153
16854
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18268
16855
 
18269
16856
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18270
16857
  /* harmony export */ A: () => (/* binding */ bisector)
@@ -18329,10 +16916,10 @@ function zero() {
18329
16916
  }
18330
16917
 
18331
16918
 
18332
- /***/ }),
16919
+ /***/ },
18333
16920
 
18334
- /***/ 44779:
18335
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16921
+ /***/ 44779
16922
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18336
16923
 
18337
16924
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18338
16925
  /* harmony export */ A: () => (/* binding */ zip)
@@ -18345,10 +16932,10 @@ function zip() {
18345
16932
  }
18346
16933
 
18347
16934
 
18348
- /***/ }),
16935
+ /***/ },
18349
16936
 
18350
- /***/ 80136:
18351
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16937
+ /***/ 80136
16938
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18352
16939
 
18353
16940
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18354
16941
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -18356,10 +16943,10 @@ function zip() {
18356
16943
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (x => () => x);
18357
16944
 
18358
16945
 
18359
- /***/ }),
16946
+ /***/ },
18360
16947
 
18361
- /***/ 20825:
18362
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16948
+ /***/ 20825
16949
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18363
16950
 
18364
16951
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18365
16952
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -18371,10 +16958,10 @@ function zip() {
18371
16958
  }
18372
16959
 
18373
16960
 
18374
- /***/ }),
16961
+ /***/ },
18375
16962
 
18376
- /***/ 20919:
18377
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16963
+ /***/ 20919
16964
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18378
16965
 
18379
16966
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18380
16967
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -18386,10 +16973,10 @@ function zip() {
18386
16973
  }
18387
16974
 
18388
16975
 
18389
- /***/ }),
16976
+ /***/ },
18390
16977
 
18391
- /***/ 66822:
18392
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
16978
+ /***/ 66822
16979
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
18393
16980
 
18394
16981
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18395
16982
  /* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
@@ -18401,6 +16988,6 @@ function zip() {
18401
16988
  }
18402
16989
 
18403
16990
 
18404
- /***/ })
16991
+ /***/ }
18405
16992
 
18406
16993
  }]);