function checkHandlesPencilMode(data) {
  var config = freehand.getConfiguration();
  var mousePoint = config.mouseLocation.handles.start;
  var dataHandles = data.handles;
  var invalidHandlePlacement = _freeHandIntersect2.default.newHandle(mousePoint, dataHandles);

  if (invalidHandlePlacement === false) {
    invalidHandlePlacement = invalidHandlePencilMode(data, mousePoint);
  }

  return invalidHandlePlacement;
}
/**
* Returns true if the proposed location of a new handle is invalid (in pencilMode).
*
* @param {Object} data - data object associated with the tool.
* @return {Boolean}
*/
Returns true if the proposed location of a new handle is invalid (in pencilMode).
Returns true if the proposed location of a new handle is invalid ( in pencilMode ) .
function checkHandlesPencilMode(data) {
  var config = freehand.getConfiguration();
  var mousePoint = config.mouseLocation.handles.start;
  var dataHandles = data.handles;
  var invalidHandlePlacement = _freeHandIntersect2.default.newHandle(mousePoint, dataHandles);
  if (invalidHandlePlacement === false) {
    invalidHandlePlacement = invalidHandlePencilMode(data, mousePoint);
  }
  return invalidHandlePlacement;
}
function checkHandlesPencilMode ( data ) { var config = freehand . getConfiguration ( ) ; var mousePoint = config . mouseLocation . handles . start ; var dataHandles = data . handles ; var invalidHandlePlacement = _freeHandIntersect2 . default . newHandle ( mousePoint , dataHandles ) ; if ( invalidHandlePlacement === false ) { invalidHandlePlacement = invalidHandlePencilMode ( data , mousePoint ) ; } return invalidHandlePlacement ; }
Returns true if the proposed location of a new handle is invalid (in pencilMode).
Returns true if the proposed location of a new handle is invalid ( in pencilMode ) .