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

Creating a pure SVG version #10

Open
julien51 opened this issue Nov 10, 2019 · 3 comments
Open

Creating a pure SVG version #10

julien51 opened this issue Nov 10, 2019 · 3 comments

Comments

@julien51
Copy link

It looks like currently, Jazzicon requires the DOM APIs, such as createElementNS, appendChild, ... etc.
This means that the library can only be used in the context of a web browser, even though in theory, the SVG string could be used in other contexts (such as generated on the backend...)

I quickly peaked through the code but could not see an easy way to generate a "svg string". Maybe I missed something?

@julien51
Copy link
Author

I can try to completely port the code too actually ;)

@TfADrama
Copy link

Hello! i want to use it in a react native project for mobile, so the dom element generated is not useful for me.
@julien51 did you find a quick solution?

@FairyWorld
Copy link

I also encountered this problem. I want to get pure SVG, not SVG object. Only the url of the SVG can be assigned to the img element, and the size of the SVG can be responsively controlled using media queries

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

3 participants