You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is ok, but it could be a bit inconvenient for who want to handle the markup in a different way (for example in a React app) or who want to use the qrcode as a part of another image.
We should provide a way to return only the data and let the users do whatever they want with it.
I'm not sure yet how/where to provide this output.
Should we add a dedicated method? or integrate it in the one already available and enable it through an option?
Any suggestions would be very appreciated 😄
Thanks!
i worry that if you expose this object format we'll be kinda stuck with it even if you find a better way to do it in the future. I like dedicated methods that do the things they say they do. this is more what folks expect. like toSvg({data: true/false})
Currently the only way to generate an svg output in browser is using the method
toString()
which returns an svg tag as string:This is ok, but it could be a bit inconvenient for who want to handle the markup in a different way (for example in a React app) or who want to use the qrcode as a part of another image.
We should provide a way to return only the data and let the users do whatever they want with it.
I'm not sure yet how/where to provide this output.
Should we add a dedicated method? or integrate it in the one already available and enable it through an option?
Any suggestions would be very appreciated 😄
Thanks!
cc @soldair
The text was updated successfully, but these errors were encountered: