assets/scripts/jsplumb/2.0/jsplumb.js
function(point, curve) {
		var td = _distanceFromCurve(point, curve);
		return {point:_bezier(curve, curve.length - 1, td.location, null, null), location:td.location};
	}
function(point, curve) {
		var td = _distanceFromCurve(point, curve);
		return {point:_bezier(curve, curve.length - 1, td.location, null, null), location:td.location};
	}
function ( point , curve ) { var td = _distanceFromCurve ( point , curve ) ; return { point : _bezier ( curve , curve . length - 1 , td . location , null , null ) , location : td . location } ; }
finds the nearest point on the curve to the given point.
finds the nearest point on the curve to the given point .