function dragCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;

  // If we have no toolData for this element, return immediately as there is nothing to do
  var toolData = (0, _toolState.getToolState)(element, toolType);

  if (!toolData || !toolData.data || !toolData.data.length) {
    return;
  }

  // Update the endpoint as the mouse/touch is dragged
  toolData.data[0].endPoint = {
    x: eventData.currentPoints.image.x,
    y: eventData.currentPoints.image.y
  };

  _externalModules2.default.cornerstone.updateImage(element);
}
/** Draws the rectangular region while the touch or mouse event drag occurs */
Draws the rectangular region while the touch or mouse event drag occurs
Draws the rectangular region while the touch or mouse event drag occurs
function dragCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var toolData = (0, _toolState.getToolState)(element, toolType);
  if (!toolData || !toolData.data || !toolData.data.length) {
    return;
  }
  toolData.data[0].endPoint = {
    x: eventData.currentPoints.image.x,
    y: eventData.currentPoints.image.y
  };
  _externalModules2.default.cornerstone.updateImage(element);
}
function dragCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var toolData = ( 0 , _toolState . getToolState ) ( element , toolType ) ; if ( ! toolData || ! toolData . data || ! toolData . data . length ) { return ; } toolData . data [ 0 ] . endPoint = { x : eventData . currentPoints . image . x , y : eventData . currentPoints . image . y } ; _externalModules2 . default . cornerstone . updateImage ( element ) ; }
Draws the rectangular region while the touch or mouse event drag occurs
Draws the rectangular region while the touch or mouse event drag occurs
// If we have no toolData for this element, return immediately as there is nothing to do // Update the endpoint as the mouse/touch is dragged