function pointNearHandleAllTools(eventData) {
  var element = eventData.element;
  var coords = eventData.currentPoints.canvas;
  var toolData = (0, _toolState.getToolState)(element, toolType);

  if (!toolData) {
    return;
  }

  var handleNearby = void 0;

  for (var toolIndex = 0; toolIndex < toolData.data.length; toolIndex++) {
    handleNearby = pointNearHandle(element, toolData.data[toolIndex], coords);
    if (handleNearby !== null) {
      return {
        handleNearby: handleNearby,
        toolIndex: toolIndex
      };
    }
  }
}
/**
* Returns a handle if it is close to the mouse cursor (all tools)
*
* @param {Object} eventData - data object associated with an event.
* @return {Object}
*/
Returns a handle if it is close to the mouse cursor (all tools)
Returns a handle if it is close to the mouse cursor ( all tools )
function pointNearHandleAllTools(eventData) {
  var element = eventData.element;
  var coords = eventData.currentPoints.canvas;
  var toolData = (0, _toolState.getToolState)(element, toolType);
  if (!toolData) {
    return;
  }
  var handleNearby = void 0;
  for (var toolIndex = 0; toolIndex < toolData.data.length; toolIndex++) {
    handleNearby = pointNearHandle(element, toolData.data[toolIndex], coords);
    if (handleNearby !== null) {
      return {
        handleNearby: handleNearby,
        toolIndex: toolIndex
      };
    }
  }
}
function pointNearHandleAllTools ( eventData ) { var element = eventData . element ; var coords = eventData . currentPoints . canvas ; var toolData = ( 0 , _toolState . getToolState ) ( element , toolType ) ; if ( ! toolData ) { return ; } var handleNearby = void 0 ; for ( var toolIndex = 0 ; toolIndex < toolData . data . length ; toolIndex ++ ) { handleNearby = pointNearHandle ( element , toolData . data [ toolIndex ] , coords ) ; if ( handleNearby !== null ) { return { handleNearby : handleNearby , toolIndex : toolIndex } ; } } }
Returns a handle if it is close to the mouse cursor (all tools)
Returns a handle if it is close to the mouse cursor ( all tools )