@ohif/app 3.12.0-beta.67 → 3.12.0-beta.69
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/{1447.bundle.40045129a43f8dd9c901.js → 1447.bundle.0e8117bd9e72c339bd04.js} +2 -2
- package/dist/{2518.bundle.57c229a14e22d23db384.js → 2518.bundle.bdbd870da5355fdf502a.js} +8 -3
- package/dist/{319.bundle.fc959064ddf2f6978b54.js → 319.bundle.cd9383a345b9da2ba840.js} +1 -1
- package/dist/{3409.bundle.ded798747ea65b47c72c.js → 3409.bundle.2d77e2bddb2a19e798ed.js} +14 -1
- package/dist/{9819.bundle.29fb49e6d25cf486a204.js → 3613.bundle.14721af2527117f720b0.js} +492 -17
- package/dist/{4019.bundle.13e7f662a9e489b74a27.js → 4019.bundle.acd0f85d0467cb10d86a.js} +14 -7
- package/dist/{4113.bundle.d57b077bf8b22a2fffe6.js → 4113.bundle.cdb5aabbb16c44b3937d.js} +7 -11
- package/dist/{2345.bundle.c17b90bde0073fd7dbb6.js → 5400.bundle.eb0f5866140b5db31518.js} +5 -61
- package/dist/{7412.bundle.9ff692981e3c3af1dfaf.js → 7412.bundle.a8aa0b243b2a05031789.js} +660 -417
- package/dist/{8558.bundle.81679f1abf949872a8d7.js → 8558.bundle.29e3ea8a442b8a40e89d.js} +1 -1
- package/dist/{9856.bundle.4d469a7b62ac0c005da2.js → 9856.bundle.31827ec7e09a8978744c.js} +77 -10
- package/dist/{9892.bundle.34f911ad728a17a0ad60.js → 9892.bundle.7a23896727af274e8c43.js} +154 -457
- package/dist/{app.bundle.5e500cc3ae1ec8449424.js → app.bundle.fb405f7159a5d06049af.js} +28 -26
- package/dist/{compute.bundle.bf2d925bfc81c7f05c06.js → compute.bundle.5d0df54f99d2a555a02a.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.1d99496fc36c90c48d48.js → polySeg.bundle.eb47d9d9105dcfbb56fc.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.a3c4154b8f8a929875f6.js → 1459.bundle.6d1fa1c8fdbb81f0f359.js} +0 -0
- /package/dist/{147.bundle.5081555db809adebded5.js → 147.bundle.23cc8fbbd94c0b65d337.js} +0 -0
- /package/dist/{1604.bundle.54c4d82c28d03adab00b.js → 1604.bundle.47f2f0635a91795b3c49.js} +0 -0
- /package/dist/{1807.bundle.92de522ae4def176aff6.js → 1807.bundle.68fc01f6cad9998763ea.js} +0 -0
- /package/dist/{1919.bundle.b709d24082a089fb96f9.js → 1919.bundle.1931c96cc842a6098baa.js} +0 -0
- /package/dist/{213.bundle.06da551965e6495eaf22.js → 213.bundle.f9c868b449c1a68b6f35.js} +0 -0
- /package/dist/{2243.bundle.49e31757e1b67c1631af.js → 2243.bundle.2e464ef173f36231cf06.js} +0 -0
- /package/dist/{2424.bundle.b84347c7c65b70298931.js → 2424.bundle.a9eecc0e2aeb8699f135.js} +0 -0
- /package/dist/{414.bundle.62d7f459bd4c3888de2a.js → 414.bundle.46f922eb0a1911124a73.js} +0 -0
- /package/dist/{5457.bundle.74835d952cd31adf54df.js → 5457.bundle.ee43997565093fa2caec.js} +0 -0
- /package/dist/{5485.bundle.7b59b0105c66003eb8c5.js → 5485.bundle.a15a2f530189848c31ee.js} +0 -0
- /package/dist/{6027.bundle.39d04080242ce96ac848.js → 6027.bundle.8971d7d4eec7b0b4cfb7.js} +0 -0
- /package/dist/{6201.bundle.568aac152c31949d09a4.js → 6201.bundle.cc73f3d377cacd418cb0.js} +0 -0
- /package/dist/{6991.bundle.a0f689bfa5ad3f3ee4a8.js → 6991.bundle.77f5d56a53a04f524bc3.js} +0 -0
- /package/dist/{7197.bundle.c0d2f4d7071f1d49223f.js → 7197.bundle.364e03cf01a6b56217f9.js} +0 -0
- /package/dist/{7431.bundle.859d7586ac7a86c27fb8.js → 7431.bundle.6dee1ec831da974a7433.js} +0 -0
- /package/dist/{7639.bundle.3bae54d7c31bb87eb68e.js → 7639.bundle.e6024d8f644419db89ff.js} +0 -0
- /package/dist/{810.bundle.536730c2c4702996ce35.js → 810.bundle.0806263ecf7902133c17.js} +0 -0
- /package/dist/{85.bundle.1848a6604cfd55f08b91.js → 85.bundle.de54be0dcfcc960c45a0.js} +0 -0
- /package/dist/{8815.bundle.c6b394394ee3e5dda949.js → 8815.bundle.4fe4069d6c0a8d9b95cb.js} +0 -0
- /package/dist/{934.bundle.3cbbd88355500a623dcb.js → 934.bundle.5aef917dada6d51ac96b.js} +0 -0
- /package/dist/{9862.bundle.30916d7d975475c609a1.js → 9862.bundle.dc627e5f01fc4698a00f.js} +0 -0
|
@@ -1367,19 +1367,15 @@ function hydrateStructuredReport({
|
|
|
1367
1367
|
}
|
|
1368
1368
|
const instance = src/* DicomMetadataStore */.H8.getInstance(displaySet.StudyInstanceUID, displaySet.SeriesInstanceUID, displaySet.SOPInstanceUID);
|
|
1369
1369
|
const sopInstanceUIDToImageId = {};
|
|
1370
|
-
const imageIdsForToolState = {};
|
|
1371
1370
|
displaySet.measurements.forEach(measurement => {
|
|
1372
1371
|
const {
|
|
1373
1372
|
ReferencedSOPInstanceUID,
|
|
1374
1373
|
imageId,
|
|
1375
|
-
frameNumber
|
|
1374
|
+
frameNumber = 1
|
|
1376
1375
|
} = measurement;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1381
|
-
if (!imageIdsForToolState[ReferencedSOPInstanceUID][frameNumber]) {
|
|
1382
|
-
imageIdsForToolState[ReferencedSOPInstanceUID][frameNumber] = imageId;
|
|
1376
|
+
const key = `${ReferencedSOPInstanceUID}:${frameNumber}`;
|
|
1377
|
+
if (!sopInstanceUIDToImageId[key]) {
|
|
1378
|
+
sopInstanceUIDToImageId[key] = imageId;
|
|
1383
1379
|
}
|
|
1384
1380
|
});
|
|
1385
1381
|
|
|
@@ -1421,8 +1417,8 @@ function hydrateStructuredReport({
|
|
|
1421
1417
|
// dcmjs and Cornerstone3D has structural defect in supporting multi-frame
|
|
1422
1418
|
// files, and looking up the imageId from sopInstanceUIDToImageId results
|
|
1423
1419
|
// in the wrong value.
|
|
1424
|
-
const frameNumber = toolData.annotation.data
|
|
1425
|
-
const imageId =
|
|
1420
|
+
const frameNumber = toolData.annotation.data?.frameNumber || 1;
|
|
1421
|
+
const imageId = sopInstanceUIDToImageId[`${toolData.sopInstanceUid}:${frameNumber}`];
|
|
1426
1422
|
if (!imageIds.includes(imageId)) {
|
|
1427
1423
|
imageIds.push(imageId);
|
|
1428
1424
|
}
|
|
@@ -1459,7 +1455,7 @@ function hydrateStructuredReport({
|
|
|
1459
1455
|
// files, and looking up the imageId from sopInstanceUIDToImageId results
|
|
1460
1456
|
// in the wrong value.
|
|
1461
1457
|
const frameNumber = toolData.annotation.data && toolData.annotation.data.frameNumber || 1;
|
|
1462
|
-
const imageId =
|
|
1458
|
+
const imageId = sopInstanceUIDToImageId[`${toolData.sopInstanceUid}:${frameNumber}`];
|
|
1463
1459
|
if (!imageId) {
|
|
1464
1460
|
return getReferenceData3D(toolData, servicesManager);
|
|
1465
1461
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[5400],{
|
|
3
3
|
|
|
4
4
|
/***/ 18262:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -891,13 +891,11 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
891
891
|
else {
|
|
892
892
|
this.updateOpenCachedStats({
|
|
893
893
|
metadata,
|
|
894
|
-
canvasCoordinates,
|
|
895
894
|
targetId,
|
|
896
895
|
cachedStats,
|
|
897
896
|
modalityUnit,
|
|
898
897
|
calibratedScale,
|
|
899
|
-
|
|
900
|
-
deltaInY,
|
|
898
|
+
points,
|
|
901
899
|
});
|
|
902
900
|
}
|
|
903
901
|
}
|
|
@@ -1150,8 +1148,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1150
1148
|
worldPosIndex2[2] = Math.floor(worldPosIndex2[2]);
|
|
1151
1149
|
let area = _utilities_math__WEBPACK_IMPORTED_MODULE_4__.polyline.getArea(canvasCoordinates) / scale / scale;
|
|
1152
1150
|
area *= deltaInX * deltaInY;
|
|
1153
|
-
|
|
1154
|
-
perimeter *= Math.sqrt(Math.pow(deltaInX, 2) + Math.pow(deltaInY, 2));
|
|
1151
|
+
const perimeter = (0,_utilities_contours_calculatePerimeter__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .A)(points, closed) / scale;
|
|
1155
1152
|
const iDelta = 0.01 * (iMax - iMin);
|
|
1156
1153
|
const jDelta = 0.01 * (jMax - jMin);
|
|
1157
1154
|
const kDelta = 0.01 * (kMax - kMin);
|
|
@@ -1221,10 +1218,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
1221
1218
|
unit,
|
|
1222
1219
|
};
|
|
1223
1220
|
}
|
|
1224
|
-
updateOpenCachedStats({ targetId, metadata,
|
|
1221
|
+
updateOpenCachedStats({ targetId, metadata, cachedStats, modalityUnit, calibratedScale, points, }) {
|
|
1225
1222
|
const { scale, unit } = calibratedScale;
|
|
1226
|
-
|
|
1227
|
-
length *= Math.sqrt(Math.pow(deltaInX, 2) + Math.pow(deltaInY, 2));
|
|
1223
|
+
const length = (0,_utilities_contours_calculatePerimeter__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .A)(points, closed) / scale;
|
|
1228
1224
|
cachedStats[targetId] = {
|
|
1229
1225
|
Modality: metadata.Modality,
|
|
1230
1226
|
length,
|
|
@@ -2502,58 +2498,6 @@ function pointInSphere(sphere, pointLPS) {
|
|
|
2502
2498
|
|
|
2503
2499
|
|
|
2504
2500
|
|
|
2505
|
-
/***/ }),
|
|
2506
|
-
|
|
2507
|
-
/***/ 61768:
|
|
2508
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2509
|
-
|
|
2510
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2511
|
-
/* harmony export */ A: () => (/* binding */ interpolateSegmentPoints)
|
|
2512
|
-
/* harmony export */ });
|
|
2513
|
-
/* harmony import */ var _algorithms_bspline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30269);
|
|
2514
|
-
|
|
2515
|
-
function getContinuousUniformDistributionValues(minDistributionDistance, closedInterval) {
|
|
2516
|
-
const result = [];
|
|
2517
|
-
const [intervalIni, intervalEnd] = closedInterval;
|
|
2518
|
-
const intervalSize = intervalEnd - intervalIni + 1;
|
|
2519
|
-
const intensity = Math.floor(intervalSize / minDistributionDistance);
|
|
2520
|
-
let x = 0;
|
|
2521
|
-
let continuosDistributionValue = Math.round(((intervalSize - 1) / (intensity - 1)) * x) + intervalIni;
|
|
2522
|
-
while (continuosDistributionValue <= intervalEnd) {
|
|
2523
|
-
result.push(continuosDistributionValue);
|
|
2524
|
-
x++;
|
|
2525
|
-
continuosDistributionValue =
|
|
2526
|
-
Math.round(((intervalSize - 1) / (intensity - 1)) * x) + intervalIni;
|
|
2527
|
-
}
|
|
2528
|
-
return result;
|
|
2529
|
-
}
|
|
2530
|
-
function interpolateSegmentPoints(points, iniIndex, endIndex, knotsRatioPercentage) {
|
|
2531
|
-
const segmentSize = endIndex - iniIndex + 1;
|
|
2532
|
-
const amountOfKnots = Math.floor((knotsRatioPercentage / 100) * segmentSize) ?? 1;
|
|
2533
|
-
const minKnotDistance = Math.floor(segmentSize / amountOfKnots) ?? 1;
|
|
2534
|
-
if (isNaN(segmentSize) || !segmentSize || !minKnotDistance) {
|
|
2535
|
-
return points;
|
|
2536
|
-
}
|
|
2537
|
-
if (segmentSize / minKnotDistance < 2) {
|
|
2538
|
-
return points;
|
|
2539
|
-
}
|
|
2540
|
-
const interpolationIniIndex = Math.max(0, iniIndex);
|
|
2541
|
-
const interpolationEndIndex = Math.min(points.length - 1, endIndex);
|
|
2542
|
-
const segmentPointsUnchangedBeg = points.slice(0, interpolationIniIndex);
|
|
2543
|
-
const segmentPointsUnchangedEnd = points.slice(interpolationEndIndex + 1, points.length);
|
|
2544
|
-
const knotsIndexes = getContinuousUniformDistributionValues(minKnotDistance, [
|
|
2545
|
-
interpolationIniIndex,
|
|
2546
|
-
interpolationEndIndex,
|
|
2547
|
-
]);
|
|
2548
|
-
const interpolatedPoints = (0,_algorithms_bspline__WEBPACK_IMPORTED_MODULE_0__/* .interpolatePoints */ .H)(points, knotsIndexes);
|
|
2549
|
-
return [
|
|
2550
|
-
...segmentPointsUnchangedBeg,
|
|
2551
|
-
...interpolatedPoints,
|
|
2552
|
-
...segmentPointsUnchangedEnd,
|
|
2553
|
-
];
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
2501
|
/***/ }),
|
|
2558
2502
|
|
|
2559
2503
|
/***/ 27730:
|