Fixing console errors related to cornerstone

This commit is contained in:
Bruno Alves de Faria committed 2018-03-26 08:36:48 -03:00
1 parent 04da9310d1
commit af611109c0
5 files changed
+36 -7

No files matched your search

@@ -18,6 +18,13 @@ export default function (event) {
return false;
}
// Check if the element is enabled and stop here if not
try {
cornerstone.getEnabledElement(element);
} catch (error) {
return;
}
const config = cornerstoneTools.bidirectional.getConfiguration();
const coords = eventData.currentPoints.canvas;