-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
save file as SVG on mobile devices #453
Comments
@abraxxa Hi! I don't want to discuss details of this issue in #465, so I'll follow up here. I created a demo that loads an SVG file (created with this library) via Could you update this demo to replicate this issue? I reviewed the code and it looks like it should be correct as it is, i.e.:
I guess I'm missing something, given the number of people who reported this issue, but it would be great to be able to replicate it. |
@szimek sorry for the delay but I was able to reproduce it now by disabling your I'm not sure if the https://github.com/szimek/signature_pad#handling-high-dpi-screens section was already in the docs when I started using your library. Can you add the function and auto-resize feature to the library so not every user needs to implement it on her/his own? Maybe behind a new option disabled by default to not cause a breakage on update? |
I've played with my Quasar app and found out the following:
|
@abraxxa Thanks for the feedback! I don't really want to provide a default resize function, because it depends on specific requirements, e.g.
But I agree that it's not explained in the README at all that custom logic is needed to properly display things on different screen sizes. I'll try to come up with a better documentation for that, some kind of "Getting started" section. If you have any suggestions what you'd like to see in this section, let me know. |
Hello,
I have problem with saving my signature as svg on mobile devices.
signaturePad.toDataURL('image/svg+xml')
and then save it somewheresignaturePad.fromDataURL(previousFile)
What is the current behavior?
4. signature pad display only 25% area of svg loaded in left upper corner
What is the expected behavior?
4. signature pad display full file
#440 this solution works for me but for some reason this PR is closed.
The text was updated successfully, but these errors were encountered: