@ohif/app 3.14.0-beta.54 → 3.14.0-beta.56
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.
- package/dist/{9187.bundle.47a04a89.js → 1283.bundle.56abacf4.js} +162 -137
- package/dist/{4262.bundle.0c550b7f.js → 1558.bundle.03d5783b.js} +36 -11
- package/dist/{1566.bundle.8d90bb15.js → 1566.bundle.e9f5d851.js} +5 -1
- package/dist/{1645.bundle.65cff869.js → 1645.bundle.618a2886.js} +700 -389
- package/dist/{1724.bundle.b4757283.js → 1724.bundle.59b20c59.js} +1184 -1139
- package/dist/{1788.bundle.5b78672d.js → 1788.bundle.3f1349d2.js} +101 -43
- package/dist/1975.bundle.53cf5d7c.js +8216 -0
- package/dist/{5922.bundle.46b3e037.js → 2894.bundle.db3f8686.js} +240 -151
- package/dist/{6567.bundle.cc57e572.js → 3044.bundle.039294b9.js} +105 -76
- package/dist/{3386.bundle.b835901b.js → 3386.bundle.a9fd7dfd.js} +92 -23
- package/dist/{4004.bundle.da822fd2.js → 4018.bundle.48c288e5.js} +128 -253
- package/dist/{2894.bundle.d612efb2.js → 513.bundle.9c0548cf.js} +1 -1
- package/dist/{5143.bundle.62bcf4ee.js → 5143.bundle.67167d39.js} +219 -147
- package/dist/{5895.bundle.b4892e1b.js → 5320.bundle.0c7b2cb7.js} +1473 -617
- package/dist/{5383.bundle.d393d2f5.js → 5383.bundle.79243338.js} +26 -4
- package/dist/{4324.bundle.8645d6b4.js → 5888.bundle.cd717f42.js} +1364 -8004
- package/dist/{8128.bundle.2afe5a05.js → 5914.bundle.00f408d2.js} +419 -49
- package/dist/{1284.bundle.a489bd1d.js → 5989.bundle.f8096a4e.js} +1175 -616
- package/dist/{6255.bundle.ee378f1c.js → 6255.bundle.521051c1.js} +42 -18
- package/dist/{829.bundle.e60fee3a.js → 641.bundle.4627a8e1.js} +472 -483
- package/dist/{1568.bundle.474a5a93.js → 9187.bundle.237037e4.js} +1 -1
- package/dist/{6711.bundle.baba2ccd.js → 9232.bundle.3b0caf8e.js} +10 -10
- package/dist/{1895.bundle.923d0bd4.js → 9620.bundle.67375c83.js} +82 -24
- package/dist/{app.bundle.871d916b.js → app.bundle.5a277c45.js} +44 -44
- package/dist/{compute.bundle.caab94e6.js → compute.bundle.a8f26c49.js} +10 -10
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.eed65b60.js → interpolation.bundle.aef2f614.js} +5 -5
- package/dist/{polySeg.bundle.34a58c4f.js → polySeg.bundle.ba052ac3.js} +11 -11
- package/dist/static/wasm/{27ff970b98.module.wasm → 0e14aeab30.module.wasm} +0 -0
- package/dist/static/wasm/58a146bc8c.module.wasm +0 -0
- package/dist/static/wasm/99a2672e64.module.wasm +0 -0
- package/dist/static/wasm/{11f8dc2413.module.wasm → d8b213f3ea.module.wasm} +0 -0
- package/dist/sw.js +1 -1
- package/package.json +6 -6
- package/dist/0.bundle.485115b4.js +0 -4498
- package/dist/static/wasm/58769f1d7d.module.wasm +0 -0
- /package/dist/{1895.bundle.css → 9620.bundle.css} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["rspackChunk_ohif_app"] ||= []).push([[
|
|
2
|
+
(globalThis["rspackChunk_ohif_app"] ||= []).push([[5989], {
|
|
3
3
|
90333(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
4
|
/* import */ var _common_js__rspack_import_0 = __webpack_require__(23172);
|
|
5
5
|
|
|
@@ -2763,107 +2763,108 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2763
2763
|
/* import */ var _getClosestImageId_js__rspack_import_17 = __webpack_require__(27307);
|
|
2764
2764
|
/* import */ var _getSpacingInNormalDirection_js__rspack_import_18 = __webpack_require__(1680);
|
|
2765
2765
|
/* import */ var _getEffectiveSpacingAlongDirection_js__rspack_import_19 = __webpack_require__(27790);
|
|
2766
|
-
/* import */ var
|
|
2767
|
-
/* import */ var
|
|
2768
|
-
/* import */ var
|
|
2769
|
-
/* import */ var
|
|
2770
|
-
/* import */ var
|
|
2771
|
-
/* import */ var
|
|
2772
|
-
/* import */ var
|
|
2773
|
-
/* import */ var
|
|
2774
|
-
/* import */ var
|
|
2775
|
-
/* import */ var
|
|
2776
|
-
/* import */ var
|
|
2777
|
-
/* import */ var
|
|
2778
|
-
/* import */ var
|
|
2779
|
-
/* import */ var
|
|
2780
|
-
/* import */ var
|
|
2781
|
-
/* import */ var
|
|
2782
|
-
/* import */ var
|
|
2783
|
-
/* import */ var
|
|
2784
|
-
/* import */ var
|
|
2785
|
-
/* import */ var
|
|
2786
|
-
/* import */ var
|
|
2787
|
-
/* import */ var
|
|
2788
|
-
/* import */ var
|
|
2789
|
-
/* import */ var
|
|
2790
|
-
/* import */ var
|
|
2791
|
-
/* import */ var
|
|
2792
|
-
/* import */ var
|
|
2793
|
-
/* import */ var
|
|
2794
|
-
/* import */ var
|
|
2795
|
-
/* import */ var
|
|
2796
|
-
/* import */ var
|
|
2797
|
-
/* import */ var
|
|
2798
|
-
/* import */ var
|
|
2799
|
-
/* import */ var
|
|
2800
|
-
/* import */ var
|
|
2801
|
-
/* import */ var
|
|
2802
|
-
/* import */ var
|
|
2803
|
-
/* import */ var
|
|
2804
|
-
/* import */ var
|
|
2805
|
-
/* import */ var
|
|
2806
|
-
/* import */ var
|
|
2807
|
-
/* import */ var
|
|
2808
|
-
/* import */ var
|
|
2809
|
-
/* import */ var
|
|
2810
|
-
/* import */ var
|
|
2811
|
-
/* import */ var
|
|
2812
|
-
/* import */ var
|
|
2813
|
-
/* import */ var
|
|
2814
|
-
/* import */ var
|
|
2815
|
-
/* import */ var
|
|
2816
|
-
/* import */ var
|
|
2817
|
-
/* import */ var
|
|
2818
|
-
/* import */ var
|
|
2819
|
-
/* import */ var
|
|
2820
|
-
/* import */ var
|
|
2821
|
-
/* import */ var
|
|
2822
|
-
/* import */ var
|
|
2823
|
-
/* import */ var
|
|
2824
|
-
/* import */ var
|
|
2825
|
-
/* import */ var
|
|
2826
|
-
/* import */ var
|
|
2827
|
-
/* import */ var
|
|
2828
|
-
/* import */ var
|
|
2829
|
-
/* import */ var
|
|
2830
|
-
/* import */ var
|
|
2831
|
-
/* import */ var
|
|
2832
|
-
/* import */ var
|
|
2833
|
-
/* import */ var
|
|
2834
|
-
/* import */ var
|
|
2835
|
-
/* import */ var
|
|
2836
|
-
/* import */ var
|
|
2837
|
-
/* import */ var
|
|
2838
|
-
/* import */ var
|
|
2839
|
-
/* import */ var
|
|
2840
|
-
/* import */ var
|
|
2841
|
-
/* import */ var
|
|
2842
|
-
/* import */ var
|
|
2843
|
-
/* import */ var
|
|
2844
|
-
/* import */ var
|
|
2845
|
-
/* import */ var
|
|
2846
|
-
/* import */ var
|
|
2847
|
-
/* import */ var
|
|
2848
|
-
/* import */ var
|
|
2849
|
-
/* import */ var
|
|
2850
|
-
/* import */ var
|
|
2851
|
-
/* import */ var
|
|
2852
|
-
/* import */ var
|
|
2853
|
-
/* import */ var
|
|
2854
|
-
/* import */ var
|
|
2855
|
-
/* import */ var
|
|
2856
|
-
/* import */ var
|
|
2857
|
-
/* import */ var
|
|
2858
|
-
/* import */ var
|
|
2859
|
-
/* import */ var
|
|
2860
|
-
/* import */ var
|
|
2861
|
-
/* import */ var
|
|
2862
|
-
/* import */ var
|
|
2863
|
-
/* import */ var
|
|
2864
|
-
/* import */ var
|
|
2865
|
-
/* import */ var
|
|
2866
|
-
/* import */ var
|
|
2766
|
+
/* import */ var _getViewSlabDepth_js__rspack_import_20 = __webpack_require__(13054);
|
|
2767
|
+
/* import */ var _getTargetVolumeAndSpacingInNormalDir_js__rspack_import_21 = __webpack_require__(32556);
|
|
2768
|
+
/* import */ var _getVolumeActorCorners_js__rspack_import_22 = __webpack_require__(35905);
|
|
2769
|
+
/* import */ var _indexWithinDimensions_js__rspack_import_23 = __webpack_require__(1348);
|
|
2770
|
+
/* import */ var _indexAlmostWithinDimensions_js__rspack_import_24 = __webpack_require__(62382);
|
|
2771
|
+
/* import */ var _getVolumeViewportsContainingSameVolumes_js__rspack_import_25 = __webpack_require__(92188);
|
|
2772
|
+
/* import */ var _getViewportsWithVolumeId_js__rspack_import_26 = __webpack_require__(78580);
|
|
2773
|
+
/* import */ var _transformWorldToIndex_js__rspack_import_27 = __webpack_require__(13837);
|
|
2774
|
+
/* import */ var _transformIndexToWorld_js__rspack_import_28 = __webpack_require__(51189);
|
|
2775
|
+
/* import */ var _loadImageToCanvas_js__rspack_import_29 = __webpack_require__(79190);
|
|
2776
|
+
/* import */ var _historyMemo_index_js__rspack_import_30 = __webpack_require__(69583);
|
|
2777
|
+
/* import */ var _renderToCanvasCPU_js__rspack_import_31 = __webpack_require__(60023);
|
|
2778
|
+
/* import */ var _renderToCanvasGPU_js__rspack_import_32 = __webpack_require__(84755);
|
|
2779
|
+
/* import */ var _worldToImageCoords_js__rspack_import_33 = __webpack_require__(86036);
|
|
2780
|
+
/* import */ var _imageToWorldCoords_js__rspack_import_34 = __webpack_require__(35518);
|
|
2781
|
+
/* import */ var _getVolumeSliceRangeInfo_js__rspack_import_35 = __webpack_require__(18655);
|
|
2782
|
+
/* import */ var _getVolumeViewportScrollInfo_js__rspack_import_36 = __webpack_require__(33439);
|
|
2783
|
+
/* import */ var _getSliceRange_js__rspack_import_37 = __webpack_require__(53817);
|
|
2784
|
+
/* import */ var _snapFocalPointToSlice_js__rspack_import_38 = __webpack_require__(69780);
|
|
2785
|
+
/* import */ var _getImageSliceDataForVolumeViewport_js__rspack_import_39 = __webpack_require__(21684);
|
|
2786
|
+
/* import */ var _actorCheck_js__rspack_import_40 = __webpack_require__(34455);
|
|
2787
|
+
/* import */ var _getViewportsWithImageURI_js__rspack_import_41 = __webpack_require__(76742);
|
|
2788
|
+
/* import */ var _getClosestStackImageIndexForPoint_js__rspack_import_42 = __webpack_require__(10259);
|
|
2789
|
+
/* import */ var _getCurrentVolumeViewportSlice_js__rspack_import_43 = __webpack_require__(67419);
|
|
2790
|
+
/* import */ var _calculateViewportsSpatialRegistration_js__rspack_import_44 = __webpack_require__(14598);
|
|
2791
|
+
/* import */ var _spatialRegistrationMetadataProvider_js__rspack_import_45 = __webpack_require__(40367);
|
|
2792
|
+
/* import */ var _getViewportImageCornersInWorld_js__rspack_import_46 = __webpack_require__(32640);
|
|
2793
|
+
/* import */ var _hasNaNValues_js__rspack_import_47 = __webpack_require__(1411);
|
|
2794
|
+
/* import */ var _applyPreset_js__rspack_import_48 = __webpack_require__(34049);
|
|
2795
|
+
/* import */ var _PointsManager_js__rspack_import_49 = __webpack_require__(79252);
|
|
2796
|
+
/* import */ var _deepMerge_js__rspack_import_50 = __webpack_require__(23964);
|
|
2797
|
+
/* import */ var _getScalingParameters_js__rspack_import_51 = __webpack_require__(2541);
|
|
2798
|
+
/* import */ var _isPTPrescaledWithSUV_js__rspack_import_52 = __webpack_require__(41227);
|
|
2799
|
+
/* import */ var _getImageLegacy_js__rspack_import_53 = __webpack_require__(73290);
|
|
2800
|
+
/* import */ var _sortImageIdsAndGetSpacing_js__rspack_import_54 = __webpack_require__(7913);
|
|
2801
|
+
/* import */ var _makeVolumeMetadata_js__rspack_import_55 = __webpack_require__(10985);
|
|
2802
|
+
/* import */ var _genericMetadataProvider_js__rspack_import_56 = __webpack_require__(73615);
|
|
2803
|
+
/* import */ var _isValidVolume_js__rspack_import_57 = __webpack_require__(22750);
|
|
2804
|
+
/* import */ var _updateVTKImageDataWithCornerstoneImage_js__rspack_import_58 = __webpack_require__(95390);
|
|
2805
|
+
/* import */ var _ProgressiveIterator_js__rspack_import_59 = __webpack_require__(56783);
|
|
2806
|
+
/* import */ var _decimate_js__rspack_import_60 = __webpack_require__(49230);
|
|
2807
|
+
/* import */ var _imageRetrieveMetadataProvider_js__rspack_import_61 = __webpack_require__(95071);
|
|
2808
|
+
/* import */ var _genericViewportDisplaySetMetadataProvider_js__rspack_import_62 = __webpack_require__(51127);
|
|
2809
|
+
/* import */ var _isVideoTransferSyntax_js__rspack_import_63 = __webpack_require__(15793);
|
|
2810
|
+
/* import */ var _getBufferConfiguration_js__rspack_import_64 = __webpack_require__(25752);
|
|
2811
|
+
/* import */ var _generateVolumePropsFromImageIds_js__rspack_import_65 = __webpack_require__(53286);
|
|
2812
|
+
/* import */ var _convertStackToVolumeViewport_js__rspack_import_66 = __webpack_require__(94152);
|
|
2813
|
+
/* import */ var _convertVolumeToStackViewport_js__rspack_import_67 = __webpack_require__(66802);
|
|
2814
|
+
/* import */ var _VoxelManager_js__rspack_import_68 = __webpack_require__(60719);
|
|
2815
|
+
/* import */ var _RLEVoxelMap_js__rspack_import_69 = __webpack_require__(71325);
|
|
2816
|
+
/* import */ var _roundNumber_js__rspack_import_70 = __webpack_require__(18355);
|
|
2817
|
+
/* import */ var _convertToGrayscale_js__rspack_import_71 = __webpack_require__(53373);
|
|
2818
|
+
/* import */ var _convertColorArrayToRgbString_js__rspack_import_72 = __webpack_require__(83860);
|
|
2819
|
+
/* import */ var _getViewportImageIds_js__rspack_import_73 = __webpack_require__(41109);
|
|
2820
|
+
/* import */ var _getRandomSampleFromArray_js__rspack_import_74 = __webpack_require__(62742);
|
|
2821
|
+
/* import */ var _getVolumeId_js__rspack_import_75 = __webpack_require__(65237);
|
|
2822
|
+
/* import */ var _hasFloatScalingParameters_js__rspack_import_76 = __webpack_require__(8985);
|
|
2823
|
+
/* import */ var _pointInShapeCallback_js__rspack_import_77 = __webpack_require__(87169);
|
|
2824
|
+
/* import */ var _ECGUtilities_js__rspack_import_78 = __webpack_require__(24511);
|
|
2825
|
+
/* import */ var _VideoUtilities_js__rspack_import_79 = __webpack_require__(18421);
|
|
2826
|
+
/* import */ var _WSIUtilities_js__rspack_import_80 = __webpack_require__(15975);
|
|
2827
|
+
/* import */ var _planar_js__rspack_import_81 = __webpack_require__(30828);
|
|
2828
|
+
/* import */ var _windowLevel_js__rspack_import_82 = __webpack_require__(30344);
|
|
2829
|
+
/* import */ var _colormap_js__rspack_import_83 = __webpack_require__(21155);
|
|
2830
|
+
/* import */ var _transferFunctionUtils_js__rspack_import_84 = __webpack_require__(48030);
|
|
2831
|
+
/* import */ var _color_js__rspack_import_85 = __webpack_require__(71813);
|
|
2832
|
+
/* import */ var _deepEqual_js__rspack_import_86 = __webpack_require__(46492);
|
|
2833
|
+
/* import */ var _FrameRange_js__rspack_import_87 = __webpack_require__(90446);
|
|
2834
|
+
/* import */ var _fnv1aHash_js__rspack_import_88 = __webpack_require__(29758);
|
|
2835
|
+
/* import */ var _getImageDataMetadata_js__rspack_import_89 = __webpack_require__(57804);
|
|
2836
|
+
/* import */ var _buildMetadata_js__rspack_import_90 = __webpack_require__(15499);
|
|
2837
|
+
/* import */ var _getViewportModality_js__rspack_import_91 = __webpack_require__(37191);
|
|
2838
|
+
/* import */ var _getScalingDescriptor_js__rspack_import_92 = __webpack_require__(67372);
|
|
2839
|
+
/* import */ var _resolveGenericViewportVolumeId_js__rspack_import_93 = __webpack_require__(25464);
|
|
2840
|
+
/* import */ var _cache_cache_js__rspack_import_94 = __webpack_require__(73998);
|
|
2841
|
+
/* import */ var _getDynamicVolumeInfo_js__rspack_import_95 = __webpack_require__(97587);
|
|
2842
|
+
/* import */ var _autoLoad_js__rspack_import_96 = __webpack_require__(38795);
|
|
2843
|
+
/* import */ var _scaleArray_js__rspack_import_97 = __webpack_require__(57039);
|
|
2844
|
+
/* import */ var _splitImageIdsBy4DTags_js__rspack_import_98 = __webpack_require__(50863);
|
|
2845
|
+
/* import */ var _deepClone_js__rspack_import_99 = __webpack_require__(46765);
|
|
2846
|
+
/* import */ var _jumpToSlice_js__rspack_import_100 = __webpack_require__(31223);
|
|
2847
|
+
/* import */ var _scroll_js__rspack_import_101 = __webpack_require__(29877);
|
|
2848
|
+
/* import */ var _clip_js__rspack_import_102 = __webpack_require__(22462);
|
|
2849
|
+
/* import */ var _createSubVolume_js__rspack_import_103 = __webpack_require__(63554);
|
|
2850
|
+
/* import */ var _getAcquisitionPlaneOrientation_js__rspack_import_104 = __webpack_require__(98567);
|
|
2851
|
+
/* import */ var _getVolumeDirectionVectors_js__rspack_import_105 = __webpack_require__(72707);
|
|
2852
|
+
/* import */ var _getVolumeViewReferenceId_js__rspack_import_106 = __webpack_require__(95045);
|
|
2853
|
+
/* import */ var _calculateSpacingBetweenImageIds_js__rspack_import_107 = __webpack_require__(78480);
|
|
2854
|
+
/* import */ var _logger_js__rspack_import_108 = __webpack_require__(34040);
|
|
2855
|
+
/* import */ var _calculateNeighborhoodStats_js__rspack_import_109 = __webpack_require__(69123);
|
|
2856
|
+
/* import */ var _viewportVoiIntensityMapping_js__rspack_import_110 = __webpack_require__(31459);
|
|
2857
|
+
/* import */ var _getPixelSpacingInformation_js__rspack_import_111 = __webpack_require__(61293);
|
|
2858
|
+
/* import */ var _getPlaneCubeIntersectionDimensions_js__rspack_import_112 = __webpack_require__(32367);
|
|
2859
|
+
/* import */ var _rotateToViewCoordinates_js__rspack_import_113 = __webpack_require__(4272);
|
|
2860
|
+
/* import */ var _voxelSlab_index_js__rspack_import_114 = __webpack_require__(46989);
|
|
2861
|
+
/* import */ var _asArray_js__rspack_import_115 = __webpack_require__(22779);
|
|
2862
|
+
/* import */ var _viewportCapabilities_js__rspack_import_116 = __webpack_require__(73224);
|
|
2863
|
+
/* import */ var _getNormalizedAspectRatio_js__rspack_import_117 = __webpack_require__(47232);
|
|
2864
|
+
/* import */ var _wasmBasePath_js__rspack_import_118 = __webpack_require__(59318);
|
|
2865
|
+
/* import */ var _resolveApplicationUrl_js__rspack_import_119 = __webpack_require__(49825);
|
|
2866
|
+
/* import */ var _updatePlaneRestriction_js__rspack_import_120 = __webpack_require__(49429);
|
|
2867
|
+
/* import */ var _isEqual_js__rspack_import_121 = __webpack_require__(3886);
|
|
2867
2868
|
|
|
2868
2869
|
|
|
2869
2870
|
|
|
@@ -2984,156 +2985,158 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2984
2985
|
|
|
2985
2986
|
|
|
2986
2987
|
|
|
2987
|
-
|
|
2988
|
-
const
|
|
2988
|
+
|
|
2989
|
+
const getViewportModality = (viewport, volumeId) => (0,_getViewportModality_js__rspack_import_91/* ._getViewportModality */.p)(viewport, volumeId, _cache_cache_js__rspack_import_94/* ["default"].getVolume */.Ay.getVolume);
|
|
2990
|
+
const getScalingDescriptor = (viewport, targetId) => (0,_getScalingDescriptor_js__rspack_import_92/* ._getScalingDescriptor */.c)(viewport, targetId, _cache_cache_js__rspack_import_94/* ["default"].getVolume */.Ay.getVolume);
|
|
2989
2991
|
|
|
2990
2992
|
|
|
2991
2993
|
|
|
2992
2994
|
__webpack_require__.d(__webpack_exports__, {
|
|
2993
|
-
ECGUtilities: () => (/* reexport module object */
|
|
2994
|
-
FrameRange: () => (/* reexport safe */
|
|
2995
|
-
HistoryMemo: () => (/* reexport module object */
|
|
2996
|
-
PointsManager: () => (/* reexport safe */
|
|
2997
|
-
ProgressiveIterator: () => (/* reexport safe */
|
|
2998
|
-
RLEVoxelMap: () => (/* reexport safe */
|
|
2999
|
-
VideoUtilities: () => (/* reexport module object */
|
|
3000
|
-
VoxelManager: () => (/* reexport safe */
|
|
3001
|
-
WSIUtilities: () => (/* reexport module object */
|
|
3002
|
-
actorIsA: () => (/* reexport safe */
|
|
3003
|
-
applyPreset: () => (/* reexport safe */
|
|
3004
|
-
asArray: () => (/* reexport safe */
|
|
3005
|
-
autoLoad: () => (/* reexport safe */
|
|
3006
|
-
buildMetadata: () => (/* reexport safe */
|
|
3007
|
-
calculateNeighborhoodStats: () => (/* reexport safe */
|
|
3008
|
-
calculateRadiographicPixelSpacing: () => (/* reexport safe */
|
|
3009
|
-
calculateSpacingBetweenImageIds: () => (/* reexport safe */
|
|
3010
|
-
calculateViewportsSpatialRegistration: () => (/* reexport safe */
|
|
2995
|
+
ECGUtilities: () => (/* reexport module object */ _ECGUtilities_js__rspack_import_78),
|
|
2996
|
+
FrameRange: () => (/* reexport safe */ _FrameRange_js__rspack_import_87.A),
|
|
2997
|
+
HistoryMemo: () => (/* reexport module object */ _historyMemo_index_js__rspack_import_30),
|
|
2998
|
+
PointsManager: () => (/* reexport safe */ _PointsManager_js__rspack_import_49.A),
|
|
2999
|
+
ProgressiveIterator: () => (/* reexport safe */ _ProgressiveIterator_js__rspack_import_59.A),
|
|
3000
|
+
RLEVoxelMap: () => (/* reexport safe */ _RLEVoxelMap_js__rspack_import_69.A),
|
|
3001
|
+
VideoUtilities: () => (/* reexport module object */ _VideoUtilities_js__rspack_import_79),
|
|
3002
|
+
VoxelManager: () => (/* reexport safe */ _VoxelManager_js__rspack_import_68.A),
|
|
3003
|
+
WSIUtilities: () => (/* reexport module object */ _WSIUtilities_js__rspack_import_80),
|
|
3004
|
+
actorIsA: () => (/* reexport safe */ _actorCheck_js__rspack_import_40.N),
|
|
3005
|
+
applyPreset: () => (/* reexport safe */ _applyPreset_js__rspack_import_48.A),
|
|
3006
|
+
asArray: () => (/* reexport safe */ _asArray_js__rspack_import_115._),
|
|
3007
|
+
autoLoad: () => (/* reexport safe */ _autoLoad_js__rspack_import_96.A),
|
|
3008
|
+
buildMetadata: () => (/* reexport safe */ _buildMetadata_js__rspack_import_90.KP),
|
|
3009
|
+
calculateNeighborhoodStats: () => (/* reexport safe */ _calculateNeighborhoodStats_js__rspack_import_109.c),
|
|
3010
|
+
calculateRadiographicPixelSpacing: () => (/* reexport safe */ _getPixelSpacingInformation_js__rspack_import_111.VD),
|
|
3011
|
+
calculateSpacingBetweenImageIds: () => (/* reexport safe */ _calculateSpacingBetweenImageIds_js__rspack_import_107.A),
|
|
3012
|
+
calculateViewportsSpatialRegistration: () => (/* reexport safe */ _calculateViewportsSpatialRegistration_js__rspack_import_44.A),
|
|
3011
3013
|
calibratedPixelSpacingMetadataProvider: () => (/* reexport safe */ _calibratedPixelSpacingMetadataProvider_js__rspack_import_14.A),
|
|
3012
3014
|
clamp: () => (/* reexport safe */ _clamp_js__rspack_import_15.A),
|
|
3013
|
-
clip: () => (/* reexport safe */
|
|
3015
|
+
clip: () => (/* reexport safe */ _clip_js__rspack_import_102.Ay),
|
|
3014
3016
|
clonePoint3: () => (/* reexport safe */ _clonePoint3_js__rspack_import_9.A),
|
|
3015
|
-
color: () => (/* reexport module object */
|
|
3016
|
-
colormap: () => (/* reexport module object */
|
|
3017
|
-
convertColorArrayToRgbString: () => (/* reexport safe */
|
|
3018
|
-
convertStackToVolumeViewport: () => (/* reexport safe */
|
|
3019
|
-
convertToGrayscale: () => (/* reexport safe */
|
|
3020
|
-
convertVolumeToStackViewport: () => (/* reexport safe */
|
|
3017
|
+
color: () => (/* reexport module object */ _color_js__rspack_import_85),
|
|
3018
|
+
colormap: () => (/* reexport module object */ _colormap_js__rspack_import_83),
|
|
3019
|
+
convertColorArrayToRgbString: () => (/* reexport safe */ _convertColorArrayToRgbString_js__rspack_import_72.J),
|
|
3020
|
+
convertStackToVolumeViewport: () => (/* reexport safe */ _convertStackToVolumeViewport_js__rspack_import_66.h),
|
|
3021
|
+
convertToGrayscale: () => (/* reexport safe */ _convertToGrayscale_js__rspack_import_71.A),
|
|
3022
|
+
convertVolumeToStackViewport: () => (/* reexport safe */ _convertVolumeToStackViewport_js__rspack_import_67.n),
|
|
3021
3023
|
createLinearRGBTransferFunction: () => (/* reexport safe */ _createLinearRGBTransferFunction_js__rspack_import_4.A),
|
|
3022
3024
|
createSigmoidRGBTransferFunction: () => (/* reexport safe */ _createSigmoidRGBTransferFunction_js__rspack_import_2.A),
|
|
3023
|
-
createSubVolume: () => (/* reexport safe */
|
|
3024
|
-
decimate: () => (/* reexport safe */
|
|
3025
|
-
deepClone: () => (/* reexport safe */
|
|
3026
|
-
deepEqual: () => (/* reexport safe */
|
|
3027
|
-
deepMerge: () => (/* reexport safe */
|
|
3025
|
+
createSubVolume: () => (/* reexport safe */ _createSubVolume_js__rspack_import_103.A),
|
|
3026
|
+
decimate: () => (/* reexport safe */ _decimate_js__rspack_import_60.A),
|
|
3027
|
+
deepClone: () => (/* reexport safe */ _deepClone_js__rspack_import_99.G),
|
|
3028
|
+
deepEqual: () => (/* reexport safe */ _deepEqual_js__rspack_import_86.b),
|
|
3029
|
+
deepMerge: () => (/* reexport safe */ _deepMerge_js__rspack_import_50.A),
|
|
3028
3030
|
eventListener: () => (/* reexport module object */ _eventListener_index_js__rspack_import_0),
|
|
3029
|
-
fnv1aHash: () => (/* reexport safe */
|
|
3030
|
-
generateFrameImageId: () => (/* reexport safe */
|
|
3031
|
-
generateVolumePropsFromImageIds: () => (/* reexport safe */
|
|
3032
|
-
genericMetadataProvider: () => (/* reexport safe */
|
|
3033
|
-
genericViewportDisplaySetMetadataProvider: () => (/* reexport safe */
|
|
3034
|
-
getAcquisitionPlaneOrientation: () => (/* reexport safe */
|
|
3035
|
-
getBufferConfiguration: () => (/* reexport safe */
|
|
3031
|
+
fnv1aHash: () => (/* reexport safe */ _fnv1aHash_js__rspack_import_88.A),
|
|
3032
|
+
generateFrameImageId: () => (/* reexport safe */ _splitImageIdsBy4DTags_js__rspack_import_98.Hf),
|
|
3033
|
+
generateVolumePropsFromImageIds: () => (/* reexport safe */ _generateVolumePropsFromImageIds_js__rspack_import_65.D),
|
|
3034
|
+
genericMetadataProvider: () => (/* reexport safe */ _genericMetadataProvider_js__rspack_import_56.A),
|
|
3035
|
+
genericViewportDisplaySetMetadataProvider: () => (/* reexport safe */ _genericViewportDisplaySetMetadataProvider_js__rspack_import_62.A),
|
|
3036
|
+
getAcquisitionPlaneOrientation: () => (/* reexport safe */ _getAcquisitionPlaneOrientation_js__rspack_import_104.A),
|
|
3037
|
+
getBufferConfiguration: () => (/* reexport safe */ _getBufferConfiguration_js__rspack_import_64.h),
|
|
3036
3038
|
getClosestImageId: () => (/* reexport safe */ _getClosestImageId_js__rspack_import_17.A),
|
|
3037
|
-
getClosestStackImageIndexForPoint: () => (/* reexport safe */
|
|
3038
|
-
getCubeSizeInView: () => (/* reexport safe */
|
|
3039
|
-
getCurrentVolumeViewportSlice: () => (/* reexport safe */
|
|
3040
|
-
getDynamicVolumeInfo: () => (/* reexport safe */
|
|
3041
|
-
getERMF: () => (/* reexport safe */
|
|
3039
|
+
getClosestStackImageIndexForPoint: () => (/* reexport safe */ _getClosestStackImageIndexForPoint_js__rspack_import_42.A),
|
|
3040
|
+
getCubeSizeInView: () => (/* reexport safe */ _getPlaneCubeIntersectionDimensions_js__rspack_import_112.H),
|
|
3041
|
+
getCurrentVolumeViewportSlice: () => (/* reexport safe */ _getCurrentVolumeViewportSlice_js__rspack_import_43.A),
|
|
3042
|
+
getDynamicVolumeInfo: () => (/* reexport safe */ _getDynamicVolumeInfo_js__rspack_import_95.A),
|
|
3043
|
+
getERMF: () => (/* reexport safe */ _getPixelSpacingInformation_js__rspack_import_111.lJ),
|
|
3042
3044
|
getEffectiveSpacingAlongDirection: () => (/* reexport safe */ _getEffectiveSpacingAlongDirection_js__rspack_import_19.A),
|
|
3043
|
-
getImageDataMetadata: () => (/* reexport safe */
|
|
3044
|
-
getImageLegacy: () => (/* reexport safe */
|
|
3045
|
-
getImageSliceDataForVolumeViewport: () => (/* reexport safe */
|
|
3045
|
+
getImageDataMetadata: () => (/* reexport safe */ _getImageDataMetadata_js__rspack_import_89.T),
|
|
3046
|
+
getImageLegacy: () => (/* reexport safe */ _getImageLegacy_js__rspack_import_53.A),
|
|
3047
|
+
getImageSliceDataForVolumeViewport: () => (/* reexport safe */ _getImageSliceDataForVolumeViewport_js__rspack_import_39.A),
|
|
3046
3048
|
getMinMax: () => (/* reexport safe */ _getMinMax_js__rspack_import_8.A),
|
|
3047
|
-
getNormalizedAspectRatio: () => (/* reexport safe */
|
|
3048
|
-
getPixelSpacingInformation: () => (/* reexport safe */
|
|
3049
|
-
getPublicUrl: () => (/* reexport safe */
|
|
3050
|
-
getRandomSampleFromArray: () => (/* reexport safe */
|
|
3049
|
+
getNormalizedAspectRatio: () => (/* reexport safe */ _getNormalizedAspectRatio_js__rspack_import_117.x),
|
|
3050
|
+
getPixelSpacingInformation: () => (/* reexport safe */ _getPixelSpacingInformation_js__rspack_import_111.Cc),
|
|
3051
|
+
getPublicUrl: () => (/* reexport safe */ _resolveApplicationUrl_js__rspack_import_119.b4),
|
|
3052
|
+
getRandomSampleFromArray: () => (/* reexport safe */ _getRandomSampleFromArray_js__rspack_import_74.p),
|
|
3051
3053
|
getRuntimeId: () => (/* reexport safe */ _getRuntimeId_js__rspack_import_11.A),
|
|
3052
|
-
getScalingParameters: () => (/* reexport safe */
|
|
3053
|
-
getSliceRange: () => (/* reexport safe */
|
|
3054
|
+
getScalingParameters: () => (/* reexport safe */ _getScalingParameters_js__rspack_import_51.A),
|
|
3055
|
+
getSliceRange: () => (/* reexport safe */ _getSliceRange_js__rspack_import_37.A),
|
|
3054
3056
|
getSpacingInNormalDirection: () => (/* reexport safe */ _getSpacingInNormalDirection_js__rspack_import_18.A),
|
|
3055
|
-
getTargetVolumeAndSpacingInNormalDir: () => (/* reexport safe */
|
|
3057
|
+
getTargetVolumeAndSpacingInNormalDir: () => (/* reexport safe */ _getTargetVolumeAndSpacingInNormalDir_js__rspack_import_21.A),
|
|
3056
3058
|
getVOIRangeFromWindowLevel: () => (/* reexport safe */ _getVOIRangeFromWindowLevel_js__rspack_import_12.A),
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3059
|
+
getViewSlabDepth: () => (/* reexport safe */ _getViewSlabDepth_js__rspack_import_20.A),
|
|
3060
|
+
getViewportContentMode: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.nH),
|
|
3061
|
+
getViewportImageCornersInWorld: () => (/* reexport safe */ _getViewportImageCornersInWorld_js__rspack_import_46.A),
|
|
3062
|
+
getViewportImageIds: () => (/* reexport safe */ _getViewportImageIds_js__rspack_import_73.A),
|
|
3063
|
+
getViewportsWithImageURI: () => (/* reexport safe */ _getViewportsWithImageURI_js__rspack_import_41.A),
|
|
3064
|
+
getViewportsWithVolumeId: () => (/* reexport safe */ _getViewportsWithVolumeId_js__rspack_import_26.A),
|
|
3062
3065
|
getVoiFromSigmoidRGBTransferFunction: () => (/* reexport safe */ _getVoiFromSigmoidRGBTransferFunction_js__rspack_import_3.A),
|
|
3063
|
-
getVolumeActorCorners: () => (/* reexport safe */
|
|
3064
|
-
getVolumeDirectionVectors: () => (/* reexport safe */
|
|
3065
|
-
getVolumeId: () => (/* reexport safe */
|
|
3066
|
-
getVolumeSliceRangeInfo: () => (/* reexport safe */
|
|
3067
|
-
getVolumeViewReferenceId: () => (/* reexport safe */
|
|
3068
|
-
getVolumeViewportScrollInfo: () => (/* reexport safe */
|
|
3069
|
-
getVolumeViewportsContainingSameVolumes: () => (/* reexport safe */
|
|
3070
|
-
getWasmBasePath: () => (/* reexport safe */
|
|
3071
|
-
handleMultiframe4D: () => (/* reexport safe */
|
|
3072
|
-
hasFloatScalingParameters: () => (/* reexport safe */
|
|
3073
|
-
hasNaNValues: () => (/* reexport safe */
|
|
3066
|
+
getVolumeActorCorners: () => (/* reexport safe */ _getVolumeActorCorners_js__rspack_import_22.A),
|
|
3067
|
+
getVolumeDirectionVectors: () => (/* reexport safe */ _getVolumeDirectionVectors_js__rspack_import_105.A),
|
|
3068
|
+
getVolumeId: () => (/* reexport safe */ _getVolumeId_js__rspack_import_75.A),
|
|
3069
|
+
getVolumeSliceRangeInfo: () => (/* reexport safe */ _getVolumeSliceRangeInfo_js__rspack_import_35.A),
|
|
3070
|
+
getVolumeViewReferenceId: () => (/* reexport safe */ _getVolumeViewReferenceId_js__rspack_import_106.A),
|
|
3071
|
+
getVolumeViewportScrollInfo: () => (/* reexport safe */ _getVolumeViewportScrollInfo_js__rspack_import_36.A),
|
|
3072
|
+
getVolumeViewportsContainingSameVolumes: () => (/* reexport safe */ _getVolumeViewportsContainingSameVolumes_js__rspack_import_25.A),
|
|
3073
|
+
getWasmBasePath: () => (/* reexport safe */ _wasmBasePath_js__rspack_import_118.ZC),
|
|
3074
|
+
handleMultiframe4D: () => (/* reexport safe */ _splitImageIdsBy4DTags_js__rspack_import_98.FM),
|
|
3075
|
+
hasFloatScalingParameters: () => (/* reexport safe */ _hasFloatScalingParameters_js__rspack_import_76.a),
|
|
3076
|
+
hasNaNValues: () => (/* reexport safe */ _hasNaNValues_js__rspack_import_47.A),
|
|
3074
3077
|
hasOwn: () => (/* reexport safe */ _hasOwn_js__rspack_import_10.A),
|
|
3075
3078
|
imageIdToURI: () => (/* reexport safe */ _imageIdToURI_js__rspack_import_13.A),
|
|
3076
|
-
imageRetrieveMetadataProvider: () => (/* reexport safe */
|
|
3077
|
-
imageToWorldCoords: () => (/* reexport safe */
|
|
3078
|
-
indexAlmostWithinDimensions: () => (/* reexport safe */
|
|
3079
|
-
indexWithinDimensions: () => (/* reexport safe */
|
|
3079
|
+
imageRetrieveMetadataProvider: () => (/* reexport safe */ _imageRetrieveMetadataProvider_js__rspack_import_61.A),
|
|
3080
|
+
imageToWorldCoords: () => (/* reexport safe */ _imageToWorldCoords_js__rspack_import_34.A),
|
|
3081
|
+
indexAlmostWithinDimensions: () => (/* reexport safe */ _indexAlmostWithinDimensions_js__rspack_import_24.A),
|
|
3082
|
+
indexWithinDimensions: () => (/* reexport safe */ _indexWithinDimensions_js__rspack_import_23.A),
|
|
3080
3083
|
invertRgbTransferFunction: () => (/* reexport safe */ _invertRgbTransferFunction_js__rspack_import_1.A),
|
|
3081
|
-
isEqual: () => (/* reexport safe */
|
|
3082
|
-
isEqualAbs: () => (/* reexport safe */
|
|
3083
|
-
isEqualNegative: () => (/* reexport safe */
|
|
3084
|
-
isGenericViewport: () => (/* reexport safe */
|
|
3085
|
-
isImageActor: () => (/* reexport safe */
|
|
3086
|
-
isNumber: () => (/* reexport safe */
|
|
3084
|
+
isEqual: () => (/* reexport safe */ _isEqual_js__rspack_import_121.n4),
|
|
3085
|
+
isEqualAbs: () => (/* reexport safe */ _isEqual_js__rspack_import_121.Ph),
|
|
3086
|
+
isEqualNegative: () => (/* reexport safe */ _isEqual_js__rspack_import_121.WC),
|
|
3087
|
+
isGenericViewport: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.oX),
|
|
3088
|
+
isImageActor: () => (/* reexport safe */ _actorCheck_js__rspack_import_40.e),
|
|
3089
|
+
isNumber: () => (/* reexport safe */ _isEqual_js__rspack_import_121.Et),
|
|
3087
3090
|
isOpposite: () => (/* reexport safe */ _isOpposite_js__rspack_import_16.A),
|
|
3088
|
-
isPTPrescaledWithSUV: () => (/* reexport safe */
|
|
3089
|
-
isValidVolume: () => (/* reexport safe */
|
|
3090
|
-
isVideoTransferSyntax: () => (/* reexport safe */
|
|
3091
|
-
jumpToSlice: () => (/* reexport safe */
|
|
3092
|
-
loadImageToCanvas: () => (/* reexport safe */
|
|
3093
|
-
logger: () => (/* reexport module object */
|
|
3094
|
-
makeVolumeMetadata: () => (/* reexport safe */
|
|
3095
|
-
mapMappedBandToRawRange: () => (/* reexport safe */
|
|
3096
|
-
mapScalarToViewportVoiIntensity: () => (/* reexport safe */
|
|
3097
|
-
mapViewportVoiIntensityToScalar: () => (/* reexport safe */
|
|
3098
|
-
planar: () => (/* reexport module object */
|
|
3099
|
-
pointInShapeCallback: () => (/* reexport safe */
|
|
3100
|
-
renderToCanvasCPU: () => (/* reexport safe */
|
|
3101
|
-
renderToCanvasGPU: () => (/* reexport safe */
|
|
3102
|
-
resolveApplicationUrl: () => (/* reexport safe */
|
|
3103
|
-
resolveGenericViewportVolumeId: () => (/* reexport safe */
|
|
3104
|
-
resolveWasmBasePath: () => (/* reexport safe */
|
|
3105
|
-
rotateToViewCoordinates: () => (/* reexport safe */
|
|
3106
|
-
roundNumber: () => (/* reexport safe */
|
|
3107
|
-
roundToPrecision: () => (/* reexport safe */
|
|
3108
|
-
scaleArray: () => (/* reexport safe */
|
|
3091
|
+
isPTPrescaledWithSUV: () => (/* reexport safe */ _isPTPrescaledWithSUV_js__rspack_import_52.A),
|
|
3092
|
+
isValidVolume: () => (/* reexport safe */ _isValidVolume_js__rspack_import_57.p),
|
|
3093
|
+
isVideoTransferSyntax: () => (/* reexport safe */ _isVideoTransferSyntax_js__rspack_import_63.A),
|
|
3094
|
+
jumpToSlice: () => (/* reexport safe */ _jumpToSlice_js__rspack_import_100.e),
|
|
3095
|
+
loadImageToCanvas: () => (/* reexport safe */ _loadImageToCanvas_js__rspack_import_29.A),
|
|
3096
|
+
logger: () => (/* reexport module object */ _logger_js__rspack_import_108),
|
|
3097
|
+
makeVolumeMetadata: () => (/* reexport safe */ _makeVolumeMetadata_js__rspack_import_55.A),
|
|
3098
|
+
mapMappedBandToRawRange: () => (/* reexport safe */ _viewportVoiIntensityMapping_js__rspack_import_110.j_),
|
|
3099
|
+
mapScalarToViewportVoiIntensity: () => (/* reexport safe */ _viewportVoiIntensityMapping_js__rspack_import_110.fT),
|
|
3100
|
+
mapViewportVoiIntensityToScalar: () => (/* reexport safe */ _viewportVoiIntensityMapping_js__rspack_import_110.l2),
|
|
3101
|
+
planar: () => (/* reexport module object */ _planar_js__rspack_import_81),
|
|
3102
|
+
pointInShapeCallback: () => (/* reexport safe */ _pointInShapeCallback_js__rspack_import_77.ii),
|
|
3103
|
+
renderToCanvasCPU: () => (/* reexport safe */ _renderToCanvasCPU_js__rspack_import_31.A),
|
|
3104
|
+
renderToCanvasGPU: () => (/* reexport safe */ _renderToCanvasGPU_js__rspack_import_32.A),
|
|
3105
|
+
resolveApplicationUrl: () => (/* reexport safe */ _resolveApplicationUrl_js__rspack_import_119.Ay),
|
|
3106
|
+
resolveGenericViewportVolumeId: () => (/* reexport safe */ _resolveGenericViewportVolumeId_js__rspack_import_93.d),
|
|
3107
|
+
resolveWasmBasePath: () => (/* reexport safe */ _wasmBasePath_js__rspack_import_118.Hv),
|
|
3108
|
+
rotateToViewCoordinates: () => (/* reexport safe */ _rotateToViewCoordinates_js__rspack_import_113.P),
|
|
3109
|
+
roundNumber: () => (/* reexport safe */ _roundNumber_js__rspack_import_70.A),
|
|
3110
|
+
roundToPrecision: () => (/* reexport safe */ _roundNumber_js__rspack_import_70.C),
|
|
3111
|
+
scaleArray: () => (/* reexport safe */ _scaleArray_js__rspack_import_97.A),
|
|
3109
3112
|
scaleRgbTransferFunction: () => (/* reexport safe */ _scaleRgbTransferFunction_js__rspack_import_5.A),
|
|
3110
|
-
scroll: () => (/* reexport safe */
|
|
3111
|
-
setWasmBasePath: () => (/* reexport safe */
|
|
3112
|
-
snapFocalPointToSlice: () => (/* reexport safe */
|
|
3113
|
-
sortImageIdsAndGetSpacing: () => (/* reexport safe */
|
|
3114
|
-
spatialRegistrationMetadataProvider: () => (/* reexport safe */
|
|
3115
|
-
splitImageIdsBy4DTags: () => (/* reexport safe */
|
|
3116
|
-
transferFunctionUtils: () => (/* reexport module object */
|
|
3117
|
-
transformIndexToWorld: () => (/* reexport safe */
|
|
3118
|
-
transformWorldToIndex: () => (/* reexport safe */
|
|
3119
|
-
transformWorldToIndexContinuous: () => (/* reexport safe */
|
|
3113
|
+
scroll: () => (/* reexport safe */ _scroll_js__rspack_import_101.A),
|
|
3114
|
+
setWasmBasePath: () => (/* reexport safe */ _wasmBasePath_js__rspack_import_118.Js),
|
|
3115
|
+
snapFocalPointToSlice: () => (/* reexport safe */ _snapFocalPointToSlice_js__rspack_import_38.A),
|
|
3116
|
+
sortImageIdsAndGetSpacing: () => (/* reexport safe */ _sortImageIdsAndGetSpacing_js__rspack_import_54.A),
|
|
3117
|
+
spatialRegistrationMetadataProvider: () => (/* reexport safe */ _spatialRegistrationMetadataProvider_js__rspack_import_45.A),
|
|
3118
|
+
splitImageIdsBy4DTags: () => (/* reexport safe */ _splitImageIdsBy4DTags_js__rspack_import_98.Ay),
|
|
3119
|
+
transferFunctionUtils: () => (/* reexport module object */ _transferFunctionUtils_js__rspack_import_84),
|
|
3120
|
+
transformIndexToWorld: () => (/* reexport safe */ _transformIndexToWorld_js__rspack_import_28.A),
|
|
3121
|
+
transformWorldToIndex: () => (/* reexport safe */ _transformWorldToIndex_js__rspack_import_27.A),
|
|
3122
|
+
transformWorldToIndexContinuous: () => (/* reexport safe */ _transformWorldToIndex_js__rspack_import_27.p),
|
|
3120
3123
|
triggerEvent: () => (/* reexport safe */ _triggerEvent_js__rspack_import_6.A),
|
|
3121
|
-
updatePlaneRestriction: () => (/* reexport safe */
|
|
3122
|
-
updateVTKImageDataWithCornerstoneImage: () => (/* reexport safe */
|
|
3124
|
+
updatePlaneRestriction: () => (/* reexport safe */ _updatePlaneRestriction_js__rspack_import_120.O),
|
|
3125
|
+
updateVTKImageDataWithCornerstoneImage: () => (/* reexport safe */ _updateVTKImageDataWithCornerstoneImage_js__rspack_import_58.J),
|
|
3123
3126
|
uuidv4: () => (/* reexport safe */ _uuidv4_js__rspack_import_7.A),
|
|
3124
|
-
viewportIsInStackMode: () => (/* reexport safe */
|
|
3125
|
-
viewportIsInVolumeMode: () => (/* reexport safe */
|
|
3126
|
-
viewportSupportsDisplaySetPresentation: () => (/* reexport safe */
|
|
3127
|
-
viewportSupportsImageSlices: () => (/* reexport safe */
|
|
3128
|
-
viewportSupportsStackCalibration: () => (/* reexport safe */
|
|
3129
|
-
viewportSupportsStackCompatibility: () => (/* reexport safe */
|
|
3130
|
-
viewportSupportsVolumeActors: () => (/* reexport safe */
|
|
3131
|
-
viewportSupportsVolumeCompatibility: () => (/* reexport safe */
|
|
3132
|
-
viewportSupportsVolumeId: () => (/* reexport safe */
|
|
3133
|
-
viewportSupportsVolumeURI: () => (/* reexport safe */
|
|
3134
|
-
voxelSlab: () => (/* reexport module object */
|
|
3135
|
-
windowLevel: () => (/* reexport module object */
|
|
3136
|
-
worldToImageCoords: () => (/* reexport safe */
|
|
3127
|
+
viewportIsInStackMode: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.NL),
|
|
3128
|
+
viewportIsInVolumeMode: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.zb),
|
|
3129
|
+
viewportSupportsDisplaySetPresentation: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.Tf),
|
|
3130
|
+
viewportSupportsImageSlices: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.hz),
|
|
3131
|
+
viewportSupportsStackCalibration: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.Xu),
|
|
3132
|
+
viewportSupportsStackCompatibility: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.T),
|
|
3133
|
+
viewportSupportsVolumeActors: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.$O),
|
|
3134
|
+
viewportSupportsVolumeCompatibility: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.rw),
|
|
3135
|
+
viewportSupportsVolumeId: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.Uv),
|
|
3136
|
+
viewportSupportsVolumeURI: () => (/* reexport safe */ _viewportCapabilities_js__rspack_import_116.vP),
|
|
3137
|
+
voxelSlab: () => (/* reexport module object */ _voxelSlab_index_js__rspack_import_114),
|
|
3138
|
+
windowLevel: () => (/* reexport module object */ _windowLevel_js__rspack_import_82),
|
|
3139
|
+
worldToImageCoords: () => (/* reexport safe */ _worldToImageCoords_js__rspack_import_33.A)
|
|
3137
3140
|
}, {
|
|
3138
3141
|
getScalingDescriptor: getScalingDescriptor,
|
|
3139
3142
|
getViewportModality: getViewportModality
|
|
@@ -3236,7 +3239,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3236
3239
|
|
|
3237
3240
|
|
|
3238
3241
|
},
|
|
3239
|
-
|
|
3242
|
+
83122(__unused_rspack___webpack_module__, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
3240
3243
|
// NAMESPACE OBJECT: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/polyData/utils.js
|
|
3241
3244
|
var utils_namespaceObject = {};
|
|
3242
3245
|
__webpack_require__.r(utils_namespaceObject);
|
|
@@ -5467,7 +5470,9 @@ function mouseDownActivate_mouseDownActivate(evt) {
|
|
|
5467
5470
|
if (activeTool.addNewAnnotation) {
|
|
5468
5471
|
try {
|
|
5469
5472
|
const annotation = activeTool.addNewAnnotation(evt, 'mouse');
|
|
5470
|
-
|
|
5473
|
+
if (annotation?.annotationUID) {
|
|
5474
|
+
setAnnotationSelected(annotation.annotationUID);
|
|
5475
|
+
}
|
|
5471
5476
|
}
|
|
5472
5477
|
catch (error) {
|
|
5473
5478
|
mouseDownActivate_cs3dLogger.warn('Error adding new annotation, viewport not ready:', error);
|
|
@@ -5962,7 +5967,9 @@ function touchStartActivate_touchStartActivate(evt) {
|
|
|
5962
5967
|
if (activeTool.addNewAnnotation) {
|
|
5963
5968
|
try {
|
|
5964
5969
|
const annotation = activeTool.addNewAnnotation(evt, 'touch');
|
|
5965
|
-
|
|
5970
|
+
if (annotation?.annotationUID) {
|
|
5971
|
+
setAnnotationSelected(annotation.annotationUID);
|
|
5972
|
+
}
|
|
5966
5973
|
}
|
|
5967
5974
|
catch (error) {
|
|
5968
5975
|
touchStartActivate_cs3dLogger.warn('Error adding new annotation, viewport not ready:', error);
|
|
@@ -6814,7 +6821,7 @@ var COLOR_LUT = __webpack_require__(45376);
|
|
|
6814
6821
|
|
|
6815
6822
|
|
|
6816
6823
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/version.js
|
|
6817
|
-
const version = '5.
|
|
6824
|
+
const version = '5.12.0';
|
|
6818
6825
|
|
|
6819
6826
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportPresentation.js
|
|
6820
6827
|
var viewportPresentation = __webpack_require__(69356);
|
|
@@ -7590,76 +7597,8 @@ function areViewportsSpatiallyLinked(source, target, options) {
|
|
|
7590
7597
|
}
|
|
7591
7598
|
}
|
|
7592
7599
|
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
const { RENDERING_DEFAULTS } = esm.CONSTANTS;
|
|
7597
|
-
function getSlabThicknessOrDefault(viewport) {
|
|
7598
|
-
if (esm.utilities.isGenericViewport(viewport)) {
|
|
7599
|
-
return RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
7600
|
-
}
|
|
7601
|
-
return viewport.getSlabThickness();
|
|
7602
|
-
}
|
|
7603
|
-
function jumpToFocalPoint(viewport, cameraFocalPoint) {
|
|
7604
|
-
if (esm.utilities.isGenericViewport(viewport)) {
|
|
7605
|
-
viewport.setViewReference({ cameraFocalPoint });
|
|
7606
|
-
}
|
|
7607
|
-
}
|
|
7608
|
-
function navigatePlanarViewportToPoint(viewport, worldPoint) {
|
|
7609
|
-
if (!esm.utilities.isGenericViewport(viewport)) {
|
|
7610
|
-
return false;
|
|
7611
|
-
}
|
|
7612
|
-
const isStackContent = viewport.getCurrentMode?.() === 'stack';
|
|
7613
|
-
if (isStackContent) {
|
|
7614
|
-
const stackViewport = viewport;
|
|
7615
|
-
if (typeof stackViewport.getImageIds !== 'function' ||
|
|
7616
|
-
typeof stackViewport.getCurrentImageIdIndex !== 'function') {
|
|
7617
|
-
return false;
|
|
7618
|
-
}
|
|
7619
|
-
let imageIndex = null;
|
|
7620
|
-
try {
|
|
7621
|
-
imageIndex = esm.utilities.getClosestStackImageIndexForPoint(worldPoint, stackViewport);
|
|
7622
|
-
}
|
|
7623
|
-
catch {
|
|
7624
|
-
return false;
|
|
7625
|
-
}
|
|
7626
|
-
if (imageIndex === null || imageIndex < 0) {
|
|
7627
|
-
return false;
|
|
7628
|
-
}
|
|
7629
|
-
viewport.setViewReference({
|
|
7630
|
-
sliceIndex: imageIndex,
|
|
7631
|
-
});
|
|
7632
|
-
return true;
|
|
7633
|
-
}
|
|
7634
|
-
viewport.setViewReference({
|
|
7635
|
-
cameraFocalPoint: [worldPoint[0], worldPoint[1], worldPoint[2]],
|
|
7636
|
-
});
|
|
7637
|
-
return true;
|
|
7638
|
-
}
|
|
7639
|
-
function getNativeSourceProperties(viewport) {
|
|
7640
|
-
if (!esm.utilities.viewportSupportsDisplaySetPresentation(viewport)) {
|
|
7641
|
-
return { properties: {} };
|
|
7642
|
-
}
|
|
7643
|
-
const sourceDataId = viewport.getSourceDataId();
|
|
7644
|
-
const properties = {
|
|
7645
|
-
...((sourceDataId
|
|
7646
|
-
? viewport.getDisplaySetPresentation(sourceDataId)
|
|
7647
|
-
: {}) ?? {}),
|
|
7648
|
-
};
|
|
7649
|
-
const voiLUTFunction = properties.VOILUTFunction ?? properties.voiLUTFunction;
|
|
7650
|
-
if (voiLUTFunction !== undefined) {
|
|
7651
|
-
properties.VOILUTFunction = voiLUTFunction;
|
|
7652
|
-
}
|
|
7653
|
-
const presentation = ((0,viewportPresentation/* .getViewportPresentation */.Z)(viewport) ?? {});
|
|
7654
|
-
return {
|
|
7655
|
-
properties,
|
|
7656
|
-
rotation: presentation.rotation,
|
|
7657
|
-
flipHorizontal: presentation.flipHorizontal,
|
|
7658
|
-
flipVertical: presentation.flipVertical,
|
|
7659
|
-
currentImageId: viewport.getCurrentImageId(),
|
|
7660
|
-
};
|
|
7661
|
-
}
|
|
7662
|
-
|
|
7600
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/genericViewportToolHelpers.js
|
|
7601
|
+
var genericViewportToolHelpers = __webpack_require__(73820);
|
|
7663
7602
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/spatial/translateViewportAlongNormal.js
|
|
7664
7603
|
|
|
7665
7604
|
|
|
@@ -7685,7 +7624,7 @@ function translateViewportAlongNormal(viewport, distance) {
|
|
|
7685
7624
|
const newFocalPoint = gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(gl_matrix_esm/* .vec3.create */.eR.vt(), focalPoint, viewPlaneNormal, distance);
|
|
7686
7625
|
const newPosition = gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(gl_matrix_esm/* .vec3.create */.eR.vt(), position, viewPlaneNormal, distance);
|
|
7687
7626
|
if (esm.utilities.isGenericViewport(viewport)) {
|
|
7688
|
-
return navigatePlanarViewportToPoint(viewport, [
|
|
7627
|
+
return (0,genericViewportToolHelpers/* .navigatePlanarViewportToPoint */.du)(viewport, [
|
|
7689
7628
|
newFocalPoint[0],
|
|
7690
7629
|
newFocalPoint[1],
|
|
7691
7630
|
newFocalPoint[2],
|
|
@@ -10474,7 +10413,7 @@ function calculateFanGeometry(imageId) {
|
|
|
10474
10413
|
|
|
10475
10414
|
|
|
10476
10415
|
|
|
10477
|
-
const { RENDERING_DEFAULTS
|
|
10416
|
+
const { RENDERING_DEFAULTS } = esm.CONSTANTS;
|
|
10478
10417
|
const STEP_SPACING_FRACTION = 0.25;
|
|
10479
10418
|
const MAX_SAMPLES = 2001;
|
|
10480
10419
|
function getSlabIntensityPickContext(viewport) {
|
|
@@ -10509,7 +10448,7 @@ function getSlabIntensityPickContext(viewport) {
|
|
|
10509
10448
|
return null;
|
|
10510
10449
|
}
|
|
10511
10450
|
if (!Number.isFinite(slabThickness) ||
|
|
10512
|
-
slabThickness <=
|
|
10451
|
+
slabThickness <= RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS) {
|
|
10513
10452
|
return null;
|
|
10514
10453
|
}
|
|
10515
10454
|
return { mode, slabThicknessMm: slabThickness };
|
|
@@ -10639,8 +10578,8 @@ var cursors = __webpack_require__(80935);
|
|
|
10639
10578
|
|
|
10640
10579
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/index.js + 1 modules
|
|
10641
10580
|
var stateManagement_annotation = __webpack_require__(51236);
|
|
10642
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/index.js +
|
|
10643
|
-
var stateManagement_segmentation = __webpack_require__(
|
|
10581
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/index.js + 9 modules
|
|
10582
|
+
var stateManagement_segmentation = __webpack_require__(86274);
|
|
10644
10583
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/splines/Spline.js
|
|
10645
10584
|
|
|
10646
10585
|
class Spline_Spline {
|
|
@@ -15231,7 +15170,7 @@ class CrosshairsTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
15231
15170
|
.rotate(90, viewPlaneNormal);
|
|
15232
15171
|
const worldUnitOrthoVectorFromCenter = [0, 0, 0];
|
|
15233
15172
|
gl_matrix_esm/* .vec3.transformMat4 */.eR.Z0(worldUnitOrthoVectorFromCenter, worldUnitVectorFromCenter, matrix);
|
|
15234
|
-
const slabThicknessValue = getSlabThicknessOrDefault(otherViewport);
|
|
15173
|
+
const slabThicknessValue = (0,genericViewportToolHelpers/* .getSlabThicknessOrDefault */.NT)(otherViewport);
|
|
15235
15174
|
const worldOrthoVectorFromCenter = [
|
|
15236
15175
|
...worldUnitOrthoVectorFromCenter,
|
|
15237
15176
|
];
|
|
@@ -15454,7 +15393,7 @@ class CrosshairsTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
15454
15393
|
type: 'rect',
|
|
15455
15394
|
});
|
|
15456
15395
|
}
|
|
15457
|
-
const slabThicknessValue = getSlabThicknessOrDefault(otherViewport);
|
|
15396
|
+
const slabThicknessValue = (0,genericViewportToolHelpers/* .getSlabThicknessOrDefault */.NT)(otherViewport);
|
|
15458
15397
|
if (slabThicknessValue > 0.5 && viewportSlabThicknessControlsOn) {
|
|
15459
15398
|
lineUID = `${lineIndex}STOne`;
|
|
15460
15399
|
(0,drawingSvg.drawLine)(svgDrawingHelper, annotationUID, lineUID, line[5], line[6], {
|
|
@@ -15942,7 +15881,7 @@ class CrosshairsTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
15942
15881
|
projectedDelta[2],
|
|
15943
15882
|
];
|
|
15944
15883
|
gl_matrix_esm/* .vec3.normalize */.eR.S8(normalizedProjectedDelta, normalizedProjectedDelta);
|
|
15945
|
-
let slabThicknessValue = getSlabThicknessOrDefault(otherViewport);
|
|
15884
|
+
let slabThicknessValue = (0,genericViewportToolHelpers/* .getSlabThicknessOrDefault */.NT)(otherViewport);
|
|
15946
15885
|
if (esm.utilities.isOpposite(normalizedProjectedDirection, normalizedProjectedDelta, 1e-3)) {
|
|
15947
15886
|
slabThicknessValue -= mod;
|
|
15948
15887
|
}
|
|
@@ -16258,7 +16197,7 @@ class CrosshairsTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
16258
16197
|
position[2] + scrollDelta[2],
|
|
16259
16198
|
];
|
|
16260
16199
|
if (esm.utilities.isGenericViewport(viewport)) {
|
|
16261
|
-
jumpToFocalPoint(viewport, newFocalPoint);
|
|
16200
|
+
(0,genericViewportToolHelpers/* .jumpToFocalPoint */.pY)(viewport, newFocalPoint);
|
|
16262
16201
|
}
|
|
16263
16202
|
else {
|
|
16264
16203
|
viewport.setCamera({
|
|
@@ -16402,7 +16341,7 @@ class CrosshairsTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
16402
16341
|
this._ignoreFiredEvents = true;
|
|
16403
16342
|
try {
|
|
16404
16343
|
if (esm.utilities.isGenericViewport(viewport)) {
|
|
16405
|
-
jumpToFocalPoint(viewport, newFocalPoint);
|
|
16344
|
+
(0,genericViewportToolHelpers/* .jumpToFocalPoint */.pY)(viewport, newFocalPoint);
|
|
16406
16345
|
}
|
|
16407
16346
|
else {
|
|
16408
16347
|
viewport.setCamera({
|
|
@@ -17111,7 +17050,7 @@ class WorldCrosshairTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17111
17050
|
const delta = gl_matrix_esm/* .vec3.subtract */.eR.Re(gl_matrix_esm/* .vec3.create */.eR.vt(), worldPoint, focalPoint);
|
|
17112
17051
|
const normalDistance = gl_matrix_esm/* .vec3.dot */.eR.Om(delta, viewPlaneNormal);
|
|
17113
17052
|
if (jumpMode === 'centered') {
|
|
17114
|
-
if (!navigatePlanarViewportToPoint(viewport, worldPoint)) {
|
|
17053
|
+
if (!(0,genericViewportToolHelpers/* .navigatePlanarViewportToPoint */.du)(viewport, worldPoint)) {
|
|
17115
17054
|
return;
|
|
17116
17055
|
}
|
|
17117
17056
|
viewport.setViewState({
|
|
@@ -17125,7 +17064,7 @@ class WorldCrosshairTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17125
17064
|
return;
|
|
17126
17065
|
}
|
|
17127
17066
|
const targetFocalPoint = gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(gl_matrix_esm/* .vec3.create */.eR.vt(), focalPoint, viewPlaneNormal, normalDistance);
|
|
17128
|
-
if (navigatePlanarViewportToPoint(viewport, [
|
|
17067
|
+
if ((0,genericViewportToolHelpers/* .navigatePlanarViewportToPoint */.du)(viewport, [
|
|
17129
17068
|
targetFocalPoint[0],
|
|
17130
17069
|
targetFocalPoint[1],
|
|
17131
17070
|
targetFocalPoint[2],
|
|
@@ -17505,7 +17444,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17505
17444
|
if (!enabledElement) {
|
|
17506
17445
|
return false;
|
|
17507
17446
|
}
|
|
17508
|
-
return !!this._findLineNear(enabledElement.viewport.id, canvasCoords, LINE_PROXIMITY, true);
|
|
17447
|
+
return !!this._findLineNear(enabledElement.viewport.id, canvasCoords, LINE_PROXIMITY, { includeHandles: true });
|
|
17509
17448
|
};
|
|
17510
17449
|
this.toolSelectedCallback = (evt, _annotation) => {
|
|
17511
17450
|
const { element, currentPoints } = evt.detail;
|
|
@@ -17582,7 +17521,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17582
17521
|
if (!this._isPlanarViewport(viewport)) {
|
|
17583
17522
|
return false;
|
|
17584
17523
|
}
|
|
17585
|
-
const lineInfo = this._findLineNear(viewport.id, currentPoints.canvas, LINE_PROXIMITY, true);
|
|
17524
|
+
const lineInfo = this._findLineNear(viewport.id, currentPoints.canvas, LINE_PROXIMITY, { includeHandles: true, includeSlabLines: true });
|
|
17586
17525
|
let needsRedraw = false;
|
|
17587
17526
|
if (lineInfo) {
|
|
17588
17527
|
if (this._activeGroupId !== lineInfo.groupId ||
|
|
@@ -17787,7 +17726,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17787
17726
|
if (!member || !this._isPlanarViewport(member)) {
|
|
17788
17727
|
return;
|
|
17789
17728
|
}
|
|
17790
|
-
if (navigatePlanarViewportToPoint(member, leaderPlane.point)) {
|
|
17729
|
+
if ((0,genericViewportToolHelpers/* .navigatePlanarViewportToPoint */.du)(member, leaderPlane.point)) {
|
|
17791
17730
|
member.render();
|
|
17792
17731
|
}
|
|
17793
17732
|
});
|
|
@@ -17864,7 +17803,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17864
17803
|
this._appendSlabGeometry(lineInfo, targetViewport, targetPlane, leaderViewport, leaderPlane);
|
|
17865
17804
|
this._appendBoundaryGeometry(lineInfo, targetViewport, targetPlane, leaderViewport, leaderPlane);
|
|
17866
17805
|
if (isActive) {
|
|
17867
|
-
this._appendHandles(lineInfo,
|
|
17806
|
+
this._appendHandles(lineInfo, leaderViewport);
|
|
17868
17807
|
}
|
|
17869
17808
|
return lineInfo;
|
|
17870
17809
|
}
|
|
@@ -17971,7 +17910,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17971
17910
|
spacing: Number.isFinite(spacing) ? spacing : 0,
|
|
17972
17911
|
};
|
|
17973
17912
|
}
|
|
17974
|
-
_appendHandles(lineInfo,
|
|
17913
|
+
_appendHandles(lineInfo, leaderViewport) {
|
|
17975
17914
|
const { rotatable, slabThicknessControls, showSlabThickness } = this.configuration;
|
|
17976
17915
|
const [start, end] = lineInfo.canvasPoints;
|
|
17977
17916
|
const volumeMode = this._isVolumeModeViewport(leaderViewport);
|
|
@@ -17982,32 +17921,22 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
17982
17921
|
]);
|
|
17983
17922
|
}
|
|
17984
17923
|
if (slabThicknessControls && showSlabThickness && volumeMode) {
|
|
17985
|
-
lineInfo.slabHandles = this._computeSlabHandles(lineInfo
|
|
17924
|
+
lineInfo.slabHandles = this._computeSlabHandles(lineInfo);
|
|
17986
17925
|
}
|
|
17987
17926
|
}
|
|
17988
|
-
_computeSlabHandles(lineInfo
|
|
17927
|
+
_computeSlabHandles(lineInfo) {
|
|
17989
17928
|
const [start, end] = lineInfo.canvasPoints;
|
|
17990
17929
|
const anchorCanvas = [
|
|
17991
17930
|
start[0] + (end[0] - start[0]) * SLAB_HANDLE_LINE_FRACTION,
|
|
17992
17931
|
start[1] + (end[1] - start[1]) * SLAB_HANDLE_LINE_FRACTION,
|
|
17993
17932
|
];
|
|
17994
|
-
const
|
|
17995
|
-
const
|
|
17996
|
-
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
];
|
|
18002
|
-
const plusCanvas = targetViewport.worldToCanvas(plusWorld);
|
|
18003
|
-
const canvasOffset = Math.hypot(plusCanvas[0] - anchorCanvas[0], plusCanvas[1] - anchorCanvas[1]);
|
|
18004
|
-
if (canvasOffset >= MIN_SLAB_HANDLE_CANVAS_OFFSET) {
|
|
18005
|
-
const minusWorld = [
|
|
18006
|
-
anchorWorld[0] - normal[0] * (slabThickness / 2),
|
|
18007
|
-
anchorWorld[1] - normal[1] * (slabThickness / 2),
|
|
18008
|
-
anchorWorld[2] - normal[2] * (slabThickness / 2),
|
|
18009
|
-
];
|
|
18010
|
-
return [plusCanvas, targetViewport.worldToCanvas(minusWorld)];
|
|
17933
|
+
const minimumOffsetSquared = MIN_SLAB_HANDLE_CANVAS_OFFSET * MIN_SLAB_HANDLE_CANVAS_OFFSET;
|
|
17934
|
+
const handles = lineInfo.slabLineSegments
|
|
17935
|
+
.map(([segmentStart, segmentEnd]) => math_line.distanceToPointSquaredInfo(segmentStart, segmentEnd, anchorCanvas))
|
|
17936
|
+
.filter((info) => info.distanceSquared >= minimumOffsetSquared)
|
|
17937
|
+
.map((info) => info.point);
|
|
17938
|
+
if (handles.length) {
|
|
17939
|
+
return handles;
|
|
18011
17940
|
}
|
|
18012
17941
|
const direction = gl_matrix_esm/* .vec2.normalize */.Zc.S8(gl_matrix_esm/* .vec2.create */.Zc.vt(), gl_matrix_esm/* .vec2.subtract */.Zc.Re(gl_matrix_esm/* .vec2.create */.Zc.vt(), end, start));
|
|
18013
17942
|
const perpendicular = [-direction[1], direction[0]];
|
|
@@ -18113,7 +18042,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
18113
18042
|
startPlanePoint[1] + memberPlane.normal[1] * distance,
|
|
18114
18043
|
startPlanePoint[2] + memberPlane.normal[2] * distance,
|
|
18115
18044
|
];
|
|
18116
|
-
if (navigatePlanarViewportToPoint(member, targetPoint)) {
|
|
18045
|
+
if ((0,genericViewportToolHelpers/* .navigatePlanarViewportToPoint */.du)(member, targetPoint)) {
|
|
18117
18046
|
member.render();
|
|
18118
18047
|
}
|
|
18119
18048
|
});
|
|
@@ -18316,7 +18245,7 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
18316
18245
|
targetViewportId: lineInfo.targetViewportId,
|
|
18317
18246
|
});
|
|
18318
18247
|
}
|
|
18319
|
-
_findLineNear(viewportId, canvasCoords, proximity, includeHandles = false) {
|
|
18248
|
+
_findLineNear(viewportId, canvasCoords, proximity, { includeHandles = false, includeSlabLines = false, } = {}) {
|
|
18320
18249
|
const lines = this._renderedLines.get(viewportId) ?? [];
|
|
18321
18250
|
const handleReach = this.configuration.handleRadius + proximity;
|
|
18322
18251
|
for (const lineInfo of lines) {
|
|
@@ -18334,6 +18263,22 @@ class SliceIntersectionTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
18334
18263
|
}
|
|
18335
18264
|
}
|
|
18336
18265
|
}
|
|
18266
|
+
if (includeSlabLines && this.configuration.slabThicknessControls) {
|
|
18267
|
+
let slabLineInfo = null;
|
|
18268
|
+
let slabLineDistance = Infinity;
|
|
18269
|
+
for (const lineInfo of lines) {
|
|
18270
|
+
for (const [segmentStart, segmentEnd] of lineInfo.slabLineSegments) {
|
|
18271
|
+
const distance = math_line.distanceToPoint(segmentStart, segmentEnd, canvasCoords);
|
|
18272
|
+
if (distance <= proximity && distance < slabLineDistance) {
|
|
18273
|
+
slabLineDistance = distance;
|
|
18274
|
+
slabLineInfo = lineInfo;
|
|
18275
|
+
}
|
|
18276
|
+
}
|
|
18277
|
+
}
|
|
18278
|
+
if (slabLineInfo) {
|
|
18279
|
+
return slabLineInfo;
|
|
18280
|
+
}
|
|
18281
|
+
}
|
|
18337
18282
|
return null;
|
|
18338
18283
|
}
|
|
18339
18284
|
_getViewportsInfo() {
|
|
@@ -18504,7 +18449,7 @@ class MagnifyTool extends tools_base/* .BaseTool */.oS {
|
|
|
18504
18449
|
const { viewport } = enabledElement;
|
|
18505
18450
|
const { element } = viewport;
|
|
18506
18451
|
const native = esm.utilities.isGenericViewport(viewport)
|
|
18507
|
-
? getNativeSourceProperties(viewport)
|
|
18452
|
+
? (0,genericViewportToolHelpers/* .getNativeSourceProperties */.sH)(viewport)
|
|
18508
18453
|
: undefined;
|
|
18509
18454
|
const viewportProperties = native
|
|
18510
18455
|
? native.properties
|
|
@@ -18656,7 +18601,7 @@ class MagnifyTool extends tools_base/* .BaseTool */.oS {
|
|
|
18656
18601
|
referencedImageId = targetId.split('imageId:')[1];
|
|
18657
18602
|
}
|
|
18658
18603
|
else if (esm.utilities.isGenericViewport(viewport)) {
|
|
18659
|
-
referencedImageId = getNativeSourceProperties(viewport).currentImageId;
|
|
18604
|
+
referencedImageId = (0,genericViewportToolHelpers/* .getNativeSourceProperties */.sH)(viewport).currentImageId;
|
|
18660
18605
|
}
|
|
18661
18606
|
return referencedImageId;
|
|
18662
18607
|
}
|
|
@@ -18744,7 +18689,7 @@ class AdvancedMagnifyTool extends tools_base/* .AnnotationTool */.EC {
|
|
|
18744
18689
|
? (0,utilities_getViewportICamera/* ["default"] */.A)(viewport)
|
|
18745
18690
|
: viewport.getCamera();
|
|
18746
18691
|
const referencedImageId = isNativeSource
|
|
18747
|
-
? getNativeSourceProperties(viewport).currentImageId
|
|
18692
|
+
? (0,genericViewportToolHelpers/* .getNativeSourceProperties */.sH)(viewport).currentImageId
|
|
18748
18693
|
: this.getReferencedImageId(viewport, worldPos, viewPlaneNormal, viewUp);
|
|
18749
18694
|
const annotationUID = esm.utilities.uuidv4();
|
|
18750
18695
|
const magnifyViewportId = esm.utilities.uuidv4();
|
|
@@ -19730,7 +19675,7 @@ class AdvancedMagnifyViewport {
|
|
|
19730
19675
|
const worldPos = sourceViewport.canvasToWorld(this.position);
|
|
19731
19676
|
const parallelScale = this._convertZoomFactorToParallelScale(sourceViewport, magnifyViewport, this.zoomFactor);
|
|
19732
19677
|
const native = esm.utilities.isGenericViewport(sourceViewport)
|
|
19733
|
-
? getNativeSourceProperties(sourceViewport)
|
|
19678
|
+
? (0,genericViewportToolHelpers/* .getNativeSourceProperties */.sH)(sourceViewport)
|
|
19734
19679
|
: undefined;
|
|
19735
19680
|
const { flipHorizontal, flipVertical } = native ?? sourceViewport.getCamera();
|
|
19736
19681
|
const { focalPoint, position, viewPlaneNormal } = magnifyViewport.getCamera();
|
|
@@ -19763,7 +19708,7 @@ class AdvancedMagnifyViewport {
|
|
|
19763
19708
|
const { viewport: magnifyViewport } = this._enabledElement;
|
|
19764
19709
|
const isNativeSource = esm.utilities.isGenericViewport(sourceViewport);
|
|
19765
19710
|
const sourceProperties = isNativeSource
|
|
19766
|
-
? getNativeSourceProperties(sourceViewport).properties
|
|
19711
|
+
? (0,genericViewportToolHelpers/* .getNativeSourceProperties */.sH)(sourceViewport).properties
|
|
19767
19712
|
: sourceViewport.getProperties();
|
|
19768
19713
|
const imageData = magnifyViewport.getImageData();
|
|
19769
19714
|
if (!imageData) {
|
|
@@ -20703,7 +20648,7 @@ class ReferenceCursors extends AnnotationDisplayTool/* ["default"] */.A {
|
|
|
20703
20648
|
const normalizedViewPlane = gl_matrix_esm/* .vec3.normalize */.eR.S8(gl_matrix_esm/* .vec3.create */.eR.vt(), gl_matrix_esm/* .vec3.fromValues */.eR.fA(...viewPlaneNormal));
|
|
20704
20649
|
const scaledPlaneNormal = gl_matrix_esm/* .vec3.scale */.eR.hs(gl_matrix_esm/* .vec3.create */.eR.vt(), normalizedViewPlane, currentDistance);
|
|
20705
20650
|
const newFocalPoint = gl_matrix_esm/* .vec3.add */.eR.WQ(gl_matrix_esm/* .vec3.create */.eR.vt(), gl_matrix_esm/* .vec3.fromValues */.eR.fA(...focalPoint), scaledPlaneNormal);
|
|
20706
|
-
jumpToFocalPoint(viewport, newFocalPoint);
|
|
20651
|
+
(0,genericViewportToolHelpers/* .jumpToFocalPoint */.pY)(viewport, newFocalPoint);
|
|
20707
20652
|
const renderingEngine = viewport.getRenderingEngine();
|
|
20708
20653
|
if (renderingEngine) {
|
|
20709
20654
|
renderingEngine.renderViewport(viewport.id);
|
|
@@ -21119,8 +21064,8 @@ var helpers = __webpack_require__(91336);
|
|
|
21119
21064
|
var CircleSculptCursor = __webpack_require__(73455);
|
|
21120
21065
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/distancePointToContour.js
|
|
21121
21066
|
var distancePointToContour = __webpack_require__(21111);
|
|
21122
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js +
|
|
21123
|
-
var math_polyline = __webpack_require__(
|
|
21067
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js + 3 modules
|
|
21068
|
+
var math_polyline = __webpack_require__(1109);
|
|
21124
21069
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/SculptorTool.js
|
|
21125
21070
|
|
|
21126
21071
|
|
|
@@ -23378,6 +23323,8 @@ function DragProbeTool_defaultGetTextLines(data, targetId) {
|
|
|
23378
23323
|
var RectangleROITool = __webpack_require__(10826);
|
|
23379
23324
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/getWorldWidthAndHeightFromTwoPoints.js
|
|
23380
23325
|
var getWorldWidthAndHeightFromTwoPoints = __webpack_require__(13298);
|
|
23326
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/areaAnnotationShapeUtils.js
|
|
23327
|
+
var areaAnnotationShapeUtils = __webpack_require__(98512);
|
|
23381
23328
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/index.js + 2 modules
|
|
23382
23329
|
var math_ellipse = __webpack_require__(88688);
|
|
23383
23330
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/basic/index.js
|
|
@@ -23407,6 +23354,7 @@ var EllipticalROITool_a;
|
|
|
23407
23354
|
|
|
23408
23355
|
|
|
23409
23356
|
|
|
23357
|
+
|
|
23410
23358
|
|
|
23411
23359
|
|
|
23412
23360
|
const EllipticalROITool_cs3dLogger = esm.utilities.logger.toolsLog.getLogger('tools.annotation.EllipticalROITool');
|
|
@@ -23937,7 +23885,7 @@ class EllipticalROITool extends tools_base/* .AnnotationTool */.EC {
|
|
|
23937
23885
|
points: points,
|
|
23938
23886
|
boundsMargin: Math.max(majorRadius, minorRadius),
|
|
23939
23887
|
createShape: ({ volume, planePoint, viewPlaneNormal: normal }) => {
|
|
23940
|
-
if (!(
|
|
23888
|
+
if (!(0,areaAnnotationShapeUtils/* .hasValidAreaAnnotationDimensions */.k)(majorRadius, minorRadius)) {
|
|
23941
23889
|
return null;
|
|
23942
23890
|
}
|
|
23943
23891
|
const majorAxis = gl_matrix_esm/* .vec3.sub */.eR.jb(gl_matrix_esm/* .vec3.create */.eR.vt(), points[3], points[2]);
|
|
@@ -24101,6 +24049,7 @@ var CircleROITool_a;
|
|
|
24101
24049
|
|
|
24102
24050
|
|
|
24103
24051
|
|
|
24052
|
+
|
|
24104
24053
|
|
|
24105
24054
|
|
|
24106
24055
|
const CircleROITool_cs3dLogger = esm.utilities.logger.toolsLog.getLogger('tools.annotation.CircleROITool');
|
|
@@ -24636,7 +24585,7 @@ class CircleROITool extends tools_base/* .AnnotationTool */.EC {
|
|
|
24636
24585
|
points: points,
|
|
24637
24586
|
boundsMargin: worldRadius,
|
|
24638
24587
|
createShape: ({ volume, planePoint, viewPlaneNormal }) => {
|
|
24639
|
-
if (!(
|
|
24588
|
+
if (!(0,areaAnnotationShapeUtils/* .hasValidAreaAnnotationDimensions */.k)(worldRadius)) {
|
|
24640
24589
|
return null;
|
|
24641
24590
|
}
|
|
24642
24591
|
return createCircleShape({
|
|
@@ -31233,7 +31182,7 @@ var fillRectangle = __webpack_require__(65704);
|
|
|
31233
31182
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/eraseRectangle.js
|
|
31234
31183
|
var eraseRectangle = __webpack_require__(45171);
|
|
31235
31184
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js
|
|
31236
|
-
var
|
|
31185
|
+
var segmentation_segmentationState = __webpack_require__(61342);
|
|
31237
31186
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/RectangleScissorsTool.js
|
|
31238
31187
|
|
|
31239
31188
|
|
|
@@ -31285,7 +31234,7 @@ class RectangleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31285
31234
|
const segmentIndex = stateManagement_segmentation.segmentIndex.getActiveSegmentIndex(segmentationId);
|
|
31286
31235
|
const segmentsLocked = stateManagement_segmentation.segmentLocking.getLockedSegmentIndices(segmentationId);
|
|
31287
31236
|
const segmentColor = stateManagement_segmentation.config.color.getSegmentIndexColor(viewport.id, segmentationId, segmentIndex);
|
|
31288
|
-
const { representationData } = (0,
|
|
31237
|
+
const { representationData } = (0,segmentation_segmentationState.getSegmentation)(segmentationId);
|
|
31289
31238
|
const labelmapData = representationData[enums.SegmentationRepresentations.Labelmap];
|
|
31290
31239
|
const annotation = {
|
|
31291
31240
|
highlighted: true,
|
|
@@ -31329,7 +31278,7 @@ class RectangleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31329
31278
|
const viewportRenderMode = (0,helpers_getViewportLabelmapRenderMode/* ["default"] */.A)(viewport);
|
|
31330
31279
|
if (viewportRenderMode === 'volume' ||
|
|
31331
31280
|
viewport instanceof esm.BaseVolumeViewport) {
|
|
31332
|
-
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,
|
|
31281
|
+
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,segmentation_segmentationState.getSegmentation)(segmentationId), segmentIndex);
|
|
31333
31282
|
const segmentation = layer ? (0,labelmapSegmentationState/* .getOrCreateLabelmapVolume */.kL)(layer) : undefined;
|
|
31334
31283
|
if (!segmentation) {
|
|
31335
31284
|
return;
|
|
@@ -31341,7 +31290,7 @@ class RectangleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31341
31290
|
};
|
|
31342
31291
|
}
|
|
31343
31292
|
else {
|
|
31344
|
-
const segmentationImageId = (0,
|
|
31293
|
+
const segmentationImageId = (0,segmentation_segmentationState.getCurrentLabelmapImageIdForViewport)(viewport.id, segmentationId);
|
|
31345
31294
|
this.editData = {
|
|
31346
31295
|
...this.editData,
|
|
31347
31296
|
imageId: segmentationImageId,
|
|
@@ -31414,6 +31363,7 @@ class RectangleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31414
31363
|
const { element } = eventDetail;
|
|
31415
31364
|
const { annotation, newAnnotation, hasMoved } = this.editData;
|
|
31416
31365
|
const { data } = annotation;
|
|
31366
|
+
const { viewPlaneNormal, viewUp } = annotation.metadata;
|
|
31417
31367
|
if (newAnnotation && !hasMoved) {
|
|
31418
31368
|
return;
|
|
31419
31369
|
}
|
|
@@ -31424,6 +31374,8 @@ class RectangleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31424
31374
|
const operationData = {
|
|
31425
31375
|
...this.editData,
|
|
31426
31376
|
points: data.handles.points,
|
|
31377
|
+
viewPlaneNormal,
|
|
31378
|
+
viewUp,
|
|
31427
31379
|
createMemo: this.createMemo.bind(this),
|
|
31428
31380
|
};
|
|
31429
31381
|
this.editData = null;
|
|
@@ -31537,7 +31489,7 @@ class CircleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31537
31489
|
const segmentIndex = stateManagement_segmentation.segmentIndex.getActiveSegmentIndex(segmentationId);
|
|
31538
31490
|
const segmentsLocked = stateManagement_segmentation.segmentLocking.getLockedSegmentIndices(segmentationId);
|
|
31539
31491
|
const segmentColor = stateManagement_segmentation.config.color.getSegmentIndexColor(viewport.id, segmentationId, segmentIndex);
|
|
31540
|
-
const { representationData } = (0,
|
|
31492
|
+
const { representationData } = (0,segmentation_segmentationState.getSegmentation)(segmentationId);
|
|
31541
31493
|
const labelmapData = representationData.Labelmap;
|
|
31542
31494
|
if (!labelmapData) {
|
|
31543
31495
|
throw new Error('No labelmap data found for the active segmentation, create one before using scissors tool');
|
|
@@ -31587,7 +31539,7 @@ class CircleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31587
31539
|
const viewportRenderMode = (0,helpers_getViewportLabelmapRenderMode/* ["default"] */.A)(viewport);
|
|
31588
31540
|
if (viewportRenderMode === 'volume' ||
|
|
31589
31541
|
viewport instanceof esm.BaseVolumeViewport) {
|
|
31590
|
-
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,
|
|
31542
|
+
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,segmentation_segmentationState.getSegmentation)(segmentationId), segmentIndex);
|
|
31591
31543
|
const segmentation = layer ? (0,labelmapSegmentationState/* .getOrCreateLabelmapVolume */.kL)(layer) : undefined;
|
|
31592
31544
|
if (!segmentation) {
|
|
31593
31545
|
return;
|
|
@@ -31599,7 +31551,7 @@ class CircleScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31599
31551
|
};
|
|
31600
31552
|
}
|
|
31601
31553
|
else {
|
|
31602
|
-
const segmentationImageId = (0,
|
|
31554
|
+
const segmentationImageId = (0,segmentation_segmentationState.getCurrentLabelmapImageIdForViewport)(viewport.id, segmentationId);
|
|
31603
31555
|
this.editData = {
|
|
31604
31556
|
...this.editData,
|
|
31605
31557
|
imageId: segmentationImageId,
|
|
@@ -31811,7 +31763,7 @@ class SphereScissorsTool extends LabelmapBaseTool/* ["default"] */.A {
|
|
|
31811
31763
|
referencedVolumeId: null,
|
|
31812
31764
|
imageId: null,
|
|
31813
31765
|
};
|
|
31814
|
-
const { representationData } = (0,
|
|
31766
|
+
const { representationData } = (0,segmentation_segmentationState.getSegmentation)(segmentationId);
|
|
31815
31767
|
const editData = this.getEditData({
|
|
31816
31768
|
viewport,
|
|
31817
31769
|
representationData,
|
|
@@ -31981,19 +31933,19 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
31981
31933
|
const worldPos = currentPoints.world;
|
|
31982
31934
|
const enabledElement = (0,esm.getEnabledElement)(element);
|
|
31983
31935
|
const { viewport } = enabledElement;
|
|
31984
|
-
this.isDrawing = true;
|
|
31985
31936
|
const camera = viewport.getCamera();
|
|
31986
31937
|
const { viewPlaneNormal, viewUp } = camera;
|
|
31987
|
-
let referencedImageId, imageVolume, volumeId;
|
|
31988
31938
|
if (viewport instanceof esm.StackViewport) {
|
|
31989
31939
|
throw new Error('Stack Viewport Not implemented');
|
|
31990
31940
|
}
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
imageVolume = esm.cache.getVolume(volumeId);
|
|
31995
|
-
referencedImageId = esm.utilities.getClosestImageId(imageVolume, worldPos, viewPlaneNormal);
|
|
31941
|
+
const target = this.getTargetVolume(viewport);
|
|
31942
|
+
if (!target) {
|
|
31943
|
+
return null;
|
|
31996
31944
|
}
|
|
31945
|
+
const volumeId = esm.utilities.getVolumeId(target.targetId);
|
|
31946
|
+
const imageVolume = target.imageVolume;
|
|
31947
|
+
const referencedImageId = esm.utilities.getClosestImageId(imageVolume, worldPos, viewPlaneNormal);
|
|
31948
|
+
this.isDrawing = true;
|
|
31997
31949
|
const spacingInNormal = esm.utilities.getSpacingInNormalDirection(imageVolume, viewPlaneNormal);
|
|
31998
31950
|
const startCoord = this._getStartCoordinate(worldPos, spacingInNormal, viewPlaneNormal);
|
|
31999
31951
|
const endCoord = this._getEndCoordinate(worldPos, spacingInNormal, viewPlaneNormal);
|
|
@@ -32085,9 +32037,10 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32085
32037
|
this.configuration.preventHandleOutsideImage) {
|
|
32086
32038
|
(0,annotationState.removeAnnotation)(annotation.annotationUID);
|
|
32087
32039
|
}
|
|
32088
|
-
const
|
|
32089
|
-
|
|
32090
|
-
|
|
32040
|
+
const target = this.getTargetVolume(enabledElement.viewport);
|
|
32041
|
+
if (target) {
|
|
32042
|
+
this._computePointsInsideVolume(annotation, target.imageVolume, target.targetId, enabledElement);
|
|
32043
|
+
}
|
|
32091
32044
|
(0,utilities_triggerAnnotationRenderForViewportIds/* ["default"] */.A)(viewportIdsToRender);
|
|
32092
32045
|
if (newAnnotation) {
|
|
32093
32046
|
(0,helpers_state.triggerAnnotationCompleted)(annotation);
|
|
@@ -32158,12 +32111,10 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32158
32111
|
isMiddleSlice = true;
|
|
32159
32112
|
}
|
|
32160
32113
|
data.handles.points[0][this._getIndexOfCoordinatesForViewplaneNormal(viewplaneNormal)] = middleCoordinate;
|
|
32161
|
-
const
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
this._throttledCalculateCachedStats(annotation, annotationEnabledElement);
|
|
32166
|
-
}
|
|
32114
|
+
const annotationViewport = annotationEnabledElement?.viewport;
|
|
32115
|
+
if (annotation.invalidated &&
|
|
32116
|
+
annotationViewport?.hasVolumeId?.(metadata.volumeId)) {
|
|
32117
|
+
this._throttledCalculateCachedStats(annotation, annotationEnabledElement);
|
|
32167
32118
|
}
|
|
32168
32119
|
if (!viewport.getRenderingEngine()) {
|
|
32169
32120
|
CircleROIStartEndThresholdTool_cs3dLogger.warn('Rendering Engine has been destroyed');
|
|
@@ -32301,7 +32252,8 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32301
32252
|
const basePos1 = viewport.canvasToWorld(baseTopLeftCanvas);
|
|
32302
32253
|
const basePos2 = viewport.canvasToWorld(baseBottomRightCanvas);
|
|
32303
32254
|
const { worldWidth, worldHeight } = (0,getWorldWidthAndHeightFromTwoPoints/* ["default"] */.A)(viewPlaneNormal, viewUp, basePos1, basePos2);
|
|
32304
|
-
const
|
|
32255
|
+
const indexCoordinates = data.handles.points.map((point) => image.imageData.worldToIndex(point));
|
|
32256
|
+
const measureInfo = (0,getCalibratedUnits/* .getCalibratedLengthUnitsAndScale */.Op)(image, indexCoordinates);
|
|
32305
32257
|
const aspect = (0,getCalibratedUnits/* .getCalibratedAspect */.CQ)(image);
|
|
32306
32258
|
const area = Math.abs(Math.PI *
|
|
32307
32259
|
(worldWidth / measureInfo.scale / 2) *
|
|
@@ -32310,7 +32262,8 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32310
32262
|
isPreScaled: (0,isViewportPreScaled/* .isViewportPreScaled */.u)(viewport, targetId),
|
|
32311
32263
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
32312
32264
|
};
|
|
32313
|
-
const
|
|
32265
|
+
const modality = imageVolume?.metadata?.Modality;
|
|
32266
|
+
const modalityUnit = (0,getPixelValueUnits/* .getPixelValueUnits */.j)(modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
32314
32267
|
for (let i = 0; i < projectionPoints.length; i++) {
|
|
32315
32268
|
if (!imageVolume) {
|
|
32316
32269
|
continue;
|
|
@@ -32374,7 +32327,7 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32374
32327
|
const stats = this.configuration.statsCalculator.getStatistics();
|
|
32375
32328
|
data.cachedStats.pointsInVolume = pointsInsideVolume;
|
|
32376
32329
|
data.cachedStats.statistics = {
|
|
32377
|
-
Modality:
|
|
32330
|
+
Modality: modality,
|
|
32378
32331
|
area,
|
|
32379
32332
|
mean: stats.mean?.value,
|
|
32380
32333
|
stdDev: stats.stdDev?.value,
|
|
@@ -32388,8 +32341,12 @@ class CircleROIStartEndThresholdTool extends annotation_CircleROITool {
|
|
|
32388
32341
|
const data = annotation.data;
|
|
32389
32342
|
const { viewport } = enabledElement;
|
|
32390
32343
|
const { cachedStats } = data;
|
|
32391
|
-
const
|
|
32392
|
-
|
|
32344
|
+
const target = this.getTargetVolume(viewport);
|
|
32345
|
+
if (!target) {
|
|
32346
|
+
annotation.invalidated = false;
|
|
32347
|
+
return cachedStats;
|
|
32348
|
+
}
|
|
32349
|
+
const { targetId, imageVolume } = target;
|
|
32393
32350
|
this._computeProjectionPoints(annotation, imageVolume);
|
|
32394
32351
|
this._computePointsInsideVolume(annotation, imageVolume, targetId, enabledElement);
|
|
32395
32352
|
annotation.invalidated = false;
|
|
@@ -32479,7 +32436,7 @@ class PaintFillTool extends tools_base/* .BaseTool */.oS {
|
|
|
32479
32436
|
const { segmentationId } = activeSegmentationRepresentation;
|
|
32480
32437
|
const segmentIndex = stateManagement_segmentation.segmentIndex.getActiveSegmentIndex(segmentationId);
|
|
32481
32438
|
const segmentsLocked = stateManagement_segmentation.segmentLocking.getLockedSegmentIndices(segmentationId);
|
|
32482
|
-
const { representationData } = (0,
|
|
32439
|
+
const { representationData } = (0,segmentation_segmentationState.getSegmentation)(segmentationId);
|
|
32483
32440
|
let dimensions;
|
|
32484
32441
|
let direction;
|
|
32485
32442
|
let index;
|
|
@@ -32488,7 +32445,7 @@ class PaintFillTool extends tools_base/* .BaseTool */.oS {
|
|
|
32488
32445
|
const viewportRenderMode = (0,helpers_getViewportLabelmapRenderMode/* ["default"] */.A)(viewport);
|
|
32489
32446
|
if (viewportRenderMode === 'volume' ||
|
|
32490
32447
|
viewport instanceof esm.BaseVolumeViewport) {
|
|
32491
|
-
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,
|
|
32448
|
+
const layer = (0,labelmapSegmentationState/* .resolveLabelmapForSegment */.Nf)((0,segmentation_segmentationState.getSegmentation)(segmentationId), segmentIndex);
|
|
32492
32449
|
const segmentation = layer ? (0,labelmapSegmentationState/* .getOrCreateLabelmapVolume */.kL)(layer) : undefined;
|
|
32493
32450
|
if (!segmentation) {
|
|
32494
32451
|
return;
|
|
@@ -32498,7 +32455,7 @@ class PaintFillTool extends tools_base/* .BaseTool */.oS {
|
|
|
32498
32455
|
index = PaintFillTool_transformWorldToIndex(segmentation.imageData, worldPos);
|
|
32499
32456
|
}
|
|
32500
32457
|
else {
|
|
32501
|
-
const currentSegmentationImageId = (0,
|
|
32458
|
+
const currentSegmentationImageId = (0,segmentation_segmentationState.getCurrentLabelmapImageIdForViewport)(viewport.id, segmentationId);
|
|
32502
32459
|
if (!currentSegmentationImageId) {
|
|
32503
32460
|
throw new Error('No active segmentation imageId detected, create one before using scissors tool');
|
|
32504
32461
|
}
|
|
@@ -33979,6 +33936,12 @@ class SegmentLabelTool extends tools_base/* .BaseTool */.oS {
|
|
|
33979
33936
|
SegmentLabelTool.toolName = 'SegmentLabelTool';
|
|
33980
33937
|
/* export default */ var segmentation_SegmentLabelTool = ((/* unused pure expression or super */ null && (SegmentLabelTool)));
|
|
33981
33938
|
|
|
33939
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getActiveSegmentIndex.js
|
|
33940
|
+
var getActiveSegmentIndex = __webpack_require__(72676);
|
|
33941
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentLocking.js
|
|
33942
|
+
var segmentLocking = __webpack_require__(65419);
|
|
33943
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js
|
|
33944
|
+
var segmentationVisibility = __webpack_require__(64540);
|
|
33982
33945
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/LabelmapEditWithContour.js
|
|
33983
33946
|
|
|
33984
33947
|
|
|
@@ -33987,8 +33950,17 @@ SegmentLabelTool.toolName = 'SegmentLabelTool';
|
|
|
33987
33950
|
|
|
33988
33951
|
|
|
33989
33952
|
|
|
33953
|
+
|
|
33954
|
+
|
|
33990
33955
|
const LabelmapEditWithContour_cs3dLogger = esm.utilities.logger.toolsLog.getLogger('tools.segmentation.LabelmapEditWithContour');
|
|
33991
33956
|
class LabelMapEditWithContourTool extends PlanarFreehandContourSegmentationTool/* ["default"] */.A {
|
|
33957
|
+
static clearTemporaryContourRecords() {
|
|
33958
|
+
LabelMapEditWithContourTool.temporaryContourData.clear();
|
|
33959
|
+
LabelMapEditWithContourTool.temporaryContourViewports.clear();
|
|
33960
|
+
}
|
|
33961
|
+
static getViewportContourKey(viewportId, segmentationId) {
|
|
33962
|
+
return `${viewportId}\u0000${segmentationId}`;
|
|
33963
|
+
}
|
|
33992
33964
|
constructor(toolProps = {}) {
|
|
33993
33965
|
const initialProps = esm.utilities.deepMerge({
|
|
33994
33966
|
configuration: {
|
|
@@ -33997,74 +33969,81 @@ class LabelMapEditWithContourTool extends PlanarFreehandContourSegmentationTool/
|
|
|
33997
33969
|
},
|
|
33998
33970
|
}, toolProps);
|
|
33999
33971
|
super(initialProps);
|
|
34000
|
-
this.
|
|
34001
|
-
|
|
34002
|
-
|
|
33972
|
+
this.initializeAddNewAnnotationHandler();
|
|
33973
|
+
}
|
|
33974
|
+
initializeAddNewAnnotationHandler() {
|
|
33975
|
+
const originalAddNewAnnotation = this.addNewAnnotation.bind(this);
|
|
33976
|
+
this.addNewAnnotation = (evt) => {
|
|
33977
|
+
const { element } = evt.detail;
|
|
33978
|
+
const enabledElement = (0,esm.getEnabledElement)(element);
|
|
33979
|
+
if (enabledElement) {
|
|
33980
|
+
const viewportId = enabledElement.viewport.id;
|
|
33981
|
+
const activeSeg = stateManagement_segmentation.getActiveSegmentation(viewportId);
|
|
33982
|
+
if (!activeSeg) {
|
|
33983
|
+
return null;
|
|
33984
|
+
}
|
|
33985
|
+
const activeSegIndex = (0,getActiveSegmentIndex/* .getActiveSegmentIndex */.Q)(activeSeg.segmentationId);
|
|
33986
|
+
if (activeSegIndex === undefined) {
|
|
33987
|
+
return null;
|
|
33988
|
+
}
|
|
33989
|
+
const isSegmentLocked = (0,segmentLocking.isSegmentIndexLocked)(activeSeg.segmentationId, activeSegIndex);
|
|
33990
|
+
const isSegmentHidden = !(0,segmentationVisibility.getSegmentIndexVisibility)(viewportId, {
|
|
33991
|
+
segmentationId: activeSeg.segmentationId,
|
|
33992
|
+
type: enums.SegmentationRepresentations.Labelmap,
|
|
33993
|
+
}, activeSegIndex);
|
|
33994
|
+
if (isSegmentLocked || isSegmentHidden) {
|
|
33995
|
+
return null;
|
|
33996
|
+
}
|
|
33997
|
+
LabelMapEditWithContourTool.clearTemporaryContourRecords();
|
|
33998
|
+
this.checkContourSegmentation(viewportId, activeSeg).catch((error) => {
|
|
33999
|
+
LabelmapEditWithContour_cs3dLogger.warn('Failed to add the temporary contour representation:', error);
|
|
34000
|
+
});
|
|
34001
|
+
}
|
|
34002
|
+
return originalAddNewAnnotation(evt);
|
|
34003
|
+
};
|
|
34003
34004
|
}
|
|
34004
34005
|
initializeListeners() {
|
|
34005
34006
|
LabelMapEditWithContourTool.annotationsToViewportMap.clear();
|
|
34006
|
-
LabelMapEditWithContourTool.viewportIdsChecked = [];
|
|
34007
34007
|
esm.eventTarget.addEventListener(enums.Events.ANNOTATION_MODIFIED, this.annotationModified);
|
|
34008
34008
|
esm.eventTarget.addEventListener(enums.Events.ANNOTATION_COMPLETED, this.annotationCompleted);
|
|
34009
|
-
esm.eventTarget.addEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, this.onViewportAddedToToolGroupBinded);
|
|
34010
|
-
esm.eventTarget.addEventListener(enums.Events.SEGMENTATION_MODIFIED, this.onSegmentationModifiedBinded);
|
|
34011
|
-
esm.eventTarget.addEventListener(enums.Events.SEGMENTATION_REPRESENTATION_MODIFIED, this.onSegmentationModifiedBinded);
|
|
34012
34009
|
}
|
|
34013
34010
|
cleanUpListeners() {
|
|
34014
34011
|
LabelMapEditWithContourTool.annotationsToViewportMap.clear();
|
|
34015
|
-
LabelMapEditWithContourTool.
|
|
34012
|
+
LabelMapEditWithContourTool.clearTemporaryContourRecords();
|
|
34016
34013
|
esm.eventTarget.removeEventListener(enums.Events.ANNOTATION_MODIFIED, this.annotationModified);
|
|
34017
34014
|
esm.eventTarget.removeEventListener(enums.Events.ANNOTATION_COMPLETED, this.annotationCompleted);
|
|
34018
|
-
esm.eventTarget.removeEventListener(enums.Events.TOOLGROUP_VIEWPORT_ADDED, this.onViewportAddedToToolGroup.bind(this));
|
|
34019
|
-
esm.eventTarget.removeEventListener(enums.Events.SEGMENTATION_MODIFIED, this.onSegmentationModified.bind(this));
|
|
34020
|
-
esm.eventTarget.removeEventListener(enums.Events.SEGMENTATION_REPRESENTATION_MODIFIED, this.onSegmentationModified.bind(this));
|
|
34021
34015
|
}
|
|
34022
|
-
async checkContourSegmentation(viewportId) {
|
|
34023
|
-
if (LabelMapEditWithContourTool.viewportIdsChecked.includes(viewportId)) {
|
|
34024
|
-
return;
|
|
34025
|
-
}
|
|
34026
|
-
const activeSeg = stateManagement_segmentation.getActiveSegmentation(viewportId);
|
|
34016
|
+
async checkContourSegmentation(viewportId, activeSeg) {
|
|
34027
34017
|
if (!activeSeg) {
|
|
34028
34018
|
LabelmapEditWithContour_cs3dLogger.info('No active segmentation detected');
|
|
34029
34019
|
return false;
|
|
34030
34020
|
}
|
|
34031
34021
|
const segmentationId = activeSeg.segmentationId;
|
|
34032
34022
|
if (!activeSeg.representationData.Contour) {
|
|
34033
|
-
LabelMapEditWithContourTool.viewportIdsChecked.push(viewportId);
|
|
34034
|
-
await stateManagement_segmentation.addContourRepresentationToViewport(viewportId, [
|
|
34035
|
-
{
|
|
34036
|
-
segmentationId,
|
|
34037
|
-
type: enums.SegmentationRepresentations.Contour,
|
|
34038
|
-
},
|
|
34039
|
-
]);
|
|
34040
34023
|
stateManagement_segmentation.addRepresentationData({
|
|
34041
34024
|
segmentationId,
|
|
34042
34025
|
type: enums.SegmentationRepresentations.Contour,
|
|
34043
34026
|
data: {},
|
|
34044
34027
|
});
|
|
34028
|
+
LabelMapEditWithContourTool.temporaryContourData.add(segmentationId);
|
|
34045
34029
|
}
|
|
34046
|
-
|
|
34047
|
-
|
|
34030
|
+
const hasViewportContour = (0,getSegmentationRepresentation/* .getSegmentationRepresentation */.Ut)(viewportId, {
|
|
34031
|
+
segmentationId,
|
|
34032
|
+
type: enums.SegmentationRepresentations.Contour,
|
|
34033
|
+
});
|
|
34034
|
+
if (!hasViewportContour) {
|
|
34035
|
+
await stateManagement_segmentation.addContourRepresentationToViewport(viewportId, [
|
|
34036
|
+
{
|
|
34037
|
+
segmentationId,
|
|
34038
|
+
type: enums.SegmentationRepresentations.Contour,
|
|
34039
|
+
},
|
|
34040
|
+
]);
|
|
34041
|
+
LabelMapEditWithContourTool.temporaryContourViewports.add(LabelMapEditWithContourTool.getViewportContourKey(viewportId, segmentationId));
|
|
34048
34042
|
}
|
|
34049
34043
|
return true;
|
|
34050
34044
|
}
|
|
34051
|
-
|
|
34052
|
-
|
|
34053
|
-
if (toolGroupId !== this.toolGroupId) {
|
|
34054
|
-
return;
|
|
34055
|
-
}
|
|
34056
|
-
this.checkContourSegmentation(viewportId);
|
|
34057
|
-
}
|
|
34058
|
-
onSegmentationModified(evt) {
|
|
34059
|
-
const { segmentationId } = evt.detail || {};
|
|
34060
|
-
if (!segmentationId) {
|
|
34061
|
-
return;
|
|
34062
|
-
}
|
|
34063
|
-
const representations = (0,getSegmentationRepresentation/* .getSegmentationRepresentationsBySegmentationId */.ny)(segmentationId);
|
|
34064
|
-
if (!representations) {
|
|
34065
|
-
return;
|
|
34066
|
-
}
|
|
34067
|
-
representations.forEach(async ({ viewportId }) => await this.checkContourSegmentation(viewportId));
|
|
34045
|
+
createMemo(element, annotation, options) {
|
|
34046
|
+
return;
|
|
34068
34047
|
}
|
|
34069
34048
|
onSetToolEnabled() {
|
|
34070
34049
|
this.initializeListeners();
|
|
@@ -34077,32 +34056,99 @@ class LabelMapEditWithContourTool extends PlanarFreehandContourSegmentationTool/
|
|
|
34077
34056
|
}
|
|
34078
34057
|
annotationModified(evt) {
|
|
34079
34058
|
const { annotation, renderingEngineId, viewportId } = evt.detail;
|
|
34059
|
+
if (annotation?.metadata?.toolName !== LabelMapEditWithContourTool.toolName) {
|
|
34060
|
+
return;
|
|
34061
|
+
}
|
|
34080
34062
|
const viewport = (0,esm.getRenderingEngine)(renderingEngineId)?.getViewport(viewportId);
|
|
34081
34063
|
if (!viewport) {
|
|
34082
34064
|
return;
|
|
34083
34065
|
}
|
|
34084
34066
|
LabelMapEditWithContourTool.annotationsToViewportMap.set(annotation.annotationUID, viewport);
|
|
34085
34067
|
}
|
|
34068
|
+
static hasContourContent(contourData) {
|
|
34069
|
+
if (contourData.geometryIds?.length) {
|
|
34070
|
+
return true;
|
|
34071
|
+
}
|
|
34072
|
+
const { annotationUIDsMap } = contourData;
|
|
34073
|
+
if (!annotationUIDsMap) {
|
|
34074
|
+
return false;
|
|
34075
|
+
}
|
|
34076
|
+
for (const annotationUIDs of annotationUIDsMap.values()) {
|
|
34077
|
+
if (annotationUIDs.size) {
|
|
34078
|
+
return true;
|
|
34079
|
+
}
|
|
34080
|
+
}
|
|
34081
|
+
return false;
|
|
34082
|
+
}
|
|
34083
|
+
static cleanupTemporaryContourRepresentation(viewport, annotation) {
|
|
34084
|
+
const segmentationId = annotation?.data?.segmentation?.segmentationId;
|
|
34085
|
+
if (!segmentationId) {
|
|
34086
|
+
return;
|
|
34087
|
+
}
|
|
34088
|
+
const viewportKey = LabelMapEditWithContourTool.getViewportContourKey(viewport.id, segmentationId);
|
|
34089
|
+
const ownsViewportContour = LabelMapEditWithContourTool.temporaryContourViewports.has(viewportKey);
|
|
34090
|
+
const ownsContourData = LabelMapEditWithContourTool.temporaryContourData.has(segmentationId);
|
|
34091
|
+
if (!ownsViewportContour && !ownsContourData) {
|
|
34092
|
+
return;
|
|
34093
|
+
}
|
|
34094
|
+
const segmentationState = stateManagement_segmentation.state.getSegmentation(segmentationId);
|
|
34095
|
+
const contourData = segmentationState?.representationData?.Contour;
|
|
34096
|
+
if (contourData &&
|
|
34097
|
+
LabelMapEditWithContourTool.hasContourContent(contourData)) {
|
|
34098
|
+
return;
|
|
34099
|
+
}
|
|
34100
|
+
if (ownsViewportContour) {
|
|
34101
|
+
LabelMapEditWithContourTool.temporaryContourViewports.delete(viewportKey);
|
|
34102
|
+
stateManagement_segmentation.removeContourRepresentation(viewport.id, segmentationId);
|
|
34103
|
+
}
|
|
34104
|
+
if (!ownsContourData || !segmentationState) {
|
|
34105
|
+
return;
|
|
34106
|
+
}
|
|
34107
|
+
LabelMapEditWithContourTool.temporaryContourData.delete(segmentationId);
|
|
34108
|
+
const representationData = esm.utilities.deepClone(segmentationState.representationData);
|
|
34109
|
+
delete representationData.Contour;
|
|
34110
|
+
stateManagement_segmentation.updateSegmentations([
|
|
34111
|
+
{
|
|
34112
|
+
segmentationId,
|
|
34113
|
+
payload: {
|
|
34114
|
+
representationData,
|
|
34115
|
+
},
|
|
34116
|
+
},
|
|
34117
|
+
], true);
|
|
34118
|
+
}
|
|
34086
34119
|
annotationCompleted(evt) {
|
|
34087
34120
|
const { annotation } = evt.detail;
|
|
34088
|
-
const { polyline } = annotation.data?.contour || {};
|
|
34089
34121
|
if (annotation?.metadata?.toolName !== LabelMapEditWithContourTool.toolName) {
|
|
34090
34122
|
return;
|
|
34091
34123
|
}
|
|
34092
|
-
|
|
34124
|
+
const annotationUID = annotation.annotationUID;
|
|
34125
|
+
const viewport = LabelMapEditWithContourTool.annotationsToViewportMap.get(annotationUID);
|
|
34126
|
+
if (!viewport) {
|
|
34093
34127
|
return;
|
|
34094
34128
|
}
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
|
|
34129
|
+
const polyline = annotation.data?.contour?.polyline;
|
|
34130
|
+
const segmentationData = annotation.data
|
|
34131
|
+
?.segmentation;
|
|
34132
|
+
if (polyline?.length >= 3 && segmentationData) {
|
|
34133
|
+
BrushTool/* ["default"].viewportContoursToLabelmap */.A.viewportContoursToLabelmap(viewport, {
|
|
34134
|
+
strokeStartPoint: polyline[0],
|
|
34135
|
+
annotationFilter: (annotations) => annotations.filter((candidate) => {
|
|
34136
|
+
const candidateSegmentation = candidate.data?.segmentation;
|
|
34137
|
+
return (candidateSegmentation?.segmentationId ===
|
|
34138
|
+
segmentationData.segmentationId &&
|
|
34139
|
+
candidateSegmentation?.segmentIndex ===
|
|
34140
|
+
segmentationData.segmentIndex);
|
|
34141
|
+
}),
|
|
34142
|
+
});
|
|
34100
34143
|
}
|
|
34144
|
+
LabelMapEditWithContourTool.cleanupTemporaryContourRepresentation(viewport, annotation);
|
|
34145
|
+
LabelMapEditWithContourTool.annotationsToViewportMap.delete(annotationUID);
|
|
34101
34146
|
}
|
|
34102
34147
|
}
|
|
34103
34148
|
LabelMapEditWithContourTool.toolName = 'LabelMapEditWithContour';
|
|
34104
34149
|
LabelMapEditWithContourTool.annotationsToViewportMap = new Map();
|
|
34105
|
-
LabelMapEditWithContourTool.
|
|
34150
|
+
LabelMapEditWithContourTool.temporaryContourData = new Set();
|
|
34151
|
+
LabelMapEditWithContourTool.temporaryContourViewports = new Set();
|
|
34106
34152
|
/* export default */ var LabelmapEditWithContour = ((/* unused pure expression or super */ null && (LabelMapEditWithContourTool)));
|
|
34107
34153
|
|
|
34108
34154
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/tools/index.js
|
|
@@ -36344,6 +36390,73 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36344
36390
|
});
|
|
36345
36391
|
|
|
36346
36392
|
|
|
36393
|
+
},
|
|
36394
|
+
64540(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36395
|
+
/* import */ var _getSegmentationRepresentation_js__rspack_import_0 = __webpack_require__(47290);
|
|
36396
|
+
/* import */ var _setSegmentationRepresentationVisibility_js__rspack_import_1 = __webpack_require__(54766);
|
|
36397
|
+
/* import */ var _getSegmentationRepresentationVisibility_js__rspack_import_2 = __webpack_require__(45114);
|
|
36398
|
+
/* import */ var _SegmentationRenderingEngine_js__rspack_import_3 = __webpack_require__(79157);
|
|
36399
|
+
/* import */ var _triggerSegmentationEvents_js__rspack_import_4 = __webpack_require__(11815);
|
|
36400
|
+
|
|
36401
|
+
|
|
36402
|
+
|
|
36403
|
+
|
|
36404
|
+
|
|
36405
|
+
function setSegmentationRepresentationVisibility(viewportId, specifier, visibility) {
|
|
36406
|
+
const representations = getSegmentationRepresentations(viewportId, specifier);
|
|
36407
|
+
if (!representations) {
|
|
36408
|
+
return;
|
|
36409
|
+
}
|
|
36410
|
+
representations.forEach((representation) => {
|
|
36411
|
+
_setSegmentationRepresentationVisibility(viewportId, {
|
|
36412
|
+
segmentationId: representation.segmentationId,
|
|
36413
|
+
type: representation.type,
|
|
36414
|
+
}, visibility);
|
|
36415
|
+
});
|
|
36416
|
+
}
|
|
36417
|
+
function getSegmentationRepresentationVisibility(viewportId, specifier) {
|
|
36418
|
+
return _getSegmentationRepresentationVisibility(viewportId, specifier);
|
|
36419
|
+
}
|
|
36420
|
+
function setSegmentIndexVisibility(viewportId, specifier, segmentIndex, visibility) {
|
|
36421
|
+
const representations = getSegmentationRepresentations(viewportId, specifier);
|
|
36422
|
+
if (!representations) {
|
|
36423
|
+
return;
|
|
36424
|
+
}
|
|
36425
|
+
representations.forEach((representation) => {
|
|
36426
|
+
if (!representation.segments || !representation.segments[segmentIndex]) {
|
|
36427
|
+
return;
|
|
36428
|
+
}
|
|
36429
|
+
representation.visible ||= visibility;
|
|
36430
|
+
representation.segments[segmentIndex].visible = visibility;
|
|
36431
|
+
});
|
|
36432
|
+
triggerSegmentationRenderBySegmentationId(specifier.segmentationId);
|
|
36433
|
+
triggerSegmentationRepresentationModified(viewportId, specifier.segmentationId);
|
|
36434
|
+
}
|
|
36435
|
+
function getSegmentIndexVisibility(viewportId, specifier, segmentIndex) {
|
|
36436
|
+
const hiddenSegments = getHiddenSegmentIndices(viewportId, specifier);
|
|
36437
|
+
return !hiddenSegments.has(segmentIndex);
|
|
36438
|
+
}
|
|
36439
|
+
function getHiddenSegmentIndices(viewportId, specifier) {
|
|
36440
|
+
const representation = (0,_getSegmentationRepresentation_js__rspack_import_0/* .getSegmentationRepresentation */.Ut)(viewportId, specifier);
|
|
36441
|
+
if (!representation) {
|
|
36442
|
+
return new Set();
|
|
36443
|
+
}
|
|
36444
|
+
const segmentsHidden = Object.entries(representation.segments).reduce((acc, [segmentIndex, segment]) => {
|
|
36445
|
+
if (!segment.visible) {
|
|
36446
|
+
acc.add(Number(segmentIndex));
|
|
36447
|
+
}
|
|
36448
|
+
return acc;
|
|
36449
|
+
}, new Set());
|
|
36450
|
+
return segmentsHidden;
|
|
36451
|
+
}
|
|
36452
|
+
|
|
36453
|
+
|
|
36454
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36455
|
+
getHiddenSegmentIndices: () => (getHiddenSegmentIndices),
|
|
36456
|
+
getSegmentIndexVisibility: () => (getSegmentIndexVisibility)
|
|
36457
|
+
});
|
|
36458
|
+
|
|
36459
|
+
|
|
36347
36460
|
},
|
|
36348
36461
|
26685(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36349
36462
|
/* import */ var _SegmentationStateManager_js__rspack_import_0 = __webpack_require__(91155);
|
|
@@ -36414,6 +36527,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36414
36527
|
Mx: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.Mx),
|
|
36415
36528
|
Nf: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.Nf),
|
|
36416
36529
|
Qk: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.Qk),
|
|
36530
|
+
RP: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.RP),
|
|
36417
36531
|
Ry: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.Ry),
|
|
36418
36532
|
VQ: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.VQ),
|
|
36419
36533
|
Zs: () => (/* reexport safe */ _labelmapModel_index_js__rspack_import_0.Zs),
|
|
@@ -36427,7 +36541,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36427
36541
|
|
|
36428
36542
|
|
|
36429
36543
|
},
|
|
36430
|
-
|
|
36544
|
+
86274(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36431
36545
|
|
|
36432
36546
|
// EXPORTS
|
|
36433
36547
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -36437,12 +36551,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36437
36551
|
addSegmentationRepresentations: () => (/* reexport */ addSegmentationRepresentationsToViewport/* .addSegmentationRepresentations */.gR),
|
|
36438
36552
|
config: () => (/* reexport */ config_namespaceObject),
|
|
36439
36553
|
getActiveSegmentation: () => (/* reexport */ getActiveSegmentation/* .getActiveSegmentation */.T),
|
|
36554
|
+
removeContourRepresentation: () => (/* reexport */ removeSegmentationRepresentations/* .removeContourRepresentation */.OE),
|
|
36440
36555
|
segmentIndex: () => (/* reexport */ segmentation_segmentIndex),
|
|
36441
36556
|
segmentLocking: () => (/* reexport */ segmentLocking),
|
|
36442
|
-
state: () => (/* reexport */ segmentationState)
|
|
36557
|
+
state: () => (/* reexport */ segmentationState),
|
|
36558
|
+
updateSegmentations: () => (/* reexport */ updateSegmentations_updateSegmentations)
|
|
36443
36559
|
});
|
|
36444
36560
|
|
|
36445
|
-
// UNUSED EXPORTS: addContourRepresentationToViewportMap, addDefaultSegmentationListener, addLabelmapRepresentationToViewport, addLabelmapRepresentationToViewportMap, addSegmentationListener, addSegmentations, addSurfaceRepresentationToViewport, addSurfaceRepresentationToViewportMap, defaultSegmentationStateManager, getCurrentLabelmapImageIdsForViewport, getLabelmapImageIds, getLabelmapImageIdsForImageId, helpers, removeAllSegmentationListeners, removeAllSegmentationRepresentations, removeAllSegmentations,
|
|
36561
|
+
// UNUSED EXPORTS: addContourRepresentationToViewportMap, addDefaultSegmentationListener, addLabelmapRepresentationToViewport, addLabelmapRepresentationToViewportMap, addSegmentationListener, addSegmentations, addSurfaceRepresentationToViewport, addSurfaceRepresentationToViewportMap, defaultSegmentationStateManager, getCurrentLabelmapImageIdsForViewport, getLabelmapImageIds, getLabelmapImageIdsForImageId, helpers, removeAllSegmentationListeners, removeAllSegmentationRepresentations, removeAllSegmentations, removeLabelmapRepresentation, removeSegment, removeSegmentation, removeSegmentationListener, removeSegmentationRepresentation, removeSegmentationRepresentations, removeSurfaceRepresentation, segmentationStyle, strategies, triggerSegmentationEvents, utilities
|
|
36446
36562
|
// NAMESPACE OBJECT: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/index.js
|
|
36447
36563
|
var config_namespaceObject = {};
|
|
36448
36564
|
__webpack_require__.r(config_namespaceObject);
|
|
@@ -36466,11 +36582,11 @@ var triggerSegmentationEvents = __webpack_require__(11815);
|
|
|
36466
36582
|
|
|
36467
36583
|
|
|
36468
36584
|
function updateSegmentations_updateSegmentations(segmentationUpdateArray, suppressEvents) {
|
|
36469
|
-
const segmentationStateManager = defaultSegmentationStateManager;
|
|
36585
|
+
const segmentationStateManager = SegmentationStateManager/* .defaultSegmentationStateManager */._6;
|
|
36470
36586
|
segmentationUpdateArray.forEach((segmentationUpdate) => {
|
|
36471
36587
|
segmentationStateManager.updateSegmentation(segmentationUpdate.segmentationId, segmentationUpdate.payload);
|
|
36472
36588
|
if (!suppressEvents) {
|
|
36473
|
-
triggerSegmentationModified(segmentationUpdate.segmentationId);
|
|
36589
|
+
(0,triggerSegmentationEvents.triggerSegmentationModified)(segmentationUpdate.segmentationId);
|
|
36474
36590
|
}
|
|
36475
36591
|
});
|
|
36476
36592
|
}
|
|
@@ -36483,78 +36599,14 @@ var segmentLocking = __webpack_require__(65419);
|
|
|
36483
36599
|
var segmentationState = __webpack_require__(61342);
|
|
36484
36600
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationColor.js
|
|
36485
36601
|
var segmentationColor = __webpack_require__(4069);
|
|
36486
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/
|
|
36487
|
-
var
|
|
36488
|
-
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/setSegmentationRepresentationVisibility.js
|
|
36489
|
-
|
|
36490
|
-
function setSegmentationRepresentationVisibility(viewportId, specifier, visible) {
|
|
36491
|
-
const segmentationStateManager = defaultSegmentationStateManager;
|
|
36492
|
-
segmentationStateManager.setSegmentationRepresentationVisibility(viewportId, specifier, visible);
|
|
36493
|
-
}
|
|
36494
|
-
|
|
36495
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentationVisibility.js
|
|
36496
|
-
var getSegmentationRepresentationVisibility = __webpack_require__(45114);
|
|
36497
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationRenderingEngine.js
|
|
36498
|
-
var SegmentationRenderingEngine = __webpack_require__(79157);
|
|
36499
|
-
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js
|
|
36500
|
-
|
|
36501
|
-
|
|
36502
|
-
|
|
36503
|
-
|
|
36504
|
-
|
|
36505
|
-
function segmentationVisibility_setSegmentationRepresentationVisibility(viewportId, specifier, visibility) {
|
|
36506
|
-
const representations = getSegmentationRepresentations(viewportId, specifier);
|
|
36507
|
-
if (!representations) {
|
|
36508
|
-
return;
|
|
36509
|
-
}
|
|
36510
|
-
representations.forEach((representation) => {
|
|
36511
|
-
_setSegmentationRepresentationVisibility(viewportId, {
|
|
36512
|
-
segmentationId: representation.segmentationId,
|
|
36513
|
-
type: representation.type,
|
|
36514
|
-
}, visibility);
|
|
36515
|
-
});
|
|
36516
|
-
}
|
|
36517
|
-
function segmentationVisibility_getSegmentationRepresentationVisibility(viewportId, specifier) {
|
|
36518
|
-
return _getSegmentationRepresentationVisibility(viewportId, specifier);
|
|
36519
|
-
}
|
|
36520
|
-
function setSegmentIndexVisibility(viewportId, specifier, segmentIndex, visibility) {
|
|
36521
|
-
const representations = getSegmentationRepresentations(viewportId, specifier);
|
|
36522
|
-
if (!representations) {
|
|
36523
|
-
return;
|
|
36524
|
-
}
|
|
36525
|
-
representations.forEach((representation) => {
|
|
36526
|
-
if (!representation.segments || !representation.segments[segmentIndex]) {
|
|
36527
|
-
return;
|
|
36528
|
-
}
|
|
36529
|
-
representation.visible ||= visibility;
|
|
36530
|
-
representation.segments[segmentIndex].visible = visibility;
|
|
36531
|
-
});
|
|
36532
|
-
triggerSegmentationRenderBySegmentationId(specifier.segmentationId);
|
|
36533
|
-
triggerSegmentationRepresentationModified(viewportId, specifier.segmentationId);
|
|
36534
|
-
}
|
|
36535
|
-
function getSegmentIndexVisibility(viewportId, specifier, segmentIndex) {
|
|
36536
|
-
const hiddenSegments = getHiddenSegmentIndices(viewportId, specifier);
|
|
36537
|
-
return !hiddenSegments.has(segmentIndex);
|
|
36538
|
-
}
|
|
36539
|
-
function getHiddenSegmentIndices(viewportId, specifier) {
|
|
36540
|
-
const representation = getSegmentationRepresentation(viewportId, specifier);
|
|
36541
|
-
if (!representation) {
|
|
36542
|
-
return new Set();
|
|
36543
|
-
}
|
|
36544
|
-
const segmentsHidden = Object.entries(representation.segments).reduce((acc, [segmentIndex, segment]) => {
|
|
36545
|
-
if (!segment.visible) {
|
|
36546
|
-
acc.add(Number(segmentIndex));
|
|
36547
|
-
}
|
|
36548
|
-
return acc;
|
|
36549
|
-
}, new Set());
|
|
36550
|
-
return segmentsHidden;
|
|
36551
|
-
}
|
|
36552
|
-
|
|
36553
|
-
|
|
36602
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js
|
|
36603
|
+
var segmentationVisibility = __webpack_require__(64540);
|
|
36554
36604
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentations.js
|
|
36555
36605
|
var segmentation_getSegmentations = __webpack_require__(39046);
|
|
36556
36606
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getViewportSegmentations.js
|
|
36557
36607
|
var segmentation_getViewportSegmentations = __webpack_require__(85160);
|
|
36608
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationRenderingEngine.js
|
|
36609
|
+
var SegmentationRenderingEngine = __webpack_require__(79157);
|
|
36558
36610
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStyle.js
|
|
36559
36611
|
var SegmentationStyle = __webpack_require__(29966);
|
|
36560
36612
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/styleHelpers.js
|
|
@@ -36668,10 +36720,49 @@ function clearSegmentValue_clearSegmentValue(segmentationId, segmentIndex, optio
|
|
|
36668
36720
|
}
|
|
36669
36721
|
}
|
|
36670
36722
|
|
|
36723
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/labelmapModel/privateLabelmap.js
|
|
36724
|
+
var privateLabelmap = __webpack_require__(55892);
|
|
36725
|
+
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/moveSegmentToPrivateLabelmap.js
|
|
36726
|
+
|
|
36727
|
+
|
|
36728
|
+
|
|
36729
|
+
|
|
36730
|
+
const { DefaultHistoryMemo: moveSegmentToPrivateLabelmap_DefaultHistoryMemo } = esm.utilities.HistoryMemo;
|
|
36731
|
+
function moveSegmentToPrivateLabelmap_moveSegmentToPrivateLabelmap(segmentationId, segmentIndex, options) {
|
|
36732
|
+
const segmentation = getSegmentation(segmentationId);
|
|
36733
|
+
if (!segmentation?.representationData.Labelmap) {
|
|
36734
|
+
return;
|
|
36735
|
+
}
|
|
36736
|
+
const layer = moveSegmentToPrivateLayer(segmentation, segmentIndex, {
|
|
36737
|
+
moveStepCallback: (step) => {
|
|
36738
|
+
if (!options?.recordHistory) {
|
|
36739
|
+
return;
|
|
36740
|
+
}
|
|
36741
|
+
moveSegmentToPrivateLabelmap_DefaultHistoryMemo.push({
|
|
36742
|
+
restoreMemo: (undo) => {
|
|
36743
|
+
if (undo) {
|
|
36744
|
+
step.undo();
|
|
36745
|
+
}
|
|
36746
|
+
else {
|
|
36747
|
+
step.redo();
|
|
36748
|
+
}
|
|
36749
|
+
triggerSegmentationDataModified(segmentationId);
|
|
36750
|
+
},
|
|
36751
|
+
});
|
|
36752
|
+
},
|
|
36753
|
+
});
|
|
36754
|
+
triggerSegmentationDataModified(segmentationId);
|
|
36755
|
+
return layer?.labelmapId;
|
|
36756
|
+
}
|
|
36757
|
+
|
|
36671
36758
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/computeStackLabelmapFromVolume.js + 1 modules
|
|
36672
36759
|
var computeStackLabelmapFromVolume = __webpack_require__(11474);
|
|
36760
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/labelmapModel/index.js
|
|
36761
|
+
var labelmapModel = __webpack_require__(82159);
|
|
36673
36762
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getActiveSegmentIndex.js
|
|
36674
36763
|
var segmentation_getActiveSegmentIndex = __webpack_require__(72676);
|
|
36764
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js
|
|
36765
|
+
var getSegmentationRepresentation = __webpack_require__(47290);
|
|
36675
36766
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getViewportIdsWithSegmentation.js
|
|
36676
36767
|
var segmentation_getViewportIdsWithSegmentation = __webpack_require__(66155);
|
|
36677
36768
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
|
|
@@ -36825,6 +36916,8 @@ var segmentationEventManager = __webpack_require__(65604);
|
|
|
36825
36916
|
|
|
36826
36917
|
|
|
36827
36918
|
|
|
36919
|
+
|
|
36920
|
+
|
|
36828
36921
|
|
|
36829
36922
|
|
|
36830
36923
|
|
|
@@ -36833,6 +36926,10 @@ const helpers = (/* unused pure expression or super */ null && ({
|
|
|
36833
36926
|
convertStackToVolumeLabelmap,
|
|
36834
36927
|
computeVolumeLabelmapFromStack,
|
|
36835
36928
|
convertVolumeToStackLabelmap,
|
|
36929
|
+
getLabelToSegmentIndex,
|
|
36930
|
+
getLabelValueForSegment,
|
|
36931
|
+
getSegmentIndexForLabelValue,
|
|
36932
|
+
moveSegmentToPrivateLabelmap,
|
|
36836
36933
|
}));
|
|
36837
36934
|
|
|
36838
36935
|
|
|
@@ -36903,6 +37000,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36903
37000
|
Mx: () => (/* reexport safe */ _labelmapSegmentBindings_js__rspack_import_3.Mx),
|
|
36904
37001
|
Nf: () => (/* reexport safe */ _labelmapSegmentBindings_js__rspack_import_3.Nf),
|
|
36905
37002
|
Qk: () => (/* reexport safe */ _labelmapEditTransaction_js__rspack_import_5.Qk),
|
|
37003
|
+
RP: () => (/* reexport safe */ _labelmapEditTransaction_js__rspack_import_5.RP),
|
|
36906
37004
|
Ry: () => (/* reexport safe */ _labelmapEditTransaction_js__rspack_import_5.Ry),
|
|
36907
37005
|
VQ: () => (/* reexport safe */ _labelmapEditTransaction_js__rspack_import_5.VQ),
|
|
36908
37006
|
Zs: () => (/* reexport safe */ _labelmapSegmentBindings_js__rspack_import_3.Zs),
|
|
@@ -36915,6 +37013,93 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36915
37013
|
});
|
|
36916
37014
|
|
|
36917
37015
|
|
|
37016
|
+
},
|
|
37017
|
+
16489(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
37018
|
+
/* import */ var _enums_SegmentationRepresentations_js__rspack_import_0 = __webpack_require__(52602);
|
|
37019
|
+
/* import */ var _getSegmentationRepresentation_js__rspack_import_1 = __webpack_require__(47290);
|
|
37020
|
+
/* import */ var _cornerstonejs_core__rspack_import_2 = __webpack_require__(62721);
|
|
37021
|
+
/* import */ var _SegmentationStateManager_js__rspack_import_3 = __webpack_require__(91155);
|
|
37022
|
+
/* import */ var _segmentationEventManager_js__rspack_import_4 = __webpack_require__(65604);
|
|
37023
|
+
/* import */ var _SegmentationRepresentationDisplayRegistry_js__rspack_import_5 = __webpack_require__(55377);
|
|
37024
|
+
|
|
37025
|
+
|
|
37026
|
+
|
|
37027
|
+
|
|
37028
|
+
|
|
37029
|
+
|
|
37030
|
+
|
|
37031
|
+
const cs3dLogger = _cornerstonejs_core__rspack_import_2.utilities.logger.toolsLog.getLogger('stateManagement.segmentation.removeSegmentationRepresentations');
|
|
37032
|
+
function removeSegmentationRepresentation(viewportId, specifier, immediate) {
|
|
37033
|
+
return _removeSegmentationRepresentations(viewportId, specifier, immediate);
|
|
37034
|
+
}
|
|
37035
|
+
function removeSegmentationRepresentations(viewportId, specifier, immediate) {
|
|
37036
|
+
return _removeSegmentationRepresentations(viewportId, specifier, immediate);
|
|
37037
|
+
}
|
|
37038
|
+
function _removeSegmentationRepresentations(viewportId, specifier, immediate) {
|
|
37039
|
+
const { segmentationId, type } = specifier;
|
|
37040
|
+
_removeRepresentationObject(viewportId, segmentationId, type, immediate);
|
|
37041
|
+
return _SegmentationStateManager_js__rspack_import_3/* .defaultSegmentationStateManager.removeSegmentationRepresentations */._6.removeSegmentationRepresentations(viewportId, {
|
|
37042
|
+
segmentationId,
|
|
37043
|
+
type,
|
|
37044
|
+
});
|
|
37045
|
+
}
|
|
37046
|
+
function removeAllSegmentationRepresentations() {
|
|
37047
|
+
const state = defaultSegmentationStateManager.getAllViewportSegmentationRepresentations();
|
|
37048
|
+
state.forEach(({ viewportId, representations }) => {
|
|
37049
|
+
representations.forEach(({ segmentationId, type }) => {
|
|
37050
|
+
removeSegmentationRepresentation(viewportId, {
|
|
37051
|
+
segmentationId,
|
|
37052
|
+
type,
|
|
37053
|
+
});
|
|
37054
|
+
});
|
|
37055
|
+
});
|
|
37056
|
+
defaultSegmentationStateManager.resetState();
|
|
37057
|
+
}
|
|
37058
|
+
function removeLabelmapRepresentation(viewportId, segmentationId, immediate) {
|
|
37059
|
+
removeSegmentationRepresentation(viewportId, {
|
|
37060
|
+
segmentationId,
|
|
37061
|
+
type: SegmentationRepresentations.Labelmap,
|
|
37062
|
+
}, immediate);
|
|
37063
|
+
}
|
|
37064
|
+
function removeContourRepresentation(viewportId, segmentationId, immediate) {
|
|
37065
|
+
removeSegmentationRepresentation(viewportId, {
|
|
37066
|
+
segmentationId,
|
|
37067
|
+
type: _enums_SegmentationRepresentations_js__rspack_import_0/* ["default"].Contour */.A.Contour,
|
|
37068
|
+
}, immediate);
|
|
37069
|
+
}
|
|
37070
|
+
function removeSurfaceRepresentation(viewportId, segmentationId, immediate) {
|
|
37071
|
+
removeSegmentationRepresentation(viewportId, {
|
|
37072
|
+
segmentationId,
|
|
37073
|
+
type: SegmentationRepresentations.Surface,
|
|
37074
|
+
}, immediate);
|
|
37075
|
+
}
|
|
37076
|
+
function _removeRepresentationObject(viewportId, segmentationId, type, immediate) {
|
|
37077
|
+
const representations = (0,_getSegmentationRepresentation_js__rspack_import_1/* .getSegmentationRepresentations */.r$)(viewportId, {
|
|
37078
|
+
segmentationId,
|
|
37079
|
+
type,
|
|
37080
|
+
});
|
|
37081
|
+
representations.forEach((representation) => {
|
|
37082
|
+
const display = (0,_SegmentationRepresentationDisplayRegistry_js__rspack_import_5/* .getSegmentationRepresentationDisplay */.I)(representation.type);
|
|
37083
|
+
if (display) {
|
|
37084
|
+
display.removeRepresentation(viewportId, representation.segmentationId, immediate);
|
|
37085
|
+
}
|
|
37086
|
+
else {
|
|
37087
|
+
cs3dLogger.warn(`No display registered for segmentation representation type ${representation.type}.`);
|
|
37088
|
+
}
|
|
37089
|
+
(0,_segmentationEventManager_js__rspack_import_4/* .removeSegmentationListener */.L8)(representation.segmentationId, representation.type);
|
|
37090
|
+
});
|
|
37091
|
+
const { viewport } = (0,_cornerstonejs_core__rspack_import_2.getEnabledElementByViewportId)(viewportId) || {};
|
|
37092
|
+
if (viewport) {
|
|
37093
|
+
viewport.render();
|
|
37094
|
+
}
|
|
37095
|
+
}
|
|
37096
|
+
|
|
37097
|
+
|
|
37098
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
37099
|
+
OE: () => (removeContourRepresentation)
|
|
37100
|
+
});
|
|
37101
|
+
|
|
37102
|
+
|
|
36918
37103
|
},
|
|
36919
37104
|
77074(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36920
37105
|
/* import */ var _store_ToolGroupManager_index_js__rspack_import_0 = __webpack_require__(91893);
|
|
@@ -37034,12 +37219,12 @@ function _setContourSegmentationSegmentAnnotationsLocked(segmentation, segmentIn
|
|
|
37034
37219
|
});
|
|
37035
37220
|
}
|
|
37036
37221
|
function isSegmentIndexLocked(segmentationId, segmentIndex) {
|
|
37037
|
-
const segmentation = getSegmentation(segmentationId);
|
|
37222
|
+
const segmentation = (0,_stateManagement_segmentation_getSegmentation_js__rspack_import_0/* .getSegmentation */.T)(segmentationId);
|
|
37038
37223
|
if (!segmentation) {
|
|
37039
37224
|
throw new Error(`No segmentation state found for ${segmentationId}`);
|
|
37040
37225
|
}
|
|
37041
37226
|
const { segments } = segmentation;
|
|
37042
|
-
return segments[segmentIndex]
|
|
37227
|
+
return segments?.[segmentIndex]?.locked === true;
|
|
37043
37228
|
}
|
|
37044
37229
|
function setSegmentIndexLocked(segmentationId, segmentIndex, locked = true) {
|
|
37045
37230
|
const segmentation = getSegmentation(segmentationId);
|
|
@@ -37065,7 +37250,85 @@ function getLockedSegmentIndices(segmentationId) {
|
|
|
37065
37250
|
|
|
37066
37251
|
|
|
37067
37252
|
__webpack_require__.d(__webpack_exports__, {
|
|
37068
|
-
getLockedSegmentIndices: () => (getLockedSegmentIndices)
|
|
37253
|
+
getLockedSegmentIndices: () => (getLockedSegmentIndices),
|
|
37254
|
+
isSegmentIndexLocked: () => (isSegmentIndexLocked)
|
|
37255
|
+
});
|
|
37256
|
+
|
|
37257
|
+
|
|
37258
|
+
},
|
|
37259
|
+
65604(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
37260
|
+
/* import */ var _cornerstonejs_core__rspack_import_0 = __webpack_require__(62721);
|
|
37261
|
+
/* import */ var _enums_index_js__rspack_import_1 = __webpack_require__(36776);
|
|
37262
|
+
/* import */ var _triggerSegmentationEvents_js__rspack_import_2 = __webpack_require__(11815);
|
|
37263
|
+
/* import */ var _utilities_debounce_js__rspack_import_3 = __webpack_require__(20361);
|
|
37264
|
+
/* import */ var _getSegmentation_js__rspack_import_4 = __webpack_require__(50115);
|
|
37265
|
+
/* import */ var _SegmentationRepresentationDisplayRegistry_js__rspack_import_5 = __webpack_require__(55377);
|
|
37266
|
+
|
|
37267
|
+
|
|
37268
|
+
|
|
37269
|
+
|
|
37270
|
+
|
|
37271
|
+
|
|
37272
|
+
const segmentationListeners = new Map();
|
|
37273
|
+
function addDefaultSegmentationListener(viewport, segmentationId, representationType) {
|
|
37274
|
+
const updateFunction = (0,_SegmentationRepresentationDisplayRegistry_js__rspack_import_5/* .getSegmentationRepresentationDisplay */.I)(representationType)?.getUpdateFunction(viewport);
|
|
37275
|
+
if (updateFunction) {
|
|
37276
|
+
addSegmentationListener(segmentationId, representationType, updateFunction);
|
|
37277
|
+
}
|
|
37278
|
+
}
|
|
37279
|
+
function addSegmentationListener(segmentationId, representationType, updateFunction) {
|
|
37280
|
+
if (!segmentationListeners.has(segmentationId)) {
|
|
37281
|
+
segmentationListeners.set(segmentationId, new Map());
|
|
37282
|
+
}
|
|
37283
|
+
const listenerMap = segmentationListeners.get(segmentationId);
|
|
37284
|
+
if (listenerMap.has(representationType)) {
|
|
37285
|
+
removeSegmentationListener(segmentationId, representationType);
|
|
37286
|
+
}
|
|
37287
|
+
const listener = createDebouncedSegmentationListener(segmentationId, representationType, updateFunction);
|
|
37288
|
+
_cornerstonejs_core__rspack_import_0.eventTarget.addEventListener(_enums_index_js__rspack_import_1.Events.SEGMENTATION_DATA_MODIFIED, listener);
|
|
37289
|
+
listenerMap.set(representationType, listener);
|
|
37290
|
+
}
|
|
37291
|
+
function removeSegmentationListener(segmentationId, representationType) {
|
|
37292
|
+
const listenerMap = segmentationListeners.get(segmentationId);
|
|
37293
|
+
if (!listenerMap) {
|
|
37294
|
+
return;
|
|
37295
|
+
}
|
|
37296
|
+
const listener = listenerMap.get(representationType);
|
|
37297
|
+
if (!listener) {
|
|
37298
|
+
return;
|
|
37299
|
+
}
|
|
37300
|
+
_cornerstonejs_core__rspack_import_0.eventTarget.removeEventListener(_enums_index_js__rspack_import_1.Events.SEGMENTATION_DATA_MODIFIED, listener);
|
|
37301
|
+
listenerMap.delete(representationType);
|
|
37302
|
+
}
|
|
37303
|
+
function removeAllSegmentationListeners(segmentationId) {
|
|
37304
|
+
const listenerMap = segmentationListeners.get(segmentationId);
|
|
37305
|
+
if (!listenerMap) {
|
|
37306
|
+
return;
|
|
37307
|
+
}
|
|
37308
|
+
for (const listener of listenerMap.values()) {
|
|
37309
|
+
eventTarget.removeEventListener(Events.SEGMENTATION_DATA_MODIFIED, listener);
|
|
37310
|
+
}
|
|
37311
|
+
segmentationListeners.delete(segmentationId);
|
|
37312
|
+
}
|
|
37313
|
+
function createDebouncedSegmentationListener(segmentationId, representationType, updateFunction) {
|
|
37314
|
+
const debouncedHandler = (0,_utilities_debounce_js__rspack_import_3/* ["default"] */.A)((event) => {
|
|
37315
|
+
const eventSegmentationId = event.detail?.segmentationId;
|
|
37316
|
+
const segmentation = (0,_getSegmentation_js__rspack_import_4/* .getSegmentation */.T)(eventSegmentationId);
|
|
37317
|
+
if (eventSegmentationId === segmentationId &&
|
|
37318
|
+
!!segmentation?.representationData?.[representationType]) {
|
|
37319
|
+
updateFunction(segmentationId);
|
|
37320
|
+
(0,_triggerSegmentationEvents_js__rspack_import_2.triggerSegmentationModified)(segmentationId);
|
|
37321
|
+
}
|
|
37322
|
+
}, 300);
|
|
37323
|
+
return ((event) => {
|
|
37324
|
+
debouncedHandler(event);
|
|
37325
|
+
});
|
|
37326
|
+
}
|
|
37327
|
+
|
|
37328
|
+
|
|
37329
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
37330
|
+
L8: () => (removeSegmentationListener),
|
|
37331
|
+
Np: () => (addDefaultSegmentationListener)
|
|
37069
37332
|
});
|
|
37070
37333
|
|
|
37071
37334
|
|
|
@@ -37767,6 +38030,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
37767
38030
|
/* import */ var _stateManagement_annotation_config_helpers_js__rspack_import_21 = __webpack_require__(91336);
|
|
37768
38031
|
/* import */ var _utilities_defaultGetTextLines_js__rspack_import_22 = __webpack_require__(73131);
|
|
37769
38032
|
/* import */ var _utilities_sampleAreaAnnotationVoxels_js__rspack_import_23 = __webpack_require__(72821);
|
|
38033
|
+
/* import */ var _utilities_areaAnnotationShapeUtils_js__rspack_import_24 = __webpack_require__(98512);
|
|
37770
38034
|
var _a;
|
|
37771
38035
|
|
|
37772
38036
|
|
|
@@ -37791,6 +38055,7 @@ var _a;
|
|
|
37791
38055
|
|
|
37792
38056
|
|
|
37793
38057
|
|
|
38058
|
+
|
|
37794
38059
|
|
|
37795
38060
|
|
|
37796
38061
|
const cs3dLogger = _cornerstonejs_core__rspack_import_1.utilities.logger.toolsLog.getLogger('tools.annotation.RectangleROITool');
|
|
@@ -38244,7 +38509,7 @@ class RectangleROITool extends _base_index_js__rspack_import_0/* .AnnotationTool
|
|
|
38244
38509
|
const majorAxis = gl_matrix__rspack_import_2/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_2/* .vec3.create */.eR.vt(), worldHandles[1], worldHandles[0]);
|
|
38245
38510
|
const majorHalfLength = gl_matrix__rspack_import_2/* .vec3.distance */.eR.Io(worldHandles[0], worldHandles[1]) / 2;
|
|
38246
38511
|
const minorHalfLength = gl_matrix__rspack_import_2/* .vec3.distance */.eR.Io(worldHandles[0], worldHandles[2]) / 2;
|
|
38247
|
-
if (!(
|
|
38512
|
+
if (!(0,_utilities_areaAnnotationShapeUtils_js__rspack_import_24/* .hasValidAreaAnnotationDimensions */.k)(majorHalfLength, minorHalfLength)) {
|
|
38248
38513
|
return null;
|
|
38249
38514
|
}
|
|
38250
38515
|
return createRectangleShape({
|
|
@@ -38550,6 +38815,13 @@ class AnnotationTool extends _AnnotationDisplayTool_js__rspack_import_2/* ["defa
|
|
|
38550
38815
|
const scalingModule = imageId && _cornerstonejs_core__rspack_import_0.metaData.get('scalingModule', imageId);
|
|
38551
38816
|
return typeof scalingModule?.suvbw === 'number';
|
|
38552
38817
|
}
|
|
38818
|
+
getTargetVolume(viewport) {
|
|
38819
|
+
const targetId = this.getTargetId(viewport);
|
|
38820
|
+
const imageVolume = targetId
|
|
38821
|
+
? _cornerstonejs_core__rspack_import_0.cache.getVolume(_cornerstonejs_core__rspack_import_0.utilities.getVolumeId(targetId))
|
|
38822
|
+
: undefined;
|
|
38823
|
+
return imageVolume ? { targetId, imageVolume } : null;
|
|
38824
|
+
}
|
|
38553
38825
|
getAnnotationStyle(context) {
|
|
38554
38826
|
const { annotation, styleSpecifier } = context;
|
|
38555
38827
|
const getStyle = (property) => this.getStyle(property, styleSpecifier, annotation);
|
|
@@ -38751,14 +39023,17 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38751
39023
|
/* import */ var _utilities_segmentation_createLabelmapMemo_js__rspack_import_10 = __webpack_require__(89725);
|
|
38752
39024
|
/* import */ var _stateManagement_annotation_annotationState_js__rspack_import_11 = __webpack_require__(77864);
|
|
38753
39025
|
/* import */ var _utilities_planar_index_js__rspack_import_12 = __webpack_require__(84468);
|
|
38754
|
-
/* import */ var
|
|
39026
|
+
/* import */ var _strategies_utils_contourVoxelSlab_js__rspack_import_13 = __webpack_require__(53976);
|
|
38755
39027
|
/* import */ var _stateManagement_segmentation_triggerSegmentationEvents_js__rspack_import_14 = __webpack_require__(11815);
|
|
38756
39028
|
/* import */ var _strategies_index_js__rspack_import_15 = __webpack_require__(70978);
|
|
38757
39029
|
/* import */ var _stateManagement_segmentation_helpers_getViewportLabelmapRenderMode_js__rspack_import_16 = __webpack_require__(15422);
|
|
38758
39030
|
/* import */ var _stateManagement_segmentation_helpers_labelmapSegmentationState_js__rspack_import_17 = __webpack_require__(92996);
|
|
38759
39031
|
/* import */ var _utilities_getViewportICamera_js__rspack_import_18 = __webpack_require__(40196);
|
|
38760
|
-
/* import */ var
|
|
38761
|
-
/* import */ var
|
|
39032
|
+
/* import */ var _stateManagement_segmentation_config_segmentationVisibility_js__rspack_import_19 = __webpack_require__(64540);
|
|
39033
|
+
/* import */ var _utilities_contourSegmentation_removeContourSegmentationAnnotation_js__rspack_import_20 = __webpack_require__(24618);
|
|
39034
|
+
/* import */ var _utilities_triggerAnnotationRenderForViewportIds_js__rspack_import_21 = __webpack_require__(74128);
|
|
39035
|
+
/* import */ var _cursors_elementCursor_js__rspack_import_22 = __webpack_require__(30905);
|
|
39036
|
+
|
|
38762
39037
|
|
|
38763
39038
|
|
|
38764
39039
|
|
|
@@ -38780,6 +39055,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38780
39055
|
|
|
38781
39056
|
|
|
38782
39057
|
|
|
39058
|
+
|
|
39059
|
+
const { asUnitNormal } = _cornerstonejs_core__rspack_import_0.utilities.voxelSlab;
|
|
38783
39060
|
class LabelmapBaseTool extends _base_index_js__rspack_import_1/* .BaseTool */.oS {
|
|
38784
39061
|
constructor(toolProps, defaultToolProps) {
|
|
38785
39062
|
super(toolProps, defaultToolProps);
|
|
@@ -38798,11 +39075,11 @@ class LabelmapBaseTool extends _base_index_js__rspack_import_1/* .BaseTool */.oS
|
|
|
38798
39075
|
}
|
|
38799
39076
|
const viewportIdsToRender = this.editData?.viewportIdsToRender;
|
|
38800
39077
|
this._deactivateDraw(element);
|
|
38801
|
-
(0,
|
|
39078
|
+
(0,_cursors_elementCursor_js__rspack_import_22.resetElementCursor)(element);
|
|
38802
39079
|
this.editData = null;
|
|
38803
39080
|
this.isDrawing = false;
|
|
38804
39081
|
if (viewportIdsToRender) {
|
|
38805
|
-
(0,
|
|
39082
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds_js__rspack_import_21/* ["default"] */.A)(viewportIdsToRender);
|
|
38806
39083
|
}
|
|
38807
39084
|
}
|
|
38808
39085
|
_historyRedoHandler(evt) {
|
|
@@ -39084,12 +39361,15 @@ class LabelmapBaseTool extends _base_index_js__rspack_import_1/* .BaseTool */.oS
|
|
|
39084
39361
|
static viewportContoursToLabelmap(viewport, options) {
|
|
39085
39362
|
const removeContours = options?.removeContours ?? true;
|
|
39086
39363
|
const annotations = (0,_stateManagement_annotation_annotationState_js__rspack_import_11.getAllAnnotations)();
|
|
39087
|
-
const
|
|
39088
|
-
|
|
39364
|
+
const polylineAnnotations = annotations.filter((annotation) => annotation.data.contour?.polyline?.length);
|
|
39365
|
+
const contourAnnotations = options?.annotationFilter
|
|
39366
|
+
? options.annotationFilter(polylineAnnotations)
|
|
39367
|
+
: polylineAnnotations;
|
|
39368
|
+
if (!contourAnnotations.length) {
|
|
39089
39369
|
return;
|
|
39090
39370
|
}
|
|
39091
|
-
const
|
|
39092
|
-
if (!
|
|
39371
|
+
const viewAnnotations = (0,_utilities_planar_index_js__rspack_import_12.filterAnnotationsForDisplay)(viewport, contourAnnotations);
|
|
39372
|
+
if (!viewAnnotations?.length) {
|
|
39093
39373
|
return;
|
|
39094
39374
|
}
|
|
39095
39375
|
const brushInstance = new LabelmapBaseTool({}, {
|
|
@@ -39104,31 +39384,25 @@ class LabelmapBaseTool extends _base_index_js__rspack_import_1/* .BaseTool */.oS
|
|
|
39104
39384
|
const { memo, segmentationId } = preview;
|
|
39105
39385
|
const previewVoxels = memo?.voxelManager;
|
|
39106
39386
|
const segmentationVoxels = previewVoxels.sourceVoxelManager || previewVoxels;
|
|
39107
|
-
const { dimensions } = previewVoxels;
|
|
39108
39387
|
const imageData = viewport
|
|
39109
39388
|
.getDefaultActor()
|
|
39110
39389
|
.actor.getMapper()
|
|
39111
39390
|
.getInputData();
|
|
39112
|
-
|
|
39113
|
-
|
|
39114
|
-
|
|
39115
|
-
|
|
39116
|
-
|
|
39117
|
-
|
|
39391
|
+
const volume = {
|
|
39392
|
+
dimensions: imageData.getDimensions(),
|
|
39393
|
+
direction: imageData.getDirection(),
|
|
39394
|
+
spacing: imageData.getSpacing(),
|
|
39395
|
+
origin: imageData.getOrigin(),
|
|
39396
|
+
};
|
|
39397
|
+
const isSegmentEditable = createSegmentEditableLookup(viewport.id, segmentationId);
|
|
39398
|
+
for (const annotation of viewAnnotations) {
|
|
39118
39399
|
const { polyline } = annotation.data.contour;
|
|
39119
|
-
|
|
39120
|
-
|
|
39121
|
-
indexPoint.forEach((v, idx) => {
|
|
39122
|
-
boundsIJK[idx][0] = Math.min(boundsIJK[idx][0], v);
|
|
39123
|
-
boundsIJK[idx][1] = Math.max(boundsIJK[idx][1], v);
|
|
39124
|
-
});
|
|
39125
|
-
}
|
|
39126
|
-
boundsIJK.forEach((bound, idx) => {
|
|
39127
|
-
bound[0] = Math.round(Math.max(0, bound[0]));
|
|
39128
|
-
bound[1] = Math.round(Math.min(dimensions[idx] - 1, bound[1]));
|
|
39129
|
-
});
|
|
39400
|
+
const camera = viewport.getCamera();
|
|
39401
|
+
const viewPlaneNormal = asUnitNormal(annotation.metadata?.viewPlaneNormal ?? camera.viewPlaneNormal);
|
|
39130
39402
|
const activeIndex = (0,_stateManagement_segmentation_getActiveSegmentIndex_js__rspack_import_8/* .getActiveSegmentIndex */.Q)(segmentationId);
|
|
39131
|
-
const startPoint =
|
|
39403
|
+
const startPoint = options?.strokeStartPoint ||
|
|
39404
|
+
annotation.data.handles?.[0] ||
|
|
39405
|
+
polyline[0];
|
|
39132
39406
|
const startIndex = imageData.worldToIndex(startPoint).map(Math.round);
|
|
39133
39407
|
const startValue = segmentationVoxels.getAtIJKPoint(startIndex) || 0;
|
|
39134
39408
|
let hasZeroIndex = false;
|
|
@@ -39144,28 +39418,39 @@ class LabelmapBaseTool extends _base_index_js__rspack_import_1/* .BaseTool */.oS
|
|
|
39144
39418
|
}
|
|
39145
39419
|
}
|
|
39146
39420
|
const hasBoth = hasZeroIndex && hasPositiveIndex;
|
|
39147
|
-
|
|
39421
|
+
let segmentIndex = hasBoth
|
|
39148
39422
|
? startValue
|
|
39149
39423
|
: startValue === 0
|
|
39150
39424
|
? activeIndex
|
|
39151
39425
|
: 0;
|
|
39152
|
-
|
|
39153
|
-
|
|
39154
|
-
|
|
39155
|
-
|
|
39156
|
-
|
|
39157
|
-
|
|
39158
|
-
|
|
39159
|
-
|
|
39160
|
-
|
|
39426
|
+
if (!isSegmentEditable(segmentIndex)) {
|
|
39427
|
+
segmentIndex = activeIndex;
|
|
39428
|
+
}
|
|
39429
|
+
if (!isSegmentEditable(segmentIndex)) {
|
|
39430
|
+
if (removeContours) {
|
|
39431
|
+
removeContourAnnotation(annotation);
|
|
39432
|
+
}
|
|
39433
|
+
continue;
|
|
39434
|
+
}
|
|
39435
|
+
for (const ijk of (0,_strategies_utils_contourVoxelSlab_js__rspack_import_13/* .iterateContourFillVoxels */.x)({
|
|
39436
|
+
volume,
|
|
39437
|
+
polyline,
|
|
39438
|
+
viewPlaneNormal,
|
|
39439
|
+
imageData,
|
|
39440
|
+
})) {
|
|
39441
|
+
const currentSegmentIndex = segmentationVoxels.getAtIJK(ijk[0], ijk[1], ijk[2]);
|
|
39442
|
+
if (!isSegmentEditable(currentSegmentIndex)) {
|
|
39443
|
+
continue;
|
|
39161
39444
|
}
|
|
39445
|
+
previewVoxels.setAtIJK(ijk[0], ijk[1], ijk[2], segmentIndex);
|
|
39162
39446
|
}
|
|
39163
39447
|
if (removeContours) {
|
|
39164
|
-
(
|
|
39448
|
+
removeContourAnnotation(annotation);
|
|
39165
39449
|
}
|
|
39166
39450
|
}
|
|
39167
39451
|
const slices = previewVoxels.getArrayOfModifiedSlices();
|
|
39168
39452
|
(0,_stateManagement_segmentation_triggerSegmentationEvents_js__rspack_import_14.triggerSegmentationDataModified)(segmentationId, slices);
|
|
39453
|
+
brushInstance.doneEditMemo();
|
|
39169
39454
|
}
|
|
39170
39455
|
}
|
|
39171
39456
|
LabelmapBaseTool.previewData = {
|
|
@@ -39177,6 +39462,41 @@ LabelmapBaseTool.previewData = {
|
|
|
39177
39462
|
isDrag: false,
|
|
39178
39463
|
};
|
|
39179
39464
|
/* export default */ __webpack_exports__.A = (LabelmapBaseTool);
|
|
39465
|
+
const SEGMENT_UNKNOWN = 0;
|
|
39466
|
+
const SEGMENT_EDITABLE = 1;
|
|
39467
|
+
const SEGMENT_BLOCKED = 2;
|
|
39468
|
+
function createSegmentEditableLookup(viewportId, segmentationId) {
|
|
39469
|
+
const segments = (0,_stateManagement_segmentation_getSegmentation_js__rspack_import_5/* .getSegmentation */.T)(segmentationId)?.segments;
|
|
39470
|
+
const hiddenSegmentIndices = (0,_stateManagement_segmentation_config_segmentationVisibility_js__rspack_import_19.getHiddenSegmentIndices)(viewportId, {
|
|
39471
|
+
segmentationId,
|
|
39472
|
+
type: _enums_SegmentationRepresentations_js__rspack_import_2/* ["default"].Labelmap */.A.Labelmap,
|
|
39473
|
+
});
|
|
39474
|
+
let cache = new Uint8Array(64);
|
|
39475
|
+
return function isSegmentEditable(segmentIndex) {
|
|
39476
|
+
if (!(segmentIndex > 0)) {
|
|
39477
|
+
return true;
|
|
39478
|
+
}
|
|
39479
|
+
if (segmentIndex >= cache.length) {
|
|
39480
|
+
const grown = new Uint8Array(Math.max(segmentIndex + 1, cache.length * 2));
|
|
39481
|
+
grown.set(cache);
|
|
39482
|
+
cache = grown;
|
|
39483
|
+
}
|
|
39484
|
+
const cached = cache[segmentIndex];
|
|
39485
|
+
if (cached !== SEGMENT_UNKNOWN) {
|
|
39486
|
+
return cached === SEGMENT_EDITABLE;
|
|
39487
|
+
}
|
|
39488
|
+
const isEditable = segments?.[segmentIndex]?.locked !== true &&
|
|
39489
|
+
!hiddenSegmentIndices.has(segmentIndex);
|
|
39490
|
+
cache[segmentIndex] = isEditable ? SEGMENT_EDITABLE : SEGMENT_BLOCKED;
|
|
39491
|
+
return isEditable;
|
|
39492
|
+
};
|
|
39493
|
+
}
|
|
39494
|
+
function removeContourAnnotation(annotation) {
|
|
39495
|
+
(0,_stateManagement_annotation_annotationState_js__rspack_import_11.removeAnnotation)(annotation.annotationUID);
|
|
39496
|
+
if (annotation.data?.segmentation) {
|
|
39497
|
+
(0,_utilities_contourSegmentation_removeContourSegmentationAnnotation_js__rspack_import_20/* .removeContourSegmentationAnnotation */.M)(annotation);
|
|
39498
|
+
}
|
|
39499
|
+
}
|
|
39180
39500
|
function lightenColor(r, g, b, a, factor = 0.4) {
|
|
39181
39501
|
return [
|
|
39182
39502
|
Math.round(r + (255 - r) * factor),
|
|
@@ -39196,6 +39516,10 @@ function lightenColor(r, g, b, a, factor = 0.4) {
|
|
|
39196
39516
|
/* import */ var _enums_index_js__rspack_import_4 = __webpack_require__(36776);
|
|
39197
39517
|
/* import */ var _compositions_index_js__rspack_import_5 = __webpack_require__(68292);
|
|
39198
39518
|
/* import */ var _utilities_math_sphere_index_js__rspack_import_6 = __webpack_require__(95515);
|
|
39519
|
+
/* import */ var _utils_brushVoxelSlab_js__rspack_import_7 = __webpack_require__(90058);
|
|
39520
|
+
/* import */ var _utilities_genericViewportToolHelpers_js__rspack_import_8 = __webpack_require__(73820);
|
|
39521
|
+
|
|
39522
|
+
|
|
39199
39523
|
|
|
39200
39524
|
|
|
39201
39525
|
|
|
@@ -39214,19 +39538,23 @@ function getEllipseCornersFromCanvasCoordinates(canvasCoordinates) {
|
|
|
39214
39538
|
}
|
|
39215
39539
|
function createCircleCornersForCenter(center, viewUp, viewRight, yRadius, xRadius) {
|
|
39216
39540
|
const centerVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(center[0], center[1], center[2]);
|
|
39217
|
-
const
|
|
39218
|
-
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(
|
|
39219
|
-
|
|
39220
|
-
gl_matrix__rspack_import_0/* .vec3.
|
|
39221
|
-
|
|
39222
|
-
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(
|
|
39223
|
-
const
|
|
39224
|
-
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(
|
|
39541
|
+
const topRight = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39542
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(topRight, centerVec, viewUp, yRadius);
|
|
39543
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(topRight, topRight, viewRight, xRadius);
|
|
39544
|
+
const topLeft = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39545
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(topLeft, centerVec, viewUp, yRadius);
|
|
39546
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(topLeft, topLeft, viewRight, -xRadius);
|
|
39547
|
+
const bottomRight = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39548
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(bottomRight, centerVec, viewUp, -yRadius);
|
|
39549
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(bottomRight, bottomRight, viewRight, xRadius);
|
|
39550
|
+
const bottomLeft = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39551
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(bottomLeft, centerVec, viewUp, -yRadius);
|
|
39552
|
+
gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(bottomLeft, bottomLeft, viewRight, -xRadius);
|
|
39225
39553
|
return [
|
|
39226
|
-
|
|
39227
|
-
|
|
39228
|
-
|
|
39229
|
-
|
|
39554
|
+
topRight,
|
|
39555
|
+
topLeft,
|
|
39556
|
+
bottomRight,
|
|
39557
|
+
bottomLeft,
|
|
39230
39558
|
];
|
|
39231
39559
|
}
|
|
39232
39560
|
function createStrokePredicate(centers, xRadius, yRadius) {
|
|
@@ -39339,32 +39667,59 @@ const initializeCircle = {
|
|
|
39339
39667
|
xRadius,
|
|
39340
39668
|
yRadius,
|
|
39341
39669
|
aspectRatio,
|
|
39670
|
+
viewRight,
|
|
39671
|
+
viewUp: normalizedViewUp,
|
|
39672
|
+
viewNormal: normalizedPlaneNormal,
|
|
39342
39673
|
});
|
|
39343
39674
|
operationData.isInObjectBoundsIJK = boundsIJK;
|
|
39675
|
+
const viewThicknessWorld = (0,_utilities_genericViewportToolHelpers_js__rspack_import_8/* .getViewSlabDepthOfViewport */._U)(viewport);
|
|
39676
|
+
(0,_utils_brushVoxelSlab_js__rspack_import_7/* .applyBrushFill */.Ws)(operationData, (0,_utils_brushVoxelSlab_js__rspack_import_7/* .createCircleBrushFill */.SH)({
|
|
39677
|
+
segmentationImageData,
|
|
39678
|
+
viewUp: normalizedViewUp,
|
|
39679
|
+
viewPlaneNormal: normalizedPlaneNormal,
|
|
39680
|
+
centerWorld: operationData.centerWorld,
|
|
39681
|
+
xRadius,
|
|
39682
|
+
yRadius,
|
|
39683
|
+
strokeCentersWorld: strokeCenters,
|
|
39684
|
+
viewThicknessWorld,
|
|
39685
|
+
}));
|
|
39344
39686
|
},
|
|
39345
39687
|
};
|
|
39346
39688
|
function createPointInEllipse(cornersInWorld = [], options = {}) {
|
|
39347
39689
|
if (!cornersInWorld || cornersInWorld.length !== 4) {
|
|
39348
39690
|
throw new Error('createPointInEllipse: cornersInWorld must have 4 points');
|
|
39349
39691
|
}
|
|
39350
|
-
const [topLeft, bottomRight,
|
|
39692
|
+
const [topLeft, bottomRight, , topRight] = cornersInWorld;
|
|
39351
39693
|
const aspectRatio = options.aspectRatio || [1, 1];
|
|
39694
|
+
const segmentationImageData = options.segmentationImageData;
|
|
39695
|
+
const { viewRight, viewUp, viewNormal } = options;
|
|
39696
|
+
const spacing = segmentationImageData?.getSpacing?.();
|
|
39697
|
+
const direction = segmentationImageData?.getDirection?.();
|
|
39698
|
+
const spacingInNormal = spacing && direction && viewNormal
|
|
39699
|
+
? _cornerstonejs_core__rspack_import_1.utilities.getSpacingInNormalDirection({ spacing, direction }, viewNormal)
|
|
39700
|
+
: spacing
|
|
39701
|
+
? Math.max(...spacing, Number.EPSILON)
|
|
39702
|
+
: 1;
|
|
39703
|
+
const planeTolerance = Math.max(spacingInNormal / 2, Number.EPSILON);
|
|
39352
39704
|
const center = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39353
39705
|
gl_matrix__rspack_import_0/* .vec3.add */.eR.WQ(center, topLeft, bottomRight);
|
|
39354
39706
|
gl_matrix__rspack_import_0/* .vec3.scale */.eR.hs(center, center, 0.5);
|
|
39355
39707
|
const majorAxisVec = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39356
39708
|
gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(majorAxisVec, topRight, topLeft);
|
|
39357
39709
|
const originalRadius = gl_matrix__rspack_import_0/* .vec3.length */.eR.Bw(majorAxisVec) / 2;
|
|
39358
|
-
gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(majorAxisVec, majorAxisVec);
|
|
39359
|
-
const minorAxisVec = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39360
|
-
gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(minorAxisVec, bottomLeft, topLeft);
|
|
39361
|
-
gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(minorAxisVec, minorAxisVec);
|
|
39362
39710
|
const xRadius = originalRadius / aspectRatio[0];
|
|
39363
39711
|
const yRadius = originalRadius / aspectRatio[1];
|
|
39712
|
+
const invXRadiusSquared = 1 / (xRadius * xRadius);
|
|
39713
|
+
const invYRadiusSquared = 1 / (yRadius * yRadius);
|
|
39714
|
+
const invZRadiusSquared = options.depthRadius > 0
|
|
39715
|
+
? 1 / (options.depthRadius * options.depthRadius)
|
|
39716
|
+
: null;
|
|
39364
39717
|
const xRadiusForStroke = options.xRadius ?? xRadius;
|
|
39365
39718
|
const yRadiusForStroke = options.yRadius ?? yRadius;
|
|
39366
39719
|
const strokePredicate = createStrokePredicate(options.strokePointsWorld || [], xRadiusForStroke, yRadiusForStroke);
|
|
39367
|
-
|
|
39720
|
+
const isSphere = isEqual(xRadius, yRadius) &&
|
|
39721
|
+
(invZRadiusSquared === null || isEqual(options.depthRadius, xRadius));
|
|
39722
|
+
if (isSphere) {
|
|
39368
39723
|
const radius = xRadius;
|
|
39369
39724
|
const sphereObj = {
|
|
39370
39725
|
center,
|
|
@@ -39398,9 +39753,18 @@ function createPointInEllipse(cornersInWorld = [], options = {}) {
|
|
|
39398
39753
|
}
|
|
39399
39754
|
const pointVec = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39400
39755
|
gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(pointVec, worldPoint, center);
|
|
39401
|
-
const
|
|
39402
|
-
const
|
|
39403
|
-
|
|
39756
|
+
const xDist = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(pointVec, viewRight);
|
|
39757
|
+
const yDist = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(pointVec, viewUp);
|
|
39758
|
+
const xTerm = xDist * xDist * invXRadiusSquared;
|
|
39759
|
+
const yTerm = yDist * yDist * invYRadiusSquared;
|
|
39760
|
+
const zDist = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(pointVec, viewNormal);
|
|
39761
|
+
if (invZRadiusSquared !== null) {
|
|
39762
|
+
return xTerm + yTerm + zDist * zDist * invZRadiusSquared <= 1;
|
|
39763
|
+
}
|
|
39764
|
+
if (xTerm + yTerm <= 1) {
|
|
39765
|
+
return Math.abs(zDist) <= planeTolerance;
|
|
39766
|
+
}
|
|
39767
|
+
return false;
|
|
39404
39768
|
};
|
|
39405
39769
|
}
|
|
39406
39770
|
const CIRCLE_STRATEGY = new _BrushStrategy_js__rspack_import_3/* ["default"] */.A('Circle', _compositions_index_js__rspack_import_5/* ["default"].regionFill */.A.regionFill, _compositions_index_js__rspack_import_5/* ["default"].setValue */.A.setValue, initializeCircle, _compositions_index_js__rspack_import_5/* ["default"].determineSegmentIndex */.A.determineSegmentIndex, _compositions_index_js__rspack_import_5/* ["default"].preview */.A.preview, _compositions_index_js__rspack_import_5/* ["default"].labelmapStatistics */.A.labelmapStatistics);
|
|
@@ -39426,12 +39790,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39426
39790
|
65704(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
39427
39791
|
/* import */ var gl_matrix__rspack_import_0 = __webpack_require__(50341);
|
|
39428
39792
|
/* import */ var _cornerstonejs_core__rspack_import_1 = __webpack_require__(62721);
|
|
39429
|
-
/* import */ var
|
|
39430
|
-
/* import */ var
|
|
39431
|
-
/* import */ var
|
|
39432
|
-
/* import */ var
|
|
39433
|
-
/* import */ var _compositions_index_js__rspack_import_6 = __webpack_require__(68292);
|
|
39434
|
-
|
|
39793
|
+
/* import */ var _BrushStrategy_js__rspack_import_2 = __webpack_require__(33699);
|
|
39794
|
+
/* import */ var _enums_index_js__rspack_import_3 = __webpack_require__(36776);
|
|
39795
|
+
/* import */ var _compositions_index_js__rspack_import_4 = __webpack_require__(68292);
|
|
39796
|
+
/* import */ var _utils_brushVoxelSlab_js__rspack_import_5 = __webpack_require__(90058);
|
|
39435
39797
|
|
|
39436
39798
|
|
|
39437
39799
|
|
|
@@ -39439,9 +39801,45 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39439
39801
|
|
|
39440
39802
|
|
|
39441
39803
|
const { transformWorldToIndex } = _cornerstonejs_core__rspack_import_1.utilities;
|
|
39804
|
+
function orderRectangleCorners(pts) {
|
|
39805
|
+
if (pts.length < 3) {
|
|
39806
|
+
return [...pts];
|
|
39807
|
+
}
|
|
39808
|
+
const center = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39809
|
+
pts.forEach((p) => gl_matrix__rspack_import_0/* .vec3.add */.eR.WQ(center, center, p));
|
|
39810
|
+
gl_matrix__rspack_import_0/* .vec3.scale */.eR.hs(center, center, 1 / pts.length);
|
|
39811
|
+
const radials = pts.map((p) => gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), p, center));
|
|
39812
|
+
let axisInPlane = radials[0];
|
|
39813
|
+
let maxLenSq = gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(axisInPlane);
|
|
39814
|
+
for (const radial of radials) {
|
|
39815
|
+
const lenSq = gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(radial);
|
|
39816
|
+
if (lenSq > maxLenSq) {
|
|
39817
|
+
maxLenSq = lenSq;
|
|
39818
|
+
axisInPlane = radial;
|
|
39819
|
+
}
|
|
39820
|
+
}
|
|
39821
|
+
const e1 = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), axisInPlane);
|
|
39822
|
+
const normal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39823
|
+
const candidate = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39824
|
+
for (const radial of radials) {
|
|
39825
|
+
gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(candidate, e1, radial);
|
|
39826
|
+
if (gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(candidate) > gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(normal)) {
|
|
39827
|
+
gl_matrix__rspack_import_0/* .vec3.copy */.eR.C(normal, candidate);
|
|
39828
|
+
}
|
|
39829
|
+
}
|
|
39830
|
+
gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(normal, normal);
|
|
39831
|
+
const e2 = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), normal, e1));
|
|
39832
|
+
return [...pts].sort((a, b) => {
|
|
39833
|
+
const ra = gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), a, center);
|
|
39834
|
+
const rb = gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), b, center);
|
|
39835
|
+
const angleA = Math.atan2(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(ra, e2), gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(ra, e1));
|
|
39836
|
+
const angleB = Math.atan2(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(rb, e2), gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(rb, e1));
|
|
39837
|
+
return angleA - angleB;
|
|
39838
|
+
});
|
|
39839
|
+
}
|
|
39442
39840
|
const initializeRectangle = {
|
|
39443
|
-
[
|
|
39444
|
-
const { points,
|
|
39841
|
+
[_enums_index_js__rspack_import_3.StrategyCallbacks.Initialize]: (operationData) => {
|
|
39842
|
+
const { points, segmentationImageData, viewPlaneNormal, } = operationData;
|
|
39445
39843
|
if (!points) {
|
|
39446
39844
|
return;
|
|
39447
39845
|
}
|
|
@@ -39452,22 +39850,38 @@ const initializeRectangle = {
|
|
|
39452
39850
|
gl_matrix__rspack_import_0/* .vec3.scale */.eR.hs(center, center, 1 / points.length);
|
|
39453
39851
|
operationData.centerWorld = center;
|
|
39454
39852
|
operationData.centerIJK = transformWorldToIndex(segmentationImageData, center);
|
|
39455
|
-
const
|
|
39853
|
+
const orderedPoints = orderRectangleCorners(points);
|
|
39854
|
+
const { boundsIJK, pointInShapeFn } = createPointInRectangle(orderedPoints, segmentationImageData);
|
|
39456
39855
|
operationData.isInObject = pointInShapeFn;
|
|
39457
39856
|
operationData.isInObjectBoundsIJK = boundsIJK;
|
|
39857
|
+
(0,_utils_brushVoxelSlab_js__rspack_import_5/* .applyBrushFill */.Ws)(operationData, (0,_utils_brushVoxelSlab_js__rspack_import_5/* .createRectangleBrushFill */.LY)({
|
|
39858
|
+
segmentationImageData,
|
|
39859
|
+
cornersWorld: orderedPoints,
|
|
39860
|
+
viewPlaneNormal: viewPlaneNormal,
|
|
39861
|
+
}));
|
|
39458
39862
|
},
|
|
39459
39863
|
};
|
|
39460
|
-
function createPointInRectangle(
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
|
|
39467
|
-
|
|
39468
|
-
|
|
39469
|
-
|
|
39470
|
-
|
|
39864
|
+
function createPointInRectangle(orderedPoints, segmentationImageData) {
|
|
39865
|
+
const [p0, p1, , p3] = orderedPoints;
|
|
39866
|
+
const rectangleCornersIJK = orderedPoints.map((world) => transformWorldToIndex(segmentationImageData, world));
|
|
39867
|
+
const dims = segmentationImageData.getDimensions();
|
|
39868
|
+
const cornerIValues = rectangleCornersIJK.map((p) => p[0]);
|
|
39869
|
+
const cornerJValues = rectangleCornersIJK.map((p) => p[1]);
|
|
39870
|
+
const cornerKValues = rectangleCornersIJK.map((p) => p[2]);
|
|
39871
|
+
const boundsIJK = [
|
|
39872
|
+
[
|
|
39873
|
+
Math.max(0, Math.floor(Math.min(...cornerIValues))),
|
|
39874
|
+
Math.min(dims[0] - 1, Math.ceil(Math.max(...cornerIValues))),
|
|
39875
|
+
],
|
|
39876
|
+
[
|
|
39877
|
+
Math.max(0, Math.floor(Math.min(...cornerJValues))),
|
|
39878
|
+
Math.min(dims[1] - 1, Math.ceil(Math.max(...cornerJValues))),
|
|
39879
|
+
],
|
|
39880
|
+
[
|
|
39881
|
+
Math.max(0, Math.floor(Math.min(...cornerKValues))),
|
|
39882
|
+
Math.min(dims[2] - 1, Math.ceil(Math.max(...cornerKValues))),
|
|
39883
|
+
],
|
|
39884
|
+
];
|
|
39471
39885
|
const axisU = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39472
39886
|
const axisV = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39473
39887
|
gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(axisU, p1, p0);
|
|
@@ -39479,29 +39893,31 @@ function createPointInRectangle(viewport, points, segmentationImageData) {
|
|
|
39479
39893
|
const normal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39480
39894
|
gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(normal, axisU, axisV);
|
|
39481
39895
|
gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(normal, normal);
|
|
39482
|
-
const direction = segmentationImageData.getDirection();
|
|
39483
39896
|
const spacing = segmentationImageData.getSpacing();
|
|
39484
|
-
const
|
|
39485
|
-
const
|
|
39897
|
+
const direction = segmentationImageData.getDirection();
|
|
39898
|
+
const projectedSpacing = _cornerstonejs_core__rspack_import_1.utilities.getSpacingInNormalDirection({
|
|
39486
39899
|
direction,
|
|
39487
39900
|
spacing,
|
|
39488
|
-
},
|
|
39901
|
+
}, normal);
|
|
39902
|
+
const thickness = projectedSpacing;
|
|
39903
|
+
const inPlaneSpacing = Math.min(spacing[0], spacing[1]);
|
|
39904
|
+
const inPlaneTolerance = inPlaneSpacing / 2;
|
|
39489
39905
|
const pointInShapeFn = (pointLPS) => {
|
|
39490
39906
|
const v = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
|
|
39491
39907
|
gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(v, pointLPS, p0);
|
|
39492
39908
|
const u = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(v, axisU);
|
|
39493
39909
|
const vproj = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(v, axisV);
|
|
39494
|
-
const
|
|
39495
|
-
return (u >= -
|
|
39496
|
-
u <= uLen +
|
|
39497
|
-
vproj >= -
|
|
39498
|
-
vproj <= vLen +
|
|
39499
|
-
|
|
39910
|
+
const distanceToPlane = Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(v, normal));
|
|
39911
|
+
return (u >= -inPlaneTolerance &&
|
|
39912
|
+
u <= uLen + inPlaneTolerance &&
|
|
39913
|
+
vproj >= -inPlaneTolerance &&
|
|
39914
|
+
vproj <= vLen + inPlaneTolerance &&
|
|
39915
|
+
distanceToPlane <= thickness);
|
|
39500
39916
|
};
|
|
39501
39917
|
return { boundsIJK, pointInShapeFn };
|
|
39502
39918
|
}
|
|
39503
|
-
const RECTANGLE_STRATEGY = new
|
|
39504
|
-
const RECTANGLE_THRESHOLD_STRATEGY = new
|
|
39919
|
+
const RECTANGLE_STRATEGY = new _BrushStrategy_js__rspack_import_2/* ["default"] */.A('Rectangle', _compositions_index_js__rspack_import_4/* ["default"].regionFill */.A.regionFill, _compositions_index_js__rspack_import_4/* ["default"].setValue */.A.setValue, initializeRectangle, _compositions_index_js__rspack_import_4/* ["default"].determineSegmentIndex */.A.determineSegmentIndex, _compositions_index_js__rspack_import_4/* ["default"].preview */.A.preview, _compositions_index_js__rspack_import_4/* ["default"].labelmapStatistics */.A.labelmapStatistics);
|
|
39920
|
+
const RECTANGLE_THRESHOLD_STRATEGY = new _BrushStrategy_js__rspack_import_2/* ["default"] */.A('RectangleThreshold', _compositions_index_js__rspack_import_4/* ["default"].regionFill */.A.regionFill, _compositions_index_js__rspack_import_4/* ["default"].setValue */.A.setValue, initializeRectangle, _compositions_index_js__rspack_import_4/* ["default"].determineSegmentIndex */.A.determineSegmentIndex, _compositions_index_js__rspack_import_4/* ["default"].dynamicThreshold */.A.dynamicThreshold, _compositions_index_js__rspack_import_4/* ["default"].threshold */.A.threshold, _compositions_index_js__rspack_import_4/* ["default"].preview */.A.preview, _compositions_index_js__rspack_import_4/* ["default"].islandRemoval */.A.islandRemoval, _compositions_index_js__rspack_import_4/* ["default"].labelmapStatistics */.A.labelmapStatistics);
|
|
39505
39921
|
const fillInsideRectangle = RECTANGLE_STRATEGY.strategyFunction;
|
|
39506
39922
|
const thresholdInsideRectangle = RECTANGLE_THRESHOLD_STRATEGY.strategyFunction;
|
|
39507
39923
|
|
|
@@ -40337,6 +40753,95 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40337
40753
|
});
|
|
40338
40754
|
|
|
40339
40755
|
|
|
40756
|
+
},
|
|
40757
|
+
73820(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
40758
|
+
/* import */ var _cornerstonejs_core__rspack_import_0 = __webpack_require__(62721);
|
|
40759
|
+
/* import */ var _viewportPresentation_js__rspack_import_1 = __webpack_require__(69356);
|
|
40760
|
+
|
|
40761
|
+
|
|
40762
|
+
const { RENDERING_DEFAULTS } = _cornerstonejs_core__rspack_import_0.CONSTANTS;
|
|
40763
|
+
function getSlabThicknessOrDefault(viewport) {
|
|
40764
|
+
if (_cornerstonejs_core__rspack_import_0.utilities.isGenericViewport(viewport)) {
|
|
40765
|
+
return RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
40766
|
+
}
|
|
40767
|
+
return viewport.getSlabThickness();
|
|
40768
|
+
}
|
|
40769
|
+
function getViewSlabDepthOfViewport(viewport) {
|
|
40770
|
+
const slabThickness = viewport.getSlabThickness?.();
|
|
40771
|
+
if (!Number.isFinite(slabThickness)) {
|
|
40772
|
+
return undefined;
|
|
40773
|
+
}
|
|
40774
|
+
return _cornerstonejs_core__rspack_import_0.utilities.getViewSlabDepth(_cornerstonejs_core__rspack_import_0.utilities.isGenericViewport(viewport) ? slabThickness : slabThickness * 2);
|
|
40775
|
+
}
|
|
40776
|
+
function jumpToFocalPoint(viewport, cameraFocalPoint) {
|
|
40777
|
+
if (_cornerstonejs_core__rspack_import_0.utilities.isGenericViewport(viewport)) {
|
|
40778
|
+
viewport.setViewReference({ cameraFocalPoint });
|
|
40779
|
+
}
|
|
40780
|
+
}
|
|
40781
|
+
function navigatePlanarViewportToPoint(viewport, worldPoint) {
|
|
40782
|
+
if (!_cornerstonejs_core__rspack_import_0.utilities.isGenericViewport(viewport)) {
|
|
40783
|
+
return false;
|
|
40784
|
+
}
|
|
40785
|
+
const isStackContent = viewport.getCurrentMode?.() === 'stack';
|
|
40786
|
+
if (isStackContent) {
|
|
40787
|
+
const stackViewport = viewport;
|
|
40788
|
+
if (typeof stackViewport.getImageIds !== 'function' ||
|
|
40789
|
+
typeof stackViewport.getCurrentImageIdIndex !== 'function') {
|
|
40790
|
+
return false;
|
|
40791
|
+
}
|
|
40792
|
+
let imageIndex = null;
|
|
40793
|
+
try {
|
|
40794
|
+
imageIndex = _cornerstonejs_core__rspack_import_0.utilities.getClosestStackImageIndexForPoint(worldPoint, stackViewport);
|
|
40795
|
+
}
|
|
40796
|
+
catch {
|
|
40797
|
+
return false;
|
|
40798
|
+
}
|
|
40799
|
+
if (imageIndex === null || imageIndex < 0) {
|
|
40800
|
+
return false;
|
|
40801
|
+
}
|
|
40802
|
+
viewport.setViewReference({
|
|
40803
|
+
sliceIndex: imageIndex,
|
|
40804
|
+
});
|
|
40805
|
+
return true;
|
|
40806
|
+
}
|
|
40807
|
+
viewport.setViewReference({
|
|
40808
|
+
cameraFocalPoint: [worldPoint[0], worldPoint[1], worldPoint[2]],
|
|
40809
|
+
});
|
|
40810
|
+
return true;
|
|
40811
|
+
}
|
|
40812
|
+
function getNativeSourceProperties(viewport) {
|
|
40813
|
+
if (!_cornerstonejs_core__rspack_import_0.utilities.viewportSupportsDisplaySetPresentation(viewport)) {
|
|
40814
|
+
return { properties: {} };
|
|
40815
|
+
}
|
|
40816
|
+
const sourceDataId = viewport.getSourceDataId();
|
|
40817
|
+
const properties = {
|
|
40818
|
+
...((sourceDataId
|
|
40819
|
+
? viewport.getDisplaySetPresentation(sourceDataId)
|
|
40820
|
+
: {}) ?? {}),
|
|
40821
|
+
};
|
|
40822
|
+
const voiLUTFunction = properties.VOILUTFunction ?? properties.voiLUTFunction;
|
|
40823
|
+
if (voiLUTFunction !== undefined) {
|
|
40824
|
+
properties.VOILUTFunction = voiLUTFunction;
|
|
40825
|
+
}
|
|
40826
|
+
const presentation = ((0,_viewportPresentation_js__rspack_import_1/* .getViewportPresentation */.Z)(viewport) ?? {});
|
|
40827
|
+
return {
|
|
40828
|
+
properties,
|
|
40829
|
+
rotation: presentation.rotation,
|
|
40830
|
+
flipHorizontal: presentation.flipHorizontal,
|
|
40831
|
+
flipVertical: presentation.flipVertical,
|
|
40832
|
+
currentImageId: viewport.getCurrentImageId(),
|
|
40833
|
+
};
|
|
40834
|
+
}
|
|
40835
|
+
|
|
40836
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
40837
|
+
NT: () => (getSlabThicknessOrDefault),
|
|
40838
|
+
_U: () => (getViewSlabDepthOfViewport),
|
|
40839
|
+
du: () => (navigatePlanarViewportToPoint),
|
|
40840
|
+
pY: () => (jumpToFocalPoint),
|
|
40841
|
+
sH: () => (getNativeSourceProperties)
|
|
40842
|
+
});
|
|
40843
|
+
|
|
40844
|
+
|
|
40340
40845
|
},
|
|
40341
40846
|
67392(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
40342
40847
|
/* import */ var _cornerstonejs_core__rspack_import_0 = __webpack_require__(62721);
|
|
@@ -40933,9 +41438,10 @@ const precalculatePointInEllipse = (ellipse, inverts = {}) => {
|
|
|
40933
41438
|
|
|
40934
41439
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/getCanvasEllipseCorners.js
|
|
40935
41440
|
function getCanvasEllipseCorners(ellipseCanvasPoints) {
|
|
40936
|
-
const
|
|
40937
|
-
const
|
|
40938
|
-
const
|
|
41441
|
+
const xs = ellipseCanvasPoints.map((point) => point[0]);
|
|
41442
|
+
const ys = ellipseCanvasPoints.map((point) => point[1]);
|
|
41443
|
+
const topLeft = [Math.min(...xs), Math.min(...ys)];
|
|
41444
|
+
const bottomRight = [Math.max(...xs), Math.max(...ys)];
|
|
40939
41445
|
return [topLeft, bottomRight];
|
|
40940
41446
|
}
|
|
40941
41447
|
|
|
@@ -40985,8 +41491,8 @@ var ellipse = __webpack_require__(88688);
|
|
|
40985
41491
|
var line = __webpack_require__(48682);
|
|
40986
41492
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js + 1 modules
|
|
40987
41493
|
var point = __webpack_require__(3756);
|
|
40988
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js +
|
|
40989
|
-
var polyline = __webpack_require__(
|
|
41494
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js + 3 modules
|
|
41495
|
+
var polyline = __webpack_require__(1109);
|
|
40990
41496
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/rectangle/index.js
|
|
40991
41497
|
var rectangle = __webpack_require__(3001);
|
|
40992
41498
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/index.js
|
|
@@ -41134,7 +41640,7 @@ function mirror(mirrorPoint, staticPoint) {
|
|
|
41134
41640
|
|
|
41135
41641
|
|
|
41136
41642
|
},
|
|
41137
|
-
|
|
41643
|
+
1109(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
41138
41644
|
|
|
41139
41645
|
// EXPORTS
|
|
41140
41646
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -41148,10 +41654,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41148
41654
|
getSignedArea: () => (/* reexport */ getSignedArea/* ["default"] */.A),
|
|
41149
41655
|
getSubPixelSpacingAndXYDirections: () => (/* reexport */ getSubPixelSpacingAndXYDirections/* ["default"] */.A),
|
|
41150
41656
|
getWindingDirection: () => (/* reexport */ getWindingDirection/* ["default"] */.A),
|
|
41151
|
-
isPointInsidePolyline3D: () => (/* reexport */ isPointInsidePolyline3D
|
|
41657
|
+
isPointInsidePolyline3D: () => (/* reexport */ isPointInsidePolyline3D),
|
|
41152
41658
|
pointCanProjectOnLine: () => (/* reexport */ pointCanProjectOnLine/* ["default"] */.A),
|
|
41153
41659
|
pointsAreWithinCloseContourProximity: () => (/* reexport */ pointsAreWithinCloseContourProximity/* ["default"] */.A),
|
|
41154
|
-
projectTo2D: () => (/* reexport */ projectTo2D
|
|
41660
|
+
projectTo2D: () => (/* reexport */ projectTo2D)
|
|
41155
41661
|
});
|
|
41156
41662
|
|
|
41157
41663
|
// UNUSED EXPORTS: arePolylinesIdentical, containsPoints, getClosestLineSegmentIntersection, getLineSegmentIntersectionsCoordinates, getLineSegmentIntersectionsIndexes, getNormal2, getNormal3, intersectPolyline, intersectPolylines, isClosed, mergePolylines, subtractPolylines
|
|
@@ -41200,10 +41706,62 @@ var pointsAreWithinCloseContourProximity = __webpack_require__(41177);
|
|
|
41200
41706
|
var addCanvasPointsToArray = __webpack_require__(13248);
|
|
41201
41707
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/pointCanProjectOnLine.js
|
|
41202
41708
|
var pointCanProjectOnLine = __webpack_require__(94018);
|
|
41203
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/
|
|
41204
|
-
var
|
|
41205
|
-
|
|
41206
|
-
|
|
41709
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/index.js
|
|
41710
|
+
var esm = __webpack_require__(62721);
|
|
41711
|
+
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/projectTo2D.js
|
|
41712
|
+
|
|
41713
|
+
const epsilon = 1e-6;
|
|
41714
|
+
function projectTo2D(polyline) {
|
|
41715
|
+
let sharedDimensionIndex;
|
|
41716
|
+
const testPoints = esm.utilities.getRandomSampleFromArray(polyline, 50);
|
|
41717
|
+
for (let i = 0; i < 3; i++) {
|
|
41718
|
+
if (testPoints.every((point, index, array) => Math.abs(point[i] - array[0][i]) < epsilon)) {
|
|
41719
|
+
sharedDimensionIndex = i;
|
|
41720
|
+
break;
|
|
41721
|
+
}
|
|
41722
|
+
}
|
|
41723
|
+
if (sharedDimensionIndex === undefined) {
|
|
41724
|
+
throw new Error('Cannot find a shared dimension index for polyline, probably oblique plane');
|
|
41725
|
+
}
|
|
41726
|
+
const points2D = [];
|
|
41727
|
+
const firstDim = (sharedDimensionIndex + 1) % 3;
|
|
41728
|
+
const secondDim = (sharedDimensionIndex + 2) % 3;
|
|
41729
|
+
for (let i = 0; i < polyline.length; i++) {
|
|
41730
|
+
points2D.push([polyline[i][firstDim], polyline[i][secondDim]]);
|
|
41731
|
+
}
|
|
41732
|
+
return {
|
|
41733
|
+
sharedDimensionIndex,
|
|
41734
|
+
projectedPolyline: points2D,
|
|
41735
|
+
};
|
|
41736
|
+
}
|
|
41737
|
+
|
|
41738
|
+
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/isPointInsidePolyline3D.js
|
|
41739
|
+
|
|
41740
|
+
|
|
41741
|
+
function isPointInsidePolyline3D(point, polyline, options = {}) {
|
|
41742
|
+
const { sharedDimensionIndex, projectedPolyline } = projectTo2D(polyline);
|
|
41743
|
+
const { holes } = options;
|
|
41744
|
+
const projectedHoles = [];
|
|
41745
|
+
if (holes) {
|
|
41746
|
+
for (let i = 0; i < holes.length; i++) {
|
|
41747
|
+
const hole = holes[i];
|
|
41748
|
+
const hole2D = [];
|
|
41749
|
+
for (let j = 0; j < hole.length; j++) {
|
|
41750
|
+
hole2D.push([
|
|
41751
|
+
hole[j][(sharedDimensionIndex + 1) % 3],
|
|
41752
|
+
hole[j][(sharedDimensionIndex + 2) % 3],
|
|
41753
|
+
]);
|
|
41754
|
+
}
|
|
41755
|
+
projectedHoles.push(hole2D);
|
|
41756
|
+
}
|
|
41757
|
+
}
|
|
41758
|
+
const point2D = [
|
|
41759
|
+
point[(sharedDimensionIndex + 1) % 3],
|
|
41760
|
+
point[(sharedDimensionIndex + 2) % 3],
|
|
41761
|
+
];
|
|
41762
|
+
return (0,containsPoint/* ["default"] */.A)(projectedPolyline, point2D, { holes: projectedHoles });
|
|
41763
|
+
}
|
|
41764
|
+
|
|
41207
41765
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/convexHull.js
|
|
41208
41766
|
function convexHull(pts) {
|
|
41209
41767
|
if (pts.length < 3) {
|
|
@@ -41699,7 +42257,7 @@ function sampleAreaAnnotationVoxels({ annotation, image, voxelManager, points, b
|
|
|
41699
42257
|
planePoint,
|
|
41700
42258
|
viewPlaneNormal,
|
|
41701
42259
|
referencePlaneThickness: slabThickness,
|
|
41702
|
-
bounds:
|
|
42260
|
+
bounds: getShapeIndexBounds(points, volume, imageData, viewPlaneNormal, getMembershipHalfWidth(slabThickness, voxelThickness), boundsMargin),
|
|
41703
42261
|
getShapeRuns: shape.getRuns,
|
|
41704
42262
|
voxelManager,
|
|
41705
42263
|
onSample,
|
|
@@ -41720,7 +42278,7 @@ function resolveAnnotationNormal(metadata) {
|
|
|
41720
42278
|
? asUnitNormal(normal)
|
|
41721
42279
|
: undefined;
|
|
41722
42280
|
}
|
|
41723
|
-
function
|
|
42281
|
+
function getShapeIndexBounds(points, volume, imageData, viewPlaneNormal, halfWidth, margin = 0) {
|
|
41724
42282
|
const { dimensions, direction, spacing } = volume;
|
|
41725
42283
|
const indexPoints = points.map((point) => imageData.worldToIndex(point));
|
|
41726
42284
|
const boundingBox = (0,_boundingBox_index_js__rspack_import_2.getBoundingBoxAroundShapeIJK)(indexPoints);
|
|
@@ -41737,7 +42295,8 @@ function getAnnotationIndexBounds(points, volume, imageData, viewPlaneNormal, ha
|
|
|
41737
42295
|
}
|
|
41738
42296
|
|
|
41739
42297
|
__webpack_require__.d(__webpack_exports__, {
|
|
41740
|
-
A: () => (sampleAreaAnnotationVoxels)
|
|
42298
|
+
A: () => (sampleAreaAnnotationVoxels),
|
|
42299
|
+
V: () => (getShapeIndexBounds)
|
|
41741
42300
|
});
|
|
41742
42301
|
|
|
41743
42302
|
|