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

  if (!toolData) {
    return;
  }

  var config = freehand.getConfiguration();
  var data = toolData.data[config.currentTool];
  var currentHandle = config.currentHandle;

  // Set the mouseLocation handle
  getMouseLocation(eventData);

  // Check if the tool is active
  if (config.currentTool >= 0) {
    (0, _dragObject2.default)(currentHandle, data);
  }

  // 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, toolType);
  if (!toolData) {
    return;
  }
  var config = freehand.getConfiguration();
  var data = toolData.data[config.currentTool];
  var currentHandle = config.currentHandle;
  getMouseLocation(eventData);
  if (config.currentTool >= 0) {
    (0, _dragObject2.default)(currentHandle, data);
  }
  _externalModules2.default.cornerstone.updateImage(eventData.element);
}
function mouseDragCallback ( e ) { var eventData = e . detail ; var toolData = ( 0 , _toolState . getToolState ) ( eventData . element , toolType ) ; if ( ! toolData ) { return ; } var config = freehand . getConfiguration ( ) ; var data = toolData . data [ config . currentTool ] ; var currentHandle = config . currentHandle ; getMouseLocation ( eventData ) ; if ( config . currentTool >= 0 ) { ( 0 , _dragObject2 . default ) ( currentHandle , data ) ; } _externalModules2 . default . cornerstone . updateImage ( eventData . element ) ; }
Event handler for MOUSE_DRAG event.
Event handler for MOUSE_DRAG event .
// Set the mouseLocation handle // Check if the tool is active // Update the image