- Fixed by setting all tools to passive mode after instantiate then all
- Fixed the default tool that was not being set correctly. - Fixed some callouts done by Erik into my PR related with keeping old tool list
This commit is contained in:
1 parent
51c5c76eb9
commit
c30cdbe625
5 files changed
+25
-50
No files matched your search
@@ -43,7 +43,7 @@ OHIF.measurements.getImageDataUrl = ({
|
||||
});
|
||||
|
||||
cornerstoneTools.addToolState(element, measurement.toolType, state);
|
||||
cornerstoneTools[measurement.toolType].enable(element);
|
||||
OHIF.viewerbase.toolManager.cTools.setToolEnabled(measurement.toolType);
|
||||
}
|
||||
|
||||
// Set the viewport voi if present
|
||||
@@ -59,7 +59,7 @@ OHIF.measurements.getImageDataUrl = ({
|
||||
|
||||
// Disable the tool and clear the measurement state if a measurement was given
|
||||
if (measurement) {
|
||||
cornerstoneTools[measurement.toolType].disable(element);
|
||||
OHIF.viewerbase.toolManager.cTools.setToolDisabled(measurement.toolType);
|
||||
cornerstoneTools.clearToolState(element, measurement.toolType);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user