perfect-freehand icon indicating copy to clipboard operation
perfect-freehand copied to clipboard

[feature] Supporting intermediate control points

Open devlato opened this issue 1 year ago • 1 comments

Hi @steveruizok!

Firstly, thanks for your amazing work on the perfect-freehand itself and on tldraw; – it's been exciting to see and try with all the recent AI features.

Just wanted to ask if you'd be interested in accepting and reviewing a feature PR? We've been using perfect-freehand for a while, and it looks like we might have an interesting use case where we may need the smoothed and streamlined stroke (generated by getStroke()) to follow a set of intermediate control points. Technically, you've already added support for using the end points of the stroke as control points (the option called last) – would you be interested in your library supporting intermediate control points as well?

devlato avatar Dec 08 '23 04:12 devlato

Sure! We could export that as a helper perhaps?

steveruizok avatar Dec 08 '23 08:12 steveruizok