Skip to content

Commit ee03598

Browse files
Merge pull request #3 from vboye-foreflight/fix-points-larger-than-totalLength
Thanks for your code feedback - you're right we should adopt the native behavior. PR confirmed. I'll soon publish the fixed version on npm.
2 parents 2883d33 + 74953a2 commit ee03598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getPointAtLengthLookup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
if (length === 0) {
252252
return pt;
253253
}
254-
else if (length === totalLength) {
254+
else if (length >= totalLength) {
255255
let ptLast = seglast.points.slice(-1)[0]
256256
let angleLast = seglast.angles.slice(-1)[0]
257257

0 commit comments

Comments
 (0)