chore(scalebars) Switch to Scale Overlay tool from Cornerstone Tools

This commit is contained in:
Erik Ziegler 2018-04-20 17:19:37 +02:00
parent 664b78f42c
commit 99c65bb017
2 changed files with 5 additions and 6 deletions

View File

@ -14,11 +14,6 @@ Meteor.startup(function() {
touch: cornerstoneTools.nonTargetTouch
});
toolManager.addTool('scaleOverlayTool', {
mouse: cornerstoneTools.scaleOverlayTool,
touch: cornerstoneTools.scaleOverlayTool
});
toolManager.addTool('deleteLesionKeyboardTool', {
mouse: cornerstoneTools.deleteLesionKeyboardTool,
touch: cornerstoneTools.deleteLesionKeyboardTool
@ -37,7 +32,7 @@ Meteor.startup(function() {
// Update default state for tools making sure each tool is only inserted once
let currentDefaultStates = toolManager.getToolDefaultStates();
let newDefaultStates = {
enable: [ 'scaleOverlayTool' ],
enable: [],
deactivate: ['bidirectional', 'nonTarget', 'length', 'targetCR', 'targetUN'],
activate: ['deleteLesionKeyboardTool']
};

View File

@ -128,6 +128,10 @@ export const toolManager = {
touch: cornerstoneTools.crosshairsTouch
});
toolManager.addTool('scaleOverlayTool', {
mouse: cornerstoneTools.scaleOverlayTool,
});
// if a default tool is globally defined, make it the default tool...
if (OHIF.viewer.defaultTool) {
this.setDefaultTool(OHIF.viewer.defaultTool);