mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix regression: getLength has been split to getLength and getPartLength in master branch
This commit is contained in:
parent
87ded4dcff
commit
83eaf70ee4
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
segment = crv._segment1;
|
||||
} else {
|
||||
// Determine the closest segment by comparing curve lengths
|
||||
segment = crv.getLength(0, t) < crv.getLength(t, 1)
|
||||
segment = crv.getPartLength(0, t) < crv.getPartLength(t, 1)
|
||||
? crv._segment1 : crv._segment2;
|
||||
}
|
||||
crvNew = crv;
|
||||
|
|
Loading…
Reference in a new issue