mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-28 22:59:36 -04:00
Rename Curve#getParameter(length) -> Curve#getParameterAt(offset)
This commit is contained in:
parent
778a161ba0
commit
b13c7622c8
5 changed files with 26 additions and 27 deletions
src/path
|
@ -960,7 +960,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
if (length >= offset) {
|
||||
// Found the segment within which the length lies
|
||||
return new CurveLocation(curve,
|
||||
curve.getParameter(offset - start));
|
||||
curve.getParameterAt(offset - start));
|
||||
}
|
||||
}
|
||||
// It may be that through impreciseness of getLength, that the end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue