Kind of working, updated cornerstone-core lib.
This commit is contained in:
1 parent
d8b60ec38a
commit
05085b452d
3 files changed
+11
-2
No files matched your search
+2
-1
@@ -278,7 +278,8 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
|
||||
}
|
||||
|
||||
// Enabling new eventDispatches form cornerstoneTools v3
|
||||
//cornerstoneTools.addEnabledElement(element);
|
||||
//cornerstoneTools.addEnabledElement(element); NOTE: This should be done by cTools internally now, no?
|
||||
console.log('====imageViewerViewport, instantiateTools');
|
||||
toolManager.instantiateTools(element);
|
||||
|
||||
// Use the tool manager to enable the currently active tool for this
|
||||
|
||||
@@ -27,8 +27,12 @@ export const toolManager = {
|
||||
toolManager.setDefaultTool(OHIF.viewer.defaultTool);
|
||||
}
|
||||
|
||||
console.log('======INITIALIZING CORNERSTONETOOLS======');
|
||||
|
||||
cornerstoneTools.init();
|
||||
|
||||
console.log('======CORNERSTONETOOLS INITIALIZED======');
|
||||
|
||||
tools = [
|
||||
'Length',
|
||||
'Angle',
|
||||
@@ -135,6 +139,8 @@ export const toolManager = {
|
||||
toolManager.init();
|
||||
}
|
||||
|
||||
console.log("toolManager.getActiveTool");
|
||||
|
||||
// If activeTool is not defined, we should set as defaultTool
|
||||
if (!activeTool) {
|
||||
activeTool = defaultTool;
|
||||
@@ -159,3 +165,5 @@ export const toolManager = {
|
||||
//
|
||||
}
|
||||
};
|
||||
|
||||
toolManager.init();
|
||||
Reference in new issue
Block a user