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

  var handleNearby = nearby.handleNearby;

  if (handleNearby.hasBoundingBox) {
    modifyTextBox(element, nearby);
  } else if (handleNearby !== undefined) {
    modifyHandle(element, nearby, toolData);
  }

  e.preventDefault();
  e.stopPropagation();
}
/**
* Event handler called by mouseDownPassive which modifies a tool's data.
*
* @param {Object} e - The event.
* @param {Object} nearby - Object containing information about a nearby handle.
*/
Event handler called by mouseDownPassive which modifies a tool's data.
Event handler called by mouseDownPassive which modifies a tool ' s data .
function modifyObject(e, nearby) {
  var eventData = e.detail;
  var element = eventData.element;
  var toolData = (0, _toolState.getToolState)(eventData.element, toolType);
  var handleNearby = nearby.handleNearby;
  if (handleNearby.hasBoundingBox) {
    modifyTextBox(element, nearby);
  } else if (handleNearby !== undefined) {
    modifyHandle(element, nearby, toolData);
  }
  e.preventDefault();
  e.stopPropagation();
}
function modifyObject ( e , nearby ) { var eventData = e . detail ; var element = eventData . element ; var toolData = ( 0 , _toolState . getToolState ) ( eventData . element , toolType ) ; var handleNearby = nearby . handleNearby ; if ( handleNearby . hasBoundingBox ) { modifyTextBox ( element , nearby ) ; } else if ( handleNearby !== undefined ) { modifyHandle ( element , nearby , toolData ) ; } e . preventDefault ( ) ; e . stopPropagation ( ) ; }
Event handler called by mouseDownPassive which modifies a tool's data.
Event handler called by mouseDownPassive which modifies a tool ' s data .