@ohif/app 3.7.0-beta.5 → 3.7.0-beta.50
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/{917.bundle.24fc5ca2280d2980bf0f.js → 12.bundle.7348933f311b7e2e7d1e.js} +6 -6
- package/dist/{295.bundle.957b1159fec14b9199a1.js → 125.bundle.1ae4c6313c31cd0502cc.js} +4 -4
- package/dist/{208.bundle.e50761cf714ac772d9cc.js → 128.bundle.d933d385a22b1ce9ac77.js} +6 -6
- package/dist/{616.bundle.cbb2e0a23b1343b6441f.js → 150.bundle.e6880fd33346f8c24f6e.js} +148 -103
- package/dist/{351.bundle.0742237651aef9694a65.js → 181.bundle.234fef330d4fe6baca8b.js} +139 -128
- package/dist/{351.css → 181.css} +1 -1
- package/dist/{606.bundle.5d876f5f3dd8287f0a28.js → 202.bundle.ac1e5e25d4daf54581b1.js} +3705 -981
- package/dist/{926.bundle.dbc9d0e591cb9217fda2.js → 220.bundle.f7e1c96c94245e70f2be.js} +990 -400
- package/dist/{664.bundle.09abae984223969d1bde.js → 23.bundle.e008ad788170f2ed5569.js} +5 -6
- package/dist/{976.bundle.3b8f97b61cdfa7dc32e3.js → 236.bundle.765f3c70e21f29ab2e89.js} +38 -24
- package/dist/{55.bundle.550a823e75eb608e8d5e.js → 250.bundle.3bcee6d765a209281ddd.js} +37 -25
- package/dist/{973.bundle.77245411064eaa3ee79a.js → 281.bundle.dcc5492f44a83edd5320.js} +18 -14
- package/dist/{744.bundle.81246dc9f043a17fde8a.js → 30.bundle.5e2f6eeb779d579fc16e.js} +77 -89
- package/dist/{192.bundle.6dc1f92074738663620f.js → 348.bundle.c2deacff008bb8c68a14.js} +18 -14
- package/dist/{404.bundle.b7b371a30ca5bc5a0554.js → 359.bundle.594d68e783da31f97c30.js} +13 -19
- package/dist/{50.bundle.135ada11018fff84d66b.js → 378.bundle.6996a4170f4f05198f23.js} +10 -8
- package/dist/{790.bundle.ca48b21507b91b675810.js → 410.bundle.c8759293de9af17687c4.js} +6 -6
- package/dist/{151.bundle.31ea35044218837bf73f.js → 417.bundle.720dc8f3a6e99f378aa9.js} +9 -11
- package/dist/{569.bundle.21f8ad57c06a210448b5.js → 451.bundle.9941d9134fcf747d452a.js} +62 -81
- package/dist/{581.bundle.dc6197189f7c88c27d4c.js → 471.bundle.c9e618aeda78362776aa.js} +43 -72
- package/dist/{199.bundle.dff92336f7bc36f2e484.js → 506.bundle.8a2562b7038f6c983884.js} +79 -15
- package/dist/{935.bundle.deeffff0e4f7b528e3c3.js → 604.bundle.a51f83e64004bca5f497.js} +2 -3
- package/dist/{984.bundle.0301a876361809048be0.js → 663.bundle.e839c4819de3e372d07b.js} +52 -34
- package/dist/{531.bundle.2a82fb1d69e5b57cc72b.js → 677.bundle.ec5f2b4707db33bd4d8e.js} +731 -447
- package/dist/{707.bundle.7068a46e5be26fe60fce.js → 678.bundle.84a43fe18483016344de.js} +237 -244
- package/dist/{205.bundle.b5a473c200dcf2bbcdb4.js → 686.bundle.70565410179f1e7d22e6.js} +4 -4
- package/dist/{331.bundle.bd0c13931a21d53086c9.js → 754.bundle.8a16fc8ad21fe00c2e15.js} +12346 -7519
- package/dist/{728.bundle.d13856835357400fef82.js → 774.bundle.8ba82ee206266eb2da5e.js} +90 -63
- package/dist/{381.bundle.0905e683605fcbc0895f.js → 775.bundle.2285e7e0e67878948c0d.js} +16 -16
- package/dist/{283.bundle.f06203ec47c287f44cea.js → 782.bundle.0ea6e2a386f4ba43d830.js} +57 -25
- package/dist/{82.bundle.0456c9e58fa89b131f14.js → 789.bundle.aad9b29b476ea70e1350.js} +522 -157
- package/dist/{642.bundle.e8d980d4ba95b0b2665f.js → 814.bundle.2e308e04f0d21b4295a9.js} +6 -6
- package/dist/{799.bundle.758558e64147e5aad612.js → 822.bundle.d40c439da659f0e8500d.js} +65 -16
- package/dist/{953.bundle.3b0189ebc11cf0946f18.js → 886.bundle.68ef58774a6837f57631.js} +11 -10
- package/dist/{270.bundle.4564621556b0f963a004.js → 925.bundle.a2f1103d968c53a2b8fb.js} +626 -544
- package/dist/945.min.worker.js +1 -1
- package/dist/945.min.worker.js.map +1 -1
- package/dist/app-config.js +7 -7
- package/dist/{app.bundle.3ab8624d0394f1b10a0d.js → app.bundle.00cc8e251524b80d3347.js} +59252 -59601
- package/dist/app.bundle.css +9 -9
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/{dicom-microscopy-viewer.bundle.aa60bdf008c32c39cfd7.js → dicom-microscopy-viewer.bundle.44f7fedc03a58d5911d1.js} +3 -3
- package/dist/google.js +6 -5
- package/dist/index.html +1 -1
- package/dist/{index.worker.1c69152d710fa7b84bce.worker.js → index.worker.e62ecca63f1a2e124230.worker.js} +2 -2
- package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +1 -0
- package/dist/sw.js +1 -1
- package/package.json +19 -20
- package/dist/780.bundle.fd0f13dc92e9caa0581e.js +0 -4769
- package/dist/index.worker.1c69152d710fa7b84bce.worker.js.map +0 -1
- /package/dist/{55.css → 250.css} +0 -0
- /package/dist/{806.css → 579.css} +0 -0
- /package/dist/{707.css → 678.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(
|
|
1
|
+
(self["webpackChunk"] = self["webpackChunk"] || []).push([[925],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 26925:
|
|
4
4
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -144,6 +144,7 @@ __webpack_require__.d(segmentationState_namespaceObject, {
|
|
|
144
144
|
addColorLUT: () => (addColorLUT),
|
|
145
145
|
addSegmentation: () => (addSegmentation),
|
|
146
146
|
addSegmentationRepresentation: () => (addSegmentationRepresentation),
|
|
147
|
+
getAllSegmentationRepresentations: () => (getAllSegmentationRepresentations),
|
|
147
148
|
getColorLUT: () => (getColorLUT),
|
|
148
149
|
getDefaultSegmentationStateManager: () => (getDefaultSegmentationStateManager),
|
|
149
150
|
getGlobalConfig: () => (getGlobalConfig),
|
|
@@ -505,6 +506,7 @@ __webpack_require__.d(esm_utilities_namespaceObject, {
|
|
|
505
506
|
pointInShapeCallback: () => (pointInShapeCallback),
|
|
506
507
|
pointInSurroundingSphereCallback: () => (pointInSurroundingSphereCallback),
|
|
507
508
|
rectangleROITool: () => (rectangleROITool_namespaceObject),
|
|
509
|
+
roundNumber: () => (utilities_roundNumber),
|
|
508
510
|
scroll: () => (scroll_scroll),
|
|
509
511
|
segmentation: () => (utilities_segmentation_namespaceObject),
|
|
510
512
|
stackPrefetch: () => (utilities_stackPrefetch_namespaceObject),
|
|
@@ -578,8 +580,8 @@ __webpack_require__.d(synchronizers_namespaceObject, {
|
|
|
578
580
|
var types_namespaceObject = {};
|
|
579
581
|
__webpack_require__.r(types_namespaceObject);
|
|
580
582
|
|
|
581
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
582
|
-
var esm = __webpack_require__(
|
|
583
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 337 modules
|
|
584
|
+
var esm = __webpack_require__(45754);
|
|
583
585
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/ToolBindings.js
|
|
584
586
|
var MouseBindings;
|
|
585
587
|
(function (MouseBindings) {
|
|
@@ -607,7 +609,7 @@ var KeyboardBindings;
|
|
|
607
609
|
KeyboardBindings[KeyboardBindings["AltMeta"] = 1891] = "AltMeta";
|
|
608
610
|
})(KeyboardBindings || (KeyboardBindings = {}));
|
|
609
611
|
|
|
610
|
-
|
|
612
|
+
|
|
611
613
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/ToolModes.js
|
|
612
614
|
var ToolModes_ToolModes;
|
|
613
615
|
(function (ToolModes) {
|
|
@@ -617,7 +619,7 @@ var ToolModes_ToolModes;
|
|
|
617
619
|
ToolModes["Disabled"] = "Disabled";
|
|
618
620
|
})(ToolModes_ToolModes || (ToolModes_ToolModes = {}));
|
|
619
621
|
/* harmony default export */ const enums_ToolModes = (ToolModes_ToolModes);
|
|
620
|
-
|
|
622
|
+
|
|
621
623
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/AnnotationStyleStates.js
|
|
622
624
|
var AnnotationStyleStates;
|
|
623
625
|
(function (AnnotationStyleStates) {
|
|
@@ -627,7 +629,7 @@ var AnnotationStyleStates;
|
|
|
627
629
|
AnnotationStyleStates["Locked"] = "Locked";
|
|
628
630
|
})(AnnotationStyleStates || (AnnotationStyleStates = {}));
|
|
629
631
|
/* harmony default export */ const enums_AnnotationStyleStates = (AnnotationStyleStates);
|
|
630
|
-
|
|
632
|
+
|
|
631
633
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Events.js
|
|
632
634
|
var Events;
|
|
633
635
|
(function (Events) {
|
|
@@ -664,7 +666,7 @@ var Events;
|
|
|
664
666
|
Events["TOUCH_SWIPE"] = "CORNERSTONE_TOOLS_SWIPE";
|
|
665
667
|
})(Events || (Events = {}));
|
|
666
668
|
/* harmony default export */ const enums_Events = (Events);
|
|
667
|
-
|
|
669
|
+
|
|
668
670
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/SegmentationRepresentations.js
|
|
669
671
|
var SegmentationRepresentations;
|
|
670
672
|
(function (SegmentationRepresentations) {
|
|
@@ -672,7 +674,7 @@ var SegmentationRepresentations;
|
|
|
672
674
|
SegmentationRepresentations["Contour"] = "CONTOUR";
|
|
673
675
|
})(SegmentationRepresentations || (SegmentationRepresentations = {}));
|
|
674
676
|
/* harmony default export */ const enums_SegmentationRepresentations = (SegmentationRepresentations);
|
|
675
|
-
|
|
677
|
+
|
|
676
678
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Touch.js
|
|
677
679
|
var Swipe;
|
|
678
680
|
(function (Swipe) {
|
|
@@ -682,7 +684,7 @@ var Swipe;
|
|
|
682
684
|
Swipe["RIGHT"] = "RIGHT";
|
|
683
685
|
})(Swipe || (Swipe = {}));
|
|
684
686
|
|
|
685
|
-
|
|
687
|
+
|
|
686
688
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js
|
|
687
689
|
|
|
688
690
|
|
|
@@ -691,9 +693,9 @@ var Swipe;
|
|
|
691
693
|
|
|
692
694
|
|
|
693
695
|
|
|
694
|
-
|
|
696
|
+
|
|
695
697
|
// EXTERNAL MODULE: ../../../node_modules/lodash.clonedeep/index.js
|
|
696
|
-
var lodash_clonedeep = __webpack_require__(
|
|
698
|
+
var lodash_clonedeep = __webpack_require__(11677);
|
|
697
699
|
var lodash_clonedeep_default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep);
|
|
698
700
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationLocking.js
|
|
699
701
|
|
|
@@ -783,7 +785,7 @@ function getIsLocked() {
|
|
|
783
785
|
return isAnnotationLocked(this);
|
|
784
786
|
}
|
|
785
787
|
|
|
786
|
-
|
|
788
|
+
|
|
787
789
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationSelection.js
|
|
788
790
|
|
|
789
791
|
|
|
@@ -856,7 +858,7 @@ function annotationSelection_publish(detail, selectionSet) {
|
|
|
856
858
|
}
|
|
857
859
|
}
|
|
858
860
|
|
|
859
|
-
|
|
861
|
+
|
|
860
862
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationVisibility.js
|
|
861
863
|
|
|
862
864
|
|
|
@@ -944,7 +946,7 @@ function getIsVisible() {
|
|
|
944
946
|
return isAnnotationVisible(this.annotationUID);
|
|
945
947
|
}
|
|
946
948
|
|
|
947
|
-
|
|
949
|
+
|
|
948
950
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js
|
|
949
951
|
|
|
950
952
|
|
|
@@ -1130,14 +1132,14 @@ class FrameOfReferenceSpecificAnnotationManager {
|
|
|
1130
1132
|
const defaultFrameOfReferenceSpecificAnnotationManager = new FrameOfReferenceSpecificAnnotationManager('DEFAULT');
|
|
1131
1133
|
|
|
1132
1134
|
/* harmony default export */ const annotation_FrameOfReferenceSpecificAnnotationManager = (FrameOfReferenceSpecificAnnotationManager);
|
|
1133
|
-
|
|
1135
|
+
|
|
1134
1136
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/svgNodeCache.js
|
|
1135
1137
|
let svgNodeCache = {};
|
|
1136
1138
|
function resetSvgNodeCache() {
|
|
1137
1139
|
svgNodeCache = {};
|
|
1138
1140
|
}
|
|
1139
1141
|
/* harmony default export */ const store_svgNodeCache = (svgNodeCache);
|
|
1140
|
-
|
|
1142
|
+
|
|
1141
1143
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/state.js
|
|
1142
1144
|
|
|
1143
1145
|
|
|
@@ -1166,7 +1168,7 @@ function resetCornerstoneToolsState() {
|
|
|
1166
1168
|
state = lodash_clonedeep_default()(defaultState);
|
|
1167
1169
|
}
|
|
1168
1170
|
|
|
1169
|
-
|
|
1171
|
+
|
|
1170
1172
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/addTool.js
|
|
1171
1173
|
|
|
1172
1174
|
function addTool(ToolClass) {
|
|
@@ -1195,7 +1197,7 @@ function removeTool(ToolClass) {
|
|
|
1195
1197
|
}
|
|
1196
1198
|
}
|
|
1197
1199
|
/* harmony default export */ const store_addTool = ((/* unused pure expression or super */ null && (addTool)));
|
|
1198
|
-
|
|
1200
|
+
|
|
1199
1201
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/mouse/getMouseEventPoints.js
|
|
1200
1202
|
|
|
1201
1203
|
function getMouseEventPoints(evt, element) {
|
|
@@ -1225,7 +1227,7 @@ function _pageToPoint(evt) {
|
|
|
1225
1227
|
function _clientToPoint(evt) {
|
|
1226
1228
|
return [evt.clientX, evt.clientY];
|
|
1227
1229
|
}
|
|
1228
|
-
|
|
1230
|
+
|
|
1229
1231
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/mouse/mouseDoubleClickListener.js
|
|
1230
1232
|
|
|
1231
1233
|
|
|
@@ -1259,7 +1261,7 @@ function mouseDoubleClickListener(evt) {
|
|
|
1259
1261
|
}
|
|
1260
1262
|
}
|
|
1261
1263
|
/* harmony default export */ const mouse_mouseDoubleClickListener = (mouseDoubleClickListener);
|
|
1262
|
-
|
|
1264
|
+
|
|
1263
1265
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/mouse/mouseMoveListener.js
|
|
1264
1266
|
|
|
1265
1267
|
|
|
@@ -1282,7 +1284,7 @@ function mouseMoveListener(evt) {
|
|
|
1282
1284
|
(0,esm.triggerEvent)(element, eventName, eventDetail);
|
|
1283
1285
|
}
|
|
1284
1286
|
/* harmony default export */ const mouse_mouseMoveListener = (mouseMoveListener);
|
|
1285
|
-
|
|
1287
|
+
|
|
1286
1288
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/mouse/mouseDownListener.js
|
|
1287
1289
|
|
|
1288
1290
|
|
|
@@ -1529,7 +1531,7 @@ function mouseDoubleClickIgnoreListener(evt) {
|
|
|
1529
1531
|
}
|
|
1530
1532
|
}
|
|
1531
1533
|
/* harmony default export */ const mouse_mouseDownListener = (mouseDownListener);
|
|
1532
|
-
|
|
1534
|
+
|
|
1533
1535
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/mouse/index.js
|
|
1534
1536
|
|
|
1535
1537
|
|
|
@@ -1555,7 +1557,7 @@ function enable(element) {
|
|
|
1555
1557
|
enable,
|
|
1556
1558
|
disable,
|
|
1557
1559
|
});
|
|
1558
|
-
|
|
1560
|
+
|
|
1559
1561
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/touch/preventGhostClick.js
|
|
1560
1562
|
const antiGhostDelay = 2000, pointerType = {
|
|
1561
1563
|
mouse: 0,
|
|
@@ -1604,7 +1606,7 @@ function preventGhostClick_enable(element) {
|
|
|
1604
1606
|
enable: preventGhostClick_enable,
|
|
1605
1607
|
disable: preventGhostClick_disable,
|
|
1606
1608
|
});
|
|
1607
|
-
|
|
1609
|
+
|
|
1608
1610
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/touch/getTouchEventPoints.js
|
|
1609
1611
|
|
|
1610
1612
|
function getTouchEventPoints(evt, element) {
|
|
@@ -1644,7 +1646,7 @@ function getTouchEventPoints_pageToPoint(touch) {
|
|
|
1644
1646
|
function getTouchEventPoints_clientToPoint(touch) {
|
|
1645
1647
|
return [touch.clientX, touch.clientY];
|
|
1646
1648
|
}
|
|
1647
|
-
|
|
1649
|
+
|
|
1648
1650
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/touch/index.js
|
|
1649
1651
|
function getDeltaPoints(currentPoints, lastPoints) {
|
|
1650
1652
|
const curr = getMeanPoints(currentPoints);
|
|
@@ -1798,7 +1800,7 @@ function _getDistance3D(point0, point1) {
|
|
|
1798
1800
|
Math.pow(point0[2] - point1[2], 2));
|
|
1799
1801
|
}
|
|
1800
1802
|
|
|
1801
|
-
|
|
1803
|
+
|
|
1802
1804
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/touch/touchStartListener.js
|
|
1803
1805
|
|
|
1804
1806
|
|
|
@@ -2085,7 +2087,7 @@ function _updateTouchEventsLastPoints(element, lastPoints) {
|
|
|
2085
2087
|
});
|
|
2086
2088
|
}
|
|
2087
2089
|
/* harmony default export */ const touch_touchStartListener = (touchStartListener);
|
|
2088
|
-
|
|
2090
|
+
|
|
2089
2091
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/touch/index.js
|
|
2090
2092
|
|
|
2091
2093
|
|
|
@@ -2104,7 +2106,7 @@ function touch_enable(element) {
|
|
|
2104
2106
|
enable: touch_enable,
|
|
2105
2107
|
disable: touch_disable,
|
|
2106
2108
|
});
|
|
2107
|
-
|
|
2109
|
+
|
|
2108
2110
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/wheel/normalizeWheel.js
|
|
2109
2111
|
const PIXEL_STEP = 10;
|
|
2110
2112
|
const LINE_HEIGHT = 40;
|
|
@@ -2154,7 +2156,7 @@ function normalizeWheel(event) {
|
|
|
2154
2156
|
pixelY,
|
|
2155
2157
|
};
|
|
2156
2158
|
}
|
|
2157
|
-
|
|
2159
|
+
|
|
2158
2160
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/wheel/wheelListener.js
|
|
2159
2161
|
|
|
2160
2162
|
|
|
@@ -2190,7 +2192,7 @@ function wheelListener(evt) {
|
|
|
2190
2192
|
(0,esm.triggerEvent)(element, enums_Events.MOUSE_WHEEL, eventDetail);
|
|
2191
2193
|
}
|
|
2192
2194
|
/* harmony default export */ const wheel_wheelListener = (wheelListener);
|
|
2193
|
-
|
|
2195
|
+
|
|
2194
2196
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/wheel/index.js
|
|
2195
2197
|
|
|
2196
2198
|
function wheel_enable(element) {
|
|
@@ -2204,7 +2206,7 @@ function wheel_disable(element) {
|
|
|
2204
2206
|
enable: wheel_enable,
|
|
2205
2207
|
disable: wheel_disable,
|
|
2206
2208
|
});
|
|
2207
|
-
|
|
2209
|
+
|
|
2208
2210
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/keyboard/keyDownListener.js
|
|
2209
2211
|
|
|
2210
2212
|
|
|
@@ -2263,7 +2265,7 @@ function resetModifierKey() {
|
|
|
2263
2265
|
keyDownListener_state.keyCode = undefined;
|
|
2264
2266
|
}
|
|
2265
2267
|
/* harmony default export */ const keyDownListener = (keyListener);
|
|
2266
|
-
|
|
2268
|
+
|
|
2267
2269
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/keyboard/index.js
|
|
2268
2270
|
|
|
2269
2271
|
function keyboard_enable(element) {
|
|
@@ -2278,11 +2280,11 @@ function keyboard_disable(element) {
|
|
|
2278
2280
|
disable: keyboard_disable,
|
|
2279
2281
|
getModifierKey: getModifierKey,
|
|
2280
2282
|
});
|
|
2281
|
-
|
|
2283
|
+
|
|
2282
2284
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js
|
|
2283
|
-
var PiecewiseFunction = __webpack_require__(
|
|
2285
|
+
var PiecewiseFunction = __webpack_require__(44031);
|
|
2284
2286
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js + 1 modules
|
|
2285
|
-
var ColorTransferFunction = __webpack_require__(
|
|
2287
|
+
var ColorTransferFunction = __webpack_require__(95548);
|
|
2286
2288
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/constants/COLOR_LUT.js
|
|
2287
2289
|
const CORNERSTONE_COLOR_LUT = [
|
|
2288
2290
|
[0, 0, 0, 0],
|
|
@@ -2542,7 +2544,7 @@ const CORNERSTONE_COLOR_LUT = [
|
|
|
2542
2544
|
[81, 111, 224, 255],
|
|
2543
2545
|
];
|
|
2544
2546
|
/* harmony default export */ const COLOR_LUT = (CORNERSTONE_COLOR_LUT);
|
|
2545
|
-
|
|
2547
|
+
|
|
2546
2548
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourConfig.js
|
|
2547
2549
|
const defaultContourConfig = {
|
|
2548
2550
|
renderOutline: true,
|
|
@@ -2558,7 +2560,7 @@ function getDefaultContourConfig() {
|
|
|
2558
2560
|
return defaultContourConfig;
|
|
2559
2561
|
}
|
|
2560
2562
|
/* harmony default export */ const contourConfig = (getDefaultContourConfig);
|
|
2561
|
-
|
|
2563
|
+
|
|
2562
2564
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/labelmapConfig.js
|
|
2563
2565
|
const defaultLabelmapConfig = {
|
|
2564
2566
|
renderOutline: true,
|
|
@@ -2588,7 +2590,7 @@ function isValidLabelmapConfig(config) {
|
|
|
2588
2590
|
}
|
|
2589
2591
|
/* harmony default export */ const labelmapConfig = (getDefaultLabelmapConfig);
|
|
2590
2592
|
|
|
2591
|
-
|
|
2593
|
+
|
|
2592
2594
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/SegmentationStateManager.js
|
|
2593
2595
|
|
|
2594
2596
|
|
|
@@ -2648,6 +2650,14 @@ class SegmentationStateManager {
|
|
|
2648
2650
|
}
|
|
2649
2651
|
return toolGroupSegRepresentationsWithConfig.segmentationRepresentations;
|
|
2650
2652
|
}
|
|
2653
|
+
getAllSegmentationRepresentations() {
|
|
2654
|
+
const toolGroupSegReps = {};
|
|
2655
|
+
Object.entries(this.state.toolGroups).forEach(([toolGroupId, toolGroupSegRepresentationsWithConfig]) => {
|
|
2656
|
+
toolGroupSegReps[toolGroupId] =
|
|
2657
|
+
toolGroupSegRepresentationsWithConfig.segmentationRepresentations;
|
|
2658
|
+
});
|
|
2659
|
+
return toolGroupSegReps;
|
|
2660
|
+
}
|
|
2651
2661
|
addSegmentationRepresentation(toolGroupId, segmentationRepresentation) {
|
|
2652
2662
|
if (!this.state.toolGroups[toolGroupId]) {
|
|
2653
2663
|
this.state.toolGroups[toolGroupId] = {
|
|
@@ -2794,7 +2804,7 @@ class SegmentationStateManager {
|
|
|
2794
2804
|
}
|
|
2795
2805
|
const defaultSegmentationStateManager = new SegmentationStateManager('DEFAULT');
|
|
2796
2806
|
|
|
2797
|
-
|
|
2807
|
+
|
|
2798
2808
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js
|
|
2799
2809
|
|
|
2800
2810
|
|
|
@@ -2854,7 +2864,7 @@ function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse) {
|
|
|
2854
2864
|
(0,esm.triggerEvent)(esm.eventTarget, enums_Events.SEGMENTATION_DATA_MODIFIED, eventDetail);
|
|
2855
2865
|
}
|
|
2856
2866
|
|
|
2857
|
-
|
|
2867
|
+
|
|
2858
2868
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js
|
|
2859
2869
|
function normalizeSegmentationInput(segmentationInput) {
|
|
2860
2870
|
const { segmentationId, representation } = segmentationInput;
|
|
@@ -2874,7 +2884,7 @@ function normalizeSegmentationInput(segmentationInput) {
|
|
|
2874
2884
|
};
|
|
2875
2885
|
}
|
|
2876
2886
|
/* harmony default export */ const helpers_normalizeSegmentationInput = (normalizeSegmentationInput);
|
|
2877
|
-
|
|
2887
|
+
|
|
2878
2888
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js
|
|
2879
2889
|
|
|
2880
2890
|
|
|
@@ -2903,7 +2913,14 @@ function getSegmentationRepresentations(toolGroupId) {
|
|
|
2903
2913
|
const segmentationStateManager = getDefaultSegmentationStateManager();
|
|
2904
2914
|
return segmentationStateManager.getSegmentationRepresentations(toolGroupId);
|
|
2905
2915
|
}
|
|
2916
|
+
function getAllSegmentationRepresentations() {
|
|
2917
|
+
const segmentationStateManager = getDefaultSegmentationStateManager();
|
|
2918
|
+
return segmentationStateManager.getAllSegmentationRepresentations();
|
|
2919
|
+
}
|
|
2906
2920
|
function getToolGroupIdsWithSegmentation(segmentationId) {
|
|
2921
|
+
if (!segmentationId) {
|
|
2922
|
+
throw new Error('getToolGroupIdsWithSegmentation: segmentationId is empty');
|
|
2923
|
+
}
|
|
2907
2924
|
const segmentationStateManager = getDefaultSegmentationStateManager();
|
|
2908
2925
|
const state = segmentationStateManager.getState();
|
|
2909
2926
|
const toolGroupIds = Object.keys(state.toolGroups);
|
|
@@ -2996,7 +3013,7 @@ function addColorLUT(colorLUT, index) {
|
|
|
2996
3013
|
segmentationStateManager.addColorLUT(colorLUT, index);
|
|
2997
3014
|
}
|
|
2998
3015
|
|
|
2999
|
-
|
|
3016
|
+
|
|
3000
3017
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationConfig.js
|
|
3001
3018
|
|
|
3002
3019
|
function segmentationConfig_getGlobalConfig() {
|
|
@@ -3041,7 +3058,7 @@ function setSegmentSpecificConfig(toolGroupId, segmentationRepresentationUID, co
|
|
|
3041
3058
|
setSegmentSpecificRepresentationConfig(toolGroupId, segmentationRepresentationUID, config);
|
|
3042
3059
|
}
|
|
3043
3060
|
|
|
3044
|
-
|
|
3061
|
+
|
|
3045
3062
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js
|
|
3046
3063
|
|
|
3047
3064
|
async function addLabelmapToElement(element, volumeId, segmentationRepresentationUID) {
|
|
@@ -3062,7 +3079,7 @@ async function addLabelmapToElement(element, volumeId, segmentationRepresentatio
|
|
|
3062
3079
|
await (0,esm.addVolumesToViewports)(renderingEngine, volumeInputs, [viewportId], immediateRender, suppressEvents);
|
|
3063
3080
|
}
|
|
3064
3081
|
/* harmony default export */ const Labelmap_addLabelmapToElement = (addLabelmapToElement);
|
|
3065
|
-
|
|
3082
|
+
|
|
3066
3083
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.js
|
|
3067
3084
|
|
|
3068
3085
|
function removeLabelmapFromElement(element, segmentationRepresentationUID, removeFromCache = false) {
|
|
@@ -3073,7 +3090,7 @@ function removeLabelmapFromElement(element, segmentationRepresentationUID, remov
|
|
|
3073
3090
|
]);
|
|
3074
3091
|
}
|
|
3075
3092
|
/* harmony default export */ const Labelmap_removeLabelmapFromElement = (removeLabelmapFromElement);
|
|
3076
|
-
|
|
3093
|
+
|
|
3077
3094
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js
|
|
3078
3095
|
|
|
3079
3096
|
|
|
@@ -3314,24 +3331,24 @@ async function _addLabelmapToViewport(viewport, volumeId, segmentationRepresenta
|
|
|
3314
3331
|
addSegmentationRepresentation: labelmapDisplay_addSegmentationRepresentation,
|
|
3315
3332
|
removeSegmentationRepresentation: labelmapDisplay_removeSegmentationRepresentation,
|
|
3316
3333
|
});
|
|
3317
|
-
|
|
3334
|
+
|
|
3318
3335
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/index.js
|
|
3319
3336
|
|
|
3320
3337
|
|
|
3321
3338
|
|
|
3322
|
-
|
|
3339
|
+
|
|
3323
3340
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/DataArray.js
|
|
3324
|
-
var DataArray = __webpack_require__(
|
|
3341
|
+
var DataArray = __webpack_require__(54131);
|
|
3325
3342
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/macros.js + 7 modules
|
|
3326
|
-
var macros = __webpack_require__(
|
|
3343
|
+
var macros = __webpack_require__(41770);
|
|
3327
3344
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Points.js
|
|
3328
|
-
var Points = __webpack_require__(
|
|
3345
|
+
var Points = __webpack_require__(23834);
|
|
3329
3346
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 9 modules
|
|
3330
|
-
var PolyData = __webpack_require__(
|
|
3347
|
+
var PolyData = __webpack_require__(1299);
|
|
3331
3348
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/Constants.js
|
|
3332
|
-
var Constants = __webpack_require__(
|
|
3349
|
+
var Constants = __webpack_require__(21477);
|
|
3333
3350
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/DataArray/Constants.js
|
|
3334
|
-
var DataArray_Constants = __webpack_require__(
|
|
3351
|
+
var DataArray_Constants = __webpack_require__(89262);
|
|
3335
3352
|
;// CONCATENATED MODULE: ../../../node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.js
|
|
3336
3353
|
|
|
3337
3354
|
|
|
@@ -3577,11 +3594,11 @@ var vtkAppendPolyData$1 = {
|
|
|
3577
3594
|
|
|
3578
3595
|
|
|
3579
3596
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Actor.js
|
|
3580
|
-
var Actor = __webpack_require__(
|
|
3597
|
+
var Actor = __webpack_require__(16623);
|
|
3581
3598
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js
|
|
3582
|
-
var Mapper = __webpack_require__(
|
|
3599
|
+
var Mapper = __webpack_require__(93702);
|
|
3583
3600
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/CellArray.js
|
|
3584
|
-
var CellArray = __webpack_require__(
|
|
3601
|
+
var CellArray = __webpack_require__(17197);
|
|
3585
3602
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/utils.js
|
|
3586
3603
|
|
|
3587
3604
|
|
|
@@ -3635,7 +3652,7 @@ function getPolyData(contourSet) {
|
|
|
3635
3652
|
polygon.setLines(lines);
|
|
3636
3653
|
return polygon;
|
|
3637
3654
|
}
|
|
3638
|
-
|
|
3655
|
+
|
|
3639
3656
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourConfigCache.js
|
|
3640
3657
|
const configCachePerSegmentationRepresentationUID = new Map();
|
|
3641
3658
|
function getConfigCache(segmentationRepresentationUID) {
|
|
@@ -3647,7 +3664,7 @@ function setConfigCache(segmentationRepresentationUID, config) {
|
|
|
3647
3664
|
function deleteConfigCache(segmentationRepresentationUID) {
|
|
3648
3665
|
configCachePerSegmentationRepresentationUID.delete(segmentationRepresentationUID);
|
|
3649
3666
|
}
|
|
3650
|
-
|
|
3667
|
+
|
|
3651
3668
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/addContourSetsToElement.js
|
|
3652
3669
|
|
|
3653
3670
|
|
|
@@ -3714,7 +3731,7 @@ function addContourSetsToElement(viewport, geometryIds, contourRepresentation, c
|
|
|
3714
3731
|
viewport.resetCamera();
|
|
3715
3732
|
viewport.render();
|
|
3716
3733
|
}
|
|
3717
|
-
|
|
3734
|
+
|
|
3718
3735
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/updateContourSets.js
|
|
3719
3736
|
|
|
3720
3737
|
|
|
@@ -3808,7 +3825,7 @@ function updateContourSets(viewport, geometryIds, contourRepresentation, contour
|
|
|
3808
3825
|
}
|
|
3809
3826
|
viewport.render();
|
|
3810
3827
|
}
|
|
3811
|
-
|
|
3828
|
+
|
|
3812
3829
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/addOrUpdateContourSets.js
|
|
3813
3830
|
|
|
3814
3831
|
|
|
@@ -3819,7 +3836,7 @@ function addOrUpdateContourSets(viewport, geometryIds, contourRepresentation, co
|
|
|
3819
3836
|
const addOrUpdateFn = actor ? updateContourSets : addContourSetsToElement;
|
|
3820
3837
|
addOrUpdateFn(viewport, geometryIds, contourRepresentation, contourRepresentationConfig, actorUID);
|
|
3821
3838
|
}
|
|
3822
|
-
|
|
3839
|
+
|
|
3823
3840
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/removeContourFromElement.js
|
|
3824
3841
|
|
|
3825
3842
|
function removeContourFromElement(element, segmentationRepresentationUID, removeFromCache = false) {
|
|
@@ -3832,7 +3849,7 @@ function removeContourFromElement(element, segmentationRepresentationUID, remove
|
|
|
3832
3849
|
viewport.removeActors(actorUIDsToRemove);
|
|
3833
3850
|
}
|
|
3834
3851
|
/* harmony default export */ const Contour_removeContourFromElement = (removeContourFromElement);
|
|
3835
|
-
|
|
3852
|
+
|
|
3836
3853
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourDisplay.js
|
|
3837
3854
|
|
|
3838
3855
|
|
|
@@ -3912,11 +3929,11 @@ function _removeContourFromToolGroupViewports(toolGroupId, segmentationRepresent
|
|
|
3912
3929
|
addSegmentationRepresentation: contourDisplay_addSegmentationRepresentation,
|
|
3913
3930
|
removeSegmentationRepresentation: contourDisplay_removeSegmentationRepresentation,
|
|
3914
3931
|
});
|
|
3915
|
-
|
|
3932
|
+
|
|
3916
3933
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/index.js
|
|
3917
3934
|
|
|
3918
3935
|
|
|
3919
|
-
|
|
3936
|
+
|
|
3920
3937
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.js
|
|
3921
3938
|
|
|
3922
3939
|
|
|
@@ -3957,7 +3974,7 @@ function _removeSegmentation(toolGroupId, segmentationRepresentationUID, immedia
|
|
|
3957
3974
|
}
|
|
3958
3975
|
}
|
|
3959
3976
|
/* harmony default export */ const segmentation_removeSegmentationsFromToolGroup = (removeSegmentationsFromToolGroup);
|
|
3960
|
-
|
|
3977
|
+
|
|
3961
3978
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.js
|
|
3962
3979
|
|
|
3963
3980
|
function validate(segmentationInput) {
|
|
@@ -3975,7 +3992,7 @@ function validate(segmentationInput) {
|
|
|
3975
3992
|
}
|
|
3976
3993
|
}
|
|
3977
3994
|
/* harmony default export */ const validateRepresentationData = (validate);
|
|
3978
|
-
|
|
3995
|
+
|
|
3979
3996
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.js
|
|
3980
3997
|
|
|
3981
3998
|
|
|
@@ -3997,11 +4014,11 @@ function validateSegmentationInput(segmentationInputArray) {
|
|
|
3997
4014
|
});
|
|
3998
4015
|
}
|
|
3999
4016
|
/* harmony default export */ const helpers_validateSegmentationInput = (validateSegmentationInput);
|
|
4000
|
-
|
|
4017
|
+
|
|
4001
4018
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/helpers/index.js
|
|
4002
4019
|
|
|
4003
4020
|
|
|
4004
|
-
|
|
4021
|
+
|
|
4005
4022
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/addSegmentations.js
|
|
4006
4023
|
|
|
4007
4024
|
|
|
@@ -4014,7 +4031,7 @@ function addSegmentations(segmentationInputArray) {
|
|
|
4014
4031
|
});
|
|
4015
4032
|
}
|
|
4016
4033
|
/* harmony default export */ const segmentation_addSegmentations = (addSegmentations);
|
|
4017
|
-
|
|
4034
|
+
|
|
4018
4035
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js
|
|
4019
4036
|
|
|
4020
4037
|
|
|
@@ -4047,7 +4064,7 @@ async function _addSegmentationRepresentation(toolGroupId, representationInput,
|
|
|
4047
4064
|
return segmentationRepresentationUID;
|
|
4048
4065
|
}
|
|
4049
4066
|
/* harmony default export */ const segmentation_addSegmentationRepresentations = (addSegmentationRepresentations);
|
|
4050
|
-
|
|
4067
|
+
|
|
4051
4068
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/activeSegmentation.js
|
|
4052
4069
|
|
|
4053
4070
|
|
|
@@ -4066,7 +4083,7 @@ function setActiveSegmentationRepresentation(toolGroupId, segmentationRepresenta
|
|
|
4066
4083
|
triggerSegmentationRepresentationModified(toolGroupId, segmentationRepresentationUID);
|
|
4067
4084
|
}
|
|
4068
4085
|
|
|
4069
|
-
|
|
4086
|
+
|
|
4070
4087
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentLocking.js
|
|
4071
4088
|
|
|
4072
4089
|
|
|
@@ -4101,7 +4118,7 @@ function getLockedSegments(segmentationId) {
|
|
|
4101
4118
|
return Array.from(segmentsLocked);
|
|
4102
4119
|
}
|
|
4103
4120
|
|
|
4104
|
-
|
|
4121
|
+
|
|
4105
4122
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationColor.js
|
|
4106
4123
|
|
|
4107
4124
|
|
|
@@ -4144,7 +4161,7 @@ function setColorForSegmentIndex(toolGroupId, segmentationRepresentationUID, seg
|
|
|
4144
4161
|
triggerSegmentationRepresentationModified(toolGroupId, segmentationRepresentationUID);
|
|
4145
4162
|
}
|
|
4146
4163
|
|
|
4147
|
-
|
|
4164
|
+
|
|
4148
4165
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js
|
|
4149
4166
|
|
|
4150
4167
|
|
|
@@ -4231,13 +4248,13 @@ function setSegmentVisibility(toolGroupId, segmentationRepresentationUID, segmen
|
|
|
4231
4248
|
triggerSegmentationRepresentationModified(toolGroupId, segmentationRepresentationUID);
|
|
4232
4249
|
}
|
|
4233
4250
|
|
|
4234
|
-
|
|
4251
|
+
|
|
4235
4252
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/index.js
|
|
4236
4253
|
|
|
4237
4254
|
|
|
4238
4255
|
|
|
4239
4256
|
|
|
4240
|
-
|
|
4257
|
+
|
|
4241
4258
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentIndex.js
|
|
4242
4259
|
|
|
4243
4260
|
|
|
@@ -4255,7 +4272,7 @@ function getActiveSegmentIndex(segmentationId) {
|
|
|
4255
4272
|
}
|
|
4256
4273
|
}
|
|
4257
4274
|
|
|
4258
|
-
|
|
4275
|
+
|
|
4259
4276
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/index.js
|
|
4260
4277
|
|
|
4261
4278
|
|
|
@@ -4267,7 +4284,7 @@ function getActiveSegmentIndex(segmentationId) {
|
|
|
4267
4284
|
|
|
4268
4285
|
|
|
4269
4286
|
|
|
4270
|
-
|
|
4287
|
+
|
|
4271
4288
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/BaseTool.js
|
|
4272
4289
|
|
|
4273
4290
|
|
|
@@ -4351,9 +4368,9 @@ class BaseTool {
|
|
|
4351
4368
|
}
|
|
4352
4369
|
BaseTool.toolName = 'BaseTool';
|
|
4353
4370
|
/* harmony default export */ const base_BaseTool = (BaseTool);
|
|
4354
|
-
|
|
4371
|
+
|
|
4355
4372
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 10 modules
|
|
4356
|
-
var gl_matrix_esm = __webpack_require__(
|
|
4373
|
+
var gl_matrix_esm = __webpack_require__(45451);
|
|
4357
4374
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/getSvgDrawingHelper.js
|
|
4358
4375
|
|
|
4359
4376
|
|
|
@@ -4420,7 +4437,7 @@ function clearUntouched(svgLayerElement, canvasHash) {
|
|
|
4420
4437
|
});
|
|
4421
4438
|
}
|
|
4422
4439
|
/* harmony default export */ const drawingSvg_getSvgDrawingHelper = (getSvgDrawingHelper);
|
|
4423
|
-
|
|
4440
|
+
|
|
4424
4441
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/draw.js
|
|
4425
4442
|
|
|
4426
4443
|
function draw(element, fn) {
|
|
@@ -4429,13 +4446,13 @@ function draw(element, fn) {
|
|
|
4429
4446
|
svgDrawingHelper.clearUntouched();
|
|
4430
4447
|
}
|
|
4431
4448
|
/* harmony default export */ const drawingSvg_draw = (draw);
|
|
4432
|
-
|
|
4449
|
+
|
|
4433
4450
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/_getHash.js
|
|
4434
4451
|
function _getHash(annotationUID, drawingElementType, nodeUID) {
|
|
4435
4452
|
return `${annotationUID}::${drawingElementType}::${nodeUID}`;
|
|
4436
4453
|
}
|
|
4437
4454
|
/* harmony default export */ const drawingSvg_getHash = (_getHash);
|
|
4438
|
-
|
|
4455
|
+
|
|
4439
4456
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/_setAttributesIfNecessary.js
|
|
4440
4457
|
function _setAttributesIfNecessary(attributes, svgNode) {
|
|
4441
4458
|
Object.keys(attributes).forEach((key) => {
|
|
@@ -4450,7 +4467,7 @@ function _setAttributesIfNecessary(attributes, svgNode) {
|
|
|
4450
4467
|
});
|
|
4451
4468
|
}
|
|
4452
4469
|
/* harmony default export */ const drawingSvg_setAttributesIfNecessary = (_setAttributesIfNecessary);
|
|
4453
|
-
|
|
4470
|
+
|
|
4454
4471
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/_setNewAttributesIfValid.js
|
|
4455
4472
|
function _setNewAttributesIfValid(attributes, svgNode) {
|
|
4456
4473
|
Object.keys(attributes).forEach((key) => {
|
|
@@ -4461,7 +4478,7 @@ function _setNewAttributesIfValid(attributes, svgNode) {
|
|
|
4461
4478
|
});
|
|
4462
4479
|
}
|
|
4463
4480
|
/* harmony default export */ const drawingSvg_setNewAttributesIfValid = (_setNewAttributesIfValid);
|
|
4464
|
-
|
|
4481
|
+
|
|
4465
4482
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawCircle.js
|
|
4466
4483
|
|
|
4467
4484
|
|
|
@@ -4501,7 +4518,7 @@ function drawCircle(svgDrawingHelper, annotationUID, circleUID, center, radius,
|
|
|
4501
4518
|
}
|
|
4502
4519
|
}
|
|
4503
4520
|
/* harmony default export */ const drawingSvg_drawCircle = (drawCircle);
|
|
4504
|
-
|
|
4521
|
+
|
|
4505
4522
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawEllipse.js
|
|
4506
4523
|
|
|
4507
4524
|
|
|
@@ -4548,7 +4565,7 @@ function drawEllipse(svgDrawingHelper, annotationUID, ellipseUID, corner1, corne
|
|
|
4548
4565
|
}
|
|
4549
4566
|
}
|
|
4550
4567
|
/* harmony default export */ const drawingSvg_drawEllipse = (drawEllipse);
|
|
4551
|
-
|
|
4568
|
+
|
|
4552
4569
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawHandles.js
|
|
4553
4570
|
|
|
4554
4571
|
|
|
@@ -4613,7 +4630,7 @@ function drawHandles(svgDrawingHelper, annotationUID, handleGroupUID, handlePoin
|
|
|
4613
4630
|
}
|
|
4614
4631
|
}
|
|
4615
4632
|
/* harmony default export */ const drawingSvg_drawHandles = (drawHandles);
|
|
4616
|
-
|
|
4633
|
+
|
|
4617
4634
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLine.js
|
|
4618
4635
|
|
|
4619
4636
|
|
|
@@ -4659,7 +4676,7 @@ function drawLine(svgDrawingHelper, annotationUID, lineUID, start, end, options
|
|
|
4659
4676
|
svgDrawingHelper.appendNode(newLine, svgNodeHash);
|
|
4660
4677
|
}
|
|
4661
4678
|
}
|
|
4662
|
-
|
|
4679
|
+
|
|
4663
4680
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawPolyline.js
|
|
4664
4681
|
|
|
4665
4682
|
|
|
@@ -4704,7 +4721,7 @@ function drawPolyline(svgDrawingHelper, annotationUID, polylineUID, points, opti
|
|
|
4704
4721
|
svgDrawingHelper.appendNode(newPolyLine, svgNodeHash);
|
|
4705
4722
|
}
|
|
4706
4723
|
}
|
|
4707
|
-
|
|
4724
|
+
|
|
4708
4725
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawTextBox.js
|
|
4709
4726
|
|
|
4710
4727
|
|
|
@@ -4826,7 +4843,7 @@ function _drawTextBackground(group, color) {
|
|
|
4826
4843
|
return bBox;
|
|
4827
4844
|
}
|
|
4828
4845
|
/* harmony default export */ const drawingSvg_drawTextBox = (drawTextBox);
|
|
4829
|
-
|
|
4846
|
+
|
|
4830
4847
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/findClosestPoint.js
|
|
4831
4848
|
function findClosestPoint(sourcePoints, targetPoint) {
|
|
4832
4849
|
let minPoint = [0, 0];
|
|
@@ -4845,7 +4862,7 @@ function _distanceBetween(p1, p2) {
|
|
|
4845
4862
|
const [x2, y2] = p2;
|
|
4846
4863
|
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
|
|
4847
4864
|
}
|
|
4848
|
-
|
|
4865
|
+
|
|
4849
4866
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLink.js
|
|
4850
4867
|
|
|
4851
4868
|
|
|
@@ -4873,7 +4890,7 @@ function _boundingBoxPoints(boundingBox) {
|
|
|
4873
4890
|
return [topMiddle, leftMiddle, bottomMiddle, rightMiddle];
|
|
4874
4891
|
}
|
|
4875
4892
|
/* harmony default export */ const drawingSvg_drawLink = (drawLink);
|
|
4876
|
-
|
|
4893
|
+
|
|
4877
4894
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawLinkedTextBox.js
|
|
4878
4895
|
|
|
4879
4896
|
|
|
@@ -4890,7 +4907,7 @@ function drawLinkedTextBox(svgDrawingHelper, annotationUID, textBoxUID, textLine
|
|
|
4890
4907
|
return canvasBoundingBox;
|
|
4891
4908
|
}
|
|
4892
4909
|
/* harmony default export */ const drawingSvg_drawLinkedTextBox = (drawLinkedTextBox);
|
|
4893
|
-
|
|
4910
|
+
|
|
4894
4911
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawRect.js
|
|
4895
4912
|
|
|
4896
4913
|
|
|
@@ -4932,7 +4949,7 @@ function drawRect(svgDrawingHelper, annotationUID, rectangleUID, start, end, opt
|
|
|
4932
4949
|
svgDrawingHelper.appendNode(svgRectElement, svgNodeHash);
|
|
4933
4950
|
}
|
|
4934
4951
|
}
|
|
4935
|
-
|
|
4952
|
+
|
|
4936
4953
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/drawArrow.js
|
|
4937
4954
|
|
|
4938
4955
|
function drawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, options = {}) {
|
|
@@ -4978,7 +4995,7 @@ function drawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, option
|
|
|
4978
4995
|
lineWidth,
|
|
4979
4996
|
});
|
|
4980
4997
|
}
|
|
4981
|
-
|
|
4998
|
+
|
|
4982
4999
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/index.js
|
|
4983
5000
|
|
|
4984
5001
|
|
|
@@ -4991,7 +5008,7 @@ function drawArrow(svgDrawingHelper, annotationUID, arrowUID, start, end, option
|
|
|
4991
5008
|
|
|
4992
5009
|
|
|
4993
5010
|
|
|
4994
|
-
|
|
5011
|
+
|
|
4995
5012
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getToolsWithModesForElement.js
|
|
4996
5013
|
|
|
4997
5014
|
|
|
@@ -5017,7 +5034,7 @@ function getToolsWithModesForElement_getToolsWithModesForElement(element, modesF
|
|
|
5017
5034
|
}
|
|
5018
5035
|
return enabledTools;
|
|
5019
5036
|
}
|
|
5020
|
-
|
|
5037
|
+
|
|
5021
5038
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRender.js
|
|
5022
5039
|
|
|
5023
5040
|
|
|
@@ -5135,7 +5152,7 @@ function triggerAnnotationRender(element) {
|
|
|
5135
5152
|
}
|
|
5136
5153
|
|
|
5137
5154
|
/* harmony default export */ const utilities_triggerAnnotationRender = (triggerAnnotationRender);
|
|
5138
|
-
|
|
5155
|
+
|
|
5139
5156
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/filterAnnotationsWithinSlice.js
|
|
5140
5157
|
|
|
5141
5158
|
|
|
@@ -5179,7 +5196,7 @@ function filterAnnotationsWithinSlice(annotations, camera, spacingInNormalDirect
|
|
|
5179
5196
|
}
|
|
5180
5197
|
return annotationsWithinSlice;
|
|
5181
5198
|
}
|
|
5182
|
-
|
|
5199
|
+
|
|
5183
5200
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/filterAnnotationsForDisplay.js
|
|
5184
5201
|
|
|
5185
5202
|
|
|
@@ -5210,7 +5227,7 @@ function filterAnnotationsForDisplay(viewport, annotations) {
|
|
|
5210
5227
|
throw new Error(`Viewport Type ${viewport.type} not supported`);
|
|
5211
5228
|
}
|
|
5212
5229
|
}
|
|
5213
|
-
|
|
5230
|
+
|
|
5214
5231
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/ToolStyle.js
|
|
5215
5232
|
class ToolStyle {
|
|
5216
5233
|
constructor() {
|
|
@@ -5340,7 +5357,7 @@ class ToolStyle {
|
|
|
5340
5357
|
}
|
|
5341
5358
|
const toolStyle = new ToolStyle();
|
|
5342
5359
|
/* harmony default export */ const config_ToolStyle = (toolStyle);
|
|
5343
|
-
|
|
5360
|
+
|
|
5344
5361
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/helpers.js
|
|
5345
5362
|
|
|
5346
5363
|
function getHierarchalPropertyStyles(property, state, mode) {
|
|
@@ -5361,7 +5378,7 @@ function getStyleProperty(property, styleSpecifier, state, mode) {
|
|
|
5361
5378
|
}
|
|
5362
5379
|
}
|
|
5363
5380
|
|
|
5364
|
-
|
|
5381
|
+
|
|
5365
5382
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/getState.js
|
|
5366
5383
|
|
|
5367
5384
|
|
|
@@ -5378,7 +5395,7 @@ function getState(annotation) {
|
|
|
5378
5395
|
return enums_AnnotationStyleStates.Default;
|
|
5379
5396
|
}
|
|
5380
5397
|
/* harmony default export */ const config_getState = (getState);
|
|
5381
|
-
|
|
5398
|
+
|
|
5382
5399
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/getFont.js
|
|
5383
5400
|
|
|
5384
5401
|
function getFont(styleSpecifier, state, mode) {
|
|
@@ -5387,15 +5404,14 @@ function getFont(styleSpecifier, state, mode) {
|
|
|
5387
5404
|
return `${fontSize}px ${fontFamily}`;
|
|
5388
5405
|
}
|
|
5389
5406
|
/* harmony default export */ const config_getFont = (getFont);
|
|
5390
|
-
|
|
5407
|
+
|
|
5391
5408
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/index.js
|
|
5392
5409
|
|
|
5393
5410
|
|
|
5394
5411
|
|
|
5395
5412
|
|
|
5396
|
-
//# sourceMappingURL=index.js.map
|
|
5397
|
-
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/AnnotationDisplayTool.js
|
|
5398
5413
|
|
|
5414
|
+
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/AnnotationDisplayTool.js
|
|
5399
5415
|
|
|
5400
5416
|
|
|
5401
5417
|
|
|
@@ -5407,17 +5423,12 @@ class AnnotationDisplayTool extends base_BaseTool {
|
|
|
5407
5423
|
constructor() {
|
|
5408
5424
|
super(...arguments);
|
|
5409
5425
|
this.onImageSpacingCalibrated = (evt) => {
|
|
5410
|
-
const { element,
|
|
5411
|
-
const { viewport } = (0,esm.getEnabledElement)(element);
|
|
5412
|
-
if (viewport instanceof esm.VolumeViewport) {
|
|
5413
|
-
throw new Error('Cannot calibrate a volume viewport');
|
|
5414
|
-
}
|
|
5415
|
-
const calibratedIndexToWorld = calibratedImageData.getIndexToWorld();
|
|
5426
|
+
const { element, imageId } = evt.detail;
|
|
5416
5427
|
const imageURI = esm.utilities.imageIdToURI(imageId);
|
|
5417
|
-
const
|
|
5418
|
-
const framesOfReference =
|
|
5428
|
+
const annotationManager = getAnnotationManager();
|
|
5429
|
+
const framesOfReference = annotationManager.getFramesOfReference();
|
|
5419
5430
|
framesOfReference.forEach((frameOfReference) => {
|
|
5420
|
-
const frameOfReferenceSpecificAnnotations =
|
|
5431
|
+
const frameOfReferenceSpecificAnnotations = annotationManager.getAnnotations(frameOfReference);
|
|
5421
5432
|
const toolSpecificAnnotations = frameOfReferenceSpecificAnnotations[this.getToolName()];
|
|
5422
5433
|
if (!toolSpecificAnnotations || !toolSpecificAnnotations.length) {
|
|
5423
5434
|
return;
|
|
@@ -5427,19 +5438,6 @@ class AnnotationDisplayTool extends base_BaseTool {
|
|
|
5427
5438
|
if (referencedImageURI === imageURI) {
|
|
5428
5439
|
annotation.invalidated = true;
|
|
5429
5440
|
annotation.data.cachedStats = {};
|
|
5430
|
-
annotation.data.handles.points = annotation.data.handles.points.map((point) => {
|
|
5431
|
-
const p = gl_matrix_esm/* vec4.fromValues */.vh.fromValues(...point, 1);
|
|
5432
|
-
const pCalibrated = gl_matrix_esm/* vec4.fromValues */.vh.fromValues(0, 0, 0, 1);
|
|
5433
|
-
const nonCalibratedIndexVec4 = gl_matrix_esm/* vec4.create */.vh.create();
|
|
5434
|
-
gl_matrix_esm/* vec4.transformMat4 */.vh.transformMat4(nonCalibratedIndexVec4, p, nonCalibratedWorldToIndex);
|
|
5435
|
-
const calibratedIndex = [
|
|
5436
|
-
columnScale * nonCalibratedIndexVec4[0],
|
|
5437
|
-
rowScale * nonCalibratedIndexVec4[1],
|
|
5438
|
-
nonCalibratedIndexVec4[2],
|
|
5439
|
-
];
|
|
5440
|
-
gl_matrix_esm/* vec4.transformMat4 */.vh.transformMat4(pCalibrated, gl_matrix_esm/* vec4.fromValues */.vh.fromValues(calibratedIndex[0], calibratedIndex[1], calibratedIndex[2], 1), calibratedIndexToWorld);
|
|
5441
|
-
return pCalibrated.slice(0, 3);
|
|
5442
|
-
});
|
|
5443
5441
|
}
|
|
5444
5442
|
});
|
|
5445
5443
|
utilities_triggerAnnotationRender(element);
|
|
@@ -5473,7 +5471,7 @@ class AnnotationDisplayTool extends base_BaseTool {
|
|
|
5473
5471
|
}
|
|
5474
5472
|
AnnotationDisplayTool.toolName = 'AnnotationDisplayTool';
|
|
5475
5473
|
/* harmony default export */ const base_AnnotationDisplayTool = (AnnotationDisplayTool);
|
|
5476
|
-
|
|
5474
|
+
|
|
5477
5475
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/AnnotationTool.js
|
|
5478
5476
|
|
|
5479
5477
|
|
|
@@ -5561,7 +5559,7 @@ class AnnotationTool extends base_AnnotationDisplayTool {
|
|
|
5561
5559
|
if (viewport instanceof esm.BaseVolumeViewport) {
|
|
5562
5560
|
const volumeId = targetId.split('volumeId:')[1];
|
|
5563
5561
|
const volume = esm.cache.getVolume(volumeId);
|
|
5564
|
-
return volume.scaling?.
|
|
5562
|
+
return volume.scaling?.PT !== undefined;
|
|
5565
5563
|
}
|
|
5566
5564
|
else if (viewport instanceof esm.StackViewport) {
|
|
5567
5565
|
const scalingModule = imageId && esm.metaData.get('scalingModule', imageId);
|
|
@@ -5584,12 +5582,12 @@ class AnnotationTool extends base_AnnotationDisplayTool {
|
|
|
5584
5582
|
}
|
|
5585
5583
|
AnnotationTool.toolName = 'AnnotationTool';
|
|
5586
5584
|
/* harmony default export */ const base_AnnotationTool = (AnnotationTool);
|
|
5587
|
-
|
|
5585
|
+
|
|
5588
5586
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/base/index.js
|
|
5589
5587
|
|
|
5590
5588
|
|
|
5591
5589
|
|
|
5592
|
-
|
|
5590
|
+
|
|
5593
5591
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/SegmentationDisplayTool.js
|
|
5594
5592
|
|
|
5595
5593
|
|
|
@@ -5672,7 +5670,7 @@ class SegmentationDisplayTool extends base_BaseTool {
|
|
|
5672
5670
|
}
|
|
5673
5671
|
SegmentationDisplayTool.toolName = 'SegmentationDisplay';
|
|
5674
5672
|
/* harmony default export */ const displayTools_SegmentationDisplayTool = (SegmentationDisplayTool);
|
|
5675
|
-
|
|
5673
|
+
|
|
5676
5674
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/triggerSegmentationRender.js
|
|
5677
5675
|
|
|
5678
5676
|
|
|
@@ -5778,7 +5776,7 @@ function triggerSegmentationRender(toolGroupId) {
|
|
|
5778
5776
|
}
|
|
5779
5777
|
|
|
5780
5778
|
/* harmony default export */ const segmentation_triggerSegmentationRender = (triggerSegmentationRender);
|
|
5781
|
-
|
|
5779
|
+
|
|
5782
5780
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js
|
|
5783
5781
|
|
|
5784
5782
|
const segmentationRepresentationModifiedListener = function (evt) {
|
|
@@ -5786,7 +5784,7 @@ const segmentationRepresentationModifiedListener = function (evt) {
|
|
|
5786
5784
|
segmentation_triggerSegmentationRender(toolGroupId);
|
|
5787
5785
|
};
|
|
5788
5786
|
/* harmony default export */ const segmentationRepresentationModifiedEventListener = (segmentationRepresentationModifiedListener);
|
|
5789
|
-
|
|
5787
|
+
|
|
5790
5788
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js
|
|
5791
5789
|
|
|
5792
5790
|
|
|
@@ -5826,7 +5824,7 @@ const onSegmentationDataModified = function (evt) {
|
|
|
5826
5824
|
});
|
|
5827
5825
|
};
|
|
5828
5826
|
/* harmony default export */ const segmentationDataModifiedEventListener = (onSegmentationDataModified);
|
|
5829
|
-
|
|
5827
|
+
|
|
5830
5828
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js
|
|
5831
5829
|
|
|
5832
5830
|
const segmentationRepresentationRemovedEventListener = function (evt) {
|
|
@@ -5834,7 +5832,7 @@ const segmentationRepresentationRemovedEventListener = function (evt) {
|
|
|
5834
5832
|
segmentation_triggerSegmentationRender(toolGroupId);
|
|
5835
5833
|
};
|
|
5836
5834
|
/* harmony default export */ const segmentation_segmentationRepresentationRemovedEventListener = (segmentationRepresentationRemovedEventListener);
|
|
5837
|
-
|
|
5835
|
+
|
|
5838
5836
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js
|
|
5839
5837
|
|
|
5840
5838
|
|
|
@@ -5851,14 +5849,14 @@ const segmentationModifiedListener = function (evt) {
|
|
|
5851
5849
|
});
|
|
5852
5850
|
};
|
|
5853
5851
|
/* harmony default export */ const segmentationModifiedEventListener = (segmentationModifiedListener);
|
|
5854
|
-
|
|
5852
|
+
|
|
5855
5853
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/segmentation/index.js
|
|
5856
5854
|
|
|
5857
5855
|
|
|
5858
5856
|
|
|
5859
5857
|
|
|
5860
5858
|
|
|
5861
|
-
|
|
5859
|
+
|
|
5862
5860
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getAnnotationNearPoint.js
|
|
5863
5861
|
|
|
5864
5862
|
|
|
@@ -5906,14 +5904,14 @@ function findAnnotationNearPointByTool(tool, enabledElement, point, proximity) {
|
|
|
5906
5904
|
return null;
|
|
5907
5905
|
}
|
|
5908
5906
|
|
|
5909
|
-
|
|
5907
|
+
|
|
5910
5908
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/isObject.js
|
|
5911
5909
|
function isObject(value) {
|
|
5912
5910
|
const type = typeof value;
|
|
5913
5911
|
return value !== null && (type === 'object' || type === 'function');
|
|
5914
5912
|
}
|
|
5915
5913
|
/* harmony default export */ const utilities_isObject = (isObject);
|
|
5916
|
-
|
|
5914
|
+
|
|
5917
5915
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/debounce.js
|
|
5918
5916
|
|
|
5919
5917
|
function debounce(func, wait, options) {
|
|
@@ -6028,7 +6026,7 @@ function debounce(func, wait, options) {
|
|
|
6028
6026
|
return debounced;
|
|
6029
6027
|
}
|
|
6030
6028
|
/* harmony default export */ const utilities_debounce = (debounce);
|
|
6031
|
-
|
|
6029
|
+
|
|
6032
6030
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/throttle.js
|
|
6033
6031
|
|
|
6034
6032
|
|
|
@@ -6049,7 +6047,7 @@ function throttle(func, wait, options) {
|
|
|
6049
6047
|
});
|
|
6050
6048
|
}
|
|
6051
6049
|
/* harmony default export */ const utilities_throttle = (throttle);
|
|
6052
|
-
|
|
6050
|
+
|
|
6053
6051
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/clip.js
|
|
6054
6052
|
function clip(val, low, high) {
|
|
6055
6053
|
return Math.min(Math.max(low, val), high);
|
|
@@ -6059,18 +6057,18 @@ function clipToBox(point, box) {
|
|
|
6059
6057
|
point.y = clip(point.y, 0, box.height);
|
|
6060
6058
|
}
|
|
6061
6059
|
/* harmony default export */ const utilities_clip = (clip);
|
|
6062
|
-
|
|
6060
|
+
|
|
6063
6061
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/calibrateImageSpacing.js
|
|
6064
6062
|
|
|
6065
6063
|
const { calibratedPixelSpacingMetadataProvider } = esm.utilities;
|
|
6066
|
-
function calibrateImageSpacing(imageId, renderingEngine,
|
|
6067
|
-
if (
|
|
6068
|
-
|
|
6064
|
+
function calibrateImageSpacing(imageId, renderingEngine, calibrationOrScale) {
|
|
6065
|
+
if (typeof calibrationOrScale === 'number') {
|
|
6066
|
+
calibrationOrScale = {
|
|
6067
|
+
type: esm.Enums.CalibrationTypes.USER,
|
|
6068
|
+
scale: calibrationOrScale,
|
|
6069
|
+
};
|
|
6069
6070
|
}
|
|
6070
|
-
calibratedPixelSpacingMetadataProvider.add(imageId,
|
|
6071
|
-
rowPixelSpacing,
|
|
6072
|
-
columnPixelSpacing,
|
|
6073
|
-
});
|
|
6071
|
+
calibratedPixelSpacingMetadataProvider.add(imageId, calibrationOrScale);
|
|
6074
6072
|
const viewports = renderingEngine.getStackViewports();
|
|
6075
6073
|
viewports.forEach((viewport) => {
|
|
6076
6074
|
const imageIds = viewport.getImageIds();
|
|
@@ -6079,7 +6077,7 @@ function calibrateImageSpacing(imageId, renderingEngine, rowPixelSpacing, column
|
|
|
6079
6077
|
}
|
|
6080
6078
|
});
|
|
6081
6079
|
}
|
|
6082
|
-
|
|
6080
|
+
|
|
6083
6081
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRenderForViewportIds.js
|
|
6084
6082
|
|
|
6085
6083
|
function triggerAnnotationRenderForViewportIds(renderingEngine, viewportIdsToRender) {
|
|
@@ -6092,7 +6090,7 @@ function triggerAnnotationRenderForViewportIds(renderingEngine, viewportIdsToRen
|
|
|
6092
6090
|
});
|
|
6093
6091
|
}
|
|
6094
6092
|
/* harmony default export */ const utilities_triggerAnnotationRenderForViewportIds = (triggerAnnotationRenderForViewportIds);
|
|
6095
|
-
|
|
6093
|
+
|
|
6096
6094
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/scroll.js
|
|
6097
6095
|
|
|
6098
6096
|
function scroll_scroll(viewport, options) {
|
|
@@ -6144,7 +6142,7 @@ function scrollVolume(viewport, volumeId, delta) {
|
|
|
6144
6142
|
esm.utilities.triggerEvent(esm.eventTarget, esm.EVENTS.VOLUME_SCROLL_OUT_OF_BOUNDS, VolumeScrollEventDetail);
|
|
6145
6143
|
}
|
|
6146
6144
|
}
|
|
6147
|
-
|
|
6145
|
+
|
|
6148
6146
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewport/jumpToSlice.js
|
|
6149
6147
|
|
|
6150
6148
|
|
|
@@ -6182,7 +6180,7 @@ function _getImageIndexToJump(numberOfSlices, imageIndex) {
|
|
|
6182
6180
|
return utilities_clip(imageIndex, 0, lastSliceIndex);
|
|
6183
6181
|
}
|
|
6184
6182
|
/* harmony default export */ const viewport_jumpToSlice = (jumpToSlice);
|
|
6185
|
-
|
|
6183
|
+
|
|
6186
6184
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/pointInShapeCallback.js
|
|
6187
6185
|
|
|
6188
6186
|
function pointInShapeCallback(imageData, pointInShapeFn, callback, boundsIJK) {
|
|
@@ -6253,7 +6251,7 @@ function pointInShapeCallback(imageData, pointInShapeFn, callback, boundsIJK) {
|
|
|
6253
6251
|
}
|
|
6254
6252
|
}
|
|
6255
6253
|
}
|
|
6256
|
-
|
|
6254
|
+
|
|
6257
6255
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/sphere/pointInSphere.js
|
|
6258
6256
|
function pointInSphere(sphere, pointLPS) {
|
|
6259
6257
|
const { center, radius } = sphere;
|
|
@@ -6262,11 +6260,11 @@ function pointInSphere(sphere, pointLPS) {
|
|
|
6262
6260
|
(pointLPS[2] - center[2]) ** 2 <=
|
|
6263
6261
|
radius ** 2);
|
|
6264
6262
|
}
|
|
6265
|
-
|
|
6263
|
+
|
|
6266
6264
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/sphere/index.js
|
|
6267
6265
|
|
|
6268
6266
|
|
|
6269
|
-
|
|
6267
|
+
|
|
6270
6268
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/boundingBox/extend2DBoundingBoxInViewAxis.js
|
|
6271
6269
|
function extend2DBoundingBoxInViewAxis(boundsIJK, numSlicesToProject) {
|
|
6272
6270
|
const sliceNormalIndex = boundsIJK.findIndex(([min, max]) => min === max);
|
|
@@ -6278,7 +6276,7 @@ function extend2DBoundingBoxInViewAxis(boundsIJK, numSlicesToProject) {
|
|
|
6278
6276
|
return boundsIJK;
|
|
6279
6277
|
}
|
|
6280
6278
|
/* harmony default export */ const boundingBox_extend2DBoundingBoxInViewAxis = (extend2DBoundingBoxInViewAxis);
|
|
6281
|
-
|
|
6279
|
+
|
|
6282
6280
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/boundingBox/getBoundingBoxAroundShape.js
|
|
6283
6281
|
function getBoundingBoxAroundShape(points, dimensions) {
|
|
6284
6282
|
let xMin = Infinity;
|
|
@@ -6317,12 +6315,12 @@ function getBoundingBoxAroundShape(points, dimensions) {
|
|
|
6317
6315
|
];
|
|
6318
6316
|
}
|
|
6319
6317
|
/* harmony default export */ const boundingBox_getBoundingBoxAroundShape = (getBoundingBoxAroundShape);
|
|
6320
|
-
|
|
6318
|
+
|
|
6321
6319
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/boundingBox/index.js
|
|
6322
6320
|
|
|
6323
6321
|
|
|
6324
6322
|
|
|
6325
|
-
|
|
6323
|
+
|
|
6326
6324
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/pointInSurroundingSphereCallback.js
|
|
6327
6325
|
|
|
6328
6326
|
|
|
@@ -6387,7 +6385,31 @@ function _computeBoundsIJKWithCamera(imageData, viewport, circlePoints, centerWo
|
|
|
6387
6385
|
const boundsIJK = boundingBox_getBoundingBoxAroundShape(sphereCornersIJK, dimensions);
|
|
6388
6386
|
return boundsIJK;
|
|
6389
6387
|
}
|
|
6390
|
-
|
|
6388
|
+
|
|
6389
|
+
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/roundNumber.js
|
|
6390
|
+
function roundNumber(value, precision = 2) {
|
|
6391
|
+
if (value === undefined || value === null || value === '')
|
|
6392
|
+
return 'NaN';
|
|
6393
|
+
value = Number(value);
|
|
6394
|
+
if (value < 0.0001)
|
|
6395
|
+
return `${value}`;
|
|
6396
|
+
const fixedPrecision = value >= 100
|
|
6397
|
+
? precision - 2
|
|
6398
|
+
: value >= 10
|
|
6399
|
+
? precision - 1
|
|
6400
|
+
: value >= 1
|
|
6401
|
+
? precision
|
|
6402
|
+
: value >= 0.1
|
|
6403
|
+
? precision + 1
|
|
6404
|
+
: value >= 0.01
|
|
6405
|
+
? precision + 2
|
|
6406
|
+
: value >= 0.001
|
|
6407
|
+
? precision + 3
|
|
6408
|
+
: precision + 4;
|
|
6409
|
+
return value.toFixed(fixedPrecision);
|
|
6410
|
+
}
|
|
6411
|
+
/* harmony default export */ const utilities_roundNumber = (roundNumber);
|
|
6412
|
+
|
|
6391
6413
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/fillSphere.js
|
|
6392
6414
|
|
|
6393
6415
|
|
|
@@ -6417,7 +6439,7 @@ function fillInsideSphere(enabledElement, operationData) {
|
|
|
6417
6439
|
function fillOutsideSphere(enabledElement, operationData) {
|
|
6418
6440
|
fillSphere(enabledElement, operationData, false);
|
|
6419
6441
|
}
|
|
6420
|
-
|
|
6442
|
+
|
|
6421
6443
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/eraseSphere.js
|
|
6422
6444
|
|
|
6423
6445
|
function eraseInsideSphere(enabledElement, operationData) {
|
|
@@ -6426,7 +6448,7 @@ function eraseInsideSphere(enabledElement, operationData) {
|
|
|
6426
6448
|
});
|
|
6427
6449
|
fillInsideSphere(enabledElement, eraseOperationData);
|
|
6428
6450
|
}
|
|
6429
|
-
|
|
6451
|
+
|
|
6430
6452
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/pointInEllipse.js
|
|
6431
6453
|
function pointInEllipse(ellipse, pointLPS) {
|
|
6432
6454
|
const { center: circleCenterWorld, xRadius, yRadius, zRadius } = ellipse;
|
|
@@ -6444,7 +6466,7 @@ function pointInEllipse(ellipse, pointLPS) {
|
|
|
6444
6466
|
}
|
|
6445
6467
|
return inside <= 1;
|
|
6446
6468
|
}
|
|
6447
|
-
|
|
6469
|
+
|
|
6448
6470
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/getCanvasEllipseCorners.js
|
|
6449
6471
|
function getCanvasEllipseCorners(ellipseCanvasPoints) {
|
|
6450
6472
|
const [bottom, top, left, right] = ellipseCanvasPoints;
|
|
@@ -6452,12 +6474,12 @@ function getCanvasEllipseCorners(ellipseCanvasPoints) {
|
|
|
6452
6474
|
const bottomRight = [right[0], bottom[1]];
|
|
6453
6475
|
return [topLeft, bottomRight];
|
|
6454
6476
|
}
|
|
6455
|
-
|
|
6477
|
+
|
|
6456
6478
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/index.js
|
|
6457
6479
|
|
|
6458
6480
|
|
|
6459
6481
|
|
|
6460
|
-
|
|
6482
|
+
|
|
6461
6483
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/fillCircle.js
|
|
6462
6484
|
|
|
6463
6485
|
|
|
@@ -6485,9 +6507,6 @@ function fillCircle(enabledElement, operationData, threshold = false) {
|
|
|
6485
6507
|
fillCircle_transformWorldToIndex(imageData, bottomRightWorld),
|
|
6486
6508
|
];
|
|
6487
6509
|
const boundsIJK = boundingBox_getBoundingBoxAroundShape(ellipsoidCornersIJK, dimensions);
|
|
6488
|
-
if (boundsIJK.every(([min, max]) => min !== max)) {
|
|
6489
|
-
throw new Error('Oblique segmentation tools are not supported yet');
|
|
6490
|
-
}
|
|
6491
6510
|
const ellipseObj = {
|
|
6492
6511
|
center: center,
|
|
6493
6512
|
xRadius: Math.abs(topLeftWorld[0] - bottomRightWorld[0]) / 2,
|
|
@@ -6540,7 +6559,7 @@ function thresholdInsideCircle(enabledElement, operationData) {
|
|
|
6540
6559
|
function fillOutsideCircle(enabledElement, operationData) {
|
|
6541
6560
|
throw new Error('Not yet implemented');
|
|
6542
6561
|
}
|
|
6543
|
-
|
|
6562
|
+
|
|
6544
6563
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/eraseCircle.js
|
|
6545
6564
|
|
|
6546
6565
|
function eraseInsideCircle(enabledElement, operationData) {
|
|
@@ -6550,7 +6569,7 @@ function eraseInsideCircle(enabledElement, operationData) {
|
|
|
6550
6569
|
};
|
|
6551
6570
|
fillInsideCircle(enabledElement, eraseOperationData);
|
|
6552
6571
|
}
|
|
6553
|
-
|
|
6572
|
+
|
|
6554
6573
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/MouseCursor.js
|
|
6555
6574
|
const DEFINED_CURSORS = Symbol('DefinedCursors');
|
|
6556
6575
|
const STANDARD_CURSORS = new Set([
|
|
@@ -6640,7 +6659,7 @@ function getDefinedCursors(context, symbol) {
|
|
|
6640
6659
|
}
|
|
6641
6660
|
const standardCursorNames = STANDARD_CURSORS.values();
|
|
6642
6661
|
|
|
6643
|
-
|
|
6662
|
+
|
|
6644
6663
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/ImageMouseCursor.js
|
|
6645
6664
|
|
|
6646
6665
|
|
|
@@ -6664,7 +6683,7 @@ class ImageMouseCursor extends MouseCursor {
|
|
|
6664
6683
|
return `${prefix}-${esm.utilities.getRuntimeId(ImageMouseCursor)}`;
|
|
6665
6684
|
}
|
|
6666
6685
|
}
|
|
6667
|
-
|
|
6686
|
+
|
|
6668
6687
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/SVGCursorDescriptor.js
|
|
6669
6688
|
const BASE = {
|
|
6670
6689
|
iconContent: '',
|
|
@@ -7058,13 +7077,11 @@ function registerCursor(toolName, iconContent, viewBox) {
|
|
|
7058
7077
|
});
|
|
7059
7078
|
}
|
|
7060
7079
|
function getDefinedSVGCursorDescriptor(name) {
|
|
7061
|
-
|
|
7062
|
-
return CursorSVG[name];
|
|
7063
|
-
}
|
|
7080
|
+
return CursorSVG[name];
|
|
7064
7081
|
}
|
|
7065
7082
|
const svgCursorNames = Object.keys(CursorSVG);
|
|
7066
7083
|
|
|
7067
|
-
|
|
7084
|
+
|
|
7068
7085
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/SVGMouseCursor.js
|
|
7069
7086
|
|
|
7070
7087
|
|
|
@@ -7137,7 +7154,7 @@ function createSVGIconWithPointer(descriptor, options) {
|
|
|
7137
7154
|
</svg>`;
|
|
7138
7155
|
return format(svgString, options);
|
|
7139
7156
|
}
|
|
7140
|
-
|
|
7157
|
+
|
|
7141
7158
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/setCursorForElement.js
|
|
7142
7159
|
|
|
7143
7160
|
|
|
@@ -7154,7 +7171,7 @@ function setCursorForElement(element, cursorName) {
|
|
|
7154
7171
|
_setElementCursor(element, cursor);
|
|
7155
7172
|
}
|
|
7156
7173
|
/* harmony default export */ const cursors_setCursorForElement = (setCursorForElement);
|
|
7157
|
-
|
|
7174
|
+
|
|
7158
7175
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/index.js
|
|
7159
7176
|
|
|
7160
7177
|
|
|
@@ -7164,7 +7181,7 @@ function setCursorForElement(element, cursorName) {
|
|
|
7164
7181
|
|
|
7165
7182
|
const CursorNames = [...svgCursorNames, ...standardCursorNames];
|
|
7166
7183
|
|
|
7167
|
-
|
|
7184
|
+
|
|
7168
7185
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/elementCursor.js
|
|
7169
7186
|
|
|
7170
7187
|
const ELEMENT_CURSORS_MAP = Symbol('ElementCursorsMap');
|
|
@@ -7202,7 +7219,7 @@ function _getElementCursors(element) {
|
|
|
7202
7219
|
return cursors;
|
|
7203
7220
|
}
|
|
7204
7221
|
|
|
7205
|
-
|
|
7222
|
+
|
|
7206
7223
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/BrushTool.js
|
|
7207
7224
|
|
|
7208
7225
|
|
|
@@ -7475,7 +7492,7 @@ class BrushTool extends base_BaseTool {
|
|
|
7475
7492
|
}
|
|
7476
7493
|
BrushTool.toolName = 'Brush';
|
|
7477
7494
|
/* harmony default export */ const segmentation_BrushTool = (BrushTool);
|
|
7478
|
-
|
|
7495
|
+
|
|
7479
7496
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/utilities.js
|
|
7480
7497
|
|
|
7481
7498
|
|
|
@@ -7543,7 +7560,7 @@ function processVolumes(segmentationVolume, thresholdVolumeInformation) {
|
|
|
7543
7560
|
baseVolumeIdx,
|
|
7544
7561
|
};
|
|
7545
7562
|
}
|
|
7546
|
-
|
|
7563
|
+
|
|
7547
7564
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/thresholdVolumeByRange.js
|
|
7548
7565
|
|
|
7549
7566
|
|
|
@@ -7614,7 +7631,7 @@ function thresholdVolumeByRange(segmentationVolume, thresholdVolumeInformation,
|
|
|
7614
7631
|
return segmentationVolume;
|
|
7615
7632
|
}
|
|
7616
7633
|
/* harmony default export */ const segmentation_thresholdVolumeByRange = (thresholdVolumeByRange);
|
|
7617
|
-
|
|
7634
|
+
|
|
7618
7635
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/index.js
|
|
7619
7636
|
|
|
7620
7637
|
|
|
@@ -7623,7 +7640,7 @@ function thresholdVolumeByRange(segmentationVolume, thresholdVolumeInformation,
|
|
|
7623
7640
|
|
|
7624
7641
|
|
|
7625
7642
|
|
|
7626
|
-
|
|
7643
|
+
|
|
7627
7644
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/PanTool.js
|
|
7628
7645
|
|
|
7629
7646
|
|
|
@@ -7664,9 +7681,9 @@ class PanTool extends base_BaseTool {
|
|
|
7664
7681
|
}
|
|
7665
7682
|
PanTool.toolName = 'Pan';
|
|
7666
7683
|
/* harmony default export */ const tools_PanTool = (PanTool);
|
|
7667
|
-
|
|
7684
|
+
|
|
7668
7685
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Math.js
|
|
7669
|
-
var Core_Math = __webpack_require__(
|
|
7686
|
+
var Core_Math = __webpack_require__(32899);
|
|
7670
7687
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/TrackballRotateTool.js
|
|
7671
7688
|
|
|
7672
7689
|
|
|
@@ -7767,7 +7784,7 @@ class TrackballRotateTool extends base_BaseTool {
|
|
|
7767
7784
|
}
|
|
7768
7785
|
TrackballRotateTool.toolName = 'TrackballRotate';
|
|
7769
7786
|
/* harmony default export */ const tools_TrackballRotateTool = (TrackballRotateTool);
|
|
7770
|
-
|
|
7787
|
+
|
|
7771
7788
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/WindowLevelTool.js
|
|
7772
7789
|
|
|
7773
7790
|
|
|
@@ -7962,7 +7979,7 @@ class WindowLevelTool extends base_BaseTool {
|
|
|
7962
7979
|
}
|
|
7963
7980
|
WindowLevelTool.toolName = 'WindowLevel';
|
|
7964
7981
|
/* harmony default export */ const tools_WindowLevelTool = (WindowLevelTool);
|
|
7965
|
-
|
|
7982
|
+
|
|
7966
7983
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/StackScrollTool.js
|
|
7967
7984
|
|
|
7968
7985
|
|
|
@@ -8031,7 +8048,7 @@ class StackScrollTool extends base_BaseTool {
|
|
|
8031
8048
|
}
|
|
8032
8049
|
StackScrollTool.toolName = 'StackScroll';
|
|
8033
8050
|
/* harmony default export */ const tools_StackScrollTool = (StackScrollTool);
|
|
8034
|
-
|
|
8051
|
+
|
|
8035
8052
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/angle/angleBetweenLines.js
|
|
8036
8053
|
|
|
8037
8054
|
function angleBetweenLines(line1, line2) {
|
|
@@ -8046,7 +8063,7 @@ function angleBetweenLines(line1, line2) {
|
|
|
8046
8063
|
const radian = Math.acos(cos);
|
|
8047
8064
|
return (radian * 180) / Math.PI;
|
|
8048
8065
|
}
|
|
8049
|
-
|
|
8066
|
+
|
|
8050
8067
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/PlanarRotateTool.js
|
|
8051
8068
|
|
|
8052
8069
|
|
|
@@ -8097,7 +8114,7 @@ class PlanarRotateTool extends base_BaseTool {
|
|
|
8097
8114
|
}
|
|
8098
8115
|
PlanarRotateTool.toolName = 'PlanarRotate';
|
|
8099
8116
|
/* harmony default export */ const tools_PlanarRotateTool = (PlanarRotateTool);
|
|
8100
|
-
|
|
8117
|
+
|
|
8101
8118
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/StackScrollToolMouseWheelTool.js
|
|
8102
8119
|
|
|
8103
8120
|
|
|
@@ -8131,7 +8148,7 @@ class StackScrollMouseWheelTool extends base_BaseTool {
|
|
|
8131
8148
|
}
|
|
8132
8149
|
StackScrollMouseWheelTool.toolName = 'StackScrollMouseWheel';
|
|
8133
8150
|
/* harmony default export */ const StackScrollToolMouseWheelTool = (StackScrollMouseWheelTool);
|
|
8134
|
-
|
|
8151
|
+
|
|
8135
8152
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/ZoomTool.js
|
|
8136
8153
|
|
|
8137
8154
|
|
|
@@ -8316,7 +8333,7 @@ class ZoomTool extends base_BaseTool {
|
|
|
8316
8333
|
}
|
|
8317
8334
|
ZoomTool.toolName = 'Zoom';
|
|
8318
8335
|
/* harmony default export */ const tools_ZoomTool = (ZoomTool);
|
|
8319
|
-
|
|
8336
|
+
|
|
8320
8337
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/VolumeRotateMouseWheelTool.js
|
|
8321
8338
|
|
|
8322
8339
|
|
|
@@ -8370,7 +8387,7 @@ class VolumeRotateMouseWheelTool extends base_BaseTool {
|
|
|
8370
8387
|
}
|
|
8371
8388
|
VolumeRotateMouseWheelTool.toolName = 'VolumeRotateMouseWheel';
|
|
8372
8389
|
/* harmony default export */ const tools_VolumeRotateMouseWheelTool = (VolumeRotateMouseWheelTool);
|
|
8373
|
-
|
|
8390
|
+
|
|
8374
8391
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/getWorldWidthAndHeightFromCorners.js
|
|
8375
8392
|
|
|
8376
8393
|
function getWorldWidthAndHeightFromCorners(viewPlaneNormal, viewUp, topLeftWorld, bottomRightWorld) {
|
|
@@ -8390,7 +8407,7 @@ function getWorldWidthAndHeightFromCorners(viewPlaneNormal, viewUp, topLeftWorld
|
|
|
8390
8407
|
const worldHeight = cosTheta * diagonalLength;
|
|
8391
8408
|
return { worldWidth, worldHeight };
|
|
8392
8409
|
}
|
|
8393
|
-
|
|
8410
|
+
|
|
8394
8411
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/getPointInLineOfSightWithCriteria.js
|
|
8395
8412
|
|
|
8396
8413
|
|
|
@@ -8430,7 +8447,7 @@ const _inBounds = function (point, bounds) {
|
|
|
8430
8447
|
point[2] > zMin &&
|
|
8431
8448
|
point[2] < zMax);
|
|
8432
8449
|
};
|
|
8433
|
-
|
|
8450
|
+
|
|
8434
8451
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/index.js
|
|
8435
8452
|
|
|
8436
8453
|
|
|
@@ -8443,7 +8460,7 @@ const _inBounds = function (point, bounds) {
|
|
|
8443
8460
|
getPointInLineOfSightWithCriteria: getPointInLineOfSightWithCriteria,
|
|
8444
8461
|
});
|
|
8445
8462
|
|
|
8446
|
-
|
|
8463
|
+
|
|
8447
8464
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewport/jumpToWorld.js
|
|
8448
8465
|
|
|
8449
8466
|
|
|
@@ -8477,12 +8494,13 @@ function _applyShift(viewport, delta) {
|
|
|
8477
8494
|
viewport.render();
|
|
8478
8495
|
}
|
|
8479
8496
|
}
|
|
8480
|
-
|
|
8497
|
+
|
|
8481
8498
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/MIPJumpToClickTool.js
|
|
8482
8499
|
|
|
8483
8500
|
|
|
8484
8501
|
|
|
8485
8502
|
|
|
8503
|
+
|
|
8486
8504
|
class MIPJumpToClickTool extends base_BaseTool {
|
|
8487
8505
|
constructor(toolProps = {}, defaultToolProps = {
|
|
8488
8506
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -8512,9 +8530,16 @@ class MIPJumpToClickTool extends base_BaseTool {
|
|
|
8512
8530
|
if (!brightestPoint || !brightestPoint.length) {
|
|
8513
8531
|
return;
|
|
8514
8532
|
}
|
|
8515
|
-
const { targetViewportIds } = this.configuration;
|
|
8516
|
-
|
|
8517
|
-
|
|
8533
|
+
const { targetViewportIds, toolGroupId } = this.configuration;
|
|
8534
|
+
const viewports = renderingEngine.getViewports().filter((vp) => {
|
|
8535
|
+
if (targetViewportIds?.indexOf(vp.id) >= 0)
|
|
8536
|
+
return true;
|
|
8537
|
+
const foundToolGroup = ToolGroupManager_getToolGroupForViewport(vp.id, renderingEngine.id);
|
|
8538
|
+
if (toolGroupId && toolGroupId === foundToolGroup?.id)
|
|
8539
|
+
return true;
|
|
8540
|
+
return false;
|
|
8541
|
+
});
|
|
8542
|
+
viewports.forEach((viewport) => {
|
|
8518
8543
|
if (viewport instanceof esm.VolumeViewport) {
|
|
8519
8544
|
jumpToWorld(viewport, brightestPoint);
|
|
8520
8545
|
}
|
|
@@ -8526,9 +8551,9 @@ class MIPJumpToClickTool extends base_BaseTool {
|
|
|
8526
8551
|
}
|
|
8527
8552
|
MIPJumpToClickTool.toolName = 'MIPJumpToClickTool';
|
|
8528
8553
|
/* harmony default export */ const tools_MIPJumpToClickTool = (MIPJumpToClickTool);
|
|
8529
|
-
|
|
8554
|
+
|
|
8530
8555
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.js
|
|
8531
|
-
var MatrixBuilder = __webpack_require__(
|
|
8556
|
+
var MatrixBuilder = __webpack_require__(45802);
|
|
8532
8557
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/filterViewportsWithFrameOfReferenceUID.js
|
|
8533
8558
|
function filterViewportsWithFrameOfReferenceUID(viewports, FrameOfReferenceUID) {
|
|
8534
8559
|
const numViewports = viewports.length;
|
|
@@ -8541,7 +8566,7 @@ function filterViewportsWithFrameOfReferenceUID(viewports, FrameOfReferenceUID)
|
|
|
8541
8566
|
}
|
|
8542
8567
|
return viewportsWithFrameOfReferenceUID;
|
|
8543
8568
|
}
|
|
8544
|
-
|
|
8569
|
+
|
|
8545
8570
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/filterViewportsWithToolEnabled.js
|
|
8546
8571
|
|
|
8547
8572
|
|
|
@@ -8571,7 +8596,7 @@ function _toolGroupHasActiveEnabledOrPassiveTool(toolGroup, toolName) {
|
|
|
8571
8596
|
const toolMode = tool.mode;
|
|
8572
8597
|
return toolMode === filterViewportsWithToolEnabled_Active || toolMode === filterViewportsWithToolEnabled_Passive || toolMode === filterViewportsWithToolEnabled_Enabled;
|
|
8573
8598
|
}
|
|
8574
|
-
|
|
8599
|
+
|
|
8575
8600
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/filterViewportsWithParallelNormals.js
|
|
8576
8601
|
|
|
8577
8602
|
function filterViewportsWithParallelNormals(viewports, camera, EPS = 0.999) {
|
|
@@ -8583,7 +8608,7 @@ function filterViewportsWithParallelNormals(viewports, camera, EPS = 0.999) {
|
|
|
8583
8608
|
});
|
|
8584
8609
|
}
|
|
8585
8610
|
/* harmony default export */ const viewportFilters_filterViewportsWithParallelNormals = (filterViewportsWithParallelNormals);
|
|
8586
|
-
|
|
8611
|
+
|
|
8587
8612
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/getViewportIdsWithToolToRender.js
|
|
8588
8613
|
|
|
8589
8614
|
|
|
@@ -8602,14 +8627,14 @@ function getViewportIdsWithToolToRender(element, toolName, requireParallelNormal
|
|
|
8602
8627
|
const viewportIds = viewports.map((vp) => vp.id);
|
|
8603
8628
|
return viewportIds;
|
|
8604
8629
|
}
|
|
8605
|
-
|
|
8630
|
+
|
|
8606
8631
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/index.js
|
|
8607
8632
|
|
|
8608
8633
|
|
|
8609
8634
|
|
|
8610
8635
|
|
|
8611
8636
|
|
|
8612
|
-
|
|
8637
|
+
|
|
8613
8638
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/liangBarksyClip.js
|
|
8614
8639
|
const liangBarksyClip_EPSILON = 1e-6;
|
|
8615
8640
|
const INSIDE = 1;
|
|
@@ -8674,7 +8699,7 @@ function liangBarksyClip_clip(a, b, box, da, db) {
|
|
|
8674
8699
|
}
|
|
8675
8700
|
return OUTSIDE;
|
|
8676
8701
|
}
|
|
8677
|
-
|
|
8702
|
+
|
|
8678
8703
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/distanceToPointSquared.js
|
|
8679
8704
|
function dist2(p1, p2) {
|
|
8680
8705
|
return (p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]);
|
|
@@ -8699,7 +8724,7 @@ function distanceToPointSquared(lineStart, lineEnd, point) {
|
|
|
8699
8724
|
];
|
|
8700
8725
|
return dist2(point, pt);
|
|
8701
8726
|
}
|
|
8702
|
-
|
|
8727
|
+
|
|
8703
8728
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/distanceToPoint.js
|
|
8704
8729
|
|
|
8705
8730
|
function distanceToPoint_distanceToPoint(lineStart, lineEnd, point) {
|
|
@@ -8708,7 +8733,7 @@ function distanceToPoint_distanceToPoint(lineStart, lineEnd, point) {
|
|
|
8708
8733
|
}
|
|
8709
8734
|
return Math.sqrt(distanceToPointSquared(lineStart, lineEnd, point));
|
|
8710
8735
|
}
|
|
8711
|
-
|
|
8736
|
+
|
|
8712
8737
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/intersectLine.js
|
|
8713
8738
|
function sign(x) {
|
|
8714
8739
|
return typeof x === 'number'
|
|
@@ -8751,13 +8776,13 @@ function intersectLine(line1Start, line1End, line2Start, line2End) {
|
|
|
8751
8776
|
const intersectionPoint = [x, y];
|
|
8752
8777
|
return intersectionPoint;
|
|
8753
8778
|
}
|
|
8754
|
-
|
|
8779
|
+
|
|
8755
8780
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/index.js
|
|
8756
8781
|
|
|
8757
8782
|
|
|
8758
8783
|
|
|
8759
8784
|
|
|
8760
|
-
|
|
8785
|
+
|
|
8761
8786
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/CrosshairsTool.js
|
|
8762
8787
|
|
|
8763
8788
|
|
|
@@ -10163,7 +10188,7 @@ class CrosshairsTool extends base_AnnotationTool {
|
|
|
10163
10188
|
}
|
|
10164
10189
|
CrosshairsTool.toolName = 'Crosshairs';
|
|
10165
10190
|
/* harmony default export */ const tools_CrosshairsTool = (CrosshairsTool);
|
|
10166
|
-
|
|
10191
|
+
|
|
10167
10192
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/MagnifyTool.js
|
|
10168
10193
|
|
|
10169
10194
|
|
|
@@ -10339,7 +10364,7 @@ class MagnifyTool extends base_BaseTool {
|
|
|
10339
10364
|
}
|
|
10340
10365
|
MagnifyTool.toolName = 'Magnify';
|
|
10341
10366
|
/* harmony default export */ const tools_MagnifyTool = (MagnifyTool);
|
|
10342
|
-
|
|
10367
|
+
|
|
10343
10368
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/ReferenceLinesTool.js
|
|
10344
10369
|
|
|
10345
10370
|
|
|
@@ -10487,7 +10512,37 @@ class ReferenceLines extends base_AnnotationDisplayTool {
|
|
|
10487
10512
|
}
|
|
10488
10513
|
ReferenceLines.toolName = 'ReferenceLines';
|
|
10489
10514
|
/* harmony default export */ const ReferenceLinesTool = (ReferenceLines);
|
|
10490
|
-
|
|
10515
|
+
|
|
10516
|
+
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getCalibratedUnits.js
|
|
10517
|
+
|
|
10518
|
+
const { CalibrationTypes } = esm.Enums;
|
|
10519
|
+
const PIXEL_UNITS = 'px';
|
|
10520
|
+
const getCalibratedLengthUnits = (handles, image) => {
|
|
10521
|
+
const { calibration, hasPixelSpacing } = image;
|
|
10522
|
+
const units = hasPixelSpacing ? 'mm' : PIXEL_UNITS;
|
|
10523
|
+
if (!calibration || !calibration.type)
|
|
10524
|
+
return units;
|
|
10525
|
+
if (calibration.type === CalibrationTypes.UNCALIBRATED)
|
|
10526
|
+
return PIXEL_UNITS;
|
|
10527
|
+
if (calibration.SequenceOfUltrasoundRegions)
|
|
10528
|
+
return 'US Region';
|
|
10529
|
+
return `${units} ${calibration.type}`;
|
|
10530
|
+
};
|
|
10531
|
+
const SQUARE = '\xb2';
|
|
10532
|
+
const getCalibratedAreaUnits = (handles, image) => {
|
|
10533
|
+
const { calibration, hasPixelSpacing } = image;
|
|
10534
|
+
const units = (hasPixelSpacing ? 'mm' : PIXEL_UNITS) + SQUARE;
|
|
10535
|
+
if (!calibration || !calibration.type)
|
|
10536
|
+
return units;
|
|
10537
|
+
if (calibration.SequenceOfUltrasoundRegions)
|
|
10538
|
+
return 'US Region';
|
|
10539
|
+
return `${units} ${calibration.type}`;
|
|
10540
|
+
};
|
|
10541
|
+
const getCalibratedScale = (image) => image.calibration?.scale || 1;
|
|
10542
|
+
const getCalibratedAspect = (image) => image.calibration?.aspect || 1;
|
|
10543
|
+
/* harmony default export */ const getCalibratedUnits = ((/* unused pure expression or super */ null && (getCalibratedLengthUnits)));
|
|
10544
|
+
|
|
10545
|
+
|
|
10491
10546
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/drawing/getTextBoxCoordsCanvas.js
|
|
10492
10547
|
function getTextBoxCoordsCanvas(annotationCanvasPoints) {
|
|
10493
10548
|
const corners = _determineCorners(annotationCanvasPoints);
|
|
@@ -10513,11 +10568,11 @@ function _determineCorners(canvasPoints) {
|
|
|
10513
10568
|
return a[1] < b[1] ? -1 : 1;
|
|
10514
10569
|
}
|
|
10515
10570
|
}
|
|
10516
|
-
|
|
10571
|
+
|
|
10517
10572
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/drawing/index.js
|
|
10518
10573
|
|
|
10519
10574
|
|
|
10520
|
-
|
|
10575
|
+
|
|
10521
10576
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/BidirectionalTool.js
|
|
10522
10577
|
|
|
10523
10578
|
|
|
@@ -10534,6 +10589,8 @@ function _determineCorners(canvasPoints) {
|
|
|
10534
10589
|
|
|
10535
10590
|
|
|
10536
10591
|
|
|
10592
|
+
|
|
10593
|
+
|
|
10537
10594
|
const { transformWorldToIndex: BidirectionalTool_transformWorldToIndex } = esm.utilities;
|
|
10538
10595
|
class BidirectionalTool extends base_AnnotationTool {
|
|
10539
10596
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -11108,8 +11165,8 @@ class BidirectionalTool extends base_AnnotationTool {
|
|
|
11108
11165
|
return;
|
|
11109
11166
|
}
|
|
11110
11167
|
const textLines = [
|
|
11111
|
-
`L: ${length
|
|
11112
|
-
`W: ${width
|
|
11168
|
+
`L: ${utilities_roundNumber(length)} ${unit}`,
|
|
11169
|
+
`W: ${utilities_roundNumber(width)} ${unit}`,
|
|
11113
11170
|
];
|
|
11114
11171
|
return textLines;
|
|
11115
11172
|
};
|
|
@@ -11128,9 +11185,10 @@ class BidirectionalTool extends base_AnnotationTool {
|
|
|
11128
11185
|
if (!image) {
|
|
11129
11186
|
continue;
|
|
11130
11187
|
}
|
|
11131
|
-
const { imageData, dimensions
|
|
11132
|
-
const
|
|
11133
|
-
const
|
|
11188
|
+
const { imageData, dimensions } = image;
|
|
11189
|
+
const scale = getCalibratedScale(image);
|
|
11190
|
+
const dist1 = this._calculateLength(worldPos1, worldPos2) / scale;
|
|
11191
|
+
const dist2 = this._calculateLength(worldPos3, worldPos4) / scale;
|
|
11134
11192
|
const length = dist1 > dist2 ? dist1 : dist2;
|
|
11135
11193
|
const width = dist1 > dist2 ? dist2 : dist1;
|
|
11136
11194
|
const index1 = BidirectionalTool_transformWorldToIndex(imageData, worldPos1);
|
|
@@ -11143,7 +11201,7 @@ class BidirectionalTool extends base_AnnotationTool {
|
|
|
11143
11201
|
cachedStats[targetId] = {
|
|
11144
11202
|
length,
|
|
11145
11203
|
width,
|
|
11146
|
-
unit:
|
|
11204
|
+
unit: getCalibratedLengthUnits(null, image),
|
|
11147
11205
|
};
|
|
11148
11206
|
}
|
|
11149
11207
|
annotation.invalidated = false;
|
|
@@ -11237,7 +11295,7 @@ class BidirectionalTool extends base_AnnotationTool {
|
|
|
11237
11295
|
}
|
|
11238
11296
|
BidirectionalTool.toolName = 'Bidirectional';
|
|
11239
11297
|
/* harmony default export */ const annotation_BidirectionalTool = (BidirectionalTool);
|
|
11240
|
-
|
|
11298
|
+
|
|
11241
11299
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/LengthTool.js
|
|
11242
11300
|
|
|
11243
11301
|
|
|
@@ -11253,6 +11311,8 @@ BidirectionalTool.toolName = 'Bidirectional';
|
|
|
11253
11311
|
|
|
11254
11312
|
|
|
11255
11313
|
|
|
11314
|
+
|
|
11315
|
+
|
|
11256
11316
|
const { transformWorldToIndex: LengthTool_transformWorldToIndex } = esm.utilities;
|
|
11257
11317
|
class LengthTool extends base_AnnotationTool {
|
|
11258
11318
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -11611,7 +11671,7 @@ class LengthTool extends base_AnnotationTool {
|
|
|
11611
11671
|
if (length === undefined || length === null || isNaN(length)) {
|
|
11612
11672
|
return;
|
|
11613
11673
|
}
|
|
11614
|
-
const textLines = [`${length
|
|
11674
|
+
const textLines = [`${utilities_roundNumber(length)} ${unit}`];
|
|
11615
11675
|
return textLines;
|
|
11616
11676
|
}
|
|
11617
11677
|
_calculateLength(pos1, pos2) {
|
|
@@ -11633,8 +11693,9 @@ class LengthTool extends base_AnnotationTool {
|
|
|
11633
11693
|
if (!image) {
|
|
11634
11694
|
continue;
|
|
11635
11695
|
}
|
|
11636
|
-
const { imageData, dimensions
|
|
11637
|
-
const
|
|
11696
|
+
const { imageData, dimensions } = image;
|
|
11697
|
+
const scale = getCalibratedScale(image);
|
|
11698
|
+
const length = this._calculateLength(worldPos1, worldPos2) / scale;
|
|
11638
11699
|
const index1 = LengthTool_transformWorldToIndex(imageData, worldPos1);
|
|
11639
11700
|
const index2 = LengthTool_transformWorldToIndex(imageData, worldPos2);
|
|
11640
11701
|
this._isInsideVolume(index1, index2, dimensions)
|
|
@@ -11642,7 +11703,7 @@ class LengthTool extends base_AnnotationTool {
|
|
|
11642
11703
|
: (this.isHandleOutsideImage = true);
|
|
11643
11704
|
cachedStats[targetId] = {
|
|
11644
11705
|
length,
|
|
11645
|
-
unit:
|
|
11706
|
+
unit: getCalibratedLengthUnits(null, image),
|
|
11646
11707
|
};
|
|
11647
11708
|
}
|
|
11648
11709
|
annotation.invalidated = false;
|
|
@@ -11662,23 +11723,32 @@ class LengthTool extends base_AnnotationTool {
|
|
|
11662
11723
|
}
|
|
11663
11724
|
LengthTool.toolName = 'Length';
|
|
11664
11725
|
/* harmony default export */ const annotation_LengthTool = (LengthTool);
|
|
11665
|
-
|
|
11726
|
+
|
|
11666
11727
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/getModalityUnit.js
|
|
11667
|
-
|
|
11728
|
+
|
|
11729
|
+
function getModalityUnit(modality, imageId, options) {
|
|
11668
11730
|
if (modality === 'CT') {
|
|
11669
11731
|
return 'HU';
|
|
11670
11732
|
}
|
|
11671
|
-
else if (modality === 'PT'
|
|
11672
|
-
|
|
11673
|
-
isSuvScaled === true) {
|
|
11674
|
-
return 'SUV';
|
|
11733
|
+
else if (modality === 'PT') {
|
|
11734
|
+
return _handlePTModality(imageId, options);
|
|
11675
11735
|
}
|
|
11676
11736
|
else {
|
|
11677
11737
|
return '';
|
|
11678
11738
|
}
|
|
11679
11739
|
}
|
|
11740
|
+
function _handlePTModality(imageId, options) {
|
|
11741
|
+
if (!options.isPreScaled) {
|
|
11742
|
+
return 'raw';
|
|
11743
|
+
}
|
|
11744
|
+
if (options.isSuvScaled) {
|
|
11745
|
+
return 'SUV';
|
|
11746
|
+
}
|
|
11747
|
+
const petSeriesModule = esm.metaData.get('petSeriesModule', imageId);
|
|
11748
|
+
return petSeriesModule?.units || 'unitless';
|
|
11749
|
+
}
|
|
11750
|
+
|
|
11680
11751
|
|
|
11681
|
-
//# sourceMappingURL=getModalityUnit.js.map
|
|
11682
11752
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewport/isViewportPreScaled.js
|
|
11683
11753
|
|
|
11684
11754
|
function isViewportPreScaled(viewport, targetId) {
|
|
@@ -11696,7 +11766,7 @@ function isViewportPreScaled(viewport, targetId) {
|
|
|
11696
11766
|
}
|
|
11697
11767
|
}
|
|
11698
11768
|
|
|
11699
|
-
|
|
11769
|
+
|
|
11700
11770
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/ProbeTool.js
|
|
11701
11771
|
|
|
11702
11772
|
|
|
@@ -11869,16 +11939,20 @@ class ProbeTool extends base_AnnotationTool {
|
|
|
11869
11939
|
const canvasCoordinates = viewport.worldToCanvas(point);
|
|
11870
11940
|
styleSpecifier.annotationUID = annotationUID;
|
|
11871
11941
|
const color = this.getStyle('color', styleSpecifier, annotation);
|
|
11942
|
+
const modalityUnitOptions = {
|
|
11943
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
11944
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
11945
|
+
};
|
|
11872
11946
|
if (!data.cachedStats[targetId]) {
|
|
11873
11947
|
data.cachedStats[targetId] = {
|
|
11874
11948
|
Modality: null,
|
|
11875
11949
|
index: null,
|
|
11876
11950
|
value: null,
|
|
11877
11951
|
};
|
|
11878
|
-
this._calculateCachedStats(annotation, renderingEngine, enabledElement);
|
|
11952
|
+
this._calculateCachedStats(annotation, renderingEngine, enabledElement, modalityUnitOptions);
|
|
11879
11953
|
}
|
|
11880
11954
|
else if (annotation.invalidated) {
|
|
11881
|
-
this._calculateCachedStats(annotation, renderingEngine, enabledElement);
|
|
11955
|
+
this._calculateCachedStats(annotation, renderingEngine, enabledElement, modalityUnitOptions);
|
|
11882
11956
|
if (viewport instanceof esm.VolumeViewport) {
|
|
11883
11957
|
const { referencedImageId } = annotation.metadata;
|
|
11884
11958
|
for (const targetId in data.cachedStats) {
|
|
@@ -11904,9 +11978,7 @@ class ProbeTool extends base_AnnotationTool {
|
|
|
11904
11978
|
const handleGroupUID = '0';
|
|
11905
11979
|
drawingSvg_drawHandles(svgDrawingHelper, annotationUID, handleGroupUID, [canvasCoordinates], { color });
|
|
11906
11980
|
renderStatus = true;
|
|
11907
|
-
const
|
|
11908
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
11909
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
11981
|
+
const textLines = this._getTextLines(data, targetId);
|
|
11910
11982
|
if (textLines) {
|
|
11911
11983
|
const textCanvasCoordinates = [
|
|
11912
11984
|
canvasCoordinates[0] + 6,
|
|
@@ -11950,50 +12022,18 @@ class ProbeTool extends base_AnnotationTool {
|
|
|
11950
12022
|
utilities_triggerAnnotationRenderForViewportIds(renderingEngine, viewportIdsToRender);
|
|
11951
12023
|
evt.preventDefault();
|
|
11952
12024
|
}
|
|
11953
|
-
_getTextLines(data, targetId
|
|
12025
|
+
_getTextLines(data, targetId) {
|
|
11954
12026
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
11955
|
-
const { index,
|
|
11956
|
-
if (value === undefined
|
|
12027
|
+
const { index, value, modalityUnit } = cachedVolumeStats;
|
|
12028
|
+
if (value === undefined) {
|
|
11957
12029
|
return;
|
|
11958
12030
|
}
|
|
11959
12031
|
const textLines = [];
|
|
11960
|
-
const unit = getModalityUnit(Modality, isPreScaled, isSuvScaled);
|
|
11961
12032
|
textLines.push(`(${index[0]}, ${index[1]}, ${index[2]})`);
|
|
11962
|
-
|
|
11963
|
-
textLines.push(`${SUVBw.toFixed(2)} SUV bw`);
|
|
11964
|
-
if (SUVLbm) {
|
|
11965
|
-
textLines.push(`${SUVLbm.toFixed(2)} SUV lbm`);
|
|
11966
|
-
}
|
|
11967
|
-
if (SUVBsa) {
|
|
11968
|
-
textLines.push(`${SUVBsa.toFixed(2)} SUV bsa`);
|
|
11969
|
-
}
|
|
11970
|
-
}
|
|
11971
|
-
else {
|
|
11972
|
-
textLines.push(`${value.toFixed(2)} ${unit}`);
|
|
11973
|
-
}
|
|
12033
|
+
textLines.push(`${value.toFixed(2)} ${modalityUnit}`);
|
|
11974
12034
|
return textLines;
|
|
11975
12035
|
}
|
|
11976
|
-
|
|
11977
|
-
const values = {};
|
|
11978
|
-
values['value'] = value;
|
|
11979
|
-
if (modality === 'PT' &&
|
|
11980
|
-
imageVolume.scaling?.PET &&
|
|
11981
|
-
(imageVolume.scaling.PET.suvbwToSuvbsa ||
|
|
11982
|
-
imageVolume.scaling.PET.suvbwToSuvlbm)) {
|
|
11983
|
-
const { suvbwToSuvlbm, suvbwToSuvbsa } = imageVolume.scaling.PET;
|
|
11984
|
-
values['SUVBw'] = value;
|
|
11985
|
-
if (suvbwToSuvlbm) {
|
|
11986
|
-
const SUVLbm = value * suvbwToSuvlbm;
|
|
11987
|
-
values['SUVLbm'] = SUVLbm;
|
|
11988
|
-
}
|
|
11989
|
-
if (suvbwToSuvbsa) {
|
|
11990
|
-
const SUVBsa = value * suvbwToSuvbsa;
|
|
11991
|
-
values['SUVBsa'] = SUVBsa;
|
|
11992
|
-
}
|
|
11993
|
-
}
|
|
11994
|
-
return values;
|
|
11995
|
-
}
|
|
11996
|
-
_calculateCachedStats(annotation, renderingEngine, enabledElement) {
|
|
12036
|
+
_calculateCachedStats(annotation, renderingEngine, enabledElement, modalityUnitOptions) {
|
|
11997
12037
|
const data = annotation.data;
|
|
11998
12038
|
const { viewportId, renderingEngineId } = enabledElement;
|
|
11999
12039
|
const worldPos = data.handles.points[0];
|
|
@@ -12024,11 +12064,12 @@ class ProbeTool extends base_AnnotationTool {
|
|
|
12024
12064
|
const viewport = viewports[0];
|
|
12025
12065
|
index[2] = viewport.getCurrentImageIdIndex();
|
|
12026
12066
|
}
|
|
12027
|
-
const
|
|
12067
|
+
const modalityUnit = getModalityUnit(modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
12028
12068
|
cachedStats[targetId] = {
|
|
12029
12069
|
index,
|
|
12030
|
-
|
|
12070
|
+
value,
|
|
12031
12071
|
Modality: modality,
|
|
12072
|
+
modalityUnit,
|
|
12032
12073
|
};
|
|
12033
12074
|
}
|
|
12034
12075
|
else {
|
|
@@ -12052,7 +12093,7 @@ class ProbeTool extends base_AnnotationTool {
|
|
|
12052
12093
|
}
|
|
12053
12094
|
ProbeTool.toolName = 'Probe';
|
|
12054
12095
|
/* harmony default export */ const annotation_ProbeTool = (ProbeTool);
|
|
12055
|
-
|
|
12096
|
+
|
|
12056
12097
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/DragProbeTool.js
|
|
12057
12098
|
|
|
12058
12099
|
|
|
@@ -12136,16 +12177,20 @@ class DragProbeTool extends annotation_ProbeTool {
|
|
|
12136
12177
|
const canvasCoordinates = viewport.worldToCanvas(point);
|
|
12137
12178
|
styleSpecifier.annotationUID = annotationUID;
|
|
12138
12179
|
const color = this.getStyle('color', styleSpecifier, annotation);
|
|
12180
|
+
const modalityUnitOptions = {
|
|
12181
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
12182
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
12183
|
+
};
|
|
12139
12184
|
if (!data.cachedStats[targetId]) {
|
|
12140
12185
|
data.cachedStats[targetId] = {
|
|
12141
12186
|
Modality: null,
|
|
12142
12187
|
index: null,
|
|
12143
12188
|
value: null,
|
|
12144
12189
|
};
|
|
12145
|
-
this._calculateCachedStats(annotation, renderingEngine, enabledElement);
|
|
12190
|
+
this._calculateCachedStats(annotation, renderingEngine, enabledElement, modalityUnitOptions);
|
|
12146
12191
|
}
|
|
12147
12192
|
else if (annotation.invalidated) {
|
|
12148
|
-
this._calculateCachedStats(annotation, renderingEngine, enabledElement);
|
|
12193
|
+
this._calculateCachedStats(annotation, renderingEngine, enabledElement, modalityUnitOptions);
|
|
12149
12194
|
}
|
|
12150
12195
|
if (!viewport.getRenderingEngine()) {
|
|
12151
12196
|
console.warn('Rendering Engine has been destroyed');
|
|
@@ -12154,9 +12199,7 @@ class DragProbeTool extends annotation_ProbeTool {
|
|
|
12154
12199
|
const handleGroupUID = '0';
|
|
12155
12200
|
drawingSvg_drawHandles(svgDrawingHelper, annotationUID, handleGroupUID, [canvasCoordinates], { color });
|
|
12156
12201
|
renderStatus = true;
|
|
12157
|
-
const
|
|
12158
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
12159
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
12202
|
+
const textLines = this._getTextLines(data, targetId);
|
|
12160
12203
|
if (textLines) {
|
|
12161
12204
|
const textCanvasCoordinates = [
|
|
12162
12205
|
canvasCoordinates[0] + 6,
|
|
@@ -12171,7 +12214,7 @@ class DragProbeTool extends annotation_ProbeTool {
|
|
|
12171
12214
|
}
|
|
12172
12215
|
DragProbeTool.toolName = 'DragProbe';
|
|
12173
12216
|
/* harmony default export */ const annotation_DragProbeTool = (DragProbeTool);
|
|
12174
|
-
|
|
12217
|
+
|
|
12175
12218
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/index.js
|
|
12176
12219
|
|
|
12177
12220
|
|
|
@@ -12179,7 +12222,7 @@ DragProbeTool.toolName = 'DragProbe';
|
|
|
12179
12222
|
|
|
12180
12223
|
|
|
12181
12224
|
|
|
12182
|
-
|
|
12225
|
+
|
|
12183
12226
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/rectangle/distanceToPoint.js
|
|
12184
12227
|
|
|
12185
12228
|
function rectToLineSegments(left, top, width, height) {
|
|
@@ -12215,11 +12258,11 @@ function rectangle_distanceToPoint_distanceToPoint(rect, point) {
|
|
|
12215
12258
|
});
|
|
12216
12259
|
return minDistance;
|
|
12217
12260
|
}
|
|
12218
|
-
|
|
12261
|
+
|
|
12219
12262
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/rectangle/index.js
|
|
12220
12263
|
|
|
12221
12264
|
|
|
12222
|
-
|
|
12265
|
+
|
|
12223
12266
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/RectangleROITool.js
|
|
12224
12267
|
|
|
12225
12268
|
|
|
@@ -12238,6 +12281,8 @@ function rectangle_distanceToPoint_distanceToPoint(rect, point) {
|
|
|
12238
12281
|
|
|
12239
12282
|
|
|
12240
12283
|
|
|
12284
|
+
|
|
12285
|
+
|
|
12241
12286
|
const { transformWorldToIndex: RectangleROITool_transformWorldToIndex } = esm.utilities;
|
|
12242
12287
|
class RectangleROITool extends base_AnnotationTool {
|
|
12243
12288
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -12571,6 +12616,10 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12571
12616
|
const lineDash = this.getStyle('lineDash', styleSpecifier, annotation);
|
|
12572
12617
|
const color = this.getStyle('color', styleSpecifier, annotation);
|
|
12573
12618
|
const { viewPlaneNormal, viewUp } = viewport.getCamera();
|
|
12619
|
+
const modalityUnitOptions = {
|
|
12620
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
12621
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
12622
|
+
};
|
|
12574
12623
|
if (!data.cachedStats[targetId] ||
|
|
12575
12624
|
data.cachedStats[targetId].areaUnit === undefined) {
|
|
12576
12625
|
data.cachedStats[targetId] = {
|
|
@@ -12581,10 +12630,10 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12581
12630
|
stdDev: null,
|
|
12582
12631
|
areaUnit: null,
|
|
12583
12632
|
};
|
|
12584
|
-
this._calculateCachedStats(annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement);
|
|
12633
|
+
this._calculateCachedStats(annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement, modalityUnitOptions);
|
|
12585
12634
|
}
|
|
12586
12635
|
else if (annotation.invalidated) {
|
|
12587
|
-
this._throttledCalculateCachedStats(annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement);
|
|
12636
|
+
this._throttledCalculateCachedStats(annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement, modalityUnitOptions);
|
|
12588
12637
|
if (viewport instanceof esm.VolumeViewport) {
|
|
12589
12638
|
const { referencedImageId } = annotation.metadata;
|
|
12590
12639
|
for (const targetId in data.cachedStats) {
|
|
@@ -12630,9 +12679,7 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12630
12679
|
lineWidth,
|
|
12631
12680
|
}, dataId);
|
|
12632
12681
|
renderStatus = true;
|
|
12633
|
-
const
|
|
12634
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
12635
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
12682
|
+
const textLines = this._getTextLines(data, targetId);
|
|
12636
12683
|
if (!textLines || textLines.length === 0) {
|
|
12637
12684
|
continue;
|
|
12638
12685
|
}
|
|
@@ -12663,21 +12710,20 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12663
12710
|
height: Math.abs(point0[1] - point1[1]),
|
|
12664
12711
|
};
|
|
12665
12712
|
};
|
|
12666
|
-
this._getTextLines = (data, targetId
|
|
12713
|
+
this._getTextLines = (data, targetId) => {
|
|
12667
12714
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
12668
|
-
const { area, mean, max, stdDev,
|
|
12715
|
+
const { area, mean, max, stdDev, areaUnit, modalityUnit } = cachedVolumeStats;
|
|
12669
12716
|
if (mean === undefined) {
|
|
12670
12717
|
return;
|
|
12671
12718
|
}
|
|
12672
12719
|
const textLines = [];
|
|
12673
|
-
|
|
12674
|
-
textLines.push(`
|
|
12675
|
-
textLines.push(`
|
|
12676
|
-
textLines.push(`
|
|
12677
|
-
textLines.push(`Std Dev: ${stdDev.toFixed(2)} ${unit}`);
|
|
12720
|
+
textLines.push(`Area: ${utilities_roundNumber(area)} ${areaUnit}`);
|
|
12721
|
+
textLines.push(`Mean: ${utilities_roundNumber(mean)} ${modalityUnit}`);
|
|
12722
|
+
textLines.push(`Max: ${utilities_roundNumber(max)} ${modalityUnit}`);
|
|
12723
|
+
textLines.push(`Std Dev: ${utilities_roundNumber(stdDev)} ${modalityUnit}`);
|
|
12678
12724
|
return textLines;
|
|
12679
12725
|
};
|
|
12680
|
-
this._calculateCachedStats = (annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement) => {
|
|
12726
|
+
this._calculateCachedStats = (annotation, viewPlaneNormal, viewUp, renderingEngine, enabledElement, modalityUnitOptions) => {
|
|
12681
12727
|
const { data } = annotation;
|
|
12682
12728
|
const { viewportId, renderingEngineId } = enabledElement;
|
|
12683
12729
|
const worldPos1 = data.handles.points[0];
|
|
@@ -12690,7 +12736,7 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12690
12736
|
if (!image) {
|
|
12691
12737
|
continue;
|
|
12692
12738
|
}
|
|
12693
|
-
const { dimensions, imageData, metadata
|
|
12739
|
+
const { dimensions, imageData, metadata } = image;
|
|
12694
12740
|
const scalarData = 'getScalarData' in image ? image.getScalarData() : image.scalarData;
|
|
12695
12741
|
const worldPos1Index = RectangleROITool_transformWorldToIndex(imageData, worldPos1);
|
|
12696
12742
|
worldPos1Index[0] = Math.floor(worldPos1Index[0]);
|
|
@@ -12709,7 +12755,8 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12709
12755
|
const kMin = Math.min(worldPos1Index[2], worldPos2Index[2]);
|
|
12710
12756
|
const kMax = Math.max(worldPos1Index[2], worldPos2Index[2]);
|
|
12711
12757
|
const { worldWidth, worldHeight } = getWorldWidthAndHeightFromCorners(viewPlaneNormal, viewUp, worldPos1, worldPos2);
|
|
12712
|
-
const
|
|
12758
|
+
const scale = getCalibratedScale(image);
|
|
12759
|
+
const area = Math.abs(worldWidth * worldHeight) / (scale * scale);
|
|
12713
12760
|
let count = 0;
|
|
12714
12761
|
let mean = 0;
|
|
12715
12762
|
let stdDev = 0;
|
|
@@ -12740,13 +12787,15 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12740
12787
|
}
|
|
12741
12788
|
stdDev /= count;
|
|
12742
12789
|
stdDev = Math.sqrt(stdDev);
|
|
12790
|
+
const modalityUnit = getModalityUnit(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
12743
12791
|
cachedStats[targetId] = {
|
|
12744
12792
|
Modality: metadata.Modality,
|
|
12745
12793
|
area,
|
|
12746
12794
|
mean,
|
|
12747
12795
|
stdDev,
|
|
12748
12796
|
max,
|
|
12749
|
-
areaUnit:
|
|
12797
|
+
areaUnit: getCalibratedAreaUnits(null, image),
|
|
12798
|
+
modalityUnit,
|
|
12750
12799
|
};
|
|
12751
12800
|
}
|
|
12752
12801
|
else {
|
|
@@ -12775,7 +12824,7 @@ class RectangleROITool extends base_AnnotationTool {
|
|
|
12775
12824
|
}
|
|
12776
12825
|
RectangleROITool.toolName = 'RectangleROI';
|
|
12777
12826
|
/* harmony default export */ const annotation_RectangleROITool = (RectangleROITool);
|
|
12778
|
-
|
|
12827
|
+
|
|
12779
12828
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/getWorldWidthAndHeightFromTwoPoints.js
|
|
12780
12829
|
|
|
12781
12830
|
function getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1, worldPos2) {
|
|
@@ -12795,7 +12844,7 @@ function getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1,
|
|
|
12795
12844
|
const worldHeight = cosTheta * diagonalLength;
|
|
12796
12845
|
return { worldWidth, worldHeight };
|
|
12797
12846
|
}
|
|
12798
|
-
|
|
12847
|
+
|
|
12799
12848
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/EllipticalROITool.js
|
|
12800
12849
|
|
|
12801
12850
|
|
|
@@ -12815,6 +12864,8 @@ function getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1,
|
|
|
12815
12864
|
|
|
12816
12865
|
|
|
12817
12866
|
|
|
12867
|
+
|
|
12868
|
+
|
|
12818
12869
|
const { transformWorldToIndex: EllipticalROITool_transformWorldToIndex } = esm.utilities;
|
|
12819
12870
|
class EllipticalROITool extends base_AnnotationTool {
|
|
12820
12871
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -13237,6 +13288,10 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13237
13288
|
canvasCorners = (getCanvasEllipseCorners(canvasCoordinates));
|
|
13238
13289
|
}
|
|
13239
13290
|
const { centerPointRadius } = this.configuration;
|
|
13291
|
+
const modalityUnitOptions = {
|
|
13292
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
13293
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
13294
|
+
};
|
|
13240
13295
|
if (!data.cachedStats[targetId] ||
|
|
13241
13296
|
data.cachedStats[targetId].areaUnit === undefined) {
|
|
13242
13297
|
data.cachedStats[targetId] = {
|
|
@@ -13247,10 +13302,10 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13247
13302
|
stdDev: null,
|
|
13248
13303
|
areaUnit: null,
|
|
13249
13304
|
};
|
|
13250
|
-
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
13305
|
+
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
13251
13306
|
}
|
|
13252
13307
|
else if (annotation.invalidated) {
|
|
13253
|
-
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
13308
|
+
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
13254
13309
|
if (viewport instanceof esm.VolumeViewport) {
|
|
13255
13310
|
const { referencedImageId } = annotation.metadata;
|
|
13256
13311
|
for (const targetId in data.cachedStats) {
|
|
@@ -13307,9 +13362,7 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13307
13362
|
}
|
|
13308
13363
|
}
|
|
13309
13364
|
renderStatus = true;
|
|
13310
|
-
const
|
|
13311
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
13312
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
13365
|
+
const textLines = this._getTextLines(data, targetId);
|
|
13313
13366
|
if (!textLines || textLines.length === 0) {
|
|
13314
13367
|
continue;
|
|
13315
13368
|
}
|
|
@@ -13332,29 +13385,28 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13332
13385
|
}
|
|
13333
13386
|
return renderStatus;
|
|
13334
13387
|
};
|
|
13335
|
-
this._getTextLines = (data, targetId
|
|
13388
|
+
this._getTextLines = (data, targetId) => {
|
|
13336
13389
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
13337
|
-
const { area, mean, stdDev, max, isEmptyArea,
|
|
13390
|
+
const { area, mean, stdDev, max, isEmptyArea, areaUnit, modalityUnit } = cachedVolumeStats;
|
|
13338
13391
|
const textLines = [];
|
|
13339
|
-
const unit = getModalityUnit(Modality, isPreScaled, isSuvScaled);
|
|
13340
13392
|
if (area) {
|
|
13341
13393
|
const areaLine = isEmptyArea
|
|
13342
13394
|
? `Area: Oblique not supported`
|
|
13343
|
-
: `Area: ${area
|
|
13395
|
+
: `Area: ${utilities_roundNumber(area)} ${areaUnit}`;
|
|
13344
13396
|
textLines.push(areaLine);
|
|
13345
13397
|
}
|
|
13346
13398
|
if (mean) {
|
|
13347
|
-
textLines.push(`Mean: ${mean
|
|
13399
|
+
textLines.push(`Mean: ${utilities_roundNumber(mean)} ${modalityUnit}`);
|
|
13348
13400
|
}
|
|
13349
13401
|
if (max) {
|
|
13350
|
-
textLines.push(`Max: ${max
|
|
13402
|
+
textLines.push(`Max: ${utilities_roundNumber(max)} ${modalityUnit}`);
|
|
13351
13403
|
}
|
|
13352
13404
|
if (stdDev) {
|
|
13353
|
-
textLines.push(`Std Dev: ${stdDev
|
|
13405
|
+
textLines.push(`Std Dev: ${utilities_roundNumber(stdDev)} ${modalityUnit}`);
|
|
13354
13406
|
}
|
|
13355
13407
|
return textLines;
|
|
13356
13408
|
};
|
|
13357
|
-
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement) => {
|
|
13409
|
+
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions) => {
|
|
13358
13410
|
const data = annotation.data;
|
|
13359
13411
|
const { viewportId, renderingEngineId } = enabledElement;
|
|
13360
13412
|
const { points } = data.handles;
|
|
@@ -13407,7 +13459,10 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13407
13459
|
};
|
|
13408
13460
|
const { worldWidth, worldHeight } = getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1, worldPos2);
|
|
13409
13461
|
const isEmptyArea = worldWidth === 0 && worldHeight === 0;
|
|
13410
|
-
const
|
|
13462
|
+
const scale = getCalibratedScale(image);
|
|
13463
|
+
const area = Math.abs(Math.PI * (worldWidth / 2) * (worldHeight / 2)) /
|
|
13464
|
+
scale /
|
|
13465
|
+
scale;
|
|
13411
13466
|
let count = 0;
|
|
13412
13467
|
let mean = 0;
|
|
13413
13468
|
let stdDev = 0;
|
|
@@ -13428,6 +13483,7 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13428
13483
|
pointInShapeCallback(imageData, (pointLPS, pointIJK) => pointInEllipse(ellipseObj, pointLPS), stdCalculator, boundsIJK);
|
|
13429
13484
|
stdDev /= count;
|
|
13430
13485
|
stdDev = Math.sqrt(stdDev);
|
|
13486
|
+
const modalityUnit = getModalityUnit(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
13431
13487
|
cachedStats[targetId] = {
|
|
13432
13488
|
Modality: metadata.Modality,
|
|
13433
13489
|
area,
|
|
@@ -13435,7 +13491,8 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13435
13491
|
max,
|
|
13436
13492
|
stdDev,
|
|
13437
13493
|
isEmptyArea,
|
|
13438
|
-
areaUnit:
|
|
13494
|
+
areaUnit: getCalibratedAreaUnits(null, image),
|
|
13495
|
+
modalityUnit,
|
|
13439
13496
|
};
|
|
13440
13497
|
}
|
|
13441
13498
|
else {
|
|
@@ -13486,7 +13543,7 @@ class EllipticalROITool extends base_AnnotationTool {
|
|
|
13486
13543
|
}
|
|
13487
13544
|
EllipticalROITool.toolName = 'EllipticalROI';
|
|
13488
13545
|
/* harmony default export */ const annotation_EllipticalROITool = (EllipticalROITool);
|
|
13489
|
-
|
|
13546
|
+
|
|
13490
13547
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/distanceToPoint.js
|
|
13491
13548
|
function distanceToPoint(p1, p2) {
|
|
13492
13549
|
if (p1?.length !== 2 || p2?.length !== 2) {
|
|
@@ -13496,18 +13553,18 @@ function distanceToPoint(p1, p2) {
|
|
|
13496
13553
|
const [x2, y2] = p2;
|
|
13497
13554
|
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
|
|
13498
13555
|
}
|
|
13499
|
-
|
|
13556
|
+
|
|
13500
13557
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js
|
|
13501
13558
|
|
|
13502
13559
|
|
|
13503
|
-
|
|
13560
|
+
|
|
13504
13561
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/getCanvasCircleRadius.js
|
|
13505
13562
|
|
|
13506
13563
|
function getCanvasCircleRadius(circleCanvasPoints) {
|
|
13507
13564
|
const [center, end] = circleCanvasPoints;
|
|
13508
13565
|
return distanceToPoint(center, end);
|
|
13509
13566
|
}
|
|
13510
|
-
|
|
13567
|
+
|
|
13511
13568
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/getCanvasCircleCorners.js
|
|
13512
13569
|
|
|
13513
13570
|
function getCanvasCircleCorners(circleCanvasPoints) {
|
|
@@ -13517,12 +13574,12 @@ function getCanvasCircleCorners(circleCanvasPoints) {
|
|
|
13517
13574
|
const bottomRight = [center[0] + radius, center[1] + radius];
|
|
13518
13575
|
return [topLeft, bottomRight];
|
|
13519
13576
|
}
|
|
13520
|
-
|
|
13577
|
+
|
|
13521
13578
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/circle/index.js
|
|
13522
13579
|
|
|
13523
13580
|
|
|
13524
13581
|
|
|
13525
|
-
|
|
13582
|
+
|
|
13526
13583
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/CircleROITool.js
|
|
13527
13584
|
|
|
13528
13585
|
|
|
@@ -13542,6 +13599,8 @@ function getCanvasCircleCorners(circleCanvasPoints) {
|
|
|
13542
13599
|
|
|
13543
13600
|
|
|
13544
13601
|
|
|
13602
|
+
|
|
13603
|
+
|
|
13545
13604
|
|
|
13546
13605
|
const { transformWorldToIndex: CircleROITool_transformWorldToIndex } = esm.utilities;
|
|
13547
13606
|
class CircleROITool extends base_AnnotationTool {
|
|
@@ -13875,6 +13934,10 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
13875
13934
|
const radius = getCanvasCircleRadius(canvasCoordinates);
|
|
13876
13935
|
const canvasCorners = getCanvasCircleCorners(canvasCoordinates);
|
|
13877
13936
|
const { centerPointRadius } = this.configuration;
|
|
13937
|
+
const modalityUnitOptions = {
|
|
13938
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
13939
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
13940
|
+
};
|
|
13878
13941
|
if (!data.cachedStats[targetId] ||
|
|
13879
13942
|
data.cachedStats[targetId].areaUnit === undefined) {
|
|
13880
13943
|
data.cachedStats[targetId] = {
|
|
@@ -13888,10 +13951,10 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
13888
13951
|
radiusUnit: null,
|
|
13889
13952
|
perimeter: null,
|
|
13890
13953
|
};
|
|
13891
|
-
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
13954
|
+
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
13892
13955
|
}
|
|
13893
13956
|
else if (annotation.invalidated) {
|
|
13894
|
-
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
13957
|
+
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
13895
13958
|
if (viewport instanceof esm.VolumeViewport) {
|
|
13896
13959
|
const { referencedImageId } = annotation.metadata;
|
|
13897
13960
|
for (const targetId in data.cachedStats) {
|
|
@@ -13946,9 +14009,7 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
13946
14009
|
}
|
|
13947
14010
|
}
|
|
13948
14011
|
renderStatus = true;
|
|
13949
|
-
const
|
|
13950
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
13951
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
14012
|
+
const textLines = this._getTextLines(data, targetId);
|
|
13952
14013
|
if (!textLines || textLines.length === 0) {
|
|
13953
14014
|
continue;
|
|
13954
14015
|
}
|
|
@@ -13971,35 +14032,34 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
13971
14032
|
}
|
|
13972
14033
|
return renderStatus;
|
|
13973
14034
|
};
|
|
13974
|
-
this._getTextLines = (data, targetId
|
|
14035
|
+
this._getTextLines = (data, targetId) => {
|
|
13975
14036
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
13976
|
-
const { radius, radiusUnit, area, mean, stdDev, max, isEmptyArea, Modality, areaUnit, } = cachedVolumeStats;
|
|
14037
|
+
const { radius, radiusUnit, area, mean, stdDev, max, isEmptyArea, Modality, areaUnit, modalityUnit, } = cachedVolumeStats;
|
|
13977
14038
|
const textLines = [];
|
|
13978
|
-
const unit = getModalityUnit(Modality, isPreScaled, isSuvScaled);
|
|
13979
14039
|
if (radius) {
|
|
13980
14040
|
const radiusLine = isEmptyArea
|
|
13981
14041
|
? `Radius: Oblique not supported`
|
|
13982
|
-
: `Radius: ${radius
|
|
14042
|
+
: `Radius: ${utilities_roundNumber(radius)} ${radiusUnit}`;
|
|
13983
14043
|
textLines.push(radiusLine);
|
|
13984
14044
|
}
|
|
13985
14045
|
if (area) {
|
|
13986
14046
|
const areaLine = isEmptyArea
|
|
13987
14047
|
? `Area: Oblique not supported`
|
|
13988
|
-
: `Area: ${area
|
|
14048
|
+
: `Area: ${utilities_roundNumber(area)} ${areaUnit}`;
|
|
13989
14049
|
textLines.push(areaLine);
|
|
13990
14050
|
}
|
|
13991
14051
|
if (mean) {
|
|
13992
|
-
textLines.push(`Mean: ${mean
|
|
14052
|
+
textLines.push(`Mean: ${utilities_roundNumber(mean)} ${modalityUnit}`);
|
|
13993
14053
|
}
|
|
13994
14054
|
if (max) {
|
|
13995
|
-
textLines.push(`Max: ${max
|
|
14055
|
+
textLines.push(`Max: ${utilities_roundNumber(max)} ${modalityUnit}`);
|
|
13996
14056
|
}
|
|
13997
14057
|
if (stdDev) {
|
|
13998
|
-
textLines.push(`Std Dev: ${stdDev
|
|
14058
|
+
textLines.push(`Std Dev: ${utilities_roundNumber(stdDev)} ${modalityUnit}`);
|
|
13999
14059
|
}
|
|
14000
14060
|
return textLines;
|
|
14001
14061
|
};
|
|
14002
|
-
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement) => {
|
|
14062
|
+
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions) => {
|
|
14003
14063
|
const data = annotation.data;
|
|
14004
14064
|
const { viewportId, renderingEngineId } = enabledElement;
|
|
14005
14065
|
const { points } = data.handles;
|
|
@@ -14052,7 +14112,11 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
14052
14112
|
};
|
|
14053
14113
|
const { worldWidth, worldHeight } = getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1, worldPos2);
|
|
14054
14114
|
const isEmptyArea = worldWidth === 0 && worldHeight === 0;
|
|
14055
|
-
const
|
|
14115
|
+
const scale = getCalibratedScale(image);
|
|
14116
|
+
const aspect = getCalibratedAspect(image);
|
|
14117
|
+
const area = Math.abs(Math.PI *
|
|
14118
|
+
(worldWidth / scale / 2) *
|
|
14119
|
+
(worldHeight / aspect / scale / 2));
|
|
14056
14120
|
let count = 0;
|
|
14057
14121
|
let mean = 0;
|
|
14058
14122
|
let stdDev = 0;
|
|
@@ -14073,6 +14137,7 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
14073
14137
|
pointInShapeCallback(imageData, (pointLPS, pointIJK) => pointInEllipse(ellipseObj, pointLPS), stdCalculator, boundsIJK);
|
|
14074
14138
|
stdDev /= count;
|
|
14075
14139
|
stdDev = Math.sqrt(stdDev);
|
|
14140
|
+
const modalityUnit = getModalityUnit(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
14076
14141
|
cachedStats[targetId] = {
|
|
14077
14142
|
Modality: metadata.Modality,
|
|
14078
14143
|
area,
|
|
@@ -14080,10 +14145,11 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
14080
14145
|
max,
|
|
14081
14146
|
stdDev,
|
|
14082
14147
|
isEmptyArea,
|
|
14083
|
-
areaUnit:
|
|
14084
|
-
radius: worldWidth / 2,
|
|
14085
|
-
radiusUnit:
|
|
14086
|
-
perimeter: 2 * Math.PI * (worldWidth / 2),
|
|
14148
|
+
areaUnit: getCalibratedAreaUnits(null, image),
|
|
14149
|
+
radius: worldWidth / 2 / scale,
|
|
14150
|
+
radiusUnit: getCalibratedLengthUnits(null, image),
|
|
14151
|
+
perimeter: (2 * Math.PI * (worldWidth / 2)) / scale,
|
|
14152
|
+
modalityUnit,
|
|
14087
14153
|
};
|
|
14088
14154
|
}
|
|
14089
14155
|
else {
|
|
@@ -14112,12 +14178,12 @@ class CircleROITool extends base_AnnotationTool {
|
|
|
14112
14178
|
}
|
|
14113
14179
|
CircleROITool.toolName = 'CircleROI';
|
|
14114
14180
|
/* harmony default export */ const annotation_CircleROITool = (CircleROITool);
|
|
14115
|
-
|
|
14181
|
+
|
|
14116
14182
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/index.js
|
|
14117
14183
|
|
|
14118
14184
|
|
|
14119
14185
|
|
|
14120
|
-
|
|
14186
|
+
|
|
14121
14187
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/getIntersectionWithPolyline.js
|
|
14122
14188
|
|
|
14123
14189
|
function getAllIntersectionsWithPolyline(points, p1, q1, closed = true) {
|
|
@@ -14272,7 +14338,7 @@ function getIntersection(p1, q1, p2, q2) {
|
|
|
14272
14338
|
return [resultX, resultY];
|
|
14273
14339
|
}
|
|
14274
14340
|
|
|
14275
|
-
|
|
14341
|
+
|
|
14276
14342
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/getSubPixelSpacingAndXYDirections.js
|
|
14277
14343
|
|
|
14278
14344
|
|
|
@@ -14343,14 +14409,14 @@ const getSubPixelSpacingAndXYDirections = (viewport, subPixelResolution) => {
|
|
|
14343
14409
|
return { spacing: subPixelSpacing, xDir, yDir };
|
|
14344
14410
|
};
|
|
14345
14411
|
/* harmony default export */ const polyline_getSubPixelSpacingAndXYDirections = (getSubPixelSpacingAndXYDirections);
|
|
14346
|
-
|
|
14412
|
+
|
|
14347
14413
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/pointsAreWithinCloseContourProximity.js
|
|
14348
14414
|
|
|
14349
14415
|
const pointsAreWithinCloseContourProximity = (p1, p2, closeContourProximity) => {
|
|
14350
14416
|
return gl_matrix_esm/* vec2.dist */.K4.dist(p1, p2) < closeContourProximity;
|
|
14351
14417
|
};
|
|
14352
14418
|
/* harmony default export */ const polyline_pointsAreWithinCloseContourProximity = (pointsAreWithinCloseContourProximity);
|
|
14353
|
-
|
|
14419
|
+
|
|
14354
14420
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/addCanvasPointsToArray.js
|
|
14355
14421
|
|
|
14356
14422
|
|
|
@@ -14385,7 +14451,7 @@ const addCanvasPointsToArray = (element, canvasPoints, newCanvasPoint, commonDat
|
|
|
14385
14451
|
return numPointsToAdd;
|
|
14386
14452
|
};
|
|
14387
14453
|
/* harmony default export */ const polyline_addCanvasPointsToArray = (addCanvasPointsToArray);
|
|
14388
|
-
|
|
14454
|
+
|
|
14389
14455
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/pointCanProjectOnLine.js
|
|
14390
14456
|
|
|
14391
14457
|
const pointCanProjectOnLine = (p, p1, p2, proximity) => {
|
|
@@ -14419,7 +14485,7 @@ const pointCanProjectOnLine = (p, p1, p2, proximity) => {
|
|
|
14419
14485
|
return true;
|
|
14420
14486
|
};
|
|
14421
14487
|
/* harmony default export */ const polyline_pointCanProjectOnLine = (pointCanProjectOnLine);
|
|
14422
|
-
|
|
14488
|
+
|
|
14423
14489
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/calculateAreaOfPoints.js
|
|
14424
14490
|
function calculateAreaOfPoints(points) {
|
|
14425
14491
|
const n = points.length;
|
|
@@ -14431,7 +14497,7 @@ function calculateAreaOfPoints(points) {
|
|
|
14431
14497
|
}
|
|
14432
14498
|
return Math.abs(area / 2.0);
|
|
14433
14499
|
}
|
|
14434
|
-
|
|
14500
|
+
|
|
14435
14501
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js
|
|
14436
14502
|
|
|
14437
14503
|
|
|
@@ -14440,7 +14506,7 @@ function calculateAreaOfPoints(points) {
|
|
|
14440
14506
|
|
|
14441
14507
|
|
|
14442
14508
|
|
|
14443
|
-
|
|
14509
|
+
|
|
14444
14510
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/index.js
|
|
14445
14511
|
|
|
14446
14512
|
|
|
@@ -14449,11 +14515,11 @@ function calculateAreaOfPoints(points) {
|
|
|
14449
14515
|
|
|
14450
14516
|
|
|
14451
14517
|
|
|
14452
|
-
|
|
14518
|
+
|
|
14453
14519
|
// EXTERNAL MODULE: ../../../node_modules/d3-interpolate/src/index.js + 31 modules
|
|
14454
|
-
var src = __webpack_require__(
|
|
14520
|
+
var src = __webpack_require__(22791);
|
|
14455
14521
|
// EXTERNAL MODULE: ../../../node_modules/d3-array/src/index.js + 61 modules
|
|
14456
|
-
var d3_array_src = __webpack_require__(
|
|
14522
|
+
var d3_array_src = __webpack_require__(47294);
|
|
14457
14523
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/interpolation/algorithms/bspline.js
|
|
14458
14524
|
|
|
14459
14525
|
|
|
@@ -14477,7 +14543,7 @@ function interpolatePoints(originalPoints, knotsIndexes) {
|
|
|
14477
14543
|
return ((0,d3_array_src/* zip */.$R)((0,src/* quantize */.q$)(xInterpolator, n), (0,src/* quantize */.q$)(yInterpolator, n)));
|
|
14478
14544
|
}
|
|
14479
14545
|
}
|
|
14480
|
-
|
|
14546
|
+
|
|
14481
14547
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.js
|
|
14482
14548
|
|
|
14483
14549
|
function getContinuousUniformDistributionValues(minDistributionDistance, closedInterval) {
|
|
@@ -14520,7 +14586,7 @@ function interpolateSegmentPoints(points, iniIndex, endIndex, knotsRatioPercenta
|
|
|
14520
14586
|
...segmentPointsUnchangedEnd,
|
|
14521
14587
|
];
|
|
14522
14588
|
}
|
|
14523
|
-
|
|
14589
|
+
|
|
14524
14590
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/interpolatePoints.js
|
|
14525
14591
|
|
|
14526
14592
|
|
|
@@ -14609,7 +14675,7 @@ function getInterpolatedPoints(configuration, points, pointsOfReference) {
|
|
|
14609
14675
|
}
|
|
14610
14676
|
return result;
|
|
14611
14677
|
}
|
|
14612
|
-
|
|
14678
|
+
|
|
14613
14679
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.js
|
|
14614
14680
|
|
|
14615
14681
|
function findOpenUShapedContourVectorToPeak(canvasPoints, viewport) {
|
|
@@ -14650,7 +14716,7 @@ function findOpenUShapedContourVectorToPeakOnRender(enabledElement, annotation)
|
|
|
14650
14716
|
const canvasPoints = annotation.data.polyline.map(viewport.worldToCanvas);
|
|
14651
14717
|
return findOpenUShapedContourVectorToPeak(canvasPoints, viewport);
|
|
14652
14718
|
}
|
|
14653
|
-
|
|
14719
|
+
|
|
14654
14720
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/drawLoop.js
|
|
14655
14721
|
|
|
14656
14722
|
|
|
@@ -14775,7 +14841,10 @@ function completeDrawClosedContour(element) {
|
|
|
14775
14841
|
const worldPoints = updatedPoints.map((canvasPoint) => viewport.canvasToWorld(canvasPoint));
|
|
14776
14842
|
annotation.data.polyline = worldPoints;
|
|
14777
14843
|
annotation.data.isOpenContour = false;
|
|
14778
|
-
|
|
14844
|
+
const { textBox } = annotation.data.handles;
|
|
14845
|
+
if (!textBox.hasMoved) {
|
|
14846
|
+
this.triggerAnnotationCompleted(annotation);
|
|
14847
|
+
}
|
|
14779
14848
|
this.isDrawing = false;
|
|
14780
14849
|
this.drawData = undefined;
|
|
14781
14850
|
this.commonData = undefined;
|
|
@@ -14808,6 +14877,7 @@ function completeDrawOpenContour(element) {
|
|
|
14808
14877
|
const worldPoints = updatedPoints.map((canvasPoint) => viewport.canvasToWorld(canvasPoint));
|
|
14809
14878
|
annotation.data.polyline = worldPoints;
|
|
14810
14879
|
annotation.data.isOpenContour = true;
|
|
14880
|
+
const { textBox } = annotation.data.handles;
|
|
14811
14881
|
annotation.data.handles.points = [
|
|
14812
14882
|
worldPoints[0],
|
|
14813
14883
|
worldPoints[worldPoints.length - 1],
|
|
@@ -14816,7 +14886,9 @@ function completeDrawOpenContour(element) {
|
|
|
14816
14886
|
annotation.data.openUShapeContourVectorToPeak =
|
|
14817
14887
|
findOpenUShapedContourVectorToPeak(canvasPoints, viewport);
|
|
14818
14888
|
}
|
|
14819
|
-
|
|
14889
|
+
if (!textBox.hasMoved) {
|
|
14890
|
+
this.triggerAnnotationCompleted(annotation);
|
|
14891
|
+
}
|
|
14820
14892
|
this.isDrawing = false;
|
|
14821
14893
|
this.drawData = undefined;
|
|
14822
14894
|
this.commonData = undefined;
|
|
@@ -14903,7 +14975,7 @@ function registerDrawLoop(toolInstance) {
|
|
|
14903
14975
|
toolInstance.haltDrawing = haltDrawing.bind(toolInstance);
|
|
14904
14976
|
}
|
|
14905
14977
|
/* harmony default export */ const drawLoop = (registerDrawLoop);
|
|
14906
|
-
|
|
14978
|
+
|
|
14907
14979
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/editLoopCommon.js
|
|
14908
14980
|
|
|
14909
14981
|
|
|
@@ -15051,7 +15123,7 @@ function registerEditLoopCommon(toolInstance) {
|
|
|
15051
15123
|
checkAndRemoveCrossesOnEditLine.bind(toolInstance);
|
|
15052
15124
|
}
|
|
15053
15125
|
/* harmony default export */ const editLoopCommon = (registerEditLoopCommon);
|
|
15054
|
-
|
|
15126
|
+
|
|
15055
15127
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/closedContourEditLoop.js
|
|
15056
15128
|
|
|
15057
15129
|
|
|
@@ -15257,6 +15329,7 @@ function completeClosedContourEdit(element) {
|
|
|
15257
15329
|
const worldPoints = updatedPoints.map((canvasPoint) => viewport.canvasToWorld(canvasPoint));
|
|
15258
15330
|
annotation.data.polyline = worldPoints;
|
|
15259
15331
|
annotation.data.isOpenContour = false;
|
|
15332
|
+
annotation.invalidated = true;
|
|
15260
15333
|
this.triggerAnnotationModified(annotation, enabledElement);
|
|
15261
15334
|
}
|
|
15262
15335
|
this.isEditingClosed = false;
|
|
@@ -15287,7 +15360,7 @@ function registerClosedContourEditLoop(toolInstance) {
|
|
|
15287
15360
|
completeClosedContourEdit.bind(toolInstance);
|
|
15288
15361
|
}
|
|
15289
15362
|
/* harmony default export */ const closedContourEditLoop = (registerClosedContourEditLoop);
|
|
15290
|
-
|
|
15363
|
+
|
|
15291
15364
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/openContourEditLoop.js
|
|
15292
15365
|
|
|
15293
15366
|
|
|
@@ -15565,6 +15638,7 @@ function completeOpenContourEdit(element) {
|
|
|
15565
15638
|
annotation.data.openUShapeContourVectorToPeak =
|
|
15566
15639
|
findOpenUShapedContourVectorToPeak(fusedCanvasPoints, viewport);
|
|
15567
15640
|
}
|
|
15641
|
+
annotation.invalidated = true;
|
|
15568
15642
|
this.triggerAnnotationModified(annotation, enabledElement);
|
|
15569
15643
|
}
|
|
15570
15644
|
this.isEditingOpen = false;
|
|
@@ -15600,7 +15674,7 @@ function registerOpenContourEditLoop(toolInstance) {
|
|
|
15600
15674
|
completeOpenContourEdit.bind(toolInstance);
|
|
15601
15675
|
}
|
|
15602
15676
|
/* harmony default export */ const openContourEditLoop = (registerOpenContourEditLoop);
|
|
15603
|
-
|
|
15677
|
+
|
|
15604
15678
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/openContourEndEditLoop.js
|
|
15605
15679
|
|
|
15606
15680
|
|
|
@@ -15650,7 +15724,7 @@ function registerOpenContourEndEditLoop(toolInstance) {
|
|
|
15650
15724
|
activateOpenContourEndEdit.bind(toolInstance);
|
|
15651
15725
|
}
|
|
15652
15726
|
/* harmony default export */ const openContourEndEditLoop = (registerOpenContourEndEditLoop);
|
|
15653
|
-
|
|
15727
|
+
|
|
15654
15728
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/planarFreehandROITool/renderMethods.js
|
|
15655
15729
|
|
|
15656
15730
|
|
|
@@ -15820,7 +15894,7 @@ function registerRenderMethods(toolInstance) {
|
|
|
15820
15894
|
toolInstance._getRenderingOptions = _getRenderingOptions.bind(toolInstance);
|
|
15821
15895
|
}
|
|
15822
15896
|
/* harmony default export */ const renderMethods = (registerRenderMethods);
|
|
15823
|
-
|
|
15897
|
+
|
|
15824
15898
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/PlanarFreehandROITool.js
|
|
15825
15899
|
|
|
15826
15900
|
|
|
@@ -15841,6 +15915,8 @@ function registerRenderMethods(toolInstance) {
|
|
|
15841
15915
|
|
|
15842
15916
|
|
|
15843
15917
|
|
|
15918
|
+
|
|
15919
|
+
|
|
15844
15920
|
|
|
15845
15921
|
|
|
15846
15922
|
|
|
@@ -16045,6 +16121,10 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16045
16121
|
if (annotation.annotationUID === activeAnnotationUID &&
|
|
16046
16122
|
!this.commonData?.movingTextBox)
|
|
16047
16123
|
return;
|
|
16124
|
+
const modalityUnitOptions = {
|
|
16125
|
+
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
16126
|
+
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
16127
|
+
};
|
|
16048
16128
|
if (!this.commonData?.movingTextBox) {
|
|
16049
16129
|
const { data } = annotation;
|
|
16050
16130
|
if (!data.cachedStats[targetId] ||
|
|
@@ -16057,17 +16137,17 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16057
16137
|
stdDev: null,
|
|
16058
16138
|
areaUnit: null,
|
|
16059
16139
|
};
|
|
16060
|
-
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
16140
|
+
this._calculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
16061
16141
|
}
|
|
16062
16142
|
else if (annotation.invalidated) {
|
|
16063
|
-
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement);
|
|
16143
|
+
this._throttledCalculateCachedStats(annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions);
|
|
16064
16144
|
}
|
|
16065
16145
|
}
|
|
16066
16146
|
this._renderStats(annotation, viewport, enabledElement, svgDrawingHelper);
|
|
16067
16147
|
});
|
|
16068
16148
|
return renderStatus;
|
|
16069
16149
|
};
|
|
16070
|
-
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement) => {
|
|
16150
|
+
this._calculateCachedStats = (annotation, viewport, renderingEngine, enabledElement, modalityUnitOptions) => {
|
|
16071
16151
|
const data = annotation.data;
|
|
16072
16152
|
const { cachedStats, polyline: points } = data;
|
|
16073
16153
|
const targetIds = Object.keys(cachedStats);
|
|
@@ -16077,9 +16157,10 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16077
16157
|
if (!image) {
|
|
16078
16158
|
continue;
|
|
16079
16159
|
}
|
|
16080
|
-
const { imageData, metadata
|
|
16160
|
+
const { imageData, metadata } = image;
|
|
16081
16161
|
const canvasCoordinates = points.map((p) => viewport.worldToCanvas(p));
|
|
16082
|
-
const
|
|
16162
|
+
const scale = getCalibratedScale(image);
|
|
16163
|
+
const area = calculateAreaOfPoints(canvasCoordinates) / scale / scale;
|
|
16083
16164
|
const worldPosIndex = esm.utilities.transformWorldToIndex(imageData, points[0]);
|
|
16084
16165
|
worldPosIndex[0] = Math.floor(worldPosIndex[0]);
|
|
16085
16166
|
worldPosIndex[1] = Math.floor(worldPosIndex[1]);
|
|
@@ -16162,24 +16243,25 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16162
16243
|
const mean = sum / count;
|
|
16163
16244
|
let stdDev = sumSquares / count - mean ** 2;
|
|
16164
16245
|
stdDev = Math.sqrt(stdDev);
|
|
16246
|
+
const modalityUnit = getModalityUnit(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
16165
16247
|
cachedStats[targetId] = {
|
|
16166
16248
|
Modality: metadata.Modality,
|
|
16167
16249
|
area,
|
|
16168
16250
|
mean,
|
|
16169
16251
|
max,
|
|
16170
16252
|
stdDev,
|
|
16171
|
-
areaUnit:
|
|
16253
|
+
areaUnit: getCalibratedAreaUnits(null, image),
|
|
16254
|
+
modalityUnit,
|
|
16172
16255
|
};
|
|
16173
16256
|
}
|
|
16257
|
+
this.triggerAnnotationModified(annotation, enabledElement);
|
|
16174
16258
|
annotation.invalidated = false;
|
|
16175
16259
|
return cachedStats;
|
|
16176
16260
|
};
|
|
16177
16261
|
this._renderStats = (annotation, viewport, enabledElement, svgDrawingHelper) => {
|
|
16178
16262
|
const data = annotation.data;
|
|
16179
16263
|
const targetId = this.getTargetId(viewport);
|
|
16180
|
-
const
|
|
16181
|
-
const isSuvScaled = this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId);
|
|
16182
|
-
const textLines = this._getTextLines(data, targetId, isPreScaled, isSuvScaled);
|
|
16264
|
+
const textLines = this._getTextLines(data, targetId);
|
|
16183
16265
|
if (!textLines || textLines.length === 0)
|
|
16184
16266
|
return;
|
|
16185
16267
|
const canvasCoordinates = data.polyline.map((p) => viewport.worldToCanvas(p));
|
|
@@ -16204,25 +16286,24 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16204
16286
|
bottomRight: viewport.canvasToWorld([left + width, top + height]),
|
|
16205
16287
|
};
|
|
16206
16288
|
};
|
|
16207
|
-
this._getTextLines = (data, targetId
|
|
16289
|
+
this._getTextLines = (data, targetId) => {
|
|
16208
16290
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
16209
|
-
const { area, mean, stdDev, max, isEmptyArea,
|
|
16291
|
+
const { area, mean, stdDev, max, isEmptyArea, areaUnit, modalityUnit } = cachedVolumeStats;
|
|
16210
16292
|
const textLines = [];
|
|
16211
|
-
const unit = getModalityUnit(Modality, isPreScaled, isSuvScaled);
|
|
16212
16293
|
if (area) {
|
|
16213
16294
|
const areaLine = isEmptyArea
|
|
16214
16295
|
? `Area: Oblique not supported`
|
|
16215
|
-
: `Area: ${area
|
|
16296
|
+
: `Area: ${utilities_roundNumber(area)} ${areaUnit}`;
|
|
16216
16297
|
textLines.push(areaLine);
|
|
16217
16298
|
}
|
|
16218
16299
|
if (mean) {
|
|
16219
|
-
textLines.push(`Mean: ${mean
|
|
16300
|
+
textLines.push(`Mean: ${utilities_roundNumber(mean)} ${modalityUnit}`);
|
|
16220
16301
|
}
|
|
16221
16302
|
if (max) {
|
|
16222
|
-
textLines.push(`Max: ${max
|
|
16303
|
+
textLines.push(`Max: ${utilities_roundNumber(max)} ${modalityUnit}`);
|
|
16223
16304
|
}
|
|
16224
16305
|
if (stdDev) {
|
|
16225
|
-
textLines.push(`Std Dev: ${stdDev
|
|
16306
|
+
textLines.push(`Std Dev: ${utilities_roundNumber(stdDev)} ${modalityUnit}`);
|
|
16226
16307
|
}
|
|
16227
16308
|
return textLines;
|
|
16228
16309
|
};
|
|
@@ -16286,9 +16367,8 @@ class PlanarFreehandROITool extends base_AnnotationTool {
|
|
|
16286
16367
|
}
|
|
16287
16368
|
PlanarFreehandROITool.toolName = 'PlanarFreehandROI';
|
|
16288
16369
|
/* harmony default export */ const annotation_PlanarFreehandROITool = (PlanarFreehandROITool);
|
|
16289
|
-
//# sourceMappingURL=PlanarFreehandROITool.js.map
|
|
16290
|
-
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/ArrowAnnotateTool.js
|
|
16291
16370
|
|
|
16371
|
+
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/ArrowAnnotateTool.js
|
|
16292
16372
|
|
|
16293
16373
|
|
|
16294
16374
|
|
|
@@ -16646,7 +16726,7 @@ class ArrowAnnotateTool extends base_AnnotationTool {
|
|
|
16646
16726
|
continue;
|
|
16647
16727
|
}
|
|
16648
16728
|
if (!data.handles.textBox.hasMoved) {
|
|
16649
|
-
const canvasTextBoxCoords =
|
|
16729
|
+
const canvasTextBoxCoords = canvasCoordinates[1];
|
|
16650
16730
|
data.handles.textBox.worldPosition =
|
|
16651
16731
|
viewport.canvasToWorld(canvasTextBoxCoords);
|
|
16652
16732
|
}
|
|
@@ -16716,7 +16796,7 @@ function changeTextCallback(data, eventData, doneChangingTextCallback) {
|
|
|
16716
16796
|
}
|
|
16717
16797
|
ArrowAnnotateTool.toolName = 'ArrowAnnotate';
|
|
16718
16798
|
/* harmony default export */ const annotation_ArrowAnnotateTool = (ArrowAnnotateTool);
|
|
16719
|
-
|
|
16799
|
+
|
|
16720
16800
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/AngleTool.js
|
|
16721
16801
|
|
|
16722
16802
|
|
|
@@ -16808,7 +16888,6 @@ class AngleTool extends base_AnnotationTool {
|
|
|
16808
16888
|
const [point1, point2, point3] = data.handles.points;
|
|
16809
16889
|
const canvasPoint1 = viewport.worldToCanvas(point1);
|
|
16810
16890
|
const canvasPoint2 = viewport.worldToCanvas(point2);
|
|
16811
|
-
const canvasPoint3 = viewport.worldToCanvas(point3);
|
|
16812
16891
|
const line1 = {
|
|
16813
16892
|
start: {
|
|
16814
16893
|
x: canvasPoint1[0],
|
|
@@ -16819,6 +16898,12 @@ class AngleTool extends base_AnnotationTool {
|
|
|
16819
16898
|
y: canvasPoint2[1],
|
|
16820
16899
|
},
|
|
16821
16900
|
};
|
|
16901
|
+
const distanceToPoint = distanceToPoint_distanceToPoint([line1.start.x, line1.start.y], [line1.end.x, line1.end.y], [canvasCoords[0], canvasCoords[1]]);
|
|
16902
|
+
if (distanceToPoint <= proximity)
|
|
16903
|
+
return true;
|
|
16904
|
+
if (!point3)
|
|
16905
|
+
return false;
|
|
16906
|
+
const canvasPoint3 = viewport.worldToCanvas(point3);
|
|
16822
16907
|
const line2 = {
|
|
16823
16908
|
start: {
|
|
16824
16909
|
x: canvasPoint2[0],
|
|
@@ -16829,9 +16914,8 @@ class AngleTool extends base_AnnotationTool {
|
|
|
16829
16914
|
y: canvasPoint3[1],
|
|
16830
16915
|
},
|
|
16831
16916
|
};
|
|
16832
|
-
const distanceToPoint = distanceToPoint_distanceToPoint([line1.start.x, line1.start.y], [line1.end.x, line1.end.y], [canvasCoords[0], canvasCoords[1]]);
|
|
16833
16917
|
const distanceToPoint2 = distanceToPoint_distanceToPoint([line2.start.x, line2.start.y], [line2.end.x, line2.end.y], [canvasCoords[0], canvasCoords[1]]);
|
|
16834
|
-
if (
|
|
16918
|
+
if (distanceToPoint2 <= proximity) {
|
|
16835
16919
|
return true;
|
|
16836
16920
|
}
|
|
16837
16921
|
return false;
|
|
@@ -17064,7 +17148,7 @@ class AngleTool extends base_AnnotationTool {
|
|
|
17064
17148
|
}
|
|
17065
17149
|
const textLines = this._getTextLines(data, targetId);
|
|
17066
17150
|
if (!data.handles.textBox.hasMoved) {
|
|
17067
|
-
const canvasTextBoxCoords =
|
|
17151
|
+
const canvasTextBoxCoords = canvasCoordinates[1];
|
|
17068
17152
|
data.handles.textBox.worldPosition =
|
|
17069
17153
|
viewport.canvasToWorld(canvasTextBoxCoords);
|
|
17070
17154
|
}
|
|
@@ -17116,7 +17200,7 @@ class AngleTool extends base_AnnotationTool {
|
|
|
17116
17200
|
if (angle === undefined) {
|
|
17117
17201
|
return;
|
|
17118
17202
|
}
|
|
17119
|
-
const textLines = [`${angle
|
|
17203
|
+
const textLines = [`${utilities_roundNumber(angle)} ${String.fromCharCode(176)}`];
|
|
17120
17204
|
return textLines;
|
|
17121
17205
|
}
|
|
17122
17206
|
_calculateCachedStats(annotation, renderingEngine, enabledElement) {
|
|
@@ -17150,7 +17234,7 @@ class AngleTool extends base_AnnotationTool {
|
|
|
17150
17234
|
}
|
|
17151
17235
|
AngleTool.toolName = 'Angle';
|
|
17152
17236
|
/* harmony default export */ const annotation_AngleTool = (AngleTool);
|
|
17153
|
-
|
|
17237
|
+
|
|
17154
17238
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/midPoint.js
|
|
17155
17239
|
const midPoint = (...args) => {
|
|
17156
17240
|
const ret = args[0].length === 2 ? [0, 0] : [0, 0, 0];
|
|
@@ -17166,7 +17250,7 @@ const midPoint = (...args) => {
|
|
|
17166
17250
|
const midPoint2 = midPoint;
|
|
17167
17251
|
/* harmony default export */ const math_midPoint = ((/* unused pure expression or super */ null && (midPoint)));
|
|
17168
17252
|
|
|
17169
|
-
|
|
17253
|
+
|
|
17170
17254
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/CobbAngleTool.js
|
|
17171
17255
|
|
|
17172
17256
|
|
|
@@ -17640,7 +17724,7 @@ class CobbAngleTool extends base_AnnotationTool {
|
|
|
17640
17724
|
}
|
|
17641
17725
|
CobbAngleTool.toolName = 'CobbAngle';
|
|
17642
17726
|
/* harmony default export */ const annotation_CobbAngleTool = (CobbAngleTool);
|
|
17643
|
-
|
|
17727
|
+
|
|
17644
17728
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/ReferenceCursors.js
|
|
17645
17729
|
|
|
17646
17730
|
|
|
@@ -17922,7 +18006,7 @@ class ReferenceCursors extends base_AnnotationDisplayTool {
|
|
|
17922
18006
|
}
|
|
17923
18007
|
ReferenceCursors.toolName = 'ReferenceCursors';
|
|
17924
18008
|
/* harmony default export */ const tools_ReferenceCursors = (ReferenceCursors);
|
|
17925
|
-
|
|
18009
|
+
|
|
17926
18010
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/ScaleOverlayTool.js
|
|
17927
18011
|
|
|
17928
18012
|
|
|
@@ -18316,7 +18400,7 @@ class ScaleOverlayTool extends base_AnnotationDisplayTool {
|
|
|
18316
18400
|
}
|
|
18317
18401
|
ScaleOverlayTool.toolName = 'ScaleOverlay';
|
|
18318
18402
|
/* harmony default export */ const tools_ScaleOverlayTool = (ScaleOverlayTool);
|
|
18319
|
-
|
|
18403
|
+
|
|
18320
18404
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/fillRectangle.js
|
|
18321
18405
|
|
|
18322
18406
|
|
|
@@ -18336,9 +18420,6 @@ function fillRectangle(enabledElement, operationData, inside = true) {
|
|
|
18336
18420
|
});
|
|
18337
18421
|
});
|
|
18338
18422
|
const boundsIJK = boundingBox_getBoundingBoxAroundShape(rectangleCornersIJK, dimensions);
|
|
18339
|
-
if (boundsIJK.every(([min, max]) => min !== max)) {
|
|
18340
|
-
throw new Error('Oblique segmentation tools are not supported yet');
|
|
18341
|
-
}
|
|
18342
18423
|
const pointInRectangle = () => true;
|
|
18343
18424
|
const callback = ({ value, index, pointIJK }) => {
|
|
18344
18425
|
if (segmentsLocked.includes(value)) {
|
|
@@ -18361,7 +18442,7 @@ function fillInsideRectangle(enabledElement, operationData) {
|
|
|
18361
18442
|
function fillOutsideRectangle(enabledElement, operationData) {
|
|
18362
18443
|
fillRectangle(enabledElement, operationData, false);
|
|
18363
18444
|
}
|
|
18364
|
-
|
|
18445
|
+
|
|
18365
18446
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/eraseRectangle.js
|
|
18366
18447
|
|
|
18367
18448
|
|
|
@@ -18376,9 +18457,6 @@ function eraseRectangle(enabledElement, operationData, inside = true) {
|
|
|
18376
18457
|
return eraseRectangle_transformWorldToIndex(imageData, world);
|
|
18377
18458
|
});
|
|
18378
18459
|
const boundsIJK = boundingBox_getBoundingBoxAroundShape(rectangleCornersIJK, dimensions);
|
|
18379
|
-
if (boundsIJK.every(([min, max]) => min !== max)) {
|
|
18380
|
-
throw new Error('Oblique segmentation tools are not supported yet');
|
|
18381
|
-
}
|
|
18382
18460
|
const pointInShape = () => true;
|
|
18383
18461
|
const callback = ({ value, index }) => {
|
|
18384
18462
|
if (segmentsLocked.includes(value)) {
|
|
@@ -18395,7 +18473,7 @@ function eraseInsideRectangle(enabledElement, operationData) {
|
|
|
18395
18473
|
function eraseOutsideRectangle(enabledElement, operationData) {
|
|
18396
18474
|
eraseRectangle(enabledElement, operationData, false);
|
|
18397
18475
|
}
|
|
18398
|
-
|
|
18476
|
+
|
|
18399
18477
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/RectangleScissorsTool.js
|
|
18400
18478
|
|
|
18401
18479
|
|
|
@@ -18608,7 +18686,7 @@ class RectangleScissorsTool extends base_BaseTool {
|
|
|
18608
18686
|
}
|
|
18609
18687
|
RectangleScissorsTool.toolName = 'RectangleScissor';
|
|
18610
18688
|
/* harmony default export */ const segmentation_RectangleScissorsTool = (RectangleScissorsTool);
|
|
18611
|
-
|
|
18689
|
+
|
|
18612
18690
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/CircleScissorsTool.js
|
|
18613
18691
|
|
|
18614
18692
|
|
|
@@ -18816,7 +18894,7 @@ class CircleScissorsTool extends base_BaseTool {
|
|
|
18816
18894
|
}
|
|
18817
18895
|
CircleScissorsTool.toolName = 'CircleScissor';
|
|
18818
18896
|
/* harmony default export */ const segmentation_CircleScissorsTool = (CircleScissorsTool);
|
|
18819
|
-
|
|
18897
|
+
|
|
18820
18898
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/SphereScissorsTool.js
|
|
18821
18899
|
|
|
18822
18900
|
|
|
@@ -19026,7 +19104,7 @@ class SphereScissorsTool extends base_BaseTool {
|
|
|
19026
19104
|
}
|
|
19027
19105
|
SphereScissorsTool.toolName = 'SphereScissor';
|
|
19028
19106
|
/* harmony default export */ const segmentation_SphereScissorsTool = (SphereScissorsTool);
|
|
19029
|
-
|
|
19107
|
+
|
|
19030
19108
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/RectangleROIThresholdTool.js
|
|
19031
19109
|
|
|
19032
19110
|
|
|
@@ -19179,7 +19257,7 @@ class RectangleROIThresholdTool extends annotation_RectangleROITool {
|
|
|
19179
19257
|
}
|
|
19180
19258
|
RectangleROIThresholdTool.toolName = 'RectangleROIThreshold';
|
|
19181
19259
|
/* harmony default export */ const segmentation_RectangleROIThresholdTool = (RectangleROIThresholdTool);
|
|
19182
|
-
|
|
19260
|
+
|
|
19183
19261
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/RectangleROIStartEndThresholdTool.js
|
|
19184
19262
|
|
|
19185
19263
|
|
|
@@ -19422,7 +19500,7 @@ class RectangleROIStartEndThresholdTool extends annotation_RectangleROITool {
|
|
|
19422
19500
|
}
|
|
19423
19501
|
RectangleROIStartEndThresholdTool.toolName = 'RectangleROIStartEndThreshold';
|
|
19424
19502
|
/* harmony default export */ const segmentation_RectangleROIStartEndThresholdTool = (RectangleROIStartEndThresholdTool);
|
|
19425
|
-
|
|
19503
|
+
|
|
19426
19504
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/floodFill.js
|
|
19427
19505
|
function floodFill(getter, seed, options = {}) {
|
|
19428
19506
|
const onFlood = options.onFlood;
|
|
@@ -19552,7 +19630,7 @@ function lpad(string, character, length) {
|
|
|
19552
19630
|
return (pad + string).slice(-length);
|
|
19553
19631
|
}
|
|
19554
19632
|
/* harmony default export */ const segmentation_floodFill = (floodFill);
|
|
19555
|
-
|
|
19633
|
+
|
|
19556
19634
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/PaintFillTool.js
|
|
19557
19635
|
|
|
19558
19636
|
|
|
@@ -19764,7 +19842,7 @@ class PaintFillTool extends base_BaseTool {
|
|
|
19764
19842
|
}
|
|
19765
19843
|
PaintFillTool.toolName = 'PaintFill';
|
|
19766
19844
|
/* harmony default export */ const segmentation_PaintFillTool = (PaintFillTool);
|
|
19767
|
-
|
|
19845
|
+
|
|
19768
19846
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/index.js
|
|
19769
19847
|
|
|
19770
19848
|
|
|
@@ -19802,7 +19880,7 @@ PaintFillTool.toolName = 'PaintFill';
|
|
|
19802
19880
|
|
|
19803
19881
|
|
|
19804
19882
|
|
|
19805
|
-
|
|
19883
|
+
|
|
19806
19884
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.js
|
|
19807
19885
|
|
|
19808
19886
|
|
|
@@ -19848,7 +19926,7 @@ function getBoundsIJKFromRectangleAnnotations(annotations, referenceVolume, opti
|
|
|
19848
19926
|
return boundsIJK;
|
|
19849
19927
|
}
|
|
19850
19928
|
/* harmony default export */ const rectangleROITool_getBoundsIJKFromRectangleAnnotations = (getBoundsIJKFromRectangleAnnotations);
|
|
19851
|
-
|
|
19929
|
+
|
|
19852
19930
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/rectangleROIThresholdVolumeByRange.js
|
|
19853
19931
|
|
|
19854
19932
|
|
|
@@ -19882,7 +19960,7 @@ function _validateAnnotations(annotations) {
|
|
|
19882
19960
|
}
|
|
19883
19961
|
}
|
|
19884
19962
|
/* harmony default export */ const segmentation_rectangleROIThresholdVolumeByRange = (rectangleROIThresholdVolumeByRange);
|
|
19885
|
-
|
|
19963
|
+
|
|
19886
19964
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/createMergedLabelmapForIndex.js
|
|
19887
19965
|
|
|
19888
19966
|
function createMergedLabelmapForIndex(labelmaps, segmentIndex = 1, volumeId = 'mergedLabelmap') {
|
|
@@ -19918,7 +19996,7 @@ function createMergedLabelmapForIndex(labelmaps, segmentIndex = 1, volumeId = 'm
|
|
|
19918
19996
|
return mergedVolume;
|
|
19919
19997
|
}
|
|
19920
19998
|
/* harmony default export */ const segmentation_createMergedLabelmapForIndex = (createMergedLabelmapForIndex);
|
|
19921
|
-
|
|
19999
|
+
|
|
19922
20000
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/isValidRepresentationConfig.js
|
|
19923
20001
|
|
|
19924
20002
|
|
|
@@ -19930,7 +20008,7 @@ function isValidRepresentationConfig(representationType, config) {
|
|
|
19930
20008
|
throw new Error(`Unknown representation type: ${representationType}`);
|
|
19931
20009
|
}
|
|
19932
20010
|
}
|
|
19933
|
-
|
|
20011
|
+
|
|
19934
20012
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.js
|
|
19935
20013
|
|
|
19936
20014
|
|
|
@@ -19943,7 +20021,7 @@ function getDefaultRepresentationConfig(segmentation) {
|
|
|
19943
20021
|
throw new Error(`Unknown representation type: ${representationType}`);
|
|
19944
20022
|
}
|
|
19945
20023
|
}
|
|
19946
|
-
|
|
20024
|
+
|
|
19947
20025
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js
|
|
19948
20026
|
|
|
19949
20027
|
|
|
@@ -19974,7 +20052,7 @@ async function createLabelmapVolumeForViewport(input) {
|
|
|
19974
20052
|
}
|
|
19975
20053
|
return segmentationId;
|
|
19976
20054
|
}
|
|
19977
|
-
|
|
20055
|
+
|
|
19978
20056
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/brushSizeForToolGroup.js
|
|
19979
20057
|
|
|
19980
20058
|
|
|
@@ -20016,7 +20094,7 @@ function getBrushSizeForToolGroup(toolGroupId) {
|
|
|
20016
20094
|
}
|
|
20017
20095
|
return brushToolInstance.configuration.brushSize;
|
|
20018
20096
|
}
|
|
20019
|
-
|
|
20097
|
+
|
|
20020
20098
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/brushThresholdForToolGroup.js
|
|
20021
20099
|
|
|
20022
20100
|
|
|
@@ -20058,7 +20136,7 @@ function getBrushThresholdForToolGroup(toolGroupId) {
|
|
|
20058
20136
|
return brushToolInstance.configuration.strategySpecificConfiguration
|
|
20059
20137
|
.THRESHOLD_INSIDE_CIRCLE.threshold;
|
|
20060
20138
|
}
|
|
20061
|
-
|
|
20139
|
+
|
|
20062
20140
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/thresholdSegmentationByRange.js
|
|
20063
20141
|
|
|
20064
20142
|
|
|
@@ -20111,7 +20189,7 @@ function _handleSameSizeVolume(scalarData, segmentationIndex, volumeInfo) {
|
|
|
20111
20189
|
}
|
|
20112
20190
|
}
|
|
20113
20191
|
/* harmony default export */ const segmentation_thresholdSegmentationByRange = (thresholdSegmentationByRange);
|
|
20114
|
-
|
|
20192
|
+
|
|
20115
20193
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/index.js
|
|
20116
20194
|
|
|
20117
20195
|
|
|
@@ -20125,7 +20203,7 @@ function _handleSameSizeVolume(scalarData, segmentationIndex, volumeInfo) {
|
|
|
20125
20203
|
|
|
20126
20204
|
|
|
20127
20205
|
|
|
20128
|
-
|
|
20206
|
+
|
|
20129
20207
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/orientation/getOrientationStringLPS.js
|
|
20130
20208
|
function getOrientationStringLPS(vector) {
|
|
20131
20209
|
let orientation = '';
|
|
@@ -20168,7 +20246,7 @@ function getOrientationStringLPS(vector) {
|
|
|
20168
20246
|
}
|
|
20169
20247
|
return orientation;
|
|
20170
20248
|
}
|
|
20171
|
-
|
|
20249
|
+
|
|
20172
20250
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/orientation/invertOrientationStringLPS.js
|
|
20173
20251
|
function invertOrientationStringLPS(orientationString) {
|
|
20174
20252
|
let inverted = orientationString.replace('H', 'f');
|
|
@@ -20180,12 +20258,12 @@ function invertOrientationStringLPS(orientationString) {
|
|
|
20180
20258
|
inverted = inverted.toUpperCase();
|
|
20181
20259
|
return inverted;
|
|
20182
20260
|
}
|
|
20183
|
-
|
|
20261
|
+
|
|
20184
20262
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/orientation/index.js
|
|
20185
20263
|
|
|
20186
20264
|
|
|
20187
20265
|
|
|
20188
|
-
|
|
20266
|
+
|
|
20189
20267
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/cine/events.js
|
|
20190
20268
|
var events_Events;
|
|
20191
20269
|
(function (Events) {
|
|
@@ -20193,7 +20271,7 @@ var events_Events;
|
|
|
20193
20271
|
Events["CLIP_STARTED"] = "CORNERSTONE_CINE_TOOL_STARTED";
|
|
20194
20272
|
})(events_Events || (events_Events = {}));
|
|
20195
20273
|
/* harmony default export */ const events = (events_Events);
|
|
20196
|
-
|
|
20274
|
+
|
|
20197
20275
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/cine/state.js
|
|
20198
20276
|
|
|
20199
20277
|
const state_state = {};
|
|
@@ -20208,7 +20286,7 @@ function getToolState(element) {
|
|
|
20208
20286
|
return state_state[viewportId];
|
|
20209
20287
|
}
|
|
20210
20288
|
|
|
20211
|
-
|
|
20289
|
+
|
|
20212
20290
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/cine/playClip.js
|
|
20213
20291
|
|
|
20214
20292
|
|
|
@@ -20481,13 +20559,13 @@ function _createCinePlayContext(viewport, playClipOptions) {
|
|
|
20481
20559
|
throw new Error('Unknown viewport type');
|
|
20482
20560
|
}
|
|
20483
20561
|
|
|
20484
|
-
|
|
20562
|
+
|
|
20485
20563
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/cine/index.js
|
|
20486
20564
|
|
|
20487
20565
|
|
|
20488
20566
|
|
|
20489
20567
|
|
|
20490
|
-
|
|
20568
|
+
|
|
20491
20569
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/interpolateAnnotation.js
|
|
20492
20570
|
|
|
20493
20571
|
|
|
@@ -20528,18 +20606,18 @@ function interpolateAnnotation(enabledElement, annotation, knotsRatioPercentage)
|
|
|
20528
20606
|
annotation.data.polyline = interpolatedCanvasPoints.map(viewport.canvasToWorld);
|
|
20529
20607
|
return true;
|
|
20530
20608
|
}
|
|
20531
|
-
|
|
20609
|
+
|
|
20532
20610
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/index.js
|
|
20533
20611
|
|
|
20534
20612
|
/* harmony default export */ const planarFreehandROITool = ({
|
|
20535
20613
|
interpolateAnnotation: interpolateAnnotation,
|
|
20536
20614
|
});
|
|
20537
20615
|
|
|
20538
|
-
|
|
20616
|
+
|
|
20539
20617
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/rectangleROITool/index.js
|
|
20540
20618
|
|
|
20541
20619
|
|
|
20542
|
-
|
|
20620
|
+
|
|
20543
20621
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/stackPrefetch/state.js
|
|
20544
20622
|
|
|
20545
20623
|
const stackPrefetch_state_state = {};
|
|
@@ -20554,7 +20632,7 @@ function state_getToolState(element) {
|
|
|
20554
20632
|
return stackPrefetch_state_state[viewportId];
|
|
20555
20633
|
}
|
|
20556
20634
|
|
|
20557
|
-
|
|
20635
|
+
|
|
20558
20636
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/stackPrefetch/stackPrefetch.js
|
|
20559
20637
|
|
|
20560
20638
|
|
|
@@ -20779,17 +20857,17 @@ function setConfiguration(config) {
|
|
|
20779
20857
|
configuration = config;
|
|
20780
20858
|
}
|
|
20781
20859
|
|
|
20782
|
-
|
|
20860
|
+
|
|
20783
20861
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/stackPrefetch/index.js
|
|
20784
20862
|
|
|
20785
20863
|
|
|
20786
|
-
|
|
20864
|
+
|
|
20787
20865
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewport/index.js
|
|
20788
20866
|
|
|
20789
20867
|
|
|
20790
20868
|
|
|
20791
20869
|
|
|
20792
|
-
|
|
20870
|
+
|
|
20793
20871
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/dynamicVolume/getDataInTime.js
|
|
20794
20872
|
|
|
20795
20873
|
function getDataInTime(dynamicVolume, options) {
|
|
@@ -20852,7 +20930,7 @@ function _getTimePointDataMask(frames, indexArray, volume) {
|
|
|
20852
20930
|
return value;
|
|
20853
20931
|
}
|
|
20854
20932
|
/* harmony default export */ const dynamicVolume_getDataInTime = (getDataInTime);
|
|
20855
|
-
|
|
20933
|
+
|
|
20856
20934
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/dynamicVolume/generateImageFromTimeData.js
|
|
20857
20935
|
|
|
20858
20936
|
function generateImageFromTimeData(dynamicVolume, operation, frameNumbers) {
|
|
@@ -20896,13 +20974,13 @@ function generateImageFromTimeData(dynamicVolume, operation, frameNumbers) {
|
|
|
20896
20974
|
}
|
|
20897
20975
|
}
|
|
20898
20976
|
/* harmony default export */ const dynamicVolume_generateImageFromTimeData = (generateImageFromTimeData);
|
|
20899
|
-
|
|
20977
|
+
|
|
20900
20978
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/dynamicVolume/index.js
|
|
20901
20979
|
|
|
20902
20980
|
|
|
20903
20981
|
|
|
20904
20982
|
|
|
20905
|
-
|
|
20983
|
+
|
|
20906
20984
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/index.js
|
|
20907
20985
|
|
|
20908
20986
|
|
|
@@ -20932,7 +21010,8 @@ function generateImageFromTimeData(dynamicVolume, operation, frameNumbers) {
|
|
|
20932
21010
|
|
|
20933
21011
|
|
|
20934
21012
|
|
|
20935
|
-
|
|
21013
|
+
|
|
21014
|
+
|
|
20936
21015
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/annotations/annotationSelectionListener.js
|
|
20937
21016
|
|
|
20938
21017
|
|
|
@@ -20949,7 +21028,7 @@ function annotationSelectionListener(evt) {
|
|
|
20949
21028
|
});
|
|
20950
21029
|
}
|
|
20951
21030
|
/* harmony default export */ const annotations_annotationSelectionListener = (annotationSelectionListener);
|
|
20952
|
-
|
|
21031
|
+
|
|
20953
21032
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/annotations/annotationModifiedListener.js
|
|
20954
21033
|
|
|
20955
21034
|
|
|
@@ -20959,12 +21038,12 @@ function annotationModifiedListener(evt) {
|
|
|
20959
21038
|
utilities_triggerAnnotationRenderForViewportIds(renderingEngine, [viewportId]);
|
|
20960
21039
|
}
|
|
20961
21040
|
/* harmony default export */ const annotations_annotationModifiedListener = (annotationModifiedListener);
|
|
20962
|
-
|
|
21041
|
+
|
|
20963
21042
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/annotations/index.js
|
|
20964
21043
|
|
|
20965
21044
|
|
|
20966
21045
|
|
|
20967
|
-
|
|
21046
|
+
|
|
20968
21047
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventListeners/index.js
|
|
20969
21048
|
|
|
20970
21049
|
|
|
@@ -20973,7 +21052,7 @@ function annotationModifiedListener(evt) {
|
|
|
20973
21052
|
|
|
20974
21053
|
|
|
20975
21054
|
|
|
20976
|
-
|
|
21055
|
+
|
|
20977
21056
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/imageRenderedEventDispatcher.js
|
|
20978
21057
|
|
|
20979
21058
|
|
|
@@ -20990,7 +21069,7 @@ const imageRenderedEventDispatcher_disable = function (element) {
|
|
|
20990
21069
|
enable: imageRenderedEventDispatcher_enable,
|
|
20991
21070
|
disable: imageRenderedEventDispatcher_disable,
|
|
20992
21071
|
});
|
|
20993
|
-
|
|
21072
|
+
|
|
20994
21073
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/customCallbackHandler.js
|
|
20995
21074
|
|
|
20996
21075
|
|
|
@@ -21021,17 +21100,17 @@ function customCallbackHandler(handlerType, customFunction, evt) {
|
|
|
21021
21100
|
}
|
|
21022
21101
|
activeTool[customFunction](evt);
|
|
21023
21102
|
}
|
|
21024
|
-
|
|
21103
|
+
|
|
21025
21104
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseClick.js
|
|
21026
21105
|
|
|
21027
21106
|
const mouseClick = customCallbackHandler.bind(null, 'Mouse', 'mouseClickCallback');
|
|
21028
21107
|
/* harmony default export */ const mouseEventHandlers_mouseClick = (mouseClick);
|
|
21029
|
-
|
|
21108
|
+
|
|
21030
21109
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseDoubleClick.js
|
|
21031
21110
|
|
|
21032
21111
|
const mouseDoubleClick = customCallbackHandler.bind(null, 'Mouse', 'doubleClickCallback');
|
|
21033
21112
|
/* harmony default export */ const mouseEventHandlers_mouseDoubleClick = (mouseDoubleClick);
|
|
21034
|
-
|
|
21113
|
+
|
|
21035
21114
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/filterToolsWithMoveableHandles.js
|
|
21036
21115
|
function filterToolsWithMoveableHandles(element, ToolAndAnnotations, canvasCoords, interactionType = 'mouse') {
|
|
21037
21116
|
const proximity = interactionType === 'touch' ? 36 : 6;
|
|
@@ -21054,7 +21133,7 @@ function filterToolsWithMoveableHandles(element, ToolAndAnnotations, canvasCoord
|
|
|
21054
21133
|
});
|
|
21055
21134
|
return toolsWithMoveableHandles;
|
|
21056
21135
|
}
|
|
21057
|
-
|
|
21136
|
+
|
|
21058
21137
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/filterToolsWithAnnotationsForElement.js
|
|
21059
21138
|
|
|
21060
21139
|
function filterToolsWithAnnotationsForElement_filterToolsWithAnnotationsForElement(element, tools) {
|
|
@@ -21078,7 +21157,7 @@ function filterToolsWithAnnotationsForElement_filterToolsWithAnnotationsForEleme
|
|
|
21078
21157
|
}
|
|
21079
21158
|
return result;
|
|
21080
21159
|
}
|
|
21081
|
-
|
|
21160
|
+
|
|
21082
21161
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/filterMoveableAnnotationTools.js
|
|
21083
21162
|
function filterMoveableAnnotationTools(element, ToolAndAnnotations, canvasCoords, interactionType = 'mouse') {
|
|
21084
21163
|
const proximity = interactionType === 'touch' ? 36 : 6;
|
|
@@ -21100,7 +21179,7 @@ function filterMoveableAnnotationTools(element, ToolAndAnnotations, canvasCoords
|
|
|
21100
21179
|
});
|
|
21101
21180
|
return moveableAnnotationTools;
|
|
21102
21181
|
}
|
|
21103
|
-
|
|
21182
|
+
|
|
21104
21183
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getMouseModifier.js
|
|
21105
21184
|
|
|
21106
21185
|
const getMouseModifierKey = (evt) => {
|
|
@@ -21129,7 +21208,7 @@ const getMouseModifierKey = (evt) => {
|
|
|
21129
21208
|
return undefined;
|
|
21130
21209
|
};
|
|
21131
21210
|
/* harmony default export */ const getMouseModifier = (getMouseModifierKey);
|
|
21132
|
-
|
|
21211
|
+
|
|
21133
21212
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getActiveToolForMouseEvent.js
|
|
21134
21213
|
|
|
21135
21214
|
|
|
@@ -21160,7 +21239,7 @@ function getActiveToolForMouseEvent(evt) {
|
|
|
21160
21239
|
}
|
|
21161
21240
|
}
|
|
21162
21241
|
}
|
|
21163
|
-
|
|
21242
|
+
|
|
21164
21243
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getToolsWithModesForMouseEvent.js
|
|
21165
21244
|
|
|
21166
21245
|
function getToolsWithModesForMouseEvent(evt, modesFilter, evtButton) {
|
|
@@ -21185,7 +21264,7 @@ function getToolsWithModesForMouseEvent(evt, modesFilter, evtButton) {
|
|
|
21185
21264
|
}
|
|
21186
21265
|
return enabledTools;
|
|
21187
21266
|
}
|
|
21188
|
-
|
|
21267
|
+
|
|
21189
21268
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseDown.js
|
|
21190
21269
|
|
|
21191
21270
|
|
|
@@ -21265,7 +21344,7 @@ function toggleAnnotationSelection(annotationUID, isMultiSelect = false) {
|
|
|
21265
21344
|
setAnnotationSelected(annotationUID, true, preserveSelected);
|
|
21266
21345
|
}
|
|
21267
21346
|
}
|
|
21268
|
-
|
|
21347
|
+
|
|
21269
21348
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseDownActivate.js
|
|
21270
21349
|
|
|
21271
21350
|
|
|
@@ -21286,7 +21365,7 @@ function mouseDownActivate(evt) {
|
|
|
21286
21365
|
setAnnotationSelected(annotation.annotationUID);
|
|
21287
21366
|
}
|
|
21288
21367
|
}
|
|
21289
|
-
|
|
21368
|
+
|
|
21290
21369
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseDrag.js
|
|
21291
21370
|
|
|
21292
21371
|
|
|
@@ -21301,7 +21380,7 @@ function mouseDrag(evt) {
|
|
|
21301
21380
|
}
|
|
21302
21381
|
activeTool.mouseDragCallback(evt);
|
|
21303
21382
|
}
|
|
21304
|
-
|
|
21383
|
+
|
|
21305
21384
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseMove.js
|
|
21306
21385
|
|
|
21307
21386
|
|
|
@@ -21340,17 +21419,17 @@ function mouseMove(evt) {
|
|
|
21340
21419
|
utilities_triggerAnnotationRender(element);
|
|
21341
21420
|
}
|
|
21342
21421
|
}
|
|
21343
|
-
|
|
21422
|
+
|
|
21344
21423
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseUp.js
|
|
21345
21424
|
|
|
21346
21425
|
const mouseUp = customCallbackHandler.bind(null, 'Mouse', 'mouseUpCallback');
|
|
21347
21426
|
/* harmony default export */ const mouseEventHandlers_mouseUp = (mouseUp);
|
|
21348
|
-
|
|
21427
|
+
|
|
21349
21428
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/mouseWheel.js
|
|
21350
21429
|
|
|
21351
21430
|
const mouseWheel = customCallbackHandler.bind(null, 'MouseWheel', 'mouseWheelCallback');
|
|
21352
21431
|
/* harmony default export */ const mouseEventHandlers_mouseWheel = (mouseWheel);
|
|
21353
|
-
|
|
21432
|
+
|
|
21354
21433
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseEventHandlers/index.js
|
|
21355
21434
|
|
|
21356
21435
|
|
|
@@ -21361,7 +21440,7 @@ const mouseWheel = customCallbackHandler.bind(null, 'MouseWheel', 'mouseWheelCal
|
|
|
21361
21440
|
|
|
21362
21441
|
|
|
21363
21442
|
|
|
21364
|
-
|
|
21443
|
+
|
|
21365
21444
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/mouseToolEventDispatcher.js
|
|
21366
21445
|
|
|
21367
21446
|
|
|
@@ -21390,7 +21469,7 @@ const mouseToolEventDispatcher = {
|
|
|
21390
21469
|
disable: mouseToolEventDispatcher_disable,
|
|
21391
21470
|
};
|
|
21392
21471
|
/* harmony default export */ const eventDispatchers_mouseToolEventDispatcher = (mouseToolEventDispatcher);
|
|
21393
|
-
|
|
21472
|
+
|
|
21394
21473
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getActiveToolForKeyboardEvent.js
|
|
21395
21474
|
|
|
21396
21475
|
|
|
@@ -21418,7 +21497,7 @@ function getActiveToolForKeyboardEvent(evt) {
|
|
|
21418
21497
|
}
|
|
21419
21498
|
}
|
|
21420
21499
|
}
|
|
21421
|
-
|
|
21500
|
+
|
|
21422
21501
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/keyboardEventHandlers/keyDown.js
|
|
21423
21502
|
|
|
21424
21503
|
|
|
@@ -21434,7 +21513,7 @@ function keyDown(evt) {
|
|
|
21434
21513
|
toolGroup.setViewportsCursorByToolName(toolName);
|
|
21435
21514
|
}
|
|
21436
21515
|
}
|
|
21437
|
-
|
|
21516
|
+
|
|
21438
21517
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/keyboardEventHandlers/keyUp.js
|
|
21439
21518
|
|
|
21440
21519
|
|
|
@@ -21452,12 +21531,12 @@ function keyUp(evt) {
|
|
|
21452
21531
|
toolGroup.setViewportsCursorByToolName(toolName);
|
|
21453
21532
|
}
|
|
21454
21533
|
}
|
|
21455
|
-
|
|
21534
|
+
|
|
21456
21535
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/keyboardEventHandlers/index.js
|
|
21457
21536
|
|
|
21458
21537
|
|
|
21459
21538
|
|
|
21460
|
-
|
|
21539
|
+
|
|
21461
21540
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/keyboardToolEventDispatcher.js
|
|
21462
21541
|
|
|
21463
21542
|
|
|
@@ -21474,7 +21553,7 @@ const keyboardToolEventDispatcher = {
|
|
|
21474
21553
|
disable: keyboardToolEventDispatcher_disable,
|
|
21475
21554
|
};
|
|
21476
21555
|
/* harmony default export */ const eventDispatchers_keyboardToolEventDispatcher = (keyboardToolEventDispatcher);
|
|
21477
|
-
|
|
21556
|
+
|
|
21478
21557
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/cameraModifiedEventDispatcher.js
|
|
21479
21558
|
|
|
21480
21559
|
|
|
@@ -21502,7 +21581,7 @@ const cameraModifiedEventDispatcher_disable = function (element) {
|
|
|
21502
21581
|
enable: cameraModifiedEventDispatcher_enable,
|
|
21503
21582
|
disable: cameraModifiedEventDispatcher_disable,
|
|
21504
21583
|
});
|
|
21505
|
-
|
|
21584
|
+
|
|
21506
21585
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/imageSpacingCalibratedEventDispatcher.js
|
|
21507
21586
|
|
|
21508
21587
|
|
|
@@ -21530,7 +21609,7 @@ const imageSpacingCalibratedEventDispatcher_disable = function (element) {
|
|
|
21530
21609
|
enable: imageSpacingCalibratedEventDispatcher_enable,
|
|
21531
21610
|
disable: imageSpacingCalibratedEventDispatcher_disable,
|
|
21532
21611
|
});
|
|
21533
|
-
|
|
21612
|
+
|
|
21534
21613
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getActiveToolForTouchEvent.js
|
|
21535
21614
|
|
|
21536
21615
|
|
|
@@ -21561,7 +21640,7 @@ function getActiveToolForTouchEvent(evt) {
|
|
|
21561
21640
|
}
|
|
21562
21641
|
}
|
|
21563
21642
|
}
|
|
21564
|
-
|
|
21643
|
+
|
|
21565
21644
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/shared/getToolsWithModesForTouchEvent.js
|
|
21566
21645
|
|
|
21567
21646
|
function getToolsWithModesForTouchEvent(evt, modesFilter, numTouchPoints) {
|
|
@@ -21586,7 +21665,7 @@ function getToolsWithModesForTouchEvent(evt, modesFilter, numTouchPoints) {
|
|
|
21586
21665
|
}
|
|
21587
21666
|
return enabledTools;
|
|
21588
21667
|
}
|
|
21589
|
-
|
|
21668
|
+
|
|
21590
21669
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchStart.js
|
|
21591
21670
|
|
|
21592
21671
|
|
|
@@ -21667,7 +21746,7 @@ function touchStart_toggleAnnotationSelection(annotationUID, isMultiSelect = fal
|
|
|
21667
21746
|
setAnnotationSelected(annotationUID, true, preserveSelected);
|
|
21668
21747
|
}
|
|
21669
21748
|
}
|
|
21670
|
-
|
|
21749
|
+
|
|
21671
21750
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchStartActivate.js
|
|
21672
21751
|
|
|
21673
21752
|
|
|
@@ -21688,7 +21767,7 @@ function touchStartActivate(evt) {
|
|
|
21688
21767
|
setAnnotationSelected(annotation.annotationUID);
|
|
21689
21768
|
}
|
|
21690
21769
|
}
|
|
21691
|
-
|
|
21770
|
+
|
|
21692
21771
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchDrag.js
|
|
21693
21772
|
|
|
21694
21773
|
|
|
@@ -21703,22 +21782,22 @@ function touchDrag(evt) {
|
|
|
21703
21782
|
}
|
|
21704
21783
|
activeTool.touchDragCallback(evt);
|
|
21705
21784
|
}
|
|
21706
|
-
|
|
21785
|
+
|
|
21707
21786
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchEnd.js
|
|
21708
21787
|
|
|
21709
21788
|
const touchEnd = customCallbackHandler.bind(null, 'Touch', 'touchEndCallback');
|
|
21710
21789
|
/* harmony default export */ const touchEventHandlers_touchEnd = (touchEnd);
|
|
21711
|
-
|
|
21790
|
+
|
|
21712
21791
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchTap.js
|
|
21713
21792
|
|
|
21714
21793
|
const touchTap = customCallbackHandler.bind(null, 'Touch', 'touchTapCallback');
|
|
21715
21794
|
/* harmony default export */ const touchEventHandlers_touchTap = (touchTap);
|
|
21716
|
-
|
|
21795
|
+
|
|
21717
21796
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/touchPress.js
|
|
21718
21797
|
|
|
21719
21798
|
const touchPress = customCallbackHandler.bind(null, 'Touch', 'touchPressCallback');
|
|
21720
21799
|
/* harmony default export */ const touchEventHandlers_touchPress = (touchPress);
|
|
21721
|
-
|
|
21800
|
+
|
|
21722
21801
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchEventHandlers/index.js
|
|
21723
21802
|
|
|
21724
21803
|
|
|
@@ -21727,7 +21806,7 @@ const touchPress = customCallbackHandler.bind(null, 'Touch', 'touchPressCallback
|
|
|
21727
21806
|
|
|
21728
21807
|
|
|
21729
21808
|
|
|
21730
|
-
|
|
21809
|
+
|
|
21731
21810
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/touchToolEventDispatcher.js
|
|
21732
21811
|
|
|
21733
21812
|
|
|
@@ -21751,7 +21830,7 @@ const touchToolEventDispatcher = {
|
|
|
21751
21830
|
disable: touchToolEventDispatcher_disable,
|
|
21752
21831
|
};
|
|
21753
21832
|
/* harmony default export */ const eventDispatchers_touchToolEventDispatcher = (touchToolEventDispatcher);
|
|
21754
|
-
|
|
21833
|
+
|
|
21755
21834
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/eventDispatchers/index.js
|
|
21756
21835
|
|
|
21757
21836
|
|
|
@@ -21760,7 +21839,7 @@ const touchToolEventDispatcher = {
|
|
|
21760
21839
|
|
|
21761
21840
|
|
|
21762
21841
|
|
|
21763
|
-
|
|
21842
|
+
|
|
21764
21843
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/addEnabledElement.js
|
|
21765
21844
|
|
|
21766
21845
|
|
|
@@ -21828,7 +21907,7 @@ function _setSvgNodeCache(element) {
|
|
|
21828
21907
|
function _appendChild(newNode, referenceNode) {
|
|
21829
21908
|
referenceNode.querySelector('div.viewport-element').appendChild(newNode);
|
|
21830
21909
|
}
|
|
21831
|
-
|
|
21910
|
+
|
|
21832
21911
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/getSynchronizersForViewport.js
|
|
21833
21912
|
|
|
21834
21913
|
function getSynchronizersForViewport(viewportId, renderingEngineId) {
|
|
@@ -21848,7 +21927,7 @@ function getSynchronizersForViewport(viewportId, renderingEngineId) {
|
|
|
21848
21927
|
return synchronizersFilteredByIds;
|
|
21849
21928
|
}
|
|
21850
21929
|
/* harmony default export */ const SynchronizerManager_getSynchronizersForViewport = (getSynchronizersForViewport);
|
|
21851
|
-
|
|
21930
|
+
|
|
21852
21931
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/getToolGroupForViewport.js
|
|
21853
21932
|
|
|
21854
21933
|
function getToolGroupForViewport(viewportId, renderingEngineId) {
|
|
@@ -21864,7 +21943,7 @@ function getToolGroupForViewport(viewportId, renderingEngineId) {
|
|
|
21864
21943
|
return toolGroupFilteredByIds[0];
|
|
21865
21944
|
}
|
|
21866
21945
|
/* harmony default export */ const ToolGroupManager_getToolGroupForViewport = (getToolGroupForViewport);
|
|
21867
|
-
|
|
21946
|
+
|
|
21868
21947
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/removeEnabledElement.js
|
|
21869
21948
|
|
|
21870
21949
|
|
|
@@ -21942,7 +22021,7 @@ const _removeEnabledElement = function (element) {
|
|
|
21942
22021
|
}
|
|
21943
22022
|
};
|
|
21944
22023
|
/* harmony default export */ const store_removeEnabledElement = (removeEnabledElement);
|
|
21945
|
-
|
|
22024
|
+
|
|
21946
22025
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/cancelActiveManipulations.js
|
|
21947
22026
|
|
|
21948
22027
|
|
|
@@ -21960,11 +22039,11 @@ function cancelActiveManipulations(element) {
|
|
|
21960
22039
|
}
|
|
21961
22040
|
}
|
|
21962
22041
|
}
|
|
21963
|
-
|
|
22042
|
+
|
|
21964
22043
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/Synchronizer.js
|
|
21965
22044
|
|
|
21966
22045
|
class Synchronizer {
|
|
21967
|
-
constructor(synchronizerId, eventName, eventHandler) {
|
|
22046
|
+
constructor(synchronizerId, eventName, eventHandler, options) {
|
|
21968
22047
|
this._viewportOptions = {};
|
|
21969
22048
|
this._onEvent = (evt) => {
|
|
21970
22049
|
if (this._ignoreFiredEvents === true) {
|
|
@@ -21992,6 +22071,7 @@ class Synchronizer {
|
|
|
21992
22071
|
this._ignoreFiredEvents = false;
|
|
21993
22072
|
this._sourceViewports = [];
|
|
21994
22073
|
this._targetViewports = [];
|
|
22074
|
+
this._options = options || {};
|
|
21995
22075
|
this.id = synchronizerId;
|
|
21996
22076
|
}
|
|
21997
22077
|
isDisabled() {
|
|
@@ -22080,7 +22160,7 @@ class Synchronizer {
|
|
|
22080
22160
|
if (targetIsSource) {
|
|
22081
22161
|
continue;
|
|
22082
22162
|
}
|
|
22083
|
-
this._eventHandler(this, sourceViewport, targetViewport, sourceEvent);
|
|
22163
|
+
this._eventHandler(this, sourceViewport, targetViewport, sourceEvent, this._options);
|
|
22084
22164
|
}
|
|
22085
22165
|
}
|
|
22086
22166
|
catch (ex) {
|
|
@@ -22138,21 +22218,21 @@ function _getViewportElement(vp) {
|
|
|
22138
22218
|
return renderingEngine.getViewport(vp.viewportId).element;
|
|
22139
22219
|
}
|
|
22140
22220
|
/* harmony default export */ const SynchronizerManager_Synchronizer = (Synchronizer);
|
|
22141
|
-
|
|
22221
|
+
|
|
22142
22222
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/createSynchronizer.js
|
|
22143
22223
|
|
|
22144
22224
|
|
|
22145
|
-
function createSynchronizer(synchronizerId, eventName, eventHandler) {
|
|
22225
|
+
function createSynchronizer(synchronizerId, eventName, eventHandler, options) {
|
|
22146
22226
|
const synchronizerWithSameIdExists = state.synchronizers.some((sync) => sync.id === synchronizerId);
|
|
22147
22227
|
if (synchronizerWithSameIdExists) {
|
|
22148
22228
|
throw new Error(`Synchronizer with id '${synchronizerId}' already exists.`);
|
|
22149
22229
|
}
|
|
22150
|
-
const synchronizer = new SynchronizerManager_Synchronizer(synchronizerId, eventName, eventHandler);
|
|
22230
|
+
const synchronizer = new SynchronizerManager_Synchronizer(synchronizerId, eventName, eventHandler, options);
|
|
22151
22231
|
state.synchronizers.push(synchronizer);
|
|
22152
22232
|
return synchronizer;
|
|
22153
22233
|
}
|
|
22154
22234
|
/* harmony default export */ const SynchronizerManager_createSynchronizer = (createSynchronizer);
|
|
22155
|
-
|
|
22235
|
+
|
|
22156
22236
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/destroy.js
|
|
22157
22237
|
|
|
22158
22238
|
function destroy() {
|
|
@@ -22162,21 +22242,21 @@ function destroy() {
|
|
|
22162
22242
|
}
|
|
22163
22243
|
}
|
|
22164
22244
|
/* harmony default export */ const SynchronizerManager_destroy = (destroy);
|
|
22165
|
-
|
|
22245
|
+
|
|
22166
22246
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/getSynchronizer.js
|
|
22167
22247
|
|
|
22168
22248
|
function getSynchronizer(synchronizerId) {
|
|
22169
22249
|
return state.synchronizers.find((s) => s.id === synchronizerId);
|
|
22170
22250
|
}
|
|
22171
22251
|
/* harmony default export */ const SynchronizerManager_getSynchronizer = (getSynchronizer);
|
|
22172
|
-
|
|
22252
|
+
|
|
22173
22253
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/getAllSynchronizers.js
|
|
22174
22254
|
|
|
22175
22255
|
function getAllSynchronizers() {
|
|
22176
22256
|
return state.synchronizers;
|
|
22177
22257
|
}
|
|
22178
22258
|
/* harmony default export */ const SynchronizerManager_getAllSynchronizers = (getAllSynchronizers);
|
|
22179
|
-
|
|
22259
|
+
|
|
22180
22260
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/destroySynchronizer.js
|
|
22181
22261
|
|
|
22182
22262
|
function destroySynchronizer(synchronizerId) {
|
|
@@ -22188,7 +22268,7 @@ function destroySynchronizer(synchronizerId) {
|
|
|
22188
22268
|
}
|
|
22189
22269
|
}
|
|
22190
22270
|
/* harmony default export */ const SynchronizerManager_destroySynchronizer = (destroySynchronizer);
|
|
22191
|
-
|
|
22271
|
+
|
|
22192
22272
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/index.js
|
|
22193
22273
|
|
|
22194
22274
|
|
|
@@ -22197,7 +22277,7 @@ function destroySynchronizer(synchronizerId) {
|
|
|
22197
22277
|
|
|
22198
22278
|
|
|
22199
22279
|
|
|
22200
|
-
|
|
22280
|
+
|
|
22201
22281
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/index.js
|
|
22202
22282
|
|
|
22203
22283
|
|
|
@@ -22209,9 +22289,9 @@ function destroySynchronizer(synchronizerId) {
|
|
|
22209
22289
|
|
|
22210
22290
|
|
|
22211
22291
|
|
|
22212
|
-
|
|
22292
|
+
|
|
22213
22293
|
// EXTERNAL MODULE: ../../../node_modules/lodash.get/index.js
|
|
22214
|
-
var lodash_get = __webpack_require__(
|
|
22294
|
+
var lodash_get = __webpack_require__(20346);
|
|
22215
22295
|
var lodash_get_default = /*#__PURE__*/__webpack_require__.n(lodash_get);
|
|
22216
22296
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/ToolGroup.js
|
|
22217
22297
|
|
|
@@ -22555,7 +22635,7 @@ function hasSameBinding(binding1, binding2) {
|
|
|
22555
22635
|
}
|
|
22556
22636
|
return binding1.modifierKey === binding2.modifierKey;
|
|
22557
22637
|
}
|
|
22558
|
-
|
|
22638
|
+
|
|
22559
22639
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/createToolGroup.js
|
|
22560
22640
|
|
|
22561
22641
|
|
|
@@ -22570,7 +22650,7 @@ function createToolGroup(toolGroupId) {
|
|
|
22570
22650
|
return toolGroup;
|
|
22571
22651
|
}
|
|
22572
22652
|
/* harmony default export */ const ToolGroupManager_createToolGroup = (createToolGroup);
|
|
22573
|
-
|
|
22653
|
+
|
|
22574
22654
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/destroyToolGroup.js
|
|
22575
22655
|
|
|
22576
22656
|
|
|
@@ -22584,7 +22664,7 @@ function destroyToolGroup(toolGroupId) {
|
|
|
22584
22664
|
}
|
|
22585
22665
|
}
|
|
22586
22666
|
/* harmony default export */ const ToolGroupManager_destroyToolGroup = (destroyToolGroup);
|
|
22587
|
-
|
|
22667
|
+
|
|
22588
22668
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/destroy.js
|
|
22589
22669
|
|
|
22590
22670
|
|
|
@@ -22596,21 +22676,21 @@ function destroy_destroy() {
|
|
|
22596
22676
|
state.toolGroups = [];
|
|
22597
22677
|
}
|
|
22598
22678
|
/* harmony default export */ const ToolGroupManager_destroy = (destroy_destroy);
|
|
22599
|
-
|
|
22679
|
+
|
|
22600
22680
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/getToolGroup.js
|
|
22601
22681
|
|
|
22602
22682
|
function getToolGroup(toolGroupId) {
|
|
22603
22683
|
return state.toolGroups.find((s) => s.id === toolGroupId);
|
|
22604
22684
|
}
|
|
22605
22685
|
/* harmony default export */ const ToolGroupManager_getToolGroup = (getToolGroup);
|
|
22606
|
-
|
|
22686
|
+
|
|
22607
22687
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/getAllToolGroups.js
|
|
22608
22688
|
|
|
22609
22689
|
function getAllToolGroups() {
|
|
22610
22690
|
return state.toolGroups;
|
|
22611
22691
|
}
|
|
22612
22692
|
/* harmony default export */ const ToolGroupManager_getAllToolGroups = (getAllToolGroups);
|
|
22613
|
-
|
|
22693
|
+
|
|
22614
22694
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/getToolGroupsWithToolName.js
|
|
22615
22695
|
|
|
22616
22696
|
|
|
@@ -22632,7 +22712,7 @@ function getToolGroupsWithToolName(toolName) {
|
|
|
22632
22712
|
});
|
|
22633
22713
|
}
|
|
22634
22714
|
/* harmony default export */ const ToolGroupManager_getToolGroupsWithToolName = (getToolGroupsWithToolName);
|
|
22635
|
-
|
|
22715
|
+
|
|
22636
22716
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
|
|
22637
22717
|
|
|
22638
22718
|
|
|
@@ -22642,7 +22722,7 @@ function getToolGroupsWithToolName(toolName) {
|
|
|
22642
22722
|
|
|
22643
22723
|
|
|
22644
22724
|
|
|
22645
|
-
|
|
22725
|
+
|
|
22646
22726
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/helpers/state.js
|
|
22647
22727
|
|
|
22648
22728
|
|
|
@@ -22688,7 +22768,7 @@ function triggerAnnotationAddedForFOR(annotation) {
|
|
|
22688
22768
|
});
|
|
22689
22769
|
}
|
|
22690
22770
|
|
|
22691
|
-
|
|
22771
|
+
|
|
22692
22772
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
|
|
22693
22773
|
|
|
22694
22774
|
|
|
@@ -22753,7 +22833,7 @@ function removeAllAnnotations() {
|
|
|
22753
22833
|
manager.removeAllAnnotations();
|
|
22754
22834
|
}
|
|
22755
22835
|
|
|
22756
|
-
|
|
22836
|
+
|
|
22757
22837
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/init.js
|
|
22758
22838
|
|
|
22759
22839
|
|
|
@@ -22816,11 +22896,11 @@ function _removeCornerstoneToolsEventListeners() {
|
|
|
22816
22896
|
esm.eventTarget.removeEventListener(enums_Events.SEGMENTATION_REPRESENTATION_REMOVED, segmentation_segmentationRepresentationRemovedEventListener);
|
|
22817
22897
|
}
|
|
22818
22898
|
/* harmony default export */ const esm_init = ((/* unused pure expression or super */ null && (init)));
|
|
22819
|
-
|
|
22899
|
+
|
|
22820
22900
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/constants/index.js
|
|
22821
22901
|
|
|
22822
22902
|
|
|
22823
|
-
|
|
22903
|
+
|
|
22824
22904
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/cameraSyncCallback.js
|
|
22825
22905
|
|
|
22826
22906
|
function cameraSyncCallback(synchronizerInstance, sourceViewport, targetViewport, cameraModifiedEvent) {
|
|
@@ -22833,7 +22913,7 @@ function cameraSyncCallback(synchronizerInstance, sourceViewport, targetViewport
|
|
|
22833
22913
|
tViewport.setCamera(camera);
|
|
22834
22914
|
tViewport.render();
|
|
22835
22915
|
}
|
|
22836
|
-
|
|
22916
|
+
|
|
22837
22917
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/synchronizers/createCameraPositionSynchronizer.js
|
|
22838
22918
|
|
|
22839
22919
|
|
|
@@ -22843,42 +22923,44 @@ function createCameraPositionSynchronizer(synchronizerName) {
|
|
|
22843
22923
|
const cameraPositionSynchronizer = SynchronizerManager_createSynchronizer(synchronizerName, CAMERA_MODIFIED, cameraSyncCallback);
|
|
22844
22924
|
return cameraPositionSynchronizer;
|
|
22845
22925
|
}
|
|
22846
|
-
|
|
22926
|
+
|
|
22847
22927
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/voiSyncCallback.js
|
|
22848
22928
|
|
|
22849
|
-
function voiSyncCallback(synchronizerInstance, sourceViewport, targetViewport, voiModifiedEvent) {
|
|
22929
|
+
function voiSyncCallback(synchronizerInstance, sourceViewport, targetViewport, voiModifiedEvent, options) {
|
|
22850
22930
|
const eventDetail = voiModifiedEvent.detail;
|
|
22851
|
-
const { volumeId, range } = eventDetail;
|
|
22931
|
+
const { volumeId, range, invertStateChanged, invert } = eventDetail;
|
|
22852
22932
|
const renderingEngine = (0,esm.getRenderingEngine)(targetViewport.renderingEngineId);
|
|
22853
22933
|
if (!renderingEngine) {
|
|
22854
22934
|
throw new Error(`Rendering Engine does not exist: ${targetViewport.renderingEngineId}`);
|
|
22855
22935
|
}
|
|
22856
22936
|
const tViewport = renderingEngine.getViewport(targetViewport.viewportId);
|
|
22857
|
-
|
|
22858
|
-
|
|
22859
|
-
|
|
22860
|
-
|
|
22937
|
+
const tProperties = {
|
|
22938
|
+
voiRange: range,
|
|
22939
|
+
};
|
|
22940
|
+
if (options.syncInvertState && invertStateChanged) {
|
|
22941
|
+
tProperties.invert = invert;
|
|
22942
|
+
}
|
|
22943
|
+
if (tViewport instanceof esm.BaseVolumeViewport) {
|
|
22944
|
+
tViewport.setProperties(tProperties, volumeId);
|
|
22861
22945
|
}
|
|
22862
22946
|
else if (tViewport instanceof esm.StackViewport) {
|
|
22863
|
-
tViewport.setProperties(
|
|
22864
|
-
voiRange: range,
|
|
22865
|
-
});
|
|
22947
|
+
tViewport.setProperties(tProperties);
|
|
22866
22948
|
}
|
|
22867
22949
|
else {
|
|
22868
22950
|
throw new Error('Viewport type not supported.');
|
|
22869
22951
|
}
|
|
22870
22952
|
tViewport.render();
|
|
22871
22953
|
}
|
|
22872
|
-
|
|
22954
|
+
|
|
22873
22955
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/synchronizers/createVOISynchronizer.js
|
|
22874
22956
|
|
|
22875
22957
|
|
|
22876
22958
|
|
|
22877
|
-
function createVOISynchronizer(synchronizerName) {
|
|
22878
|
-
const VOISynchronizer = SynchronizerManager_createSynchronizer(synchronizerName, esm.Enums.Events.VOI_MODIFIED, voiSyncCallback);
|
|
22959
|
+
function createVOISynchronizer(synchronizerName, options = { syncInvertState: true }) {
|
|
22960
|
+
const VOISynchronizer = SynchronizerManager_createSynchronizer(synchronizerName, esm.Enums.Events.VOI_MODIFIED, voiSyncCallback, options);
|
|
22879
22961
|
return VOISynchronizer;
|
|
22880
22962
|
}
|
|
22881
|
-
|
|
22963
|
+
|
|
22882
22964
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/zoomPanSyncCallback.js
|
|
22883
22965
|
|
|
22884
22966
|
function zoomPanSyncCallback(synchronizerInstance, sourceViewport, targetViewport) {
|
|
@@ -22899,7 +22981,7 @@ function zoomPanSyncCallback(synchronizerInstance, sourceViewport, targetViewpor
|
|
|
22899
22981
|
}
|
|
22900
22982
|
tViewport.render();
|
|
22901
22983
|
}
|
|
22902
|
-
|
|
22984
|
+
|
|
22903
22985
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/synchronizers/createZoomPanSynchronizer.js
|
|
22904
22986
|
|
|
22905
22987
|
|
|
@@ -22909,7 +22991,7 @@ function createZoomPanSynchronizer(synchronizerName) {
|
|
|
22909
22991
|
const zoomPanSynchronizer = SynchronizerManager_createSynchronizer(synchronizerName, createZoomPanSynchronizer_CAMERA_MODIFIED, zoomPanSyncCallback);
|
|
22910
22992
|
return zoomPanSynchronizer;
|
|
22911
22993
|
}
|
|
22912
|
-
|
|
22994
|
+
|
|
22913
22995
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/areViewportsCoplanar .js
|
|
22914
22996
|
|
|
22915
22997
|
function areViewportsCoplanar(viewport1, viewport2) {
|
|
@@ -22918,7 +23000,7 @@ function areViewportsCoplanar(viewport1, viewport2) {
|
|
|
22918
23000
|
const dotProducts = gl_matrix_esm/* vec3.dot */.R3.dot(viewPlaneNormal1, viewPlaneNormal2);
|
|
22919
23001
|
return Math.abs(dotProducts) > 0.9;
|
|
22920
23002
|
}
|
|
22921
|
-
|
|
23003
|
+
|
|
22922
23004
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/stackImageSyncCallback.js
|
|
22923
23005
|
|
|
22924
23006
|
|
|
@@ -22981,7 +23063,7 @@ function _getClosestImageIdIndex(targetPoint, imageIds) {
|
|
|
22981
23063
|
index: -1,
|
|
22982
23064
|
});
|
|
22983
23065
|
}
|
|
22984
|
-
|
|
23066
|
+
|
|
22985
23067
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/synchronizers/createStackImageSynchronizer.js
|
|
22986
23068
|
|
|
22987
23069
|
|
|
@@ -22991,17 +23073,17 @@ function createStackImageSynchronizer(synchronizerName) {
|
|
|
22991
23073
|
const stackImageSynchronizer = SynchronizerManager_createSynchronizer(synchronizerName, STACK_NEW_IMAGE, stackImageSyncCallback);
|
|
22992
23074
|
return stackImageSynchronizer;
|
|
22993
23075
|
}
|
|
22994
|
-
|
|
23076
|
+
|
|
22995
23077
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/index.js
|
|
22996
23078
|
|
|
22997
23079
|
|
|
22998
23080
|
|
|
22999
23081
|
|
|
23000
23082
|
|
|
23001
|
-
|
|
23083
|
+
|
|
23002
23084
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/types/index.js
|
|
23003
23085
|
|
|
23004
|
-
|
|
23086
|
+
|
|
23005
23087
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
23006
23088
|
|
|
23007
23089
|
|
|
@@ -23016,11 +23098,11 @@ function createStackImageSynchronizer(synchronizerName) {
|
|
|
23016
23098
|
|
|
23017
23099
|
|
|
23018
23100
|
|
|
23019
|
-
|
|
23101
|
+
|
|
23020
23102
|
|
|
23021
23103
|
/***/ }),
|
|
23022
23104
|
|
|
23023
|
-
/***/
|
|
23105
|
+
/***/ 20346:
|
|
23024
23106
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
23025
23107
|
|
|
23026
23108
|
/**
|