function mouseDragCallback(e) {
  var eventData = e.detail;
  var toolData = (0, _toolState.getToolState)(eventData.element, referencedToolType);

  if (!toolData) {
    return;
  }

  var config = freehandSculpter.getConfiguration();
  var dataHandles = toolData.data[config.currentTool].handles;

  // Set the mouseLocation handle
  getMouseLocation(eventData);
  sculpter.sculpt(eventData, dataHandles);

  // Update the image
  _externalModules2.default.cornerstone.updateImage(eventData.element);
}
/**
* Event handler for MOUSE_DRAG event.
*
* @event
* @param {Object} e - The event.
*/
Event handler for MOUSE_DRAG event.
Event handler for MOUSE_DRAG event .
function mouseDragCallback(e) {
  var eventData = e.detail;
  var toolData = (0, _toolState.getToolState)(eventData.element, referencedToolType);
  if (!toolData) {
    return;
  }
  var config = freehandSculpter.getConfiguration();
  var dataHandles = toolData.data[config.currentTool].handles;
  getMouseLocation(eventData);
  sculpter.sculpt(eventData, dataHandles);
  _externalModules2.default.cornerstone.updateImage(eventData.element);
}
function mouseDragCallback ( e ) { var eventData = e . detail ; var toolData = ( 0 , _toolState . getToolState ) ( eventData . element , referencedToolType ) ; if ( ! toolData ) { return ; } var config = freehandSculpter . getConfiguration ( ) ; var dataHandles = toolData . data [ config . currentTool ] . handles ; getMouseLocation ( eventData ) ; sculpter . sculpt ( eventData , dataHandles ) ; _externalModules2 . default . cornerstone . updateImage ( eventData . element ) ; }
Event handler for MOUSE_DRAG event.
Event handler for MOUSE_DRAG event .
// Set the mouseLocation handle // Update the image