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,13 +1,18 @@
import { toolManager } from 'meteor/ohif:viewerbase';
(function($, cornerstone, cornerstoneMath, cornerstoneTools) {
'use strict';
var toolType = 'bidirectional';
const shadowConfig = toolManager.getToolDefaultStates().shadowConfig;
var configuration = {
setMeasurementNumberCallback: setMeasurementNumberCallback,
getMeasurementLocationCallback: getMeasurementLocationCallback,
changeMeasurementLocationCallback: changeMeasurementLocationCallback
changeMeasurementLocationCallback: changeMeasurementLocationCallback,
...shadowConfig
};
// Used to cancel tool placement