BenJeau / react-native-draw

SVG based data-driven React Native drawing component 🎨
https://www.npmjs.com/package/@benjeau/react-native-draw
MIT License
127 stars 42 forks source link

Is there a way to change the point sampling rate i.e. how many points are recorded per second? #79

Open sickopickle opened 1 year ago

sickopickle commented 1 year ago

Is your feature request related to a problem?

No response

Desired solution (feature)

I want an config option for point sampling rate, so I can set different values.

Alternatives considered

No response

Anything else?

No response

BenJeau commented 1 year ago

Right now, no. The underlying component used for detecting gestures is https://github.com/software-mansion/react-native-gesture-handler, maybe there's a setting within that to toggle what you say, but unsure after looking quickly at it

sickopickle commented 1 year ago

Ok. It's just that it looks like there are very few points being sampled. This is mostly fine because of the bezier simplification, but I am using this with a neural network model so I need it to be consistent with the data I train the neural network on.