Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to programmatically recalculate the signature json data? #18

Open
wesslim opened this issue Apr 15, 2020 · 1 comment
Open

How to programmatically recalculate the signature json data? #18

wesslim opened this issue Apr 15, 2020 · 1 comment

Comments

@wesslim
Copy link

wesslim commented Apr 15, 2020

I encounter a scenario where the user draws a signature on a mobile device/touch screen device(any device other than PC) in portrait mode, and the signature is drawn at the bottom on the portrait screen.

So when viewing the signature on landscape screen such as PC(i have save the signature JSON data in database, and display it on other PC), it fails to show the signature. The signature is there but the position is out of scope when viewing in landscape screen.

I wonder is there a formula to recalculate the signature JSON data such as recalculate the data to 0,0 position when user draw on 50,50 position

@djmj
Copy link

djmj commented Apr 16, 2020

Have a look at my fork that will solve exactly your requirements. If i have some time left i may merge his latest version 1.2 with my fork.

https://github.com/djmj/signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants