Closed justvanrossum closed 1 year ago
Gah! good catch, let's make the check if (this._lut.length === steps + 1)
.
v6.1.1 published to npm
v6.1.1 published to npm
Thanks!
I think the dist/ folder needs updating, too. I wouldn't know how to contribute that, though.
ah, forgot to run npm test
=_=
I'll have to run that when I'm back at my computer.
6.1.2 published >_>
Because of
steps++
on line 248, theif (this._lut.length === steps)
condition on line 243 always fails, as the lut will get a length ofsteps + 1
:https://github.com/Pomax/bezierjs/blob/d19695f3cc3ce383cf38ce4643f467deca7edb92/src/bezier.js#L240-L257
Perhaps move
steps++
to before the condition?Or change the condition to
if (this._lut.length === steps + 1)
?I can make a PR if you want.