@ohif/app 3.13.0-beta.21 → 3.13.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{6409.bundle.24edbaa283b7c521b8f7.js → 2075.bundle.a9783d07b48ca241486e.js} +239 -168
- package/dist/{3081.bundle.69c2ed88c1fc66671e82.js → 3081.bundle.4344a3bedb7e70eb5d78.js} +2 -2
- package/dist/{3461.bundle.b1c56af281517014477c.js → 3461.bundle.7127d96c33ad3cd68c11.js} +3 -3
- package/dist/{4287.bundle.571587a1d29d54203175.js → 4287.bundle.c6bd6cf991e2dae32044.js} +111 -35
- package/dist/{5028.bundle.b75c0bb0fa9a490055bd.js → 5028.bundle.5833a530fe9ade4dc787.js} +2 -2
- package/dist/{2031.bundle.a17bc2d85cef3a9fea57.js → 581.bundle.2bb402f7316b6e8c735b.js} +326 -231
- package/dist/{6280.bundle.6574101421b8a4ab6777.js → 6280.bundle.828ccda61aa5c83408a5.js} +425 -567
- package/dist/{2816.bundle.838fa4d72921c026083c.js → 6386.bundle.d1be64fd274877e918d9.js} +30 -58
- package/dist/{8665.bundle.056dcd3e86743de2526c.js → 7537.bundle.5a26371cf1368d0e5cf2.js} +321 -75
- package/dist/{8305.bundle.e621bc861f8c16092e7c.js → 8305.bundle.61e53a1298804bd4bc46.js} +2 -2
- package/dist/{8583.bundle.d0773ead34455cfa28d7.js → 8583.bundle.3bae324bc92e2a4f00e4.js} +2 -2
- package/dist/{9195.bundle.902ab556e8909fa878a1.js → 9195.bundle.e4457f0ed6c34993e3c6.js} +3 -4
- package/dist/{9205.bundle.dca4f040999d069f1cc5.js → 9205.bundle.a37976b4f3ded2cbb2ab.js} +587 -709
- package/dist/{933.bundle.c8f45e1f380ad5a34e07.js → 933.bundle.a6220d057519db0b7651.js} +2 -2
- package/dist/{app.bundle.38dca800f336facdb28b.js → app.bundle.f8d7e7242f341be6acab.js} +282 -81
- package/dist/{compute.bundle.6bc9d64acadd16a85f59.js → compute.bundle.0fa6bd11224eb79e7474.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.41c40b57dd1b265fb425.js → polySeg.bundle.f15c8d2cc2559db627cf.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.2f3d935de1ef66d49c9b.js → 1459.bundle.fdfad1e671918501e3d2.js} +0 -0
- /package/dist/{1933.bundle.1b74cba28c11aaa349c1.js → 1933.bundle.f89ae7ae7baa9a38128e.js} +0 -0
- /package/dist/{2018.bundle.330c371c2152bc79a68e.js → 2018.bundle.a517a2a8d4b076b2c684.js} +0 -0
- /package/dist/{213.bundle.83766bfd0ad91206ba20.js → 213.bundle.df5bb838062f6a1aa79c.js} +0 -0
- /package/dist/{2424.bundle.8d41a94526449b9c27f2.js → 2424.bundle.c2786065ba1937631a79.js} +0 -0
- /package/dist/{3138.bundle.536017116b2a48fe8f59.js → 3138.bundle.a33cbe78017b1918c923.js} +0 -0
- /package/dist/{4507.bundle.2943a08dea2a96095e86.js → 4507.bundle.895bc803df58395a221f.js} +0 -0
- /package/dist/{4819.bundle.b817d46688ec00d46826.js → 4819.bundle.e97fa2fed6fb6e421f1a.js} +0 -0
- /package/dist/{5015.bundle.ea7e3b295cd3ef134df2.js → 5015.bundle.eff33bbbbd6ff055c742.js} +0 -0
- /package/dist/{5457.bundle.ea0a729d0bb45314d5ca.js → 5457.bundle.4b2e1e0aaf4f54d8cd1e.js} +0 -0
- /package/dist/{5485.bundle.8248a4caa4411103e190.js → 5485.bundle.70dbc4d41d1b5f299e6e.js} +0 -0
- /package/dist/{6027.bundle.b9a666f05ac57e742979.js → 6027.bundle.77ed34c72d695295cc90.js} +0 -0
- /package/dist/{7431.bundle.e6f5f5835a3c49e2309c.js → 7431.bundle.8ddbd21f7b2b8528a14a.js} +0 -0
- /package/dist/{7639.bundle.2e179ab85c66a6def98f.js → 7639.bundle.9a1d8c0a3624fff53cb9.js} +0 -0
- /package/dist/{8499.bundle.59df69e1919739d6e444.js → 8499.bundle.cca6ef54e2c475fc9f2b.js} +0 -0
- /package/dist/{85.bundle.14430d53b13d7ff9f8a8.js → 85.bundle.aa4e9485c037e1bf2cbc.js} +0 -0
- /package/dist/{8558.bundle.288aabeb7473ee9d7312.js → 8558.bundle.69bda0c8e9b438294401.js} +0 -0
- /package/dist/{9927.bundle.006c8d2dda07109c4749.js → 9927.bundle.006b27903e0450ce2e94.js} +0 -0
|
@@ -1716,8 +1716,8 @@ var src = __webpack_require__(42356);
|
|
|
1716
1716
|
var loaders = __webpack_require__(19742);
|
|
1717
1717
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/RequestType.js
|
|
1718
1718
|
var RequestType = __webpack_require__(43213);
|
|
1719
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/dicom-image-loader/dist/esm/index.js +
|
|
1720
|
-
var dicom_image_loader_dist_esm = __webpack_require__(
|
|
1719
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/dicom-image-loader/dist/esm/index.js + 79 modules
|
|
1720
|
+
var dicom_image_loader_dist_esm = __webpack_require__(68750);
|
|
1721
1721
|
;// ../../../extensions/cornerstone/src/initWADOImageLoader.js
|
|
1722
1722
|
|
|
1723
1723
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/* harmony export */ sh: () => (/* binding */ SCOORDTypes)
|
|
11
11
|
/* harmony export */ });
|
|
12
12
|
/* unused harmony export RelationshipType */
|
|
13
|
-
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13
|
+
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80581);
|
|
14
14
|
|
|
15
15
|
const {
|
|
16
16
|
CodeScheme: Cornerstone3DCodeScheme
|
|
@@ -74,8 +74,8 @@ var src = __webpack_require__(42356);
|
|
|
74
74
|
var i18n_src = __webpack_require__(89010);
|
|
75
75
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 193 modules
|
|
76
76
|
var cornerstone_src = __webpack_require__(63081);
|
|
77
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
78
|
-
var esm = __webpack_require__(
|
|
77
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 75 modules
|
|
78
|
+
var esm = __webpack_require__(80581);
|
|
79
79
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
80
80
|
var dist_esm = __webpack_require__(4667);
|
|
81
81
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
@@ -372,7 +372,7 @@ function validateSegmentationInput(segmentationInputArray) {
|
|
|
372
372
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
373
373
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
374
374
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
375
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
375
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18153);
|
|
376
376
|
/* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93126);
|
|
377
377
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42797);
|
|
378
378
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58640);
|
|
@@ -658,7 +658,7 @@ function registerClosedContourEditLoop(toolInstance) {
|
|
|
658
658
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58640);
|
|
659
659
|
/* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(44049);
|
|
660
660
|
/* harmony import */ var _findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5403);
|
|
661
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
661
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(18153);
|
|
662
662
|
/* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82056);
|
|
663
663
|
/* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(93126);
|
|
664
664
|
|
|
@@ -856,10 +856,12 @@ function completeDrawOpenContour(element, options) {
|
|
|
856
856
|
worldPoints[0],
|
|
857
857
|
worldPoints[worldPoints.length - 1],
|
|
858
858
|
];
|
|
859
|
-
if (annotation.data.isOpenUShapeContour
|
|
860
|
-
|
|
861
|
-
annotation.data.
|
|
862
|
-
|
|
859
|
+
if (!annotation.data.isOpenUShapeContour &&
|
|
860
|
+
this.configuration?.openUShapeContour) {
|
|
861
|
+
annotation.data.isOpenUShapeContour = this.configuration.openUShapeContour;
|
|
862
|
+
}
|
|
863
|
+
if (annotation.data.isOpenUShapeContour) {
|
|
864
|
+
annotation.data.openUShapeContourVectorToPeak = (0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__/* .resolveVectorToPeak */ .aV)(canvasPoints, viewport, annotation.data.isOpenUShapeContour);
|
|
863
865
|
}
|
|
864
866
|
if (!textBox.hasMoved) {
|
|
865
867
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__.triggerContourAnnotationCompleted)(annotation, contourHoleProcessingEnabled);
|
|
@@ -964,7 +966,7 @@ function registerDrawLoop(toolInstance) {
|
|
|
964
966
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
965
967
|
/* harmony export */ });
|
|
966
968
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
|
|
967
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
969
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18153);
|
|
968
970
|
|
|
969
971
|
|
|
970
972
|
const { addCanvasPointsToArray, getFirstLineSegmentIntersectionIndexes } = _utilities_math__WEBPACK_IMPORTED_MODULE_1__.polyline;
|
|
@@ -1119,9 +1121,10 @@ function registerEditLoopCommon(toolInstance) {
|
|
|
1119
1121
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1120
1122
|
|
|
1121
1123
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1122
|
-
/* harmony export */
|
|
1123
|
-
/* harmony export */
|
|
1124
|
+
/* harmony export */ J1: () => (/* binding */ resolveVectorToPeakOnRender),
|
|
1125
|
+
/* harmony export */ aV: () => (/* binding */ resolveVectorToPeak)
|
|
1124
1126
|
/* harmony export */ });
|
|
1127
|
+
/* unused harmony export default */
|
|
1125
1128
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
|
|
1126
1129
|
|
|
1127
1130
|
function findOpenUShapedContourVectorToPeak(canvasPoints, viewport) {
|
|
@@ -1157,10 +1160,68 @@ function findOpenUShapedContourVectorToPeak(canvasPoints, viewport) {
|
|
|
1157
1160
|
const toFurthestWorld = toFurthest.map(viewport.canvasToWorld);
|
|
1158
1161
|
return toFurthestWorld;
|
|
1159
1162
|
}
|
|
1160
|
-
function
|
|
1163
|
+
function resolveVectorToPeak(canvasPoints, viewport, variant) {
|
|
1164
|
+
if (variant === 'orthogonalT') {
|
|
1165
|
+
return findOpenUShapedContourVectorToPeakOrthogonal(canvasPoints, viewport);
|
|
1166
|
+
}
|
|
1167
|
+
if (variant === 'lineSegment') {
|
|
1168
|
+
return null;
|
|
1169
|
+
}
|
|
1170
|
+
if (variant) {
|
|
1171
|
+
return findOpenUShapedContourVectorToPeak(canvasPoints, viewport);
|
|
1172
|
+
}
|
|
1173
|
+
return null;
|
|
1174
|
+
}
|
|
1175
|
+
function resolveVectorToPeakOnRender(enabledElement, annotation) {
|
|
1161
1176
|
const { viewport } = enabledElement;
|
|
1162
1177
|
const canvasPoints = annotation.data.contour.polyline.map(viewport.worldToCanvas);
|
|
1163
|
-
return
|
|
1178
|
+
return resolveVectorToPeak(canvasPoints, viewport, annotation.data.isOpenUShapeContour);
|
|
1179
|
+
}
|
|
1180
|
+
function findOpenUShapedContourVectorToPeakOrthogonal(canvasPoints, viewport) {
|
|
1181
|
+
const first = canvasPoints[0];
|
|
1182
|
+
const last = canvasPoints[canvasPoints.length - 1];
|
|
1183
|
+
const firstToLastUnitVector = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.sub */ .Zc.sub(gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create(), last, first);
|
|
1184
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.normalize */ .Zc.normalize(firstToLastUnitVector, firstToLastUnitVector);
|
|
1185
|
+
const chordDir = [
|
|
1186
|
+
firstToLastUnitVector[0],
|
|
1187
|
+
firstToLastUnitVector[1],
|
|
1188
|
+
];
|
|
1189
|
+
const centerOfFirstToLast = [
|
|
1190
|
+
(first[0] + last[0]) / 2,
|
|
1191
|
+
(first[1] + last[1]) / 2,
|
|
1192
|
+
];
|
|
1193
|
+
const delta = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.create */ .Zc.create();
|
|
1194
|
+
let prevDp = null;
|
|
1195
|
+
let prevPoint = null;
|
|
1196
|
+
let orthogonalPoint = null;
|
|
1197
|
+
for (const p of canvasPoints) {
|
|
1198
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.sub */ .Zc.sub(delta, p, centerOfFirstToLast);
|
|
1199
|
+
const dp = gl_matrix__WEBPACK_IMPORTED_MODULE_0__/* .vec2.dot */ .Zc.dot(chordDir, delta);
|
|
1200
|
+
if (prevDp !== null && prevDp * dp < 0) {
|
|
1201
|
+
const t = Math.abs(prevDp) / (Math.abs(prevDp) + Math.abs(dp));
|
|
1202
|
+
orthogonalPoint = [
|
|
1203
|
+
prevPoint[0] + t * (p[0] - prevPoint[0]),
|
|
1204
|
+
prevPoint[1] + t * (p[1] - prevPoint[1]),
|
|
1205
|
+
];
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1208
|
+
if (Math.abs(dp) < 1e-10) {
|
|
1209
|
+
orthogonalPoint = p;
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
prevDp = dp;
|
|
1213
|
+
prevPoint = p;
|
|
1214
|
+
}
|
|
1215
|
+
if (!orthogonalPoint) {
|
|
1216
|
+
console.warn('No orthogonal intersection found for open U-shaped contour');
|
|
1217
|
+
return null;
|
|
1218
|
+
}
|
|
1219
|
+
const toOrthogonal = [
|
|
1220
|
+
orthogonalPoint,
|
|
1221
|
+
centerOfFirstToLast,
|
|
1222
|
+
];
|
|
1223
|
+
const toOrthogonalWorld = toOrthogonal.map(viewport.canvasToWorld);
|
|
1224
|
+
return toOrthogonalWorld;
|
|
1164
1225
|
}
|
|
1165
1226
|
|
|
1166
1227
|
|
|
@@ -1177,7 +1238,7 @@ function findOpenUShapedContourVectorToPeakOnRender(enabledElement, annotation)
|
|
|
1177
1238
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
1178
1239
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
1179
1240
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
1180
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
1241
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18153);
|
|
1181
1242
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42797);
|
|
1182
1243
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58640);
|
|
1183
1244
|
/* harmony import */ var _utilities_contours_updateContourPolyline__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(72967);
|
|
@@ -1474,8 +1535,7 @@ function completeOpenContourEdit(element) {
|
|
|
1474
1535
|
worldPoints[worldPoints.length - 1],
|
|
1475
1536
|
];
|
|
1476
1537
|
if (annotation.data.isOpenUShapeContour) {
|
|
1477
|
-
annotation.data.openUShapeContourVectorToPeak =
|
|
1478
|
-
(0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(fusedCanvasPoints, viewport);
|
|
1538
|
+
annotation.data.openUShapeContourVectorToPeak = (0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__/* .resolveVectorToPeak */ .aV)(fusedCanvasPoints, viewport, annotation.data.isOpenUShapeContour);
|
|
1479
1539
|
}
|
|
1480
1540
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_10__.triggerAnnotationModified)(annotation, element);
|
|
1481
1541
|
}
|
|
@@ -1526,7 +1586,7 @@ function registerOpenContourEditLoop(toolInstance) {
|
|
|
1526
1586
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85204);
|
|
1527
1587
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29857);
|
|
1528
1588
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7001);
|
|
1529
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
1589
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18153);
|
|
1530
1590
|
|
|
1531
1591
|
|
|
1532
1592
|
|
|
@@ -1586,7 +1646,7 @@ function registerOpenContourEndEditLoop(toolInstance) {
|
|
|
1586
1646
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1587
1647
|
/* harmony export */ });
|
|
1588
1648
|
/* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74347);
|
|
1589
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1649
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18153);
|
|
1590
1650
|
/* harmony import */ var _findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5403);
|
|
1591
1651
|
/* harmony import */ var _utilities_contours_getContourHolesDataCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15451);
|
|
1592
1652
|
|
|
@@ -1611,7 +1671,9 @@ function _getRenderingOptions(enabledElement, annotation) {
|
|
|
1611
1671
|
width: lineWidth,
|
|
1612
1672
|
lineDash,
|
|
1613
1673
|
fillColor,
|
|
1614
|
-
fillOpacity
|
|
1674
|
+
fillOpacity: this.configuration?.fillOpacity !== undefined
|
|
1675
|
+
? this.configuration.fillOpacity
|
|
1676
|
+
: fillOpacity,
|
|
1615
1677
|
closePath: isClosedContour,
|
|
1616
1678
|
};
|
|
1617
1679
|
return options;
|
|
@@ -1625,7 +1687,9 @@ function renderContour(enabledElement, svgDrawingHelper, annotation) {
|
|
|
1625
1687
|
}
|
|
1626
1688
|
else {
|
|
1627
1689
|
if (annotation.data.isOpenUShapeContour) {
|
|
1628
|
-
|
|
1690
|
+
if (annotation.data.isOpenUShapeContour !== 'lineSegment') {
|
|
1691
|
+
calculateUShapeContourVectorToPeakIfNotPresent(enabledElement, annotation);
|
|
1692
|
+
}
|
|
1629
1693
|
this.renderOpenUShapedContour(enabledElement, svgDrawingHelper, annotation);
|
|
1630
1694
|
}
|
|
1631
1695
|
else {
|
|
@@ -1635,8 +1699,7 @@ function renderContour(enabledElement, svgDrawingHelper, annotation) {
|
|
|
1635
1699
|
}
|
|
1636
1700
|
function calculateUShapeContourVectorToPeakIfNotPresent(enabledElement, annotation) {
|
|
1637
1701
|
if (!annotation.data.openUShapeContourVectorToPeak) {
|
|
1638
|
-
annotation.data.openUShapeContourVectorToPeak =
|
|
1639
|
-
(0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_2__/* .findOpenUShapedContourVectorToPeakOnRender */ .h)(enabledElement, annotation);
|
|
1702
|
+
annotation.data.openUShapeContourVectorToPeak = (0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_2__/* .resolveVectorToPeakOnRender */ .J1)(enabledElement, annotation);
|
|
1640
1703
|
}
|
|
1641
1704
|
}
|
|
1642
1705
|
function renderClosedContour(enabledElement, svgDrawingHelper, annotation) {
|
|
@@ -1688,15 +1751,12 @@ function renderOpenUShapedContour(enabledElement, svgDrawingHelper, annotation)
|
|
|
1688
1751
|
const { openUShapeContourVectorToPeak } = annotation.data;
|
|
1689
1752
|
const { polyline } = annotation.data.contour;
|
|
1690
1753
|
this.renderOpenContour(enabledElement, svgDrawingHelper, annotation);
|
|
1691
|
-
|
|
1754
|
+
const isLineSegmentOnly = annotation.data.isOpenUShapeContour === 'lineSegment';
|
|
1755
|
+
if (!isLineSegmentOnly && !openUShapeContourVectorToPeak) {
|
|
1692
1756
|
return;
|
|
1693
1757
|
}
|
|
1694
1758
|
const firstCanvasPoint = viewport.worldToCanvas(polyline[0]);
|
|
1695
1759
|
const lastCanvasPoint = viewport.worldToCanvas(polyline[polyline.length - 1]);
|
|
1696
|
-
const openUShapeContourVectorToPeakCanvas = [
|
|
1697
|
-
viewport.worldToCanvas(openUShapeContourVectorToPeak[0]),
|
|
1698
|
-
viewport.worldToCanvas(openUShapeContourVectorToPeak[1]),
|
|
1699
|
-
];
|
|
1700
1760
|
const options = this._getRenderingOptions(enabledElement, annotation);
|
|
1701
1761
|
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_0__.drawPolyline)(svgDrawingHelper, annotation.annotationUID, 'first-to-last', [firstCanvasPoint, lastCanvasPoint], {
|
|
1702
1762
|
color: options.color,
|
|
@@ -1704,15 +1764,31 @@ function renderOpenUShapedContour(enabledElement, svgDrawingHelper, annotation)
|
|
|
1704
1764
|
closePath: false,
|
|
1705
1765
|
lineDash: '2,2',
|
|
1706
1766
|
});
|
|
1707
|
-
(
|
|
1708
|
-
openUShapeContourVectorToPeakCanvas[
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1767
|
+
if (!isLineSegmentOnly) {
|
|
1768
|
+
const openUShapeContourVectorToPeakCanvas = [
|
|
1769
|
+
viewport.worldToCanvas(openUShapeContourVectorToPeak[0]),
|
|
1770
|
+
viewport.worldToCanvas(openUShapeContourVectorToPeak[1]),
|
|
1771
|
+
];
|
|
1772
|
+
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_0__.drawPolyline)(svgDrawingHelper, annotation.annotationUID, 'midpoint-to-open-contour', [
|
|
1773
|
+
openUShapeContourVectorToPeakCanvas[0],
|
|
1774
|
+
openUShapeContourVectorToPeakCanvas[1],
|
|
1775
|
+
], {
|
|
1776
|
+
color: options.color,
|
|
1777
|
+
width: options.width,
|
|
1778
|
+
closePath: false,
|
|
1779
|
+
lineDash: '2,2',
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
if (options.fillOpacity > 0) {
|
|
1783
|
+
const canvasPolyline = polyline.map((worldPos) => viewport.worldToCanvas(worldPos));
|
|
1784
|
+
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_0__.drawPath)(svgDrawingHelper, annotation.annotationUID, 'u-shape-fill', [[...canvasPolyline, firstCanvasPoint]], {
|
|
1785
|
+
color: options.fillColor || options.color,
|
|
1786
|
+
fillColor: options.fillColor || options.color,
|
|
1787
|
+
fillOpacity: options.fillOpacity,
|
|
1788
|
+
closePath: true,
|
|
1789
|
+
width: 0,
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1716
1792
|
}
|
|
1717
1793
|
function renderContourBeingDrawn(enabledElement, svgDrawingHelper, annotation) {
|
|
1718
1794
|
const options = this._getRenderingOptions(enabledElement, annotation);
|
|
@@ -5271,7 +5347,7 @@ function interpolatePoints(originalPoints, knotsIndexes) {
|
|
|
5271
5347
|
/* harmony export */ Q: () => (/* binding */ shouldSmooth),
|
|
5272
5348
|
/* harmony export */ p: () => (/* binding */ getInterpolatedPoints)
|
|
5273
5349
|
/* harmony export */ });
|
|
5274
|
-
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5350
|
+
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18153);
|
|
5275
5351
|
/* harmony import */ var _interpolation_interpolateSegmentPoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61768);
|
|
5276
5352
|
|
|
5277
5353
|
|
|
@@ -26,8 +26,8 @@ var src = __webpack_require__(42356);
|
|
|
26
26
|
var i18n_src = __webpack_require__(89010);
|
|
27
27
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
28
28
|
var esm = __webpack_require__(15327);
|
|
29
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
30
|
-
var dist_esm = __webpack_require__(
|
|
29
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 75 modules
|
|
30
|
+
var dist_esm = __webpack_require__(80581);
|
|
31
31
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 193 modules
|
|
32
32
|
var cornerstone_src = __webpack_require__(63081);
|
|
33
33
|
;// ../../../extensions/cornerstone-dicom-pmap/src/getSopClassHandlerModule.ts
|