@ohif/app 3.8.0-beta.77 → 3.8.0-beta.79
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/{183.bundle.25293de927ef032a6695.js → 183.bundle.72bf18ad23ee6624986d.js} +62 -8
- package/dist/{206.bundle.cae9797ee0a3578a3d88.js → 206.bundle.9d1fa8c5c6527d5577e6.js} +2 -2
- package/dist/{217.bundle.9631d914f170f8d7ef63.js → 217.bundle.be1cc412f8e26be87d21.js} +62 -8
- package/dist/{325.bundle.869b5c1249fe3adefa4d.js → 325.bundle.dd0e466d544c86c6de0c.js} +12 -0
- package/dist/{335.bundle.72843c691090a41729af.js → 335.bundle.2048d4a4764a366499d5.js} +20 -1
- package/dist/{41.bundle.30ec760e97b5041aa9d8.js → 41.bundle.b720bbff6d0a8847b77a.js} +5 -8
- package/dist/{433.bundle.1474591f213852cffcba.js → 433.bundle.4c77c1fe8fc90ac14218.js} +1 -6
- package/dist/{448.bundle.65c271ed556a06413fb6.js → 448.bundle.8e35640d81b9cf06e002.js} +5 -1
- package/dist/{574.bundle.b4eb8773d7741868e84b.js → 574.bundle.3ce3583da9b5ab902557.js} +4 -6
- package/dist/{896.bundle.66d0c18f7b1f2ecf3325.js → 606.bundle.97b10da82b21f72df781.js} +626 -138
- package/dist/{699.bundle.dbeced724ab884809e0b.js → 699.bundle.2b231db64d73635192c9.js} +1 -1
- package/dist/{724.bundle.f2219a6c74d326781c6c.js → 724.bundle.0e99ca1d14fa8c73b5db.js} +21 -1
- package/dist/{889.bundle.1ad2e13da79ffdbb59f1.js → 889.bundle.efdc2cc8419be1616a3e.js} +9 -2
- package/dist/app.bundle.css +1 -1
- package/dist/{app.bundle.7cd72db5d7c97eead2cb.js → app.bundle.f57f833ce0358673a21a.js} +32 -16
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.c503e9460cef894737cd.js → polySeg.bundle.63011312c3c79e717ea9.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{164.bundle.db5f479dc7ef9722fdf3.js → 164.bundle.989a4ada32dcf32a4569.js} +0 -0
- /package/dist/{188.bundle.c0953c262d3302921606.js → 188.bundle.5f381d9783df8735f3e6.js} +0 -0
- /package/dist/{342.bundle.c6165579c4ac3ef0d6a8.js → 342.bundle.e6d0bba29351b5650a8c.js} +0 -0
- /package/dist/{487.bundle.f08d35ed2369b7bc0eea.js → 487.bundle.0910e5f0cf0c9e255ab4.js} +0 -0
- /package/dist/{540.bundle.4a250e02feb94852aca7.js → 540.bundle.fd7f8cb69114e4b80605.js} +0 -0
- /package/dist/{594.bundle.84b2d08bd37f7e300573.js → 594.bundle.d8a118d205da29aa4ef7.js} +0 -0
- /package/dist/{896.css → 606.css} +0 -0
- /package/dist/{633.bundle.a77a1a0d8f557f09e488.js → 633.bundle.39398415cab1ba43b071.js} +0 -0
- /package/dist/{862.bundle.f49a379497bb3b43a942.js → 862.bundle.c0ee6e1d4d97e1353213.js} +0 -0
- /package/dist/{905.bundle.9c29a0debf5923ab277f.js → 905.bundle.b09656972daa071cb47c.js} +0 -0
- /package/dist/{907.bundle.9a50ae2870e830121ba8.js → 907.bundle.0301d1f194afd0e08677.js} +0 -0
- /package/dist/{94.bundle.a8efa7d75bfb5d5eea73.js → 94.bundle.ac3f837897688b61b5e3.js} +0 -0
- /package/dist/{961.bundle.340c76f649ff6938b0a8.js → 961.bundle.b7eb25f8a8177258aa02.js} +0 -0
|
@@ -3102,7 +3102,7 @@ function voiSyncCallback(synchronizerInstance, sourceViewport, targetViewport, m
|
|
|
3102
3102
|
|
|
3103
3103
|
|
|
3104
3104
|
function createVOISynchronizer(synchronizerName, options) {
|
|
3105
|
-
options = Object.assign({ syncInvertState: true }, options);
|
|
3105
|
+
options = Object.assign({ syncInvertState: true, syncColormap: true }, options);
|
|
3106
3106
|
const VOISynchronizer = (0,SynchronizerManager.createSynchronizer)(synchronizerName, esm.Enums.Events.VOI_MODIFIED, voiSyncCallback, {
|
|
3107
3107
|
auxiliaryEventNames: [esm.Enums.Events.COLORMAP_MODIFIED],
|
|
3108
3108
|
...options,
|
|
@@ -16781,13 +16781,20 @@ class SplineROITool extends ContourSegmentationBaseTool/* default */.A {
|
|
|
16781
16781
|
this.configuration.preventHandleOutsideImage) {
|
|
16782
16782
|
(0,annotationState.removeAnnotation)(annotation.annotationUID);
|
|
16783
16783
|
}
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16784
|
+
const changeType = newAnnotation
|
|
16785
|
+
? enums.ChangeTypes.Completed
|
|
16786
|
+
: enums.ChangeTypes.HandlesUpdated;
|
|
16787
|
+
if (!this.fireChangeOnUpdate) {
|
|
16788
|
+
this.fireChangeOnUpdate = {
|
|
16789
|
+
annotationUID: annotation.annotationUID,
|
|
16790
|
+
changeType,
|
|
16791
|
+
contourHoleProcessingEnabled,
|
|
16792
|
+
};
|
|
16793
|
+
}
|
|
16794
|
+
else {
|
|
16795
|
+
this.fireChangeOnUpdate.annotationUID = annotation.annotationUID;
|
|
16796
|
+
this.fireChangeOnUpdate.changeType = changeType;
|
|
16797
|
+
}
|
|
16791
16798
|
(0,utilities.triggerAnnotationRenderForViewportIds)(renderingEngine, viewportIdsToRender);
|
|
16792
16799
|
this.editData = null;
|
|
16793
16800
|
this.isDrawing = false;
|
|
@@ -21980,6 +21987,7 @@ var PolyData = __webpack_require__(27398);
|
|
|
21980
21987
|
|
|
21981
21988
|
|
|
21982
21989
|
|
|
21990
|
+
|
|
21983
21991
|
const OverlayMarkerType = {
|
|
21984
21992
|
ANNOTATED_CUBE: 1,
|
|
21985
21993
|
AXES: 2,
|
|
@@ -22030,16 +22038,37 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
|
|
|
22030
22038
|
},
|
|
22031
22039
|
}) {
|
|
22032
22040
|
super(toolProps, defaultToolProps);
|
|
22041
|
+
this._resizeObservers = new Map();
|
|
22033
22042
|
this.configuration_invalidated = true;
|
|
22034
22043
|
this.onSetToolEnabled = () => {
|
|
22035
22044
|
this.initViewports();
|
|
22036
22045
|
this.configuration_invalidated = true;
|
|
22046
|
+
this._subscribeToViewportEvents();
|
|
22037
22047
|
};
|
|
22038
22048
|
this.onSetToolActive = () => {
|
|
22039
22049
|
this.initViewports();
|
|
22050
|
+
this.configuration_invalidated = true;
|
|
22051
|
+
this._subscribeToViewportEvents();
|
|
22040
22052
|
};
|
|
22041
22053
|
this.onSetToolDisabled = () => {
|
|
22042
22054
|
this.cleanUpData();
|
|
22055
|
+
this._unsubscribeToViewportNewVolumeSet();
|
|
22056
|
+
};
|
|
22057
|
+
this.reset = () => {
|
|
22058
|
+
this.configuration_invalidated = true;
|
|
22059
|
+
this.initViewports();
|
|
22060
|
+
};
|
|
22061
|
+
this._getViewportsInfo = () => {
|
|
22062
|
+
const viewports = (0,ToolGroupManager.getToolGroup)(this.toolGroupId).viewportsInfo;
|
|
22063
|
+
return viewports;
|
|
22064
|
+
};
|
|
22065
|
+
this.resize = (viewportId) => {
|
|
22066
|
+
const orientationMarker = this.orientationMarkers[viewportId];
|
|
22067
|
+
if (!orientationMarker) {
|
|
22068
|
+
return;
|
|
22069
|
+
}
|
|
22070
|
+
const { orientationWidget } = orientationMarker;
|
|
22071
|
+
orientationWidget.updateViewport();
|
|
22043
22072
|
};
|
|
22044
22073
|
this.orientationMarkers = {};
|
|
22045
22074
|
this.configuration_invalidated = true;
|
|
@@ -22048,6 +22077,31 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
|
|
|
22048
22077
|
static { this.AXIS = 2; }
|
|
22049
22078
|
static { this.VTPFILE = 3; }
|
|
22050
22079
|
static { this.OVERLAY_MARKER_TYPES = OverlayMarkerType; }
|
|
22080
|
+
_unsubscribeToViewportNewVolumeSet() {
|
|
22081
|
+
const viewportsInfo = this._getViewportsInfo();
|
|
22082
|
+
viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
|
|
22083
|
+
const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
|
|
22084
|
+
const { element } = viewport;
|
|
22085
|
+
element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
|
|
22086
|
+
const resizeObserver = this._resizeObservers.get(viewportId);
|
|
22087
|
+
resizeObserver.unobserve(element);
|
|
22088
|
+
});
|
|
22089
|
+
}
|
|
22090
|
+
_subscribeToViewportEvents() {
|
|
22091
|
+
const viewportsInfo = this._getViewportsInfo();
|
|
22092
|
+
viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
|
|
22093
|
+
const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
|
|
22094
|
+
const { element } = viewport;
|
|
22095
|
+
element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
|
|
22096
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
22097
|
+
setTimeout(() => {
|
|
22098
|
+
this.reset();
|
|
22099
|
+
}, 100);
|
|
22100
|
+
});
|
|
22101
|
+
resizeObserver.observe(element);
|
|
22102
|
+
this._resizeObservers.set(viewportId, resizeObserver);
|
|
22103
|
+
});
|
|
22104
|
+
}
|
|
22051
22105
|
cleanUpData() {
|
|
22052
22106
|
const renderingEngines = (0,esm.getRenderingEngines)();
|
|
22053
22107
|
const renderingEngine = renderingEngines[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.79";
|
|
2754
|
+
const commitHash = "df49a653be61a93f6e9fb3663aabe9775c31fd13";
|
|
2755
2755
|
const menuOptions = [{
|
|
2756
2756
|
title: t('Header:About'),
|
|
2757
2757
|
icon: 'info',
|
|
@@ -46630,7 +46630,7 @@ function voiSyncCallback_voiSyncCallback(synchronizerInstance, sourceViewport, t
|
|
|
46630
46630
|
|
|
46631
46631
|
|
|
46632
46632
|
function createVOISynchronizer(synchronizerName, options) {
|
|
46633
|
-
options = Object.assign({ syncInvertState: true }, options);
|
|
46633
|
+
options = Object.assign({ syncInvertState: true, syncColormap: true }, options);
|
|
46634
46634
|
const VOISynchronizer = createSynchronizer(synchronizerName, Enums.Events.VOI_MODIFIED, voiSyncCallback, {
|
|
46635
46635
|
auxiliaryEventNames: [Enums.Events.COLORMAP_MODIFIED],
|
|
46636
46636
|
...options,
|
|
@@ -60257,13 +60257,20 @@ class SplineROITool extends ContourSegmentationBaseTool/* default */.A {
|
|
|
60257
60257
|
this.configuration.preventHandleOutsideImage) {
|
|
60258
60258
|
(0,annotationState.removeAnnotation)(annotation.annotationUID);
|
|
60259
60259
|
}
|
|
60260
|
-
|
|
60261
|
-
|
|
60262
|
-
|
|
60263
|
-
|
|
60264
|
-
|
|
60265
|
-
|
|
60266
|
-
|
|
60260
|
+
const changeType = newAnnotation
|
|
60261
|
+
? enums.ChangeTypes.Completed
|
|
60262
|
+
: enums.ChangeTypes.HandlesUpdated;
|
|
60263
|
+
if (!this.fireChangeOnUpdate) {
|
|
60264
|
+
this.fireChangeOnUpdate = {
|
|
60265
|
+
annotationUID: annotation.annotationUID,
|
|
60266
|
+
changeType,
|
|
60267
|
+
contourHoleProcessingEnabled,
|
|
60268
|
+
};
|
|
60269
|
+
}
|
|
60270
|
+
else {
|
|
60271
|
+
this.fireChangeOnUpdate.annotationUID = annotation.annotationUID;
|
|
60272
|
+
this.fireChangeOnUpdate.changeType = changeType;
|
|
60273
|
+
}
|
|
60267
60274
|
(0,utilities.triggerAnnotationRenderForViewportIds)(renderingEngine, viewportIdsToRender);
|
|
60268
60275
|
this.editData = null;
|
|
60269
60276
|
this.isDrawing = false;
|
|
@@ -65456,6 +65463,7 @@ var PolyData = __webpack_require__(27398);
|
|
|
65456
65463
|
|
|
65457
65464
|
|
|
65458
65465
|
|
|
65466
|
+
|
|
65459
65467
|
const OverlayMarkerType = {
|
|
65460
65468
|
ANNOTATED_CUBE: 1,
|
|
65461
65469
|
AXES: 2,
|
|
@@ -65506,16 +65514,37 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
|
|
|
65506
65514
|
},
|
|
65507
65515
|
}) {
|
|
65508
65516
|
super(toolProps, defaultToolProps);
|
|
65517
|
+
this._resizeObservers = new Map();
|
|
65509
65518
|
this.configuration_invalidated = true;
|
|
65510
65519
|
this.onSetToolEnabled = () => {
|
|
65511
65520
|
this.initViewports();
|
|
65512
65521
|
this.configuration_invalidated = true;
|
|
65522
|
+
this._subscribeToViewportEvents();
|
|
65513
65523
|
};
|
|
65514
65524
|
this.onSetToolActive = () => {
|
|
65515
65525
|
this.initViewports();
|
|
65526
|
+
this.configuration_invalidated = true;
|
|
65527
|
+
this._subscribeToViewportEvents();
|
|
65516
65528
|
};
|
|
65517
65529
|
this.onSetToolDisabled = () => {
|
|
65518
65530
|
this.cleanUpData();
|
|
65531
|
+
this._unsubscribeToViewportNewVolumeSet();
|
|
65532
|
+
};
|
|
65533
|
+
this.reset = () => {
|
|
65534
|
+
this.configuration_invalidated = true;
|
|
65535
|
+
this.initViewports();
|
|
65536
|
+
};
|
|
65537
|
+
this._getViewportsInfo = () => {
|
|
65538
|
+
const viewports = (0,ToolGroupManager.getToolGroup)(this.toolGroupId).viewportsInfo;
|
|
65539
|
+
return viewports;
|
|
65540
|
+
};
|
|
65541
|
+
this.resize = (viewportId) => {
|
|
65542
|
+
const orientationMarker = this.orientationMarkers[viewportId];
|
|
65543
|
+
if (!orientationMarker) {
|
|
65544
|
+
return;
|
|
65545
|
+
}
|
|
65546
|
+
const { orientationWidget } = orientationMarker;
|
|
65547
|
+
orientationWidget.updateViewport();
|
|
65519
65548
|
};
|
|
65520
65549
|
this.orientationMarkers = {};
|
|
65521
65550
|
this.configuration_invalidated = true;
|
|
@@ -65524,6 +65553,31 @@ class OrientationMarkerTool extends base/* BaseTool */.oS {
|
|
|
65524
65553
|
static { this.AXIS = 2; }
|
|
65525
65554
|
static { this.VTPFILE = 3; }
|
|
65526
65555
|
static { this.OVERLAY_MARKER_TYPES = OverlayMarkerType; }
|
|
65556
|
+
_unsubscribeToViewportNewVolumeSet() {
|
|
65557
|
+
const viewportsInfo = this._getViewportsInfo();
|
|
65558
|
+
viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
|
|
65559
|
+
const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
|
|
65560
|
+
const { element } = viewport;
|
|
65561
|
+
element.removeEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
|
|
65562
|
+
const resizeObserver = this._resizeObservers.get(viewportId);
|
|
65563
|
+
resizeObserver.unobserve(element);
|
|
65564
|
+
});
|
|
65565
|
+
}
|
|
65566
|
+
_subscribeToViewportEvents() {
|
|
65567
|
+
const viewportsInfo = this._getViewportsInfo();
|
|
65568
|
+
viewportsInfo.forEach(({ viewportId, renderingEngineId }) => {
|
|
65569
|
+
const { viewport } = (0,esm.getEnabledElementByIds)(viewportId, renderingEngineId);
|
|
65570
|
+
const { element } = viewport;
|
|
65571
|
+
element.addEventListener(esm.Enums.Events.VOLUME_VIEWPORT_NEW_VOLUME, this.reset);
|
|
65572
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
65573
|
+
setTimeout(() => {
|
|
65574
|
+
this.reset();
|
|
65575
|
+
}, 100);
|
|
65576
|
+
});
|
|
65577
|
+
resizeObserver.observe(element);
|
|
65578
|
+
this._resizeObservers.set(viewportId, resizeObserver);
|
|
65579
|
+
});
|
|
65580
|
+
}
|
|
65527
65581
|
cleanUpData() {
|
|
65528
65582
|
const renderingEngines = (0,esm.getRenderingEngines)();
|
|
65529
65583
|
const renderingEngine = renderingEngines[0];
|
|
@@ -486,6 +486,12 @@ function _askTrackMeasurements(uiViewportDialogService, viewportId) {
|
|
|
486
486
|
onOutsideClick: () => {
|
|
487
487
|
uiViewportDialogService.hide();
|
|
488
488
|
resolve(promptBeginTracking_RESPONSE.CANCEL);
|
|
489
|
+
},
|
|
490
|
+
onKeyPress: event => {
|
|
491
|
+
if (event.key === 'Enter') {
|
|
492
|
+
const action = actions.find(action => action.id === 'prompt-begin-tracking-yes');
|
|
493
|
+
onSubmit(action.value);
|
|
494
|
+
}
|
|
489
495
|
}
|
|
490
496
|
});
|
|
491
497
|
});
|
|
@@ -663,6 +669,12 @@ function promptTrackNewStudy_askTrackMeasurements(UIViewportDialogService, viewp
|
|
|
663
669
|
onOutsideClick: () => {
|
|
664
670
|
UIViewportDialogService.hide();
|
|
665
671
|
resolve(promptTrackNewStudy_RESPONSE.CANCEL);
|
|
672
|
+
},
|
|
673
|
+
onKeyPress: event => {
|
|
674
|
+
if (event.key === 'Enter') {
|
|
675
|
+
const action = actions.find(action => action.value === promptTrackNewStudy_RESPONSE.SET_STUDY_AND_SERIES);
|
|
676
|
+
onSubmit(action.value);
|
|
677
|
+
}
|
|
666
678
|
}
|
|
667
679
|
});
|
|
668
680
|
});
|
|
@@ -980,7 +980,8 @@ function PanelRoiThresholdSegmentation({
|
|
|
980
980
|
commandsManager
|
|
981
981
|
}) {
|
|
982
982
|
const {
|
|
983
|
-
segmentationService
|
|
983
|
+
segmentationService,
|
|
984
|
+
uiNotificationService
|
|
984
985
|
} = servicesManager.services;
|
|
985
986
|
const {
|
|
986
987
|
t
|
|
@@ -1013,6 +1014,24 @@ function PanelRoiThresholdSegmentation({
|
|
|
1013
1014
|
}, []);
|
|
1014
1015
|
const tmtvValue = segmentations?.[0]?.cachedStats?.tmtv?.value || null;
|
|
1015
1016
|
const config = segmentations?.[0]?.cachedStats?.tmtv?.config || {};
|
|
1017
|
+
segmentations.forEach(segmentation => {
|
|
1018
|
+
const {
|
|
1019
|
+
cachedStats
|
|
1020
|
+
} = segmentation;
|
|
1021
|
+
if (!cachedStats) {
|
|
1022
|
+
return;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
// segment 1
|
|
1026
|
+
const suvPeak = cachedStats?.['1']?.suvPeak?.suvPeak;
|
|
1027
|
+
if (Number.isNaN(suvPeak)) {
|
|
1028
|
+
uiNotificationService.show({
|
|
1029
|
+
title: 'Unable to calculate SUV Peak',
|
|
1030
|
+
message: 'The resulting threshold is not big enough.',
|
|
1031
|
+
type: 'warning'
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1016
1035
|
const actions = [{
|
|
1017
1036
|
label: 'Export CSV',
|
|
1018
1037
|
onClick: () => {
|
|
@@ -81,6 +81,8 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
|
|
|
81
81
|
toolName: toolNames.Bidirectional
|
|
82
82
|
}, {
|
|
83
83
|
toolName: toolNames.DragProbe
|
|
84
|
+
}, {
|
|
85
|
+
toolName: toolNames.Probe
|
|
84
86
|
}, {
|
|
85
87
|
toolName: toolNames.EllipticalROI
|
|
86
88
|
}, {
|
|
@@ -234,6 +236,8 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager, m
|
|
|
234
236
|
toolName: toolNames.Bidirectional
|
|
235
237
|
}, {
|
|
236
238
|
toolName: toolNames.DragProbe
|
|
239
|
+
}, {
|
|
240
|
+
toolName: toolNames.Probe
|
|
237
241
|
}, {
|
|
238
242
|
toolName: toolNames.EllipticalROI
|
|
239
243
|
}, {
|
|
@@ -363,13 +367,6 @@ const toolbarButtons = [{
|
|
|
363
367
|
tooltip: 'Ellipse ROI',
|
|
364
368
|
commands: setToolActiveToolbar,
|
|
365
369
|
evaluate: 'evaluate.cornerstoneTool'
|
|
366
|
-
}), createButton({
|
|
367
|
-
id: 'PlanarFreehandROI',
|
|
368
|
-
icon: 'tool-freehand-polygon',
|
|
369
|
-
label: 'Freehand',
|
|
370
|
-
tooltip: 'Freehand ROI',
|
|
371
|
-
commands: setToolActiveToolbar,
|
|
372
|
-
evaluate: 'evaluate.cornerstoneTool'
|
|
373
370
|
}), createButton({
|
|
374
371
|
id: 'RectangleROI',
|
|
375
372
|
icon: 'tool-rectangle',
|
|
@@ -607,7 +604,7 @@ const moreTools = [{
|
|
|
607
604
|
commands: 'invertViewport',
|
|
608
605
|
evaluate: 'evaluate.viewportProperties.toggle'
|
|
609
606
|
}), moreTools_createButton({
|
|
610
|
-
id: '
|
|
607
|
+
id: 'Probe',
|
|
611
608
|
icon: 'tool-probe',
|
|
612
609
|
label: 'Probe',
|
|
613
610
|
tooltip: 'Probe',
|
|
@@ -6546,12 +6546,7 @@ async function addLabelmapToElement(element, labelMapData, segmentationRepresent
|
|
|
6546
6546
|
function removeLabelmapFromElement(element, segmentationRepresentationUID, removeFromCache = false) {
|
|
6547
6547
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
6548
6548
|
const { viewport } = enabledElement;
|
|
6549
|
-
|
|
6550
|
-
return;
|
|
6551
|
-
}
|
|
6552
|
-
viewport.removeVolumeActors([
|
|
6553
|
-
segmentationRepresentationUID,
|
|
6554
|
-
]);
|
|
6549
|
+
viewport.removeActors([segmentationRepresentationUID]);
|
|
6555
6550
|
}
|
|
6556
6551
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (removeLabelmapFromElement);
|
|
6557
6552
|
|
|
@@ -285,6 +285,8 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
|
|
|
285
285
|
toolName: toolNames.Bidirectional
|
|
286
286
|
}, {
|
|
287
287
|
toolName: toolNames.DragProbe
|
|
288
|
+
}, {
|
|
289
|
+
toolName: toolNames.Probe
|
|
288
290
|
}, {
|
|
289
291
|
toolName: toolNames.EllipticalROI
|
|
290
292
|
}, {
|
|
@@ -416,6 +418,8 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
416
418
|
toolName: toolNames.Bidirectional
|
|
417
419
|
}, {
|
|
418
420
|
toolName: toolNames.DragProbe
|
|
421
|
+
}, {
|
|
422
|
+
toolName: toolNames.Probe
|
|
419
423
|
}, {
|
|
420
424
|
toolName: toolNames.EllipticalROI
|
|
421
425
|
}, {
|
|
@@ -592,7 +596,7 @@ const moreTools = [{
|
|
|
592
596
|
commands: 'invertViewport',
|
|
593
597
|
evaluate: 'evaluate.viewportProperties.toggle'
|
|
594
598
|
}), moreTools_createButton({
|
|
595
|
-
id: '
|
|
599
|
+
id: 'Probe',
|
|
596
600
|
icon: 'tool-probe',
|
|
597
601
|
label: 'Probe',
|
|
598
602
|
tooltip: 'Probe',
|
|
@@ -2193,8 +2193,7 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
|
|
|
2193
2193
|
// Note: you SHOULD NOT use the initialImageIdOrIndex for manipulation
|
|
2194
2194
|
// of the imageData in the OHIFCornerstoneViewport. This prop is used
|
|
2195
2195
|
// to set the initial state of the viewport's first image to render
|
|
2196
|
-
initialImageIndex
|
|
2197
|
-
onReady
|
|
2196
|
+
initialImageIndex
|
|
2198
2197
|
} = props;
|
|
2199
2198
|
const viewportId = viewportOptions.viewportId;
|
|
2200
2199
|
|
|
@@ -2216,8 +2215,7 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
|
|
|
2216
2215
|
cornerstoneCacheService,
|
|
2217
2216
|
viewportGridService,
|
|
2218
2217
|
stateSyncService,
|
|
2219
|
-
viewportActionCornersService
|
|
2220
|
-
customizationService
|
|
2218
|
+
viewportActionCornersService
|
|
2221
2219
|
} = servicesManager.services;
|
|
2222
2220
|
const [viewportDialogState] = (0,ui_src/* useViewportDialog */.OR)();
|
|
2223
2221
|
// useCallback for scroll bar height calculation
|
|
@@ -2264,7 +2262,6 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
|
|
|
2264
2262
|
}
|
|
2265
2263
|
if (onElementEnabled) {
|
|
2266
2264
|
onElementEnabled(evt);
|
|
2267
|
-
onReady?.(evt);
|
|
2268
2265
|
}
|
|
2269
2266
|
}, [viewportId, onElementEnabled, toolGroupService]);
|
|
2270
2267
|
|
|
@@ -2448,7 +2445,8 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
|
|
|
2448
2445
|
type: viewportDialogState.type,
|
|
2449
2446
|
actions: viewportDialogState.actions,
|
|
2450
2447
|
onSubmit: viewportDialogState.onSubmit,
|
|
2451
|
-
onOutsideClick: viewportDialogState.onOutsideClick
|
|
2448
|
+
onOutsideClick: viewportDialogState.onOutsideClick,
|
|
2449
|
+
onKeyPress: viewportDialogState.onKeyPress
|
|
2452
2450
|
})), /*#__PURE__*/react.createElement(components_OHIFViewportActionCorners, {
|
|
2453
2451
|
viewportId: viewportId
|
|
2454
2452
|
}));
|