@ohif/app 3.8.0-beta.85 → 3.8.0-beta.87
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/117.bundle.a5e6959bf225da5cf4ed.js +6552 -0
- package/dist/164.bundle.96c0518b435ea19ef8c4.js +11816 -0
- package/dist/{433.bundle.c92d3f716a797127c1be.js → 203.bundle.846a90d1ede185c941b0.js} +4765 -6951
- package/dist/{206.bundle.f944f8146169a6867103.js → 206.bundle.096c1d86defe1cf7e9ae.js} +26 -16
- package/dist/{183.bundle.fd870b9c566be6b8de8d.js → 236.bundle.fb6c65ae3a5aa0c58727.js} +17552 -23647
- package/dist/{321.bundle.eee08c35b8ae9177aef8.js → 321.bundle.7d6d0ead9384fcb67a5c.js} +21 -33
- package/dist/{325.bundle.3a548f7563cf7f4fa0c3.js → 325.bundle.357db826733b5379bd1d.js} +3 -2
- package/dist/{342.bundle.8c74ac4c7871bd4a6f60.js → 342.bundle.36ee082163b01284eeba.js} +1 -1
- package/dist/{41.bundle.0bbfc8b185335a6af3d2.js → 41.bundle.2f52dafa60516e97cd03.js} +6 -6
- package/dist/{217.bundle.c8c6e6cc3a615ceb5db3.js → 416.bundle.837e0b84baddd2193d67.js} +61666 -70479
- package/dist/{448.bundle.1c84f0bdf33114ffaa23.js → 448.bundle.7c47e50e0db23eeace58.js} +6 -6
- package/dist/473.bundle.f6804e7ac014a561eff8.js +7256 -0
- package/dist/483.bundle.9263b25c34b349aae80e.js +2287 -0
- package/dist/{487.bundle.1e939666fcf482a3f483.js → 487.bundle.adf730aff4ec37332b88.js} +7 -7
- package/dist/{544.bundle.80c013bb477a263bcf10.js → 544.bundle.1b6998bb61d6f8f88da9.js} +2 -2
- package/dist/{574.bundle.9919f94ea252d4a45aaf.js → 574.bundle.d6f15a036af7ecaf82f9.js} +4 -4
- package/dist/{633.bundle.7df396e5ce55038d73f8.js → 633.bundle.ad22fd57eb95ee5f056a.js} +7 -6
- package/dist/{669.bundle.7a2e02cf4a5ddd9f93d0.js → 669.bundle.796543c57c658097fe75.js} +9 -9
- package/dist/{699.bundle.c61a6ee18edaa82bbcb8.js → 699.bundle.4d75ac5add81a2e4ef3b.js} +4 -4
- package/dist/{335.bundle.40079fc4db9cd9e1ea25.js → 7.bundle.ea90a6f6f1d4ab030dfb.js} +185 -228
- package/dist/{722.bundle.2ee939850f552481d21f.js → 722.bundle.05e8759e64d484f4554d.js} +5 -3
- package/dist/{724.bundle.4b4c12fd4021b8e731c8.js → 724.bundle.275035c2002c8fd78471.js} +234 -7
- package/dist/{726.bundle.0b3d9277d22fe7e15b89.js → 726.bundle.c8de818cf1a3ff0cf7d2.js} +2 -2
- package/dist/{164.bundle.1b5c53db66679bcafad8.js → 783.bundle.b28ae6b134602470e2f1.js} +1 -1
- package/dist/{835.bundle.15aff0b7433bb0dd6d6d.js → 835.bundle.4c0eaa2c1a427ee41817.js} +2 -2
- package/dist/{862.bundle.217ce894d955626c78c5.js → 862.bundle.4be5d148c2b1adf4dbf3.js} +2 -2
- package/dist/{889.bundle.3f2ce46ff0852cd05e2d.js → 889.bundle.1a646aa901e073328cad.js} +1 -1
- package/dist/{94.bundle.258d632602d599e426a9.js → 94.bundle.d6749c52eb6327bd45de.js} +4 -4
- package/dist/{app.bundle.6173c1de2db725433585.js → app.bundle.177823343bc7e2b039a2.js} +44214 -42080
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.f75afca9b957abed095e.js → polySeg.bundle.43bf3490e07982491e2b.js} +3 -3
- package/dist/suv-peak-worker.bundle.1f9b9e6887eebc07c50a.js +404 -0
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{188.bundle.382a4f6122f36663fe1b.js → 188.bundle.bef5c8babdde7064bdbe.js} +0 -0
- /package/dist/{594.bundle.a92b4affca5dd5a19008.js → 594.bundle.9a7fd38c5fc9823216e5.js} +0 -0
- /package/dist/{905.bundle.353dbb336dd069f813fc.js → 905.bundle.36ce5f219e58ff9ddf9b.js} +0 -0
- /package/dist/{907.bundle.b18e66ce363df0b55c58.js → 907.bundle.64fa9f550bd239e92346.js} +0 -0
- /package/dist/{961.bundle.c2fd81693f7f1a075bbd.js → 961.bundle.6a18125a324bca120651.js} +0 -0
|
@@ -2750,8 +2750,8 @@ function ViewerHeader({
|
|
|
2750
2750
|
hotkeyDefinitions,
|
|
2751
2751
|
hotkeyDefaults
|
|
2752
2752
|
} = hotkeysManager;
|
|
2753
|
-
const versionNumber = "3.8.0-beta.
|
|
2754
|
-
const commitHash = "
|
|
2753
|
+
const versionNumber = "3.8.0-beta.87";
|
|
2754
|
+
const commitHash = "8192e348eca993fec331d4963efe88f9a730eceb";
|
|
2755
2755
|
const menuOptions = [{
|
|
2756
2756
|
title: t('Header:About'),
|
|
2757
2757
|
icon: 'info',
|
|
@@ -3117,7 +3117,8 @@ function PanelStudyBrowser({
|
|
|
3117
3117
|
} = (0,ui_src/* useImageViewer */.Bz)();
|
|
3118
3118
|
const [{
|
|
3119
3119
|
activeViewportId,
|
|
3120
|
-
viewports
|
|
3120
|
+
viewports,
|
|
3121
|
+
isHangingProtocolLayout
|
|
3121
3122
|
}, viewportGridService] = (0,ui_src/* useViewportGrid */.ih)();
|
|
3122
3123
|
const [activeTabName, setActiveTabName] = (0,react.useState)('primary');
|
|
3123
3124
|
const [expandedStudyInstanceUIDs, setExpandedStudyInstanceUIDs] = (0,react.useState)([...StudyInstanceUIDs]);
|
|
@@ -3128,7 +3129,7 @@ function PanelStudyBrowser({
|
|
|
3128
3129
|
let updatedViewports = [];
|
|
3129
3130
|
const viewportId = activeViewportId;
|
|
3130
3131
|
try {
|
|
3131
|
-
updatedViewports = hangingProtocolService.getViewportsRequireUpdate(viewportId, displaySetInstanceUID);
|
|
3132
|
+
updatedViewports = hangingProtocolService.getViewportsRequireUpdate(viewportId, displaySetInstanceUID, isHangingProtocolLayout);
|
|
3132
3133
|
} catch (error) {
|
|
3133
3134
|
console.warn(error);
|
|
3134
3135
|
uiNotificationService.show({
|
|
@@ -4560,6 +4561,9 @@ function getDisplaySetInfo(instances) {
|
|
|
4560
4561
|
timePoints
|
|
4561
4562
|
} = dynamicVolumeInfo;
|
|
4562
4563
|
let displaySetInfo;
|
|
4564
|
+
const {
|
|
4565
|
+
appConfig
|
|
4566
|
+
} = appContext;
|
|
4563
4567
|
if (isDynamicVolume) {
|
|
4564
4568
|
const timePoint = timePoints[0];
|
|
4565
4569
|
const instancesMap = new Map();
|
|
@@ -4567,9 +4571,9 @@ function getDisplaySetInfo(instances) {
|
|
|
4567
4571
|
// O(n) to convert it into a map and O(1) to find each instance
|
|
4568
4572
|
instances.forEach(instance => instancesMap.set(instance.imageId, instance));
|
|
4569
4573
|
const firstTimePointInstances = timePoint.map(imageId => instancesMap.get(imageId));
|
|
4570
|
-
displaySetInfo = (0,isDisplaySetReconstructable/* default */.Ay)(firstTimePointInstances);
|
|
4574
|
+
displaySetInfo = (0,isDisplaySetReconstructable/* default */.Ay)(firstTimePointInstances, appConfig);
|
|
4571
4575
|
} else {
|
|
4572
|
-
displaySetInfo = (0,isDisplaySetReconstructable/* default */.Ay)(instances);
|
|
4576
|
+
displaySetInfo = (0,isDisplaySetReconstructable/* default */.Ay)(instances, appConfig);
|
|
4573
4577
|
}
|
|
4574
4578
|
return {
|
|
4575
4579
|
isDynamicVolume,
|
|
@@ -4786,6 +4790,9 @@ const generateAdvancedPresets = ({
|
|
|
4786
4790
|
return [];
|
|
4787
4791
|
}
|
|
4788
4792
|
const displaySetInsaneUIDs = viewportGridService.getDisplaySetsUIDsForViewport(viewportId);
|
|
4793
|
+
if (!displaySetInsaneUIDs) {
|
|
4794
|
+
return [];
|
|
4795
|
+
}
|
|
4789
4796
|
const displaySets = displaySetInsaneUIDs.map(uid => displaySetService.getDisplaySetByUID(uid));
|
|
4790
4797
|
return hangingProtocols.map(hp => {
|
|
4791
4798
|
if (!hp.isPreset) {
|
|
@@ -5371,8 +5378,8 @@ function adaptItem(item, subProps) {
|
|
|
5371
5378
|
}
|
|
5372
5379
|
// EXTERNAL MODULE: ../../ui/src/components/ContextMenu/ContextMenu.tsx
|
|
5373
5380
|
var ContextMenu = __webpack_require__(59852);
|
|
5374
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
5375
|
-
var dist_esm = __webpack_require__(
|
|
5381
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
5382
|
+
var dist_esm = __webpack_require__(39371);
|
|
5376
5383
|
;// CONCATENATED MODULE: ../../../extensions/default/src/CustomizableContextMenu/ContextMenuController.tsx
|
|
5377
5384
|
var _ContextMenuController;
|
|
5378
5385
|
|
|
@@ -6178,7 +6185,7 @@ const reuseCachedLayout = (state, hangingProtocolService, syncService) => {
|
|
|
6178
6185
|
* This class uses the options to store the already viewed
|
|
6179
6186
|
* display sets, filling it initially with the pre-existing viewports.
|
|
6180
6187
|
*/
|
|
6181
|
-
const findViewportsByPosition_findOrCreateViewport = (hangingProtocolService, viewportsByPosition, position, positionId, options) => {
|
|
6188
|
+
const findViewportsByPosition_findOrCreateViewport = (hangingProtocolService, isHangingProtocolLayout, viewportsByPosition, position, positionId, options) => {
|
|
6182
6189
|
const byPositionViewport = viewportsByPosition?.[positionId];
|
|
6183
6190
|
if (byPositionViewport) {
|
|
6184
6191
|
return {
|
|
@@ -6194,8 +6201,9 @@ const findViewportsByPosition_findOrCreateViewport = (hangingProtocolService, vi
|
|
|
6194
6201
|
if (!options.inDisplay) {
|
|
6195
6202
|
options.inDisplay = [...viewportsByPosition.initialInDisplay];
|
|
6196
6203
|
}
|
|
6197
|
-
|
|
6198
|
-
|
|
6204
|
+
|
|
6205
|
+
// See if there is a default viewport for new views
|
|
6206
|
+
const missing = hangingProtocolService.getMissingViewport(isHangingProtocolLayout ? protocolId : 'default', stageIndex, options);
|
|
6199
6207
|
if (missing) {
|
|
6200
6208
|
const displaySetInstanceUIDs = missing.displaySetsInfo.map(it => it.displaySetInstanceUID);
|
|
6201
6209
|
options.inDisplay.push(...displaySetInstanceUIDs);
|
|
@@ -6534,7 +6542,7 @@ const commandsModule = ({
|
|
|
6534
6542
|
numRows,
|
|
6535
6543
|
numCols
|
|
6536
6544
|
}, stateSyncService);
|
|
6537
|
-
const findOrCreateViewport = findViewportsByPosition_findOrCreateViewport.bind(null, hangingProtocolService, stateReduce.viewportsByPosition);
|
|
6545
|
+
const findOrCreateViewport = findViewportsByPosition_findOrCreateViewport.bind(null, hangingProtocolService, isHangingProtocolLayout, stateReduce.viewportsByPosition);
|
|
6538
6546
|
viewportGridService.setLayout({
|
|
6539
6547
|
numRows,
|
|
6540
6548
|
numCols,
|
|
@@ -6551,7 +6559,8 @@ const commandsModule = ({
|
|
|
6551
6559
|
const {
|
|
6552
6560
|
activeViewportId,
|
|
6553
6561
|
viewports,
|
|
6554
|
-
layout
|
|
6562
|
+
layout,
|
|
6563
|
+
isHangingProtocolLayout
|
|
6555
6564
|
} = viewportGridState;
|
|
6556
6565
|
const {
|
|
6557
6566
|
displaySetInstanceUIDs,
|
|
@@ -6575,7 +6584,7 @@ const commandsModule = ({
|
|
|
6575
6584
|
// updatedViewportsViaHP below contains the viewports applicable to the HP that existed
|
|
6576
6585
|
// prior to the toggle to one-up - including the updated viewports if a display
|
|
6577
6586
|
// set swap were to have occurred.
|
|
6578
|
-
const updatedViewportsViaHP = displaySetInstanceUIDs.length > 1 ? [] : displaySetInstanceUIDs.map(displaySetInstanceUID => hangingProtocolService.getViewportsRequireUpdate(viewportIdToUpdate, displaySetInstanceUID)).flat();
|
|
6587
|
+
const updatedViewportsViaHP = displaySetInstanceUIDs.length > 1 ? [] : displaySetInstanceUIDs.map(displaySetInstanceUID => hangingProtocolService.getViewportsRequireUpdate(viewportIdToUpdate, displaySetInstanceUID, isHangingProtocolLayout)).flat();
|
|
6579
6588
|
|
|
6580
6589
|
// findOrCreateViewport returns either one of the updatedViewportsViaHP
|
|
6581
6590
|
// returned from the HP service OR if there is not one from the HP service then
|
|
@@ -6742,7 +6751,8 @@ const commandsModule = ({
|
|
|
6742
6751
|
currentDisplaySets.sort(dsSortFn);
|
|
6743
6752
|
const {
|
|
6744
6753
|
activeViewportId,
|
|
6745
|
-
viewports
|
|
6754
|
+
viewports,
|
|
6755
|
+
isHangingProtocolLayout
|
|
6746
6756
|
} = viewportGridService.getState();
|
|
6747
6757
|
const {
|
|
6748
6758
|
displaySetInstanceUIDs
|
|
@@ -6762,7 +6772,7 @@ const commandsModule = ({
|
|
|
6762
6772
|
} = currentDisplaySets[displaySetIndexToShow];
|
|
6763
6773
|
let updatedViewports = [];
|
|
6764
6774
|
try {
|
|
6765
|
-
updatedViewports = hangingProtocolService.getViewportsRequireUpdate(activeViewportId, displaySetInstanceUID);
|
|
6775
|
+
updatedViewports = hangingProtocolService.getViewportsRequireUpdate(activeViewportId, displaySetInstanceUID, isHangingProtocolLayout);
|
|
6766
6776
|
} catch (error) {
|
|
6767
6777
|
console.warn(error);
|
|
6768
6778
|
uiNotificationService.show({
|