fix(toolVisibility) Update Cornerstone libraries to support tool visibility switching. Update custom tools with visible flag support

This commit is contained in:
Erik Ziegler 2018-04-13 13:00:43 +02:00
parent c296cbb823
commit 5373963176
4 changed files with 12 additions and 2 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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();

View File

@ -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');