steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.
https://perfectfreehand.com
MIT License
4.48k stars 156 forks source link

[feature] Supporting intermediate control points #74

Open devlato opened 9 months ago

devlato commented 9 months ago

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?

steveruizok commented 9 months ago

Sure! We could export that as a helper perhaps?