GithubHelp home page GithubHelp logo

Comments (4)

mattleibow avatar mattleibow commented on August 14, 2024

Thanks for suggesting this. I was considering this as well. Far too much data as a simple line can result in hundreds or even thousands of points

from signaturepad.

mattleibow avatar mattleibow commented on August 14, 2024

I have been doing some tests. On iOS (iPhone 6s), a straight shot diagonal makes about 20 points, and then is smoothed x40 to about 800 points. Way, way too much! On Android (Nexus 5), the initial points are more detailed at about 30 points, and this is smoothed x20 to about 600 points. Again, way more detail than needed.

On Windows, the ink manager does a bit of work for us and usually results in far fewer points.

from signaturepad.

mattleibow avatar mattleibow commented on August 14, 2024

With commit f507007, the number of points are slightly reduced by avoiding duplicate points.

from signaturepad.

mattleibow avatar mattleibow commented on August 14, 2024

I am closing this issue now as I have made a few tweaks to the smoothing granularity. Previously, the typical smoothing was about 20-40 points were created for each point drawn. This was a bit excessive since it was often the case that the points were pretty close together.

I basically reduced the number by 10x to about 2-4 points per point drawn. The lines appears smooth still, so I think it is OK. If this is still an issue, we can just re-open and increase the smoothing granularity.

from signaturepad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.