function mouseHover(eventData, toolData) {
  // Check if user is mousing over a point
  var imageNeedsUpdate = false;

  for (var i = 0; i < toolData.data.length; i++) {
    // Get the cursor position in canvas coordinates
    var element = eventData.element;
    var data = toolData.data[i];
    var coords = eventData.currentPoints.canvas;

    if ((0, _handleActivator2.default)(element, data.handles, coords) === true) {
      imageNeedsUpdate = true;
    }

    if (pointNearTool(element, data, coords) && !data.active || !pointNearTool(element, data, coords) && data.active) {
      data.active = !data.active;
      imageNeedsUpdate = true;
    }

    if (data.textBox === true) {
      if ((0, _pointInsideBoundingBox2.default)(data.textBox, coords)) {
        data.active = !data.active;
        data.highlight = !data.highlight;
        imageNeedsUpdate = true;
      }
    }
  }

  return imageNeedsUpdate;
}
/**
* Activates a particular tool when the mouseCursor is near one if it's handles
* or it's textBox.
*
* @param {Object} eventData - The data assoicated with the event.
* @param {Object} toolData - The data associated with the tool.
*/
Activates a particular tool when the mouseCursor is near one if it's handles
or it's textBox.
Activates a particular tool when the mouseCursor is near one if it ' s handles or it ' s textBox .
function mouseHover(eventData, toolData) {
  var imageNeedsUpdate = false;
  for (var i = 0; i < toolData.data.length; i++) {
    var element = eventData.element;
    var data = toolData.data[i];
    var coords = eventData.currentPoints.canvas;
    if ((0, _handleActivator2.default)(element, data.handles, coords) === true) {
      imageNeedsUpdate = true;
    }
    if (pointNearTool(element, data, coords) && !data.active || !pointNearTool(element, data, coords) && data.active) {
      data.active = !data.active;
      imageNeedsUpdate = true;
    }
    if (data.textBox === true) {
      if ((0, _pointInsideBoundingBox2.default)(data.textBox, coords)) {
        data.active = !data.active;
        data.highlight = !data.highlight;
        imageNeedsUpdate = true;
      }
    }
  }
  return imageNeedsUpdate;
}
function mouseHover ( eventData , toolData ) { var imageNeedsUpdate = false ; for ( var i = 0 ; i < toolData . data . length ; i ++ ) { var element = eventData . element ; var data = toolData . data [ i ] ; var coords = eventData . currentPoints . canvas ; if ( ( 0 , _handleActivator2 . default ) ( element , data . handles , coords ) === true ) { imageNeedsUpdate = true ; } if ( pointNearTool ( element , data , coords ) && ! data . active || ! pointNearTool ( element , data , coords ) && data . active ) { data . active = ! data . active ; imageNeedsUpdate = true ; } if ( data . textBox === true ) { if ( ( 0 , _pointInsideBoundingBox2 . default ) ( data . textBox , coords ) ) { data . active = ! data . active ; data . highlight = ! data . highlight ; imageNeedsUpdate = true ; } } } return imageNeedsUpdate ; }
Activates a particular tool when the mouseCursor is near one if it's handles
or it's textBox.
Activates a particular tool when the mouseCursor is near one if it ' s handles or it ' s textBox .
// Check if user is mousing over a point // Get the cursor position in canvas coordinates