Add documentation of Path#getLocationOf

This commit is contained in:
Jonathan Puckey 2013-03-16 18:39:53 +01:00
parent 2fa9e7cf5c
commit 4b87860b30

View file

@ -1293,6 +1293,12 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
return null;
},
/**
* Returns the curve location of the specified point if it lies on the
* path, {@code null} otherwise.
* @param {Point} point the point on the path.
* @return {CurveLocation} the curve location of the specified point.
*/
getLocationOf: function(point) {
point = Point.read(arguments);
var curves = this.getCurves();