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

Full inline SVG support #2

Open
thesephist opened this issue Mar 31, 2019 · 0 comments
Open

Full inline SVG support #2

thesephist opened this issue Mar 31, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@thesephist
Copy link
Owner

I don't know yet how well Torus works with rendering inline SVG inside HTML documents, or how much extra work / code in min-gzipped bundle it'll cost to ship a good experience for working with SVGs, but this is something Preact/React supports well, so I'd like Torus to support it.

Context: https://stackoverflow.com/questions/3492322/javascript-createelement-and-svg
Documentation for document.createElementNS() which is necessary for creating SVG namespaced elements: https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS

One way to ship this without bloating the primary torus-dom package, since SVG is not a super common use case, would be to ship it as a separate SVGComponent extends Component with a custom JDOM preprocess step.

@thesephist thesephist added the enhancement New feature or request label Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant