function deselectAllTools(element) {
  var config = freehandSculpter.getConfiguration();
  var toolData = (0, _toolState.getToolState)(element, referencedToolType);

  config.currentTool = null;

  if (toolData) {
    for (var i = 0; i < toolData.data.length; i++) {
      toolData.data[i].active = false;
    }
  }

  _externalModules2.default.cornerstone.updateImage(element);
}
/**
* Deactivates all freehand ROIs and change currentTool to null
*
* @param {Object} e - The event.
*/
Deactivates all freehand ROIs and change currentTool to null
Deactivates all freehand ROIs and change currentTool to null
function deselectAllTools(element) {
  var config = freehandSculpter.getConfiguration();
  var toolData = (0, _toolState.getToolState)(element, referencedToolType);
  config.currentTool = null;
  if (toolData) {
    for (var i = 0; i < toolData.data.length; i++) {
      toolData.data[i].active = false;
    }
  }
  _externalModules2.default.cornerstone.updateImage(element);
}
function deselectAllTools ( element ) { var config = freehandSculpter . getConfiguration ( ) ; var toolData = ( 0 , _toolState . getToolState ) ( element , referencedToolType ) ; config . currentTool = null ; if ( toolData ) { for ( var i = 0 ; i < toolData . data . length ; i ++ ) { toolData . data [ i ] . active = false ; } } _externalModules2 . default . cornerstone . updateImage ( element ) ; }
Deactivates all freehand ROIs and change currentTool to null
Deactivates all freehand ROIs and change currentTool to null