chore(scalebars) Switch to Scale Overlay tool from Cornerstone Tools
This commit is contained in:
parent
664b78f42c
commit
99c65bb017
@ -14,11 +14,6 @@ Meteor.startup(function() {
|
|||||||
touch: cornerstoneTools.nonTargetTouch
|
touch: cornerstoneTools.nonTargetTouch
|
||||||
});
|
});
|
||||||
|
|
||||||
toolManager.addTool('scaleOverlayTool', {
|
|
||||||
mouse: cornerstoneTools.scaleOverlayTool,
|
|
||||||
touch: cornerstoneTools.scaleOverlayTool
|
|
||||||
});
|
|
||||||
|
|
||||||
toolManager.addTool('deleteLesionKeyboardTool', {
|
toolManager.addTool('deleteLesionKeyboardTool', {
|
||||||
mouse: cornerstoneTools.deleteLesionKeyboardTool,
|
mouse: cornerstoneTools.deleteLesionKeyboardTool,
|
||||||
touch: 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
|
// Update default state for tools making sure each tool is only inserted once
|
||||||
let currentDefaultStates = toolManager.getToolDefaultStates();
|
let currentDefaultStates = toolManager.getToolDefaultStates();
|
||||||
let newDefaultStates = {
|
let newDefaultStates = {
|
||||||
enable: [ 'scaleOverlayTool' ],
|
enable: [],
|
||||||
deactivate: ['bidirectional', 'nonTarget', 'length', 'targetCR', 'targetUN'],
|
deactivate: ['bidirectional', 'nonTarget', 'length', 'targetCR', 'targetUN'],
|
||||||
activate: ['deleteLesionKeyboardTool']
|
activate: ['deleteLesionKeyboardTool']
|
||||||
};
|
};
|
||||||
|
|||||||
@ -128,6 +128,10 @@ export const toolManager = {
|
|||||||
touch: cornerstoneTools.crosshairsTouch
|
touch: cornerstoneTools.crosshairsTouch
|
||||||
});
|
});
|
||||||
|
|
||||||
|
toolManager.addTool('scaleOverlayTool', {
|
||||||
|
mouse: cornerstoneTools.scaleOverlayTool,
|
||||||
|
});
|
||||||
|
|
||||||
// if a default tool is globally defined, make it the default tool...
|
// if a default tool is globally defined, make it the default tool...
|
||||||
if (OHIF.viewer.defaultTool) {
|
if (OHIF.viewer.defaultTool) {
|
||||||
this.setDefaultTool(OHIF.viewer.defaultTool);
|
this.setDefaultTool(OHIF.viewer.defaultTool);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user