function mouseMoveActive(eventData, toolData) {
  var config = freehand.getConfiguration();
  var currentTool = config.currentTool;
  var element = eventData.element;
  var data = toolData.data[currentTool];
  var coords = eventData.currentPoints.canvas;

  // Set the mouseLocation handle
  getMouseLocation(eventData);
  checkInvalidHandleLocation(data);

  if (config.activePencilMode) {
    addPointPencilMode(eventData, data.handles);
  } else {
    // No snapping in activePencilMode mode
    var handleNearby = pointNearHandle(element, data, coords);

    // If there is a handle nearby to snap to
    // (and it's not the actual mouse handle)
    if (handleNearby !== null && !handleNearby.hasBoundingBox && handleNearby < data.handles.length - 1) {
      config.mouseLocation.handles.start.x = data.handles[handleNearby].x;
      config.mouseLocation.handles.start.y = data.handles[handleNearby].y;
    }
  }
}
/**
* Event handler called by mouseMoveCallback when the tool is currently active.
*
* @param {Object} eventData - data object associated with an event.
* @param {Object} toolData - data object associated with the freehand tool.
*/
Event handler called by mouseMoveCallback when the tool is currently active.
Event handler called by mouseMoveCallback when the tool is currently active .
function mouseMoveActive(eventData, toolData) {
  var config = freehand.getConfiguration();
  var currentTool = config.currentTool;
  var element = eventData.element;
  var data = toolData.data[currentTool];
  var coords = eventData.currentPoints.canvas;
  getMouseLocation(eventData);
  checkInvalidHandleLocation(data);
  if (config.activePencilMode) {
    addPointPencilMode(eventData, data.handles);
  } else {
    var handleNearby = pointNearHandle(element, data, coords);
    if (handleNearby !== null && !handleNearby.hasBoundingBox && handleNearby < data.handles.length - 1) {
      config.mouseLocation.handles.start.x = data.handles[handleNearby].x;
      config.mouseLocation.handles.start.y = data.handles[handleNearby].y;
    }
  }
}
function mouseMoveActive ( eventData , toolData ) { var config = freehand . getConfiguration ( ) ; var currentTool = config . currentTool ; var element = eventData . element ; var data = toolData . data [ currentTool ] ; var coords = eventData . currentPoints . canvas ; getMouseLocation ( eventData ) ; checkInvalidHandleLocation ( data ) ; if ( config . activePencilMode ) { addPointPencilMode ( eventData , data . handles ) ; } else { var handleNearby = pointNearHandle ( element , data , coords ) ; if ( handleNearby !== null && ! handleNearby . hasBoundingBox && handleNearby < data . handles . length - 1 ) { config . mouseLocation . handles . start . x = data . handles [ handleNearby ] . x ; config . mouseLocation . handles . start . y = data . handles [ handleNearby ] . y ; } } }
Event handler called by mouseMoveCallback when the tool is currently active.
Event handler called by mouseMoveCallback when the tool is currently active .
// Set the mouseLocation handle // No snapping in activePencilMode mode // If there is a handle nearby to snap to // (and it's not the actual mouse handle)