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++) {
|
for (let i = 0; i < toolData.data.length; i++) {
|
||||||
const data = toolData.data[i];
|
const data = toolData.data[i];
|
||||||
|
if (data.visible === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const { start, end, perpendicularStart, perpendicularEnd, textBox } = data.handles;
|
const { start, end, perpendicularStart, perpendicularEnd, textBox } = data.handles;
|
||||||
const strokeWidth = lineWidth;
|
const strokeWidth = lineWidth;
|
||||||
|
|
||||||
|
|||||||
@ -272,6 +272,9 @@ function onImageRendered(e) {
|
|||||||
|
|
||||||
for (let i = 0; i < toolData.data.length; i++) {
|
for (let i = 0; i < toolData.data.length; i++) {
|
||||||
const data = toolData.data[i];
|
const data = toolData.data[i];
|
||||||
|
if (data.visible === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
context.save();
|
context.save();
|
||||||
|
|
||||||
|
|||||||
@ -273,6 +273,9 @@ function createQualitativeTargetTool(toolType, responseText='') {
|
|||||||
|
|
||||||
for (let i = 0; i < toolData.data.length; i++) {
|
for (let i = 0; i < toolData.data.length; i++) {
|
||||||
const data = toolData.data[i];
|
const data = toolData.data[i];
|
||||||
|
if (data.visible === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
context.save();
|
context.save();
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ Meteor.startup(function() {
|
|||||||
previousPanel: 'LEFT',
|
previousPanel: 'LEFT',
|
||||||
|
|
||||||
// Miscellaneous hotkeys
|
// Miscellaneous hotkeys
|
||||||
toggleOverlayTags: 'SHIFT',
|
toggleOverlayTags: 'O',
|
||||||
toggleCinePlay: 'SPACE',
|
toggleCinePlay: 'SPACE',
|
||||||
toggleCineDialog: '',
|
toggleCineDialog: '',
|
||||||
toggleDownloadDialog: '',
|
toggleDownloadDialog: '',
|
||||||
@ -205,7 +205,7 @@ Meteor.startup(function() {
|
|||||||
// Register miscellaneous commands
|
// Register miscellaneous commands
|
||||||
OHIF.commands.set(contextName, {
|
OHIF.commands.set(contextName, {
|
||||||
toggleOverlayTags: {
|
toggleOverlayTags: {
|
||||||
name: 'Toggle Image Annotations',
|
name: 'Toggle Image Info Overlay',
|
||||||
action() {
|
action() {
|
||||||
const $dicomTags = $('.imageViewerViewportOverlay .dicomTag');
|
const $dicomTags = $('.imageViewerViewportOverlay .dicomTag');
|
||||||
$dicomTags.toggle($dicomTags.eq(0).css('display') === 'none');
|
$dicomTags.toggle($dicomTags.eq(0).css('display') === 'none');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user