We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Currently the following code doesn't work as expected:
const draw = SVG() draw.rect(10, 10).css({ '--myVar': 'black' })
There are 2 issues:
camelCase
--myVar
CSSStyleDeclaration
I don't think that 2. is concerning this project, but 1. is :)
I don't see this as a bug report, because in the meantime, we can use attr({ 'style': '--myVar: black'}).
attr({ 'style': '--myVar: black'})
The text was updated successfully, but these errors were encountered:
70125d5
This ended up being a bit more tricky. However, after 2 years its fair that I finally do it :D
Sorry, something went wrong.
I think some Typescript part were not possible 2 years ago. I'm not 100% sure… Anyway, thanks a lot!
I am sorry, I somehow forgot to publish all the fixes I made. I just released it: https://github.com/svgdotjs/svg.js/releases/tag/3.2.1
No branches or pull requests
Feature request
Currently the following code doesn't work as expected:
There are 2 issues:
camelCase
and remove the first dash, leading to an invalid CSS value declaration.--myVar
is not a part ofCSSStyleDeclaration
.I don't think that 2. is concerning this project, but 1. is :)
I don't see this as a bug report, because in the meantime, we can use
attr({ 'style': '--myVar: black'})
.The text was updated successfully, but these errors were encountered: