Closed Glandos closed 1 year ago
This ended up being a bit more tricky. However, after 2 years its fair that I finally do it :D
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
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'})
.