LT-376: Refactor configureTools function in toolManager component to be cornerstone tool independent and works in OHIF Viewer
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user