You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to implement a version of bezier.project(), that doesn't clamp ft between 0 and 1, but will return a null or undefined result when ft is out of bounds.
My first idea was to subclass Bezier, and add my own method, which would be mostly a copy of project(). However, project() uses utils, which isn't exported.
If you're open to a PR that would make this possible, what would be the best way? I see some options:
export utils
add an optional strict argument to project() that does what I need
add the unclamped ft value as a property to the resulting p object
If you see a different way how I could implement what I need, I'd be all ears.
Thanks for your consideration.
The text was updated successfully, but these errors were encountered:
I'd like to implement a version of
bezier.project()
, that doesn't clampft
between 0 and 1, but will return a null or undefined result whenft
is out of bounds.My first idea was to subclass Bezier, and add my own method, which would be mostly a copy of
project()
. However,project()
usesutils
, which isn't exported.If you're open to a PR that would make this possible, what would be the best way? I see some options:
utils
strict
argument toproject()
that does what I needft
value as a property to the resultingp
objectIf you see a different way how I could implement what I need, I'd be all ears.
Thanks for your consideration.
The text was updated successfully, but these errors were encountered: