steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.

Home Page:https://perfectfreehand.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature] Supporting intermediate control points

devlato opened this issue · 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?

Sure! We could export that as a helper perhaps?