Scale overlay tool is added into toggleLesionTrackerTools function
This commit is contained in:
1 parent
3d4f365c8f
commit
d912c7a269
5 files changed
+7
-26
No files matched your search
@@ -46,23 +46,8 @@ Template.viewer.onCreated(function() {
|
||||
},
|
||||
nonTarget: function() {
|
||||
toolManager.setActiveTool("nonTarget");
|
||||
},
|
||||
scaleOverlayTool: function() {
|
||||
|
||||
// scaleOverlayToolShown property checks visibility of scale overlay tool between tabs
|
||||
if(ViewerData[contentId].scaleOverlayToolShown === true) {
|
||||
$('.imageViewerViewport').each(function(index, element) {
|
||||
cornerstoneTools.scaleOverlayTool.disable(element);
|
||||
});
|
||||
ViewerData[contentId].scaleOverlayToolShown = false;
|
||||
|
||||
}else{
|
||||
$('.imageViewerViewport').each(function(index, element) {
|
||||
cornerstoneTools.scaleOverlayTool.enable(element);
|
||||
});
|
||||
ViewerData[contentId].scaleOverlayToolShown = true;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// The hotkey can also be an array (e.g. ["NUMPAD0", "0"])
|
||||
|
||||
Reference in new issue
Block a user