@ohif/app 3.12.0-beta.18 → 3.12.0-beta.19
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.f965bf588ff43cbdbf33.js → 1447.bundle.0a154e7f7d76c41230bc.js} +2 -2
- package/dist/{1927.bundle.1bad24373a4ff51d467b.js → 1927.bundle.82e29425e908368b8e23.js} +1 -1
- package/dist/{9732.bundle.91cb05748bef4e4f67c2.js → 2518.bundle.09da9efcaf81e4ea7913.js} +111 -133
- package/dist/{3353.bundle.fbb3a9ab70064cf31f38.js → 3353.bundle.c618f39602da9aa801ea.js} +6 -6
- package/dist/{4019.bundle.e07cc2a71b6e189a706a.js → 4019.bundle.701981ea6b7abed6a66c.js} +0 -31
- package/dist/{4113.bundle.4e5e46dcd24f3a0e9e36.js → 4113.bundle.215fe9196c6d669e421f.js} +3 -3
- package/dist/{6201.bundle.0bb8cedc88643c2fc748.js → 6201.bundle.f6085c06013fb912d525.js} +2 -2
- package/dist/{7197.bundle.bcae44ed5ff8049df6e5.js → 7197.bundle.74554a43699217a9b9d3.js} +2 -2
- package/dist/{7412.bundle.d883f1be70744ae673db.js → 7412.bundle.f5de4a483672f3eabc10.js} +154 -428
- package/dist/{810.bundle.a20ab9b4ac8bbf3d8ff3.js → 810.bundle.14f52ec5b884fba76c5a.js} +2 -2
- package/dist/{9819.bundle.3bd258ca087c76f6a5f8.js → 9819.bundle.44afc84f644470568735.js} +109 -67
- package/dist/{9856.bundle.346af50f988d7bd3dd50.js → 9856.bundle.4a338f5f69c7082091e0.js} +6 -41
- package/dist/{9892.bundle.74e04e0d8f1c92e98456.js → 9892.bundle.eb768b852ed006b855ae.js} +106 -407
- package/dist/{app.bundle.078ca06a8a8c8405e82e.js → app.bundle.504bfb5517bc1132bca3.js} +78 -63
- package/dist/{compute.bundle.325b98c6cb3d3358acea.js → compute.bundle.c15fba70f1aff4b27f25.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.06ac5b26eff5db94568f.js → polySeg.bundle.52580841ea46a924312f.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.e526959d40b9bba9acc5.js → 1459.bundle.0b5251ee87449e8c448d.js} +0 -0
- /package/dist/{1604.bundle.ffb27e594a199185e480.js → 1604.bundle.462b64ef8f14280030c8.js} +0 -0
- /package/dist/{1807.bundle.d1bce22a6eacbd920c74.js → 1807.bundle.798e74833a484e63df35.js} +0 -0
- /package/dist/{1919.bundle.1e07bbff331e0bf72f6c.js → 1919.bundle.67800b052f562f62b7ca.js} +0 -0
- /package/dist/{213.bundle.dd036e31b561eb36c754.js → 213.bundle.5af49160511285c90510.js} +0 -0
- /package/dist/{2243.bundle.9bfd7564e7e2030466d7.js → 2243.bundle.5ac0310859e03c88b990.js} +0 -0
- /package/dist/{2424.bundle.b74a7d8b1176dc032a5e.js → 2424.bundle.f17c3934ff0fd2627410.js} +0 -0
- /package/dist/{414.bundle.541234923e0ab6435ae6.js → 414.bundle.597f0d5426d254b4fd3d.js} +0 -0
- /package/dist/{6027.bundle.824204c4b175df3fcaf3.js → 6027.bundle.d6c980a732f261de16db.js} +0 -0
- /package/dist/{6980.bundle.5ab3d88a4bb28b9449df.js → 6980.bundle.7ededfc1ae0cb1624685.js} +0 -0
- /package/dist/{6991.bundle.85cd548d65bf9e5a14ed.js → 6991.bundle.065b7d8404d7f480b1a0.js} +0 -0
- /package/dist/{7639.bundle.b2e1ce968a2f21a976e8.js → 7639.bundle.f4f8dd81fbe4c14ea45a.js} +0 -0
- /package/dist/{7656.bundle.0bc9c95dc512cb0cd23b.js → 7656.bundle.6bbecd94775dcaa5c099.js} +0 -0
- /package/dist/{85.bundle.5a7be8392cecff50fd2f.js → 85.bundle.2f5327e947af0a781ff7.js} +0 -0
- /package/dist/{8558.bundle.3f0c4fc767630124ab11.js → 8558.bundle.3f9501b6164b238b481b.js} +0 -0
- /package/dist/{8815.bundle.9fc1c1dacadc7d9a985b.js → 8815.bundle.79e04489742149e6e730.js} +0 -0
- /package/dist/{934.bundle.f48146f1dae70a7d252f.js → 934.bundle.8732431ba9addfface52.js} +0 -0
|
@@ -9697,8 +9697,8 @@ function AboutModalDefault() {
|
|
|
9697
9697
|
name
|
|
9698
9698
|
} = (0,browser_detect_es5/* default */.A)();
|
|
9699
9699
|
const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
|
|
9700
|
-
const versionNumber = "3.12.0-beta.
|
|
9701
|
-
const commitHash = "
|
|
9700
|
+
const versionNumber = "3.12.0-beta.19";
|
|
9701
|
+
const commitHash = "fc0e7f8572387a70a09f84ce7cf19129554e1d95";
|
|
9702
9702
|
const [main, beta] = versionNumber.split('-');
|
|
9703
9703
|
return /*#__PURE__*/react.createElement(ui_next_src/* AboutModal */.VTU, {
|
|
9704
9704
|
className: "w-[400px]"
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
|
|
171
171
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
172
172
|
/******/ // return url for filenames based on template
|
|
173
|
-
/******/ return "" + chunkId + ".bundle." + {"732":"6978ac30a1e36abf06db","3353":"
|
|
173
|
+
/******/ return "" + chunkId + ".bundle." + {"732":"6978ac30a1e36abf06db","3353":"c618f39602da9aa801ea","8094":"5c44190a325ac23e3e5c"}[chunkId] + ".js";
|
|
174
174
|
/******/ };
|
|
175
175
|
/******/ })();
|
|
176
176
|
/******/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
1
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2518],{
|
|
2
2
|
|
|
3
3
|
/***/ 3293:
|
|
4
4
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
@@ -458,102 +458,7 @@ var ToolModes;
|
|
|
458
458
|
|
|
459
459
|
/***/ }),
|
|
460
460
|
|
|
461
|
-
/***/
|
|
462
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
463
|
-
|
|
464
|
-
"use strict";
|
|
465
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
466
|
-
/* harmony export */ i: () => (/* binding */ MouseBindings),
|
|
467
|
-
/* harmony export */ q: () => (/* binding */ KeyboardBindings)
|
|
468
|
-
/* harmony export */ });
|
|
469
|
-
var MouseBindings;
|
|
470
|
-
(function (MouseBindings) {
|
|
471
|
-
MouseBindings[MouseBindings["Primary"] = 1] = "Primary";
|
|
472
|
-
MouseBindings[MouseBindings["Secondary"] = 2] = "Secondary";
|
|
473
|
-
MouseBindings[MouseBindings["Primary_And_Secondary"] = 3] = "Primary_And_Secondary";
|
|
474
|
-
MouseBindings[MouseBindings["Auxiliary"] = 4] = "Auxiliary";
|
|
475
|
-
MouseBindings[MouseBindings["Primary_And_Auxiliary"] = 5] = "Primary_And_Auxiliary";
|
|
476
|
-
MouseBindings[MouseBindings["Secondary_And_Auxiliary"] = 6] = "Secondary_And_Auxiliary";
|
|
477
|
-
MouseBindings[MouseBindings["Primary_And_Secondary_And_Auxiliary"] = 7] = "Primary_And_Secondary_And_Auxiliary";
|
|
478
|
-
MouseBindings[MouseBindings["Fourth_Button"] = 8] = "Fourth_Button";
|
|
479
|
-
MouseBindings[MouseBindings["Fifth_Button"] = 16] = "Fifth_Button";
|
|
480
|
-
MouseBindings[MouseBindings["Wheel"] = 524288] = "Wheel";
|
|
481
|
-
MouseBindings[MouseBindings["Wheel_Primary"] = 524289] = "Wheel_Primary";
|
|
482
|
-
})(MouseBindings || (MouseBindings = {}));
|
|
483
|
-
var KeyboardBindings;
|
|
484
|
-
(function (KeyboardBindings) {
|
|
485
|
-
KeyboardBindings[KeyboardBindings["Shift"] = 16] = "Shift";
|
|
486
|
-
KeyboardBindings[KeyboardBindings["Ctrl"] = 17] = "Ctrl";
|
|
487
|
-
KeyboardBindings[KeyboardBindings["Alt"] = 18] = "Alt";
|
|
488
|
-
KeyboardBindings[KeyboardBindings["Meta"] = 91] = "Meta";
|
|
489
|
-
KeyboardBindings[KeyboardBindings["ShiftCtrl"] = 1617] = "ShiftCtrl";
|
|
490
|
-
KeyboardBindings[KeyboardBindings["ShiftAlt"] = 1618] = "ShiftAlt";
|
|
491
|
-
KeyboardBindings[KeyboardBindings["ShiftMeta"] = 1691] = "ShiftMeta";
|
|
492
|
-
KeyboardBindings[KeyboardBindings["CtrlAlt"] = 1718] = "CtrlAlt";
|
|
493
|
-
KeyboardBindings[KeyboardBindings["CtrlMeta"] = 1791] = "CtrlMeta";
|
|
494
|
-
KeyboardBindings[KeyboardBindings["AltMeta"] = 1891] = "AltMeta";
|
|
495
|
-
})(KeyboardBindings || (KeyboardBindings = {}));
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
/***/ }),
|
|
500
|
-
|
|
501
|
-
/***/ 75183:
|
|
502
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
503
|
-
|
|
504
|
-
"use strict";
|
|
505
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
506
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
507
|
-
/* harmony export */ });
|
|
508
|
-
var ChangeTypes;
|
|
509
|
-
(function (ChangeTypes) {
|
|
510
|
-
ChangeTypes["Interaction"] = "Interaction";
|
|
511
|
-
ChangeTypes["HandlesUpdated"] = "HandlesUpdated";
|
|
512
|
-
ChangeTypes["StatsUpdated"] = "StatsUpdated";
|
|
513
|
-
ChangeTypes["InitialSetup"] = "InitialSetup";
|
|
514
|
-
ChangeTypes["Completed"] = "Completed";
|
|
515
|
-
ChangeTypes["InterpolationUpdated"] = "InterpolationUpdated";
|
|
516
|
-
ChangeTypes["History"] = "History";
|
|
517
|
-
ChangeTypes["MetadataReferenceModified"] = "MetadataReferenceModified";
|
|
518
|
-
ChangeTypes["LabelChange"] = "LabelChange";
|
|
519
|
-
})(ChangeTypes || (ChangeTypes = {}));
|
|
520
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChangeTypes);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
/***/ }),
|
|
524
|
-
|
|
525
|
-
/***/ 84093:
|
|
526
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
527
|
-
|
|
528
|
-
"use strict";
|
|
529
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
530
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
531
|
-
/* harmony export */ });
|
|
532
|
-
var StrategyCallbacks;
|
|
533
|
-
(function (StrategyCallbacks) {
|
|
534
|
-
StrategyCallbacks["OnInteractionStart"] = "onInteractionStart";
|
|
535
|
-
StrategyCallbacks["OnInteractionEnd"] = "onInteractionEnd";
|
|
536
|
-
StrategyCallbacks["Preview"] = "preview";
|
|
537
|
-
StrategyCallbacks["RejectPreview"] = "rejectPreview";
|
|
538
|
-
StrategyCallbacks["AcceptPreview"] = "acceptPreview";
|
|
539
|
-
StrategyCallbacks["Fill"] = "fill";
|
|
540
|
-
StrategyCallbacks["Interpolate"] = "interpolate";
|
|
541
|
-
StrategyCallbacks["StrategyFunction"] = "strategyFunction";
|
|
542
|
-
StrategyCallbacks["CreateIsInThreshold"] = "createIsInThreshold";
|
|
543
|
-
StrategyCallbacks["Initialize"] = "initialize";
|
|
544
|
-
StrategyCallbacks["INTERNAL_setValue"] = "setValue";
|
|
545
|
-
StrategyCallbacks["AddPreview"] = "addPreview";
|
|
546
|
-
StrategyCallbacks["ComputeInnerCircleRadius"] = "computeInnerCircleRadius";
|
|
547
|
-
StrategyCallbacks["GetStatistics"] = "getStatistics";
|
|
548
|
-
StrategyCallbacks["EnsureImageVolumeFor3DManipulation"] = "ensureImageVolumeFor3DManipulation";
|
|
549
|
-
StrategyCallbacks["EnsureSegmentationVolumeFor3DManipulation"] = "ensureSegmentationVolumeFor3DManipulation";
|
|
550
|
-
})(StrategyCallbacks || (StrategyCallbacks = {}));
|
|
551
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StrategyCallbacks);
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
/***/ }),
|
|
555
|
-
|
|
556
|
-
/***/ 92740:
|
|
461
|
+
/***/ 53434:
|
|
557
462
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
558
463
|
|
|
559
464
|
"use strict";
|
|
@@ -1551,7 +1456,6 @@ class ArrowAnnotate {
|
|
|
1551
1456
|
SCOORDGroup,
|
|
1552
1457
|
findingGroup
|
|
1553
1458
|
} = MeasurementReport.getSetupMeasurementData(MeasurementGroup);
|
|
1554
|
-
const text = findingGroup.ConceptCodeSequence.CodeMeaning;
|
|
1555
1459
|
const {
|
|
1556
1460
|
GraphicData
|
|
1557
1461
|
} = SCOORDGroup;
|
|
@@ -1583,7 +1487,6 @@ class ArrowAnnotate {
|
|
|
1583
1487
|
}
|
|
1584
1488
|
},
|
|
1585
1489
|
invalidated: true,
|
|
1586
|
-
text,
|
|
1587
1490
|
visible: true
|
|
1588
1491
|
};
|
|
1589
1492
|
return state;
|
|
@@ -1602,12 +1505,12 @@ class ArrowAnnotate {
|
|
|
1602
1505
|
findingSites: findingSites || []
|
|
1603
1506
|
};
|
|
1604
1507
|
|
|
1605
|
-
// If freetext finding isn't present, add it from the tool
|
|
1508
|
+
// If freetext finding isn't present, add it from the tool label.
|
|
1606
1509
|
if (!finding || finding.CodeValue !== CORNERSTONEFREETEXT) {
|
|
1607
1510
|
finding = {
|
|
1608
1511
|
CodeValue: CORNERSTONEFREETEXT,
|
|
1609
1512
|
CodingSchemeDesignator: "CST4",
|
|
1610
|
-
CodeMeaning: tool.
|
|
1513
|
+
CodeMeaning: tool.label
|
|
1611
1514
|
};
|
|
1612
1515
|
}
|
|
1613
1516
|
TID300RepresentationArguments.finding = finding;
|
|
@@ -2358,26 +2261,6 @@ function checkIfPerpendicular(iop1, iop2, tolerance) {
|
|
|
2358
2261
|
|
|
2359
2262
|
|
|
2360
2263
|
|
|
2361
|
-
;// ../../../node_modules/@cornerstonejs/adapters/dist/esm/adapters/helpers/compareArrays.js
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
const {
|
|
2365
|
-
nearlyEqual
|
|
2366
|
-
} = dcmjs_es/* utilities */.BF.orientation;
|
|
2367
|
-
function compareArrays(array1, array2, tolerance) {
|
|
2368
|
-
if (array1.length !== array2.length) {
|
|
2369
|
-
return false;
|
|
2370
|
-
}
|
|
2371
|
-
for (let i = 0; i < array1.length; ++i) {
|
|
2372
|
-
if (!nearlyEqual(array1[i], array2[i], tolerance)) {
|
|
2373
|
-
return false;
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
return true;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
2264
|
;// ../../../node_modules/@cornerstonejs/adapters/dist/esm/adapters/helpers/checkOrientation.js
|
|
2382
2265
|
|
|
2383
2266
|
|
|
@@ -2390,7 +2273,7 @@ function checkOrientation(multiframe, validOrientations, sourceDataDimensions, t
|
|
|
2390
2273
|
const sharedImageOrientationPatient = SharedFunctionalGroupsSequence.PlaneOrientationSequence ? SharedFunctionalGroupsSequence.PlaneOrientationSequence.ImageOrientationPatient : undefined;
|
|
2391
2274
|
const PerFrameFunctionalGroups = PerFrameFunctionalGroupsSequence[0];
|
|
2392
2275
|
const iop = sharedImageOrientationPatient || PerFrameFunctionalGroups.PlaneOrientationSequence.ImageOrientationPatient;
|
|
2393
|
-
const inPlane = validOrientations.some(operation =>
|
|
2276
|
+
const inPlane = validOrientations.some(operation => esm.utilities.isEqual(iop, operation, tolerance));
|
|
2394
2277
|
if (inPlane) {
|
|
2395
2278
|
return "Planar";
|
|
2396
2279
|
}
|
|
@@ -3383,10 +3266,10 @@ function getImageIdOfSourceImagebyGeometry(ReferencedSeriesInstanceUID, FrameOfR
|
|
|
3383
3266
|
// For multiframe images, check each frame's position
|
|
3384
3267
|
if (isMultiframe) {
|
|
3385
3268
|
const framePosition = metadataProvider.get("imagePlaneModule", imageId)?.imagePositionPatient;
|
|
3386
|
-
if (framePosition &&
|
|
3269
|
+
if (framePosition && esm.utilities.isEqual(segFramePosition, framePosition, tolerance)) {
|
|
3387
3270
|
return imageId;
|
|
3388
3271
|
}
|
|
3389
|
-
} else if (
|
|
3272
|
+
} else if (esm.utilities.isEqual(segFramePosition, sourceImageMetadata.ImagePositionPatient, tolerance)) {
|
|
3390
3273
|
return imageId;
|
|
3391
3274
|
}
|
|
3392
3275
|
}
|
|
@@ -3428,38 +3311,38 @@ function Segmentation_4X_getValidOrientations(iop) {
|
|
|
3428
3311
|
* @return {Ndarray} The aligned pixelData.
|
|
3429
3312
|
*/
|
|
3430
3313
|
function Segmentation_4X_alignPixelDataWithSourceData(pixelData2D, iop, orientations, tolerance) {
|
|
3431
|
-
if (
|
|
3314
|
+
if (esm.utilities.isEqual(iop, orientations[0], tolerance)) {
|
|
3432
3315
|
return pixelData2D;
|
|
3433
|
-
} else if (
|
|
3316
|
+
} else if (esm.utilities.isEqual(iop, orientations[1], tolerance)) {
|
|
3434
3317
|
// Flipped vertically.
|
|
3435
3318
|
|
|
3436
3319
|
// Undo Flip
|
|
3437
3320
|
return Segmentation_4X_flipMatrix2D.v(pixelData2D);
|
|
3438
|
-
} else if (
|
|
3321
|
+
} else if (esm.utilities.isEqual(iop, orientations[2], tolerance)) {
|
|
3439
3322
|
// Flipped horizontally.
|
|
3440
3323
|
|
|
3441
3324
|
// Unfo flip
|
|
3442
3325
|
return Segmentation_4X_flipMatrix2D.h(pixelData2D);
|
|
3443
|
-
} else if (
|
|
3326
|
+
} else if (esm.utilities.isEqual(iop, orientations[3], tolerance)) {
|
|
3444
3327
|
//Rotated 90 degrees
|
|
3445
3328
|
|
|
3446
3329
|
// Rotate back
|
|
3447
3330
|
return Segmentation_4X_rotateMatrix902D(pixelData2D);
|
|
3448
|
-
} else if (
|
|
3331
|
+
} else if (esm.utilities.isEqual(iop, orientations[4], tolerance)) {
|
|
3449
3332
|
//Rotated 90 degrees and fliped horizontally.
|
|
3450
3333
|
|
|
3451
3334
|
// Undo flip and rotate back.
|
|
3452
3335
|
return Segmentation_4X_rotateMatrix902D(Segmentation_4X_flipMatrix2D.h(pixelData2D));
|
|
3453
|
-
} else if (
|
|
3336
|
+
} else if (esm.utilities.isEqual(iop, orientations[5], tolerance)) {
|
|
3454
3337
|
// Rotated 90 degrees and fliped vertically
|
|
3455
3338
|
|
|
3456
3339
|
// Unfo flip and rotate back.
|
|
3457
3340
|
return Segmentation_4X_rotateMatrix902D(Segmentation_4X_flipMatrix2D.v(pixelData2D));
|
|
3458
|
-
} else if (
|
|
3341
|
+
} else if (esm.utilities.isEqual(iop, orientations[6], tolerance)) {
|
|
3459
3342
|
// Rotated 180 degrees. // TODO -> Do this more effeciently, there is a 1:1 mapping like 90 degree rotation.
|
|
3460
3343
|
|
|
3461
3344
|
return Segmentation_4X_rotateMatrix902D(Segmentation_4X_rotateMatrix902D(pixelData2D));
|
|
3462
|
-
} else if (
|
|
3345
|
+
} else if (esm.utilities.isEqual(iop, orientations[7], tolerance)) {
|
|
3463
3346
|
// Rotated 270 degrees
|
|
3464
3347
|
|
|
3465
3348
|
// Rotate back.
|
|
@@ -3852,7 +3735,7 @@ function ParametricMap_getImageIdOfSourceImagebyGeometry(ReferencedSeriesInstanc
|
|
|
3852
3735
|
if (sourceImageMetadata === undefined || sourceImageMetadata.ImagePositionPatient === undefined || sourceImageMetadata.FrameOfReferenceUID !== FrameOfReferenceUID || sourceImageMetadata.SeriesInstanceUID !== ReferencedSeriesInstanceUID) {
|
|
3853
3736
|
continue;
|
|
3854
3737
|
}
|
|
3855
|
-
if (
|
|
3738
|
+
if (esm.utilities.isEqual(PerFrameFunctionalGroup.PlanePositionSequence[0].ImagePositionPatient, sourceImageMetadata.ImagePositionPatient, tolerance)) {
|
|
3856
3739
|
return imageIds[imageIdsIndex];
|
|
3857
3740
|
}
|
|
3858
3741
|
}
|
|
@@ -7340,6 +7223,101 @@ function downloadDICOMData(bufferOrDataset, filename) {
|
|
|
7340
7223
|
|
|
7341
7224
|
|
|
7342
7225
|
|
|
7226
|
+
/***/ }),
|
|
7227
|
+
|
|
7228
|
+
/***/ 66452:
|
|
7229
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7230
|
+
|
|
7231
|
+
"use strict";
|
|
7232
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7233
|
+
/* harmony export */ i: () => (/* binding */ MouseBindings),
|
|
7234
|
+
/* harmony export */ q: () => (/* binding */ KeyboardBindings)
|
|
7235
|
+
/* harmony export */ });
|
|
7236
|
+
var MouseBindings;
|
|
7237
|
+
(function (MouseBindings) {
|
|
7238
|
+
MouseBindings[MouseBindings["Primary"] = 1] = "Primary";
|
|
7239
|
+
MouseBindings[MouseBindings["Secondary"] = 2] = "Secondary";
|
|
7240
|
+
MouseBindings[MouseBindings["Primary_And_Secondary"] = 3] = "Primary_And_Secondary";
|
|
7241
|
+
MouseBindings[MouseBindings["Auxiliary"] = 4] = "Auxiliary";
|
|
7242
|
+
MouseBindings[MouseBindings["Primary_And_Auxiliary"] = 5] = "Primary_And_Auxiliary";
|
|
7243
|
+
MouseBindings[MouseBindings["Secondary_And_Auxiliary"] = 6] = "Secondary_And_Auxiliary";
|
|
7244
|
+
MouseBindings[MouseBindings["Primary_And_Secondary_And_Auxiliary"] = 7] = "Primary_And_Secondary_And_Auxiliary";
|
|
7245
|
+
MouseBindings[MouseBindings["Fourth_Button"] = 8] = "Fourth_Button";
|
|
7246
|
+
MouseBindings[MouseBindings["Fifth_Button"] = 16] = "Fifth_Button";
|
|
7247
|
+
MouseBindings[MouseBindings["Wheel"] = 524288] = "Wheel";
|
|
7248
|
+
MouseBindings[MouseBindings["Wheel_Primary"] = 524289] = "Wheel_Primary";
|
|
7249
|
+
})(MouseBindings || (MouseBindings = {}));
|
|
7250
|
+
var KeyboardBindings;
|
|
7251
|
+
(function (KeyboardBindings) {
|
|
7252
|
+
KeyboardBindings[KeyboardBindings["Shift"] = 16] = "Shift";
|
|
7253
|
+
KeyboardBindings[KeyboardBindings["Ctrl"] = 17] = "Ctrl";
|
|
7254
|
+
KeyboardBindings[KeyboardBindings["Alt"] = 18] = "Alt";
|
|
7255
|
+
KeyboardBindings[KeyboardBindings["Meta"] = 91] = "Meta";
|
|
7256
|
+
KeyboardBindings[KeyboardBindings["ShiftCtrl"] = 1617] = "ShiftCtrl";
|
|
7257
|
+
KeyboardBindings[KeyboardBindings["ShiftAlt"] = 1618] = "ShiftAlt";
|
|
7258
|
+
KeyboardBindings[KeyboardBindings["ShiftMeta"] = 1691] = "ShiftMeta";
|
|
7259
|
+
KeyboardBindings[KeyboardBindings["CtrlAlt"] = 1718] = "CtrlAlt";
|
|
7260
|
+
KeyboardBindings[KeyboardBindings["CtrlMeta"] = 1791] = "CtrlMeta";
|
|
7261
|
+
KeyboardBindings[KeyboardBindings["AltMeta"] = 1891] = "AltMeta";
|
|
7262
|
+
})(KeyboardBindings || (KeyboardBindings = {}));
|
|
7263
|
+
|
|
7264
|
+
|
|
7265
|
+
|
|
7266
|
+
/***/ }),
|
|
7267
|
+
|
|
7268
|
+
/***/ 75183:
|
|
7269
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7270
|
+
|
|
7271
|
+
"use strict";
|
|
7272
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7273
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7274
|
+
/* harmony export */ });
|
|
7275
|
+
var ChangeTypes;
|
|
7276
|
+
(function (ChangeTypes) {
|
|
7277
|
+
ChangeTypes["Interaction"] = "Interaction";
|
|
7278
|
+
ChangeTypes["HandlesUpdated"] = "HandlesUpdated";
|
|
7279
|
+
ChangeTypes["StatsUpdated"] = "StatsUpdated";
|
|
7280
|
+
ChangeTypes["InitialSetup"] = "InitialSetup";
|
|
7281
|
+
ChangeTypes["Completed"] = "Completed";
|
|
7282
|
+
ChangeTypes["InterpolationUpdated"] = "InterpolationUpdated";
|
|
7283
|
+
ChangeTypes["History"] = "History";
|
|
7284
|
+
ChangeTypes["MetadataReferenceModified"] = "MetadataReferenceModified";
|
|
7285
|
+
ChangeTypes["LabelChange"] = "LabelChange";
|
|
7286
|
+
})(ChangeTypes || (ChangeTypes = {}));
|
|
7287
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChangeTypes);
|
|
7288
|
+
|
|
7289
|
+
|
|
7290
|
+
/***/ }),
|
|
7291
|
+
|
|
7292
|
+
/***/ 84093:
|
|
7293
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7294
|
+
|
|
7295
|
+
"use strict";
|
|
7296
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7297
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7298
|
+
/* harmony export */ });
|
|
7299
|
+
var StrategyCallbacks;
|
|
7300
|
+
(function (StrategyCallbacks) {
|
|
7301
|
+
StrategyCallbacks["OnInteractionStart"] = "onInteractionStart";
|
|
7302
|
+
StrategyCallbacks["OnInteractionEnd"] = "onInteractionEnd";
|
|
7303
|
+
StrategyCallbacks["Preview"] = "preview";
|
|
7304
|
+
StrategyCallbacks["RejectPreview"] = "rejectPreview";
|
|
7305
|
+
StrategyCallbacks["AcceptPreview"] = "acceptPreview";
|
|
7306
|
+
StrategyCallbacks["Fill"] = "fill";
|
|
7307
|
+
StrategyCallbacks["Interpolate"] = "interpolate";
|
|
7308
|
+
StrategyCallbacks["StrategyFunction"] = "strategyFunction";
|
|
7309
|
+
StrategyCallbacks["CreateIsInThreshold"] = "createIsInThreshold";
|
|
7310
|
+
StrategyCallbacks["Initialize"] = "initialize";
|
|
7311
|
+
StrategyCallbacks["INTERNAL_setValue"] = "setValue";
|
|
7312
|
+
StrategyCallbacks["AddPreview"] = "addPreview";
|
|
7313
|
+
StrategyCallbacks["ComputeInnerCircleRadius"] = "computeInnerCircleRadius";
|
|
7314
|
+
StrategyCallbacks["GetStatistics"] = "getStatistics";
|
|
7315
|
+
StrategyCallbacks["EnsureImageVolumeFor3DManipulation"] = "ensureImageVolumeFor3DManipulation";
|
|
7316
|
+
StrategyCallbacks["EnsureSegmentationVolumeFor3DManipulation"] = "ensureSegmentationVolumeFor3DManipulation";
|
|
7317
|
+
})(StrategyCallbacks || (StrategyCallbacks = {}));
|
|
7318
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StrategyCallbacks);
|
|
7319
|
+
|
|
7320
|
+
|
|
7343
7321
|
/***/ }),
|
|
7344
7322
|
|
|
7345
7323
|
/***/ 94021:
|
|
@@ -4133,30 +4133,30 @@ async function decodeJPEGBaseline12BitAsync(imageFrame, pixelData) {
|
|
|
4133
4133
|
|
|
4134
4134
|
;// ../../../node_modules/@cornerstonejs/dicom-image-loader/dist/esm/shared/decoders/decodeJPEGLossless.js
|
|
4135
4135
|
const decodeJPEGLossless_local = {
|
|
4136
|
-
|
|
4136
|
+
DecoderClass: undefined,
|
|
4137
4137
|
decodeConfig: {},
|
|
4138
4138
|
};
|
|
4139
4139
|
function decodeJPEGLossless_initialize(decodeConfig) {
|
|
4140
4140
|
decodeJPEGLossless_local.decodeConfig = decodeConfig;
|
|
4141
|
-
if (decodeJPEGLossless_local.
|
|
4141
|
+
if (decodeJPEGLossless_local.DecoderClass) {
|
|
4142
4142
|
return Promise.resolve();
|
|
4143
4143
|
}
|
|
4144
4144
|
return new Promise((resolve, reject) => {
|
|
4145
4145
|
__webpack_require__.e(/* import() */ 732).then(__webpack_require__.bind(__webpack_require__, 10732)).then(({ Decoder }) => {
|
|
4146
|
-
|
|
4147
|
-
decodeJPEGLossless_local.jpeg = decoder;
|
|
4146
|
+
decodeJPEGLossless_local.DecoderClass = Decoder;
|
|
4148
4147
|
resolve();
|
|
4149
4148
|
}, reject);
|
|
4150
4149
|
});
|
|
4151
4150
|
}
|
|
4152
4151
|
async function decodeJPEGLossless(imageFrame, pixelData) {
|
|
4153
4152
|
await decodeJPEGLossless_initialize();
|
|
4154
|
-
if (typeof decodeJPEGLossless_local.
|
|
4153
|
+
if (typeof decodeJPEGLossless_local.DecoderClass === 'undefined') {
|
|
4155
4154
|
throw new Error('No JPEG Lossless decoder loaded');
|
|
4156
4155
|
}
|
|
4156
|
+
const decoder = new decodeJPEGLossless_local.DecoderClass();
|
|
4157
4157
|
const byteOutput = imageFrame.bitsAllocated <= 8 ? 1 : 2;
|
|
4158
4158
|
const buffer = pixelData.buffer;
|
|
4159
|
-
const decompressedData =
|
|
4159
|
+
const decompressedData = decoder.decode(buffer, pixelData.byteOffset, pixelData.length, byteOutput);
|
|
4160
4160
|
if (imageFrame.pixelRepresentation === 0) {
|
|
4161
4161
|
if (imageFrame.bitsAllocated === 16) {
|
|
4162
4162
|
imageFrame.pixelData = new Uint16Array(decompressedData.buffer);
|
|
@@ -5137,37 +5137,6 @@ function removeLabelmapFromElement(element, segmentationId) {
|
|
|
5137
5137
|
const { DefaultHistoryMemo } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.HistoryMemo;
|
|
5138
5138
|
const { PointsManager } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities;
|
|
5139
5139
|
class AnnotationTool extends _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A {
|
|
5140
|
-
static createAnnotation(...annotationBaseData) {
|
|
5141
|
-
let annotation = {
|
|
5142
|
-
annotationUID: null,
|
|
5143
|
-
highlighted: true,
|
|
5144
|
-
invalidated: true,
|
|
5145
|
-
metadata: {
|
|
5146
|
-
toolName: this.toolName,
|
|
5147
|
-
},
|
|
5148
|
-
data: {
|
|
5149
|
-
text: '',
|
|
5150
|
-
handles: {
|
|
5151
|
-
points: new Array(),
|
|
5152
|
-
textBox: {
|
|
5153
|
-
hasMoved: false,
|
|
5154
|
-
worldPosition: [0, 0, 0],
|
|
5155
|
-
worldBoundingBox: {
|
|
5156
|
-
topLeft: [0, 0, 0],
|
|
5157
|
-
topRight: [0, 0, 0],
|
|
5158
|
-
bottomLeft: [0, 0, 0],
|
|
5159
|
-
bottomRight: [0, 0, 0],
|
|
5160
|
-
},
|
|
5161
|
-
},
|
|
5162
|
-
},
|
|
5163
|
-
label: '',
|
|
5164
|
-
},
|
|
5165
|
-
};
|
|
5166
|
-
for (const baseData of annotationBaseData) {
|
|
5167
|
-
annotation = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.deepMerge(annotation, baseData);
|
|
5168
|
-
}
|
|
5169
|
-
return annotation;
|
|
5170
|
-
}
|
|
5171
5140
|
static createAnnotationForViewport(viewport, ...annotationBaseData) {
|
|
5172
5141
|
return this.createAnnotation({ metadata: viewport.getViewReference() }, ...annotationBaseData);
|
|
5173
5142
|
}
|
|
@@ -25,8 +25,8 @@ var src = __webpack_require__(76569);
|
|
|
25
25
|
var i18n_src = __webpack_require__(89806);
|
|
26
26
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 186 modules
|
|
27
27
|
var cornerstone_src = __webpack_require__(7656);
|
|
28
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
29
|
-
var esm = __webpack_require__(
|
|
28
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 69 modules
|
|
29
|
+
var esm = __webpack_require__(53434);
|
|
30
30
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
31
31
|
var dist_esm = __webpack_require__(4667);
|
|
32
32
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
@@ -2342,7 +2342,7 @@ const dicomSRExtension = {
|
|
|
2342
2342
|
/* harmony export */ sh: () => (/* binding */ SCOORDTypes)
|
|
2343
2343
|
/* harmony export */ });
|
|
2344
2344
|
/* unused harmony export RelationshipType */
|
|
2345
|
-
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2345
|
+
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53434);
|
|
2346
2346
|
|
|
2347
2347
|
const {
|
|
2348
2348
|
CodeScheme: Cornerstone3DCodeScheme
|
|
@@ -28,8 +28,8 @@ var src = __webpack_require__(76569);
|
|
|
28
28
|
var i18n_src = __webpack_require__(89806);
|
|
29
29
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
30
30
|
var esm = __webpack_require__(15327);
|
|
31
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
32
|
-
var dist_esm = __webpack_require__(
|
|
31
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 69 modules
|
|
32
|
+
var dist_esm = __webpack_require__(53434);
|
|
33
33
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 186 modules
|
|
34
34
|
var cornerstone_src = __webpack_require__(7656);
|
|
35
35
|
;// ../../../extensions/cornerstone-dicom-pmap/src/getSopClassHandlerModule.ts
|
|
@@ -30,8 +30,8 @@ var i18n_src = __webpack_require__(89806);
|
|
|
30
30
|
var esm = __webpack_require__(15327);
|
|
31
31
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
32
32
|
var dist_esm = __webpack_require__(4667);
|
|
33
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
34
|
-
var adapters_dist_esm = __webpack_require__(
|
|
33
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 69 modules
|
|
34
|
+
var adapters_dist_esm = __webpack_require__(53434);
|
|
35
35
|
// EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
|
|
36
36
|
var dcmjs_es = __webpack_require__(5842);
|
|
37
37
|
;// ../../../extensions/cornerstone-dicom-seg/src/utils/dicomlabToRGB.ts
|