LT-376: Refactor configureTools function in toolManager component to be cornerstone tool independent and works in OHIF Viewer

This commit is contained in:
Eloízio Salgado committed 2016-11-18 15:57:41 -02:00
1 parent bda7e6df8c
commit a8f9c0421f
5 files changed
+42 -46

No files matched your search

@@ -1,4 +1,5 @@
import { OHIF } from 'meteor/ohif:core';
import { toolManager } from 'meteor/ohif:viewerbase';
(function($, cornerstone, cornerstoneMath, cornerstoneTools) {
@@ -6,12 +7,15 @@ import { OHIF } from 'meteor/ohif:core';
const toolType = 'nonTarget';
const shadowConfig = toolManager.getToolDefaultStates().shadowConfig;
const configuration = {
getMeasurementLocationCallback: getMeasurementLocationCallback,
changeMeasurementLocationCallback: changeMeasurementLocationCallback,
drawHandles: false,
drawHandlesOnHover: true,
arrowFirst: true
arrowFirst: true,
...shadowConfig
};
// Used to cancel tool placement