fix(toolVisibility) Update Cornerstone libraries to support tool visibility switching. Update custom tools with visible flag support
This commit is contained in:
parent
c296cbb823
commit
5373963176
@ -41,6 +41,10 @@ export default function(event) {
|
||||
|
||||
for (let i = 0; i < toolData.data.length; i++) {
|
||||
const data = toolData.data[i];
|
||||
if (data.visible === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const { start, end, perpendicularStart, perpendicularEnd, textBox } = data.handles;
|
||||
const strokeWidth = lineWidth;
|
||||
|
||||
|
||||
@ -272,6 +272,9 @@ function onImageRendered(e) {
|
||||
|
||||
for (let i = 0; i < toolData.data.length; i++) {
|
||||
const data = toolData.data[i];
|
||||
if (data.visible === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
context.save();
|
||||
|
||||
|
||||
@ -273,6 +273,9 @@ function createQualitativeTargetTool(toolType, responseText='') {
|
||||
|
||||
for (let i = 0; i < toolData.data.length; i++) {
|
||||
const data = toolData.data[i];
|
||||
if (data.visible === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
context.save();
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ Meteor.startup(function() {
|
||||
previousPanel: 'LEFT',
|
||||
|
||||
// Miscellaneous hotkeys
|
||||
toggleOverlayTags: 'SHIFT',
|
||||
toggleOverlayTags: 'O',
|
||||
toggleCinePlay: 'SPACE',
|
||||
toggleCineDialog: '',
|
||||
toggleDownloadDialog: '',
|
||||
@ -205,7 +205,7 @@ Meteor.startup(function() {
|
||||
// Register miscellaneous commands
|
||||
OHIF.commands.set(contextName, {
|
||||
toggleOverlayTags: {
|
||||
name: 'Toggle Image Annotations',
|
||||
name: 'Toggle Image Info Overlay',
|
||||
action() {
|
||||
const $dicomTags = $('.imageViewerViewportOverlay .dicomTag');
|
||||
$dicomTags.toggle($dicomTags.eq(0).css('display') === 'none');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user