function checkInvalidHandleLocation(data) {
  var config = freehand.getConfiguration();

  if (data.handles.length < 2) {
    return true;
  }

  var invalidHandlePlacement = void 0;

  if (config.activePencilMode) {
    // Pencil mode
    invalidHandlePlacement = checkHandlesPencilMode(data);
  } else {
    // Polygon mode
    invalidHandlePlacement = checkHandlesPolygonMode(data);
  }

  data.handles.invalidHandlePlacement = invalidHandlePlacement;
}
/**
* Returns true if the proposed location of a new handle is invalid.
*
* @param {Object} data - data object associated with the tool.
* @return {Boolean}
*/
Returns true if the proposed location of a new handle is invalid.
Returns true if the proposed location of a new handle is invalid .
function checkInvalidHandleLocation(data) {
  var config = freehand.getConfiguration();
  if (data.handles.length < 2) {
    return true;
  }
  var invalidHandlePlacement = void 0;
  if (config.activePencilMode) {
    invalidHandlePlacement = checkHandlesPencilMode(data);
  } else {
    invalidHandlePlacement = checkHandlesPolygonMode(data);
  }
  data.handles.invalidHandlePlacement = invalidHandlePlacement;
}
function checkInvalidHandleLocation ( data ) { var config = freehand . getConfiguration ( ) ; if ( data . handles . length < 2 ) { return true ; } var invalidHandlePlacement = void 0 ; if ( config . activePencilMode ) { invalidHandlePlacement = checkHandlesPencilMode ( data ) ; } else { invalidHandlePlacement = checkHandlesPolygonMode ( data ) ; } data . handles . invalidHandlePlacement = invalidHandlePlacement ; }
Returns true if the proposed location of a new handle is invalid.
Returns true if the proposed location of a new handle is invalid .
// Pencil mode // Polygon mode