@ohif/app 3.12.0-beta.94 → 3.12.0-beta.96
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/{2243.bundle.80159275d76d64068398.js → 1403.bundle.bf6816efe477f65b3559.js} +13 -2
- package/dist/{874.bundle.7231044ccaf5e8718b75.js → 1730.bundle.35c65f643a80267dc7e7.js} +13 -2
- package/dist/{1903.bundle.48041ca9cd77cafa22fb.js → 1903.bundle.700ddda828f9a6ede347.js} +3 -3
- package/dist/{306.bundle.a0af0889477845729c6a.js → 2842.bundle.7852a204d3510fca8b27.js} +2571 -2510
- package/dist/{4759.bundle.a392deef02dccd5300b6.js → 3343.bundle.f8fe9316b0ff68d087f7.js} +13 -2
- package/dist/{4033.bundle.1609f8751de2a6aff280.js → 3353.bundle.a0f1654c642395bbbbbc.js} +13 -3
- package/dist/{319.bundle.febb2a63634488c11db6.js → 3584.bundle.839a16d349815b3f7c97.js} +87 -210
- package/dist/{4019.bundle.03029c488a02493cb7f3.js → 4019.bundle.01f63d5dd5b96ded0c00.js} +28 -28
- package/dist/{6991.bundle.23c0e9711e3a58abe8d2.js → 4775.bundle.7b3b693c46620110b1a4.js} +13 -2
- package/dist/{5400.bundle.428fdd2dc347a7fda9e6.js → 5400.bundle.de97508611da1c00d58a.js} +80 -79
- package/dist/{8802.bundle.4958d8ba1d0d521a002a.js → 5448.bundle.9a36e001169ea3bfeb6c.js} +51681 -48998
- package/dist/{2974.bundle.a90a9df917b90bc02c69.js → 5462.bundle.a81a691eeef782ab95b9.js} +13 -2
- package/dist/{9742.bundle.b6a8307f0fe8be2aae1e.js → 5491.bundle.2e01dd7ad29e4cc01bc1.js} +8458 -8426
- package/dist/{1037.bundle.dd9098a9a640f0d0ef0f.js → 5549.bundle.d5def6a3124a3a481b7c.js} +2952 -2700
- package/dist/{1515.bundle.da852a4908f1c1139b0b.js → 6163.bundle.d0edb70dd291a3b888d9.js} +13 -2
- package/dist/{573.bundle.a00b1c9a43f933c220ec.js → 6354.bundle.c387737dc09c9cab4ff2.js} +6390 -6167
- package/dist/{7412.bundle.dfe01ae3e53107abe53d.js → 7412.bundle.aec4834a71fc27c4ce06.js} +633 -475
- package/dist/{7431.bundle.b80819b8eb28d2ee897d.js → 7431.bundle.999b2b65d4973bc56218.js} +4 -4
- package/dist/{8558.bundle.30da60039984bb8c4e04.js → 8558.bundle.b69e9363dc4c03f44290.js} +15 -4
- package/dist/{9195.bundle.7fd1c67dee9c751194c8.js → 9195.bundle.a7c22b5c86155e5b8255.js} +2 -2
- package/dist/{9845.bundle.0d22f2210c1d5ac18882.js → 9845.bundle.31aec3fe7a5cdc247f4e.js} +2 -2
- package/dist/{app.bundle.1e48041ec1bfffd0aad5.js → app.bundle.79a0e790724d8c701b22.js} +238552 -235564
- package/dist/{compute.bundle.4c0ef8b919cbe5eef44d.js → compute.bundle.fdee4a0f193ee2e1b6da.js} +3 -3
- package/dist/{histogram-worker.bundle.b7bb02c6cd9273c422f5.js → histogram-worker.bundle.d4e40a8018d2698b072e.js} +6 -18
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.f58dd6d3d25dd22cfefd.js → interpolation.bundle.1938b79f9d6db363528a.js} +6 -18
- package/dist/{polySeg.bundle.75f37f2780c5375e161e.js → polySeg.bundle.11f9746cd60c9811a412.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.137c2c69a1cbaccedf79.js → 1459.bundle.91fd9dffde9669f7243c.js} +0 -0
- /package/dist/{147.bundle.c191ca0b67633f707aff.js → 147.bundle.205350dc3d21478277b1.js} +0 -0
- /package/dist/{1515.css → 1730.css} +0 -0
- /package/dist/{1933.bundle.6ee5c1c5d26aa67dda01.js → 1933.bundle.fa65c4cb95e7afc99224.js} +0 -0
- /package/dist/{2018.bundle.5ac8b1aa23bddb78ee6d.js → 2018.bundle.314547f147f66add701f.js} +0 -0
- /package/dist/{213.bundle.babe33a5885e70aff26c.js → 213.bundle.67b083ddf3a85361b0cb.js} +0 -0
- /package/dist/{2424.bundle.33d82e6640795ef26891.js → 2424.bundle.3c2bd73c06685e3aa50c.js} +0 -0
- /package/dist/{4759.css → 3343.css} +0 -0
- /package/dist/{3461.bundle.e9f930c780f54fb105f1.js → 3461.bundle.f8523eb1af03ce1f8835.js} +0 -0
- /package/dist/{4819.bundle.3c7bf0df78f6933c8fe4.js → 4819.bundle.8cfd3f7ff30ad1f1a523.js} +0 -0
- /package/dist/{5028.bundle.cda03335fc38e75a1650.js → 5028.bundle.2c72ee83fc780da98c6e.js} +0 -0
- /package/dist/{5457.bundle.e5c316dc93fe2b4c68e7.js → 5457.bundle.921a364dd87e1b058038.js} +0 -0
- /package/dist/{5485.bundle.32cabda29154c3e55b8d.js → 5485.bundle.cde0d1c6a3648063273b.js} +0 -0
- /package/dist/{5802.bundle.756d2ed511c06ee8b461.js → 5802.bundle.28ab859d9b48a5b2c31c.js} +0 -0
- /package/dist/{6027.bundle.209ee74ab072452fc0b2.js → 6027.bundle.132caaf7828ac5e6c567.js} +0 -0
- /package/dist/{874.css → 6163.css} +0 -0
- /package/dist/{7639.bundle.b35209dc4b718b7e93e1.js → 7639.bundle.b18f8bd1de6f3ef06dbb.js} +0 -0
- /package/dist/{8305.bundle.66630acb1f8edd757d68.js → 8305.bundle.c2c2527bc7214ca58cba.js} +0 -0
- /package/dist/{85.bundle.0d9968348d8c35bee94c.js → 85.bundle.6fb276e65c81cd420f7e.js} +0 -0
- /package/dist/{8583.bundle.db631dc00208a7ce0c96.js → 8583.bundle.e376b7b31e164aef6a25.js} +0 -0
- /package/dist/{9862.bundle.eca4ea8821bb040a44c1.js → 9862.bundle.3ca0ad5f54db87ccf91e.js} +0 -0
- /package/dist/{9927.bundle.fbac0fd00386a261c01f.js → 9927.bundle.5a75e6504e958b4ea9b9.js} +0 -0
|
@@ -21,7 +21,7 @@ function _getHash(annotationUID, drawingElementType, nodeUID) {
|
|
|
21
21
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22
22
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
23
23
|
/* harmony export */ });
|
|
24
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
24
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29857);
|
|
25
25
|
|
|
26
26
|
const getMouseModifierKey = (evt) => {
|
|
27
27
|
if (evt.shiftKey) {
|
|
@@ -132,7 +132,7 @@ function resetAnnotationManager() {
|
|
|
132
132
|
/* harmony export */ R: () => (/* binding */ triggerSegmentationAdded)
|
|
133
133
|
/* harmony export */ });
|
|
134
134
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
135
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
135
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
function triggerSegmentationAdded(segmentationId) {
|
|
@@ -152,7 +152,7 @@ function triggerSegmentationAdded(segmentationId) {
|
|
|
152
152
|
/* harmony export */ G: () => (/* binding */ triggerSegmentationModified)
|
|
153
153
|
/* harmony export */ });
|
|
154
154
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
155
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
155
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
function triggerSegmentationModified(segmentationId) {
|
|
@@ -172,7 +172,7 @@ function triggerSegmentationModified(segmentationId) {
|
|
|
172
172
|
/* harmony export */ B: () => (/* binding */ triggerSegmentationRemoved)
|
|
173
173
|
/* harmony export */ });
|
|
174
174
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
175
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
175
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
function triggerSegmentationRemoved(segmentationId) {
|
|
@@ -192,7 +192,7 @@ function triggerSegmentationRemoved(segmentationId) {
|
|
|
192
192
|
/* harmony export */ r: () => (/* binding */ triggerSegmentationRepresentationModified)
|
|
193
193
|
/* harmony export */ });
|
|
194
194
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
195
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
195
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
function triggerSegmentationRepresentationModified(viewportId, segmentationId, type) {
|
|
@@ -214,7 +214,7 @@ function triggerSegmentationRepresentationModified(viewportId, segmentationId, t
|
|
|
214
214
|
/* harmony export */ O: () => (/* binding */ triggerSegmentationRepresentationRemoved)
|
|
215
215
|
/* harmony export */ });
|
|
216
216
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
217
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
217
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
function triggerSegmentationRepresentationRemoved(viewportId, segmentationId, type) {
|
|
@@ -273,7 +273,7 @@ function internalGetHiddenSegmentIndices(viewportId, specifier) {
|
|
|
273
273
|
/***/ 9711:
|
|
274
274
|
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
275
275
|
|
|
276
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
276
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29857);
|
|
277
277
|
/* harmony import */ var _utilities_segmentation_validateLabelmap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21345);
|
|
278
278
|
|
|
279
279
|
|
|
@@ -306,7 +306,7 @@ function validateSegmentationInput(segmentationInputArray) {
|
|
|
306
306
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
307
307
|
/* harmony export */ });
|
|
308
308
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85204);
|
|
309
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
309
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
const MODES = [_enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Active, _enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Passive, _enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Enabled];
|
|
@@ -341,7 +341,7 @@ function getToolGroupsWithToolName(toolName) {
|
|
|
341
341
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
|
|
342
342
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15327);
|
|
343
343
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
344
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
344
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
345
345
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
346
346
|
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95527);
|
|
347
347
|
/* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93126);
|
|
@@ -621,7 +621,7 @@ function registerClosedContourEditLoop(toolInstance) {
|
|
|
621
621
|
/* harmony export */ });
|
|
622
622
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
623
623
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7001);
|
|
624
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
624
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29857);
|
|
625
625
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85204);
|
|
626
626
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3823);
|
|
627
627
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42797);
|
|
@@ -1147,7 +1147,7 @@ function findOpenUShapedContourVectorToPeakOnRender(enabledElement, annotation)
|
|
|
1147
1147
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
|
|
1148
1148
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15327);
|
|
1149
1149
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
1150
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
1150
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
1151
1151
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
1152
1152
|
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95527);
|
|
1153
1153
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42797);
|
|
@@ -1496,7 +1496,7 @@ function registerOpenContourEditLoop(toolInstance) {
|
|
|
1496
1496
|
/* harmony export */ });
|
|
1497
1497
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
1498
1498
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85204);
|
|
1499
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
1499
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29857);
|
|
1500
1500
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7001);
|
|
1501
1501
|
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95527);
|
|
1502
1502
|
|
|
@@ -2108,8 +2108,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2108
2108
|
|
|
2109
2109
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
2110
2110
|
var esm = __webpack_require__(15327);
|
|
2111
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js +
|
|
2112
|
-
var enums = __webpack_require__(
|
|
2111
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
|
|
2112
|
+
var enums = __webpack_require__(29857);
|
|
2113
2113
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
|
|
2114
2114
|
var annotationState = __webpack_require__(82056);
|
|
2115
2115
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/index.js + 4 modules
|
|
@@ -2502,11 +2502,11 @@ var annotationHydration = __webpack_require__(64485);
|
|
|
2502
2502
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contourSegmentation/index.js + 1 modules
|
|
2503
2503
|
var contourSegmentation = __webpack_require__(56534);
|
|
2504
2504
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/CellArray.js
|
|
2505
|
-
var CellArray = __webpack_require__(
|
|
2505
|
+
var CellArray = __webpack_require__(32461);
|
|
2506
2506
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Points.js
|
|
2507
|
-
var Points = __webpack_require__(
|
|
2508
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
2509
|
-
var PolyData = __webpack_require__(
|
|
2507
|
+
var Points = __webpack_require__(74973);
|
|
2508
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 11 modules
|
|
2509
|
+
var PolyData = __webpack_require__(12548);
|
|
2510
2510
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourHandler/utils.js
|
|
2511
2511
|
|
|
2512
2512
|
|
|
@@ -2550,8 +2550,8 @@ function getPolyData(contourSet) {
|
|
|
2550
2550
|
return polygon;
|
|
2551
2551
|
}
|
|
2552
2552
|
|
|
2553
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js +
|
|
2554
|
-
var enums = __webpack_require__(
|
|
2553
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
|
|
2554
|
+
var enums = __webpack_require__(29857);
|
|
2555
2555
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStyle.js
|
|
2556
2556
|
var SegmentationStyle = __webpack_require__(92686);
|
|
2557
2557
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourHandler/handleContourSegmentation.js
|
|
@@ -2673,8 +2673,8 @@ var getCurrentLabelmapImageIdForViewport = __webpack_require__(97577);
|
|
|
2673
2673
|
var getSegmentation = __webpack_require__(33283);
|
|
2674
2674
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js
|
|
2675
2675
|
var triggerSegmentationEvents = __webpack_require__(49906);
|
|
2676
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js +
|
|
2677
|
-
var enums = __webpack_require__(
|
|
2676
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 3 modules
|
|
2677
|
+
var enums = __webpack_require__(29857);
|
|
2678
2678
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/addVolumesAsIndependentComponents.js
|
|
2679
2679
|
|
|
2680
2680
|
|
|
@@ -2953,10 +2953,10 @@ function removeLabelmapFromElement(element, segmentationId) {
|
|
|
2953
2953
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2954
2954
|
/* harmony export */ });
|
|
2955
2955
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
2956
|
-
/* harmony import */ var _kitware_vtk_js_Rendering_Core_Mapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2957
|
-
/* harmony import */ var _kitware_vtk_js_Rendering_Core_Actor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2958
|
-
/* harmony import */ var _kitware_vtk_js_Common_DataModel_PolyData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
2959
|
-
/* harmony import */ var _kitware_vtk_js_Common_Core_CellArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
2956
|
+
/* harmony import */ var _kitware_vtk_js_Rendering_Core_Mapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81418);
|
|
2957
|
+
/* harmony import */ var _kitware_vtk_js_Rendering_Core_Actor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44404);
|
|
2958
|
+
/* harmony import */ var _kitware_vtk_js_Common_DataModel_PolyData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12548);
|
|
2959
|
+
/* harmony import */ var _kitware_vtk_js_Common_Core_CellArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32461);
|
|
2960
2960
|
/* harmony import */ var _stateManagement_segmentation_helpers_getSegmentationActor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(59452);
|
|
2961
2961
|
|
|
2962
2962
|
|
|
@@ -3058,7 +3058,7 @@ function removeSurfaceFromElement(element, segmentationId) {
|
|
|
3058
3058
|
/* harmony import */ var _stateManagement_segmentation_triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49906);
|
|
3059
3059
|
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11990);
|
|
3060
3060
|
/* harmony import */ var _utils_getStrategyData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40905);
|
|
3061
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
3061
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29857);
|
|
3062
3062
|
|
|
3063
3063
|
|
|
3064
3064
|
|
|
@@ -5613,7 +5613,7 @@ async function computeAndAddRepresentation(segmentationId, type, computeFunction
|
|
|
5613
5613
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5614
5614
|
/* harmony export */ u: () => (/* binding */ getSVGStyleForSegment)
|
|
5615
5615
|
/* harmony export */ });
|
|
5616
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5616
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29857);
|
|
5617
5617
|
/* harmony import */ var _stateManagement_segmentation_config_segmentationColor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93733);
|
|
5618
5618
|
/* harmony import */ var _stateManagement_segmentation_getActiveSegmentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67165);
|
|
5619
5619
|
/* harmony import */ var _stateManagement_segmentation_getActiveSegmentIndex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60740);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[4775],{
|
|
3
3
|
|
|
4
4
|
/***/ 75183:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -206,7 +206,7 @@ var Swipe;
|
|
|
206
206
|
|
|
207
207
|
/***/ }),
|
|
208
208
|
|
|
209
|
-
/***/
|
|
209
|
+
/***/ 29857:
|
|
210
210
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
211
211
|
|
|
212
212
|
// ESM COMPAT FLAG
|
|
@@ -218,6 +218,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
218
218
|
ChangeTypes: () => (/* reexport */ ChangeTypes/* default */.A),
|
|
219
219
|
Events: () => (/* reexport */ Events/* default */.A),
|
|
220
220
|
KeyboardBindings: () => (/* reexport */ ToolBindings/* KeyboardBindings */.q),
|
|
221
|
+
MeasurementType: () => (/* reexport */ MeasurementType),
|
|
221
222
|
MouseBindings: () => (/* reexport */ ToolBindings/* MouseBindings */.i),
|
|
222
223
|
SegmentationRepresentations: () => (/* reexport */ SegmentationRepresentations/* default */.A),
|
|
223
224
|
StrategyCallbacks: () => (/* reexport */ StrategyCallbacks/* default */.A),
|
|
@@ -266,6 +267,15 @@ var WorkerTypes_ChangeTypes;
|
|
|
266
267
|
})(WorkerTypes_ChangeTypes || (WorkerTypes_ChangeTypes = {}));
|
|
267
268
|
/* harmony default export */ const WorkerTypes = (WorkerTypes_ChangeTypes);
|
|
268
269
|
|
|
270
|
+
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/MeasurementType.js
|
|
271
|
+
var MeasurementType;
|
|
272
|
+
(function (MeasurementType) {
|
|
273
|
+
MeasurementType["Linear"] = "Linear";
|
|
274
|
+
MeasurementType["Area"] = "Area";
|
|
275
|
+
MeasurementType["Volume"] = "Volume";
|
|
276
|
+
MeasurementType["Pixel"] = "Pixel";
|
|
277
|
+
})(MeasurementType || (MeasurementType = {}));
|
|
278
|
+
|
|
269
279
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js
|
|
270
280
|
|
|
271
281
|
|
|
@@ -279,6 +289,7 @@ var WorkerTypes_ChangeTypes;
|
|
|
279
289
|
|
|
280
290
|
|
|
281
291
|
|
|
292
|
+
|
|
282
293
|
/***/ }),
|
|
283
294
|
|
|
284
295
|
/***/ 28024:
|
|
@@ -258,7 +258,7 @@ function drawRect(svgDrawingHelper, annotationUID, rectangleUID, start, end, opt
|
|
|
258
258
|
/* harmony export */ });
|
|
259
259
|
/* harmony import */ var _tools_displayTools_Contour_contourConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67772);
|
|
260
260
|
/* harmony import */ var _tools_displayTools_Labelmap_labelmapConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53486);
|
|
261
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
261
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29857);
|
|
262
262
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15327);
|
|
263
263
|
|
|
264
264
|
|
|
@@ -492,7 +492,7 @@ const segmentationStyle = new SegmentationStyle();
|
|
|
492
492
|
/* harmony export */ Q: () => (/* binding */ triggerSegmentationDataModified)
|
|
493
493
|
/* harmony export */ });
|
|
494
494
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
495
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
495
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
496
496
|
/* harmony import */ var _utilities_segmentation_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64063);
|
|
497
497
|
|
|
498
498
|
|
|
@@ -690,11 +690,9 @@ class PlanarFreehandContourSegmentationTool extends _PlanarFreehandROITool__WEBP
|
|
|
690
690
|
/* harmony import */ var _utilities_math_polyline__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92984);
|
|
691
691
|
/* harmony import */ var _utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(18990);
|
|
692
692
|
/* harmony import */ var _utilities_math_basic__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(73262);
|
|
693
|
-
/* harmony import */ var
|
|
694
|
-
/* harmony import */ var
|
|
695
|
-
/* harmony import */ var
|
|
696
|
-
/* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(40634);
|
|
697
|
-
|
|
693
|
+
/* harmony import */ var _base_ContourSegmentationBaseTool__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(36320);
|
|
694
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29857);
|
|
695
|
+
/* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(40634);
|
|
698
696
|
|
|
699
697
|
|
|
700
698
|
|
|
@@ -722,7 +720,7 @@ class PlanarFreehandContourSegmentationTool extends _PlanarFreehandROITool__WEBP
|
|
|
722
720
|
const { pointCanProjectOnLine } = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline;
|
|
723
721
|
const { EPSILON } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.CONSTANTS;
|
|
724
722
|
const PARALLEL_THRESHOLD = 1 - EPSILON;
|
|
725
|
-
class PlanarFreehandROITool extends
|
|
723
|
+
class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .A {
|
|
726
724
|
static { this.toolName = 'PlanarFreehandROI'; }
|
|
727
725
|
constructor(toolProps = {}, defaultToolProps = {
|
|
728
726
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -730,7 +728,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
730
728
|
storePointData: false,
|
|
731
729
|
shadow: true,
|
|
732
730
|
preventHandleOutsideImage: false,
|
|
733
|
-
contourHoleAdditionModifierKey:
|
|
731
|
+
contourHoleAdditionModifierKey: _enums__WEBPACK_IMPORTED_MODULE_21__.KeyboardBindings.Shift,
|
|
734
732
|
alwaysRenderOpenContourHandles: {
|
|
735
733
|
enabled: false,
|
|
736
734
|
radius: 2,
|
|
@@ -845,24 +843,23 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
845
843
|
isPreScaled: (0,_utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_18__/* .isViewportPreScaled */ .u)(viewport, targetId),
|
|
846
844
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
847
845
|
};
|
|
848
|
-
const modalityUnit = (0,
|
|
849
|
-
const
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
});
|
|
846
|
+
const modalityUnit = (0,_utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_22__/* .getPixelValueUnits */ .j)(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
847
|
+
const polyline = data.contour.polyline;
|
|
848
|
+
const numPoints = polyline.length;
|
|
849
|
+
const projectedPolyline = new Array(numPoints);
|
|
850
|
+
for (let i = 0; i < numPoints; i++) {
|
|
851
|
+
projectedPolyline[i] = viewport.worldToCanvas(polyline[i]);
|
|
852
|
+
}
|
|
853
|
+
const { maxX: canvasMaxX, maxY: canvasMaxY, minX: canvasMinX, minY: canvasMinY, } = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline.getAABB(projectedPolyline);
|
|
854
|
+
const topLeftBBWorld = viewport.canvasToWorld([canvasMinX, canvasMinY]);
|
|
855
|
+
const topLeftBBIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, topLeftBBWorld);
|
|
856
|
+
const bottomRightBBWorld = viewport.canvasToWorld([
|
|
857
|
+
canvasMaxX,
|
|
858
|
+
canvasMaxY,
|
|
859
|
+
]);
|
|
860
|
+
const bottomRightBBIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, bottomRightBBWorld);
|
|
861
|
+
const handles = [topLeftBBIndex, bottomRightBBIndex];
|
|
862
|
+
const calibratedScale = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, handles);
|
|
866
863
|
const canvasPoint = canvasCoordinates[0];
|
|
867
864
|
const originalWorldPoint = viewport.canvasToWorld(canvasPoint);
|
|
868
865
|
const deltaXPoint = viewport.canvasToWorld([
|
|
@@ -875,36 +872,30 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
875
872
|
]);
|
|
876
873
|
const deltaInX = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.distance */ .eR.distance(originalWorldPoint, deltaXPoint);
|
|
877
874
|
const deltaInY = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.distance */ .eR.distance(originalWorldPoint, deltaYPoint);
|
|
875
|
+
const statsArgs = {
|
|
876
|
+
targetId,
|
|
877
|
+
viewport,
|
|
878
|
+
canvasCoordinates,
|
|
879
|
+
points,
|
|
880
|
+
imageData,
|
|
881
|
+
metadata,
|
|
882
|
+
cachedStats,
|
|
883
|
+
modalityUnit,
|
|
884
|
+
calibratedScale,
|
|
885
|
+
deltaInX,
|
|
886
|
+
deltaInY,
|
|
887
|
+
};
|
|
878
888
|
if (closed) {
|
|
879
|
-
this.updateClosedCachedStats(
|
|
880
|
-
targetId,
|
|
881
|
-
viewport,
|
|
882
|
-
canvasCoordinates,
|
|
883
|
-
points,
|
|
884
|
-
imageData,
|
|
885
|
-
metadata,
|
|
886
|
-
cachedStats,
|
|
887
|
-
modalityUnit,
|
|
888
|
-
calibratedScale,
|
|
889
|
-
deltaInX,
|
|
890
|
-
deltaInY,
|
|
891
|
-
});
|
|
889
|
+
this.updateClosedCachedStats(statsArgs);
|
|
892
890
|
}
|
|
893
891
|
else {
|
|
894
|
-
this.updateOpenCachedStats(
|
|
895
|
-
metadata,
|
|
896
|
-
targetId,
|
|
897
|
-
cachedStats,
|
|
898
|
-
modalityUnit,
|
|
899
|
-
calibratedScale,
|
|
900
|
-
points,
|
|
901
|
-
});
|
|
892
|
+
this.updateOpenCachedStats(statsArgs);
|
|
902
893
|
}
|
|
903
894
|
}
|
|
904
895
|
const invalidated = annotation.invalidated;
|
|
905
896
|
annotation.invalidated = false;
|
|
906
897
|
if (invalidated) {
|
|
907
|
-
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationModified)(annotation, enabledElement.viewport.element,
|
|
898
|
+
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationModified)(annotation, enabledElement.viewport.element, _enums__WEBPACK_IMPORTED_MODULE_21__.ChangeTypes.StatsUpdated);
|
|
908
899
|
}
|
|
909
900
|
return cachedStats;
|
|
910
901
|
};
|
|
@@ -951,12 +942,12 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
951
942
|
this._throttledCalculateCachedStats = (0,_utilities_throttle__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this._calculateCachedStats, 100, { trailing: true });
|
|
952
943
|
}
|
|
953
944
|
filterInteractableAnnotationsForElement(element, annotations) {
|
|
954
|
-
if (!annotations
|
|
955
|
-
return;
|
|
945
|
+
if (!annotations?.length) {
|
|
946
|
+
return [];
|
|
956
947
|
}
|
|
957
948
|
const baseFilteredAnnotations = super.filterInteractableAnnotationsForElement(element, annotations);
|
|
958
|
-
if (!baseFilteredAnnotations
|
|
959
|
-
return;
|
|
949
|
+
if (!baseFilteredAnnotations?.length) {
|
|
950
|
+
return [];
|
|
960
951
|
}
|
|
961
952
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
962
953
|
const { viewport } = enabledElement;
|
|
@@ -1128,21 +1119,15 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1128
1119
|
updateClosedCachedStats({ viewport, points, imageData, metadata, cachedStats, targetId, modalityUnit, canvasCoordinates, calibratedScale, deltaInX, deltaInY, }) {
|
|
1129
1120
|
const { scale, areaUnit, unit } = calibratedScale;
|
|
1130
1121
|
const { voxelManager } = viewport.getImageData();
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
let
|
|
1136
|
-
let
|
|
1137
|
-
let
|
|
1138
|
-
let
|
|
1139
|
-
|
|
1140
|
-
let kMax = worldPosIndex[2];
|
|
1141
|
-
for (let j = 1; j < points.length; j++) {
|
|
1142
|
-
const worldPosIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, points[j]);
|
|
1143
|
-
worldPosIndex[0] = Math.floor(worldPosIndex[0]);
|
|
1144
|
-
worldPosIndex[1] = Math.floor(worldPosIndex[1]);
|
|
1145
|
-
worldPosIndex[2] = Math.floor(worldPosIndex[2]);
|
|
1122
|
+
const indexPoints = points.map((point) => imageData.worldToIndex(point));
|
|
1123
|
+
let iMin = Number.MAX_SAFE_INTEGER;
|
|
1124
|
+
let iMax = Number.MIN_SAFE_INTEGER;
|
|
1125
|
+
let jMin = Number.MAX_SAFE_INTEGER;
|
|
1126
|
+
let jMax = Number.MIN_SAFE_INTEGER;
|
|
1127
|
+
let kMin = Number.MAX_SAFE_INTEGER;
|
|
1128
|
+
let kMax = Number.MIN_SAFE_INTEGER;
|
|
1129
|
+
for (let j = 0; j < points.length; j++) {
|
|
1130
|
+
const worldPosIndex = indexPoints[j].map(Math.floor);
|
|
1146
1131
|
iMin = Math.min(iMin, worldPosIndex[0]);
|
|
1147
1132
|
iMax = Math.max(iMax, worldPosIndex[0]);
|
|
1148
1133
|
jMin = Math.min(jMin, worldPosIndex[1]);
|
|
@@ -1150,13 +1135,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1150
1135
|
kMin = Math.min(kMin, worldPosIndex[2]);
|
|
1151
1136
|
kMax = Math.max(kMax, worldPosIndex[2]);
|
|
1152
1137
|
}
|
|
1153
|
-
const worldPosIndex2 = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, points[1]);
|
|
1154
|
-
worldPosIndex2[0] = Math.floor(worldPosIndex2[0]);
|
|
1155
|
-
worldPosIndex2[1] = Math.floor(worldPosIndex2[1]);
|
|
1156
|
-
worldPosIndex2[2] = Math.floor(worldPosIndex2[2]);
|
|
1157
1138
|
let area = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline.getArea(canvasCoordinates) / scale / scale;
|
|
1158
1139
|
area *= deltaInX * deltaInY;
|
|
1159
|
-
const perimeter = (
|
|
1140
|
+
const perimeter = PlanarFreehandROITool.calculateLengthInIndex(calibratedScale, indexPoints, closed);
|
|
1160
1141
|
const iDelta = 0.01 * (iMax - iMin);
|
|
1161
1142
|
const jDelta = 0.01 * (jMax - jMin);
|
|
1162
1143
|
const kDelta = 0.01 * (kMax - kMin);
|
|
@@ -1211,6 +1192,18 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1211
1192
|
});
|
|
1212
1193
|
}
|
|
1213
1194
|
const stats = this.configuration.statsCalculator.getStatistics();
|
|
1195
|
+
const namedArea = {
|
|
1196
|
+
name: 'area',
|
|
1197
|
+
value: area,
|
|
1198
|
+
unit: areaUnit,
|
|
1199
|
+
type: _enums__WEBPACK_IMPORTED_MODULE_21__.MeasurementType.Area,
|
|
1200
|
+
};
|
|
1201
|
+
const namedPerimeter = {
|
|
1202
|
+
name: 'perimeter',
|
|
1203
|
+
value: perimeter,
|
|
1204
|
+
unit,
|
|
1205
|
+
type: _enums__WEBPACK_IMPORTED_MODULE_21__.MeasurementType.Linear,
|
|
1206
|
+
};
|
|
1214
1207
|
cachedStats[targetId] = {
|
|
1215
1208
|
Modality: metadata.Modality,
|
|
1216
1209
|
area,
|
|
@@ -1219,21 +1212,29 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1219
1212
|
max: stats.max?.value,
|
|
1220
1213
|
min: stats.min?.value,
|
|
1221
1214
|
stdDev: stats.stdDev?.value,
|
|
1222
|
-
statsArray: stats.array,
|
|
1215
|
+
statsArray: [namedArea, namedPerimeter, ...stats.array],
|
|
1223
1216
|
pointsInShape: pointsInShape,
|
|
1224
1217
|
areaUnit,
|
|
1225
1218
|
modalityUnit,
|
|
1226
1219
|
unit,
|
|
1227
1220
|
};
|
|
1228
1221
|
}
|
|
1229
|
-
updateOpenCachedStats({ targetId, metadata, cachedStats, modalityUnit, calibratedScale, points, }) {
|
|
1230
|
-
const {
|
|
1231
|
-
const
|
|
1222
|
+
updateOpenCachedStats({ targetId, metadata, cachedStats, modalityUnit, calibratedScale, imageData, points, }) {
|
|
1223
|
+
const { unit } = calibratedScale;
|
|
1224
|
+
const indexPoints = points.map((point) => imageData.worldToIndex(point));
|
|
1225
|
+
const length = PlanarFreehandROITool.calculateLengthInIndex(calibratedScale, indexPoints);
|
|
1226
|
+
const namedLength = {
|
|
1227
|
+
name: 'length',
|
|
1228
|
+
value: length,
|
|
1229
|
+
unit,
|
|
1230
|
+
type: _enums__WEBPACK_IMPORTED_MODULE_21__.MeasurementType.Linear,
|
|
1231
|
+
};
|
|
1232
1232
|
cachedStats[targetId] = {
|
|
1233
1233
|
Modality: metadata.Modality,
|
|
1234
1234
|
length,
|
|
1235
1235
|
modalityUnit,
|
|
1236
1236
|
unit,
|
|
1237
|
+
statArray: [namedLength],
|
|
1237
1238
|
};
|
|
1238
1239
|
}
|
|
1239
1240
|
}
|
|
@@ -1288,7 +1289,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
1288
1289
|
/* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(44049);
|
|
1289
1290
|
/* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74347);
|
|
1290
1291
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(85204);
|
|
1291
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
1292
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29857);
|
|
1292
1293
|
/* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(60810);
|
|
1293
1294
|
/* harmony import */ var _utilities_math_rectangle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(33657);
|
|
1294
1295
|
/* harmony import */ var _utilities_drawing__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(473);
|
|
@@ -1910,7 +1911,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
1910
1911
|
/* harmony import */ var _stateManagement_segmentation_getCurrentLabelmapImageIdForViewport__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97577);
|
|
1911
1912
|
/* harmony import */ var _stateManagement_segmentation_config_segmentationColor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93733);
|
|
1912
1913
|
/* harmony import */ var _stateManagement_segmentation_getActiveSegmentIndex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60740);
|
|
1913
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
1914
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29857);
|
|
1914
1915
|
/* harmony import */ var _utilities_segmentation_createLabelmapMemo__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2397);
|
|
1915
1916
|
/* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82056);
|
|
1916
1917
|
/* harmony import */ var _utilities_planar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(13165);
|