mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Add documentation of Path#getLocationOf
This commit is contained in:
parent
2fa9e7cf5c
commit
4b87860b30
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue