WIP: Introducing cornerstoneTools v3 into Viewers

This commit is contained in:
Gustavo Lelis authored and Evren Ozkan committed 2018-11-09 13:23:43 -05:00
1 parent a4b8f2c5ed
commit e5e027f716
5 files changed
+751 -555

No files matched your search

@@ -277,12 +277,16 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
cornerstoneTools.playClip(element);
}
// Enable mouse, mouseWheel, touch, and keyboard input on the element
// Enabling new eventDispatches form cornerstoneTools v3
cornerstoneTools.mouseInput.enable(element);
cornerstoneTools.mouseToolEventDispatcher.enable(element);
cornerstoneTools.touchInput.enable(element);
cornerstoneTools.touchToolEventDispatcher.enable(element);
cornerstoneTools.mouseWheelInput.enable(element);
cornerstoneTools.keyboardInput.enable(element);
toolManager.instantiateTools(element);
// Use the tool manager to enable the currently active tool for this
// newly rendered element
const activeTool = toolManager.getActiveTool();