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
Hi! I am currently trying to use your Package,
and first of all: Thank you a lot! I have created SVGs using string interpolation before but this gets messy fast, so it is highly appreciated to have a cleaner alternative.
Unfortunately, I can't really figure out how to use the Style Element.
Seems like I have to provide another SVG-Builder Element as content eg.
svg.style({}, svg.line(...))
This does not really make sense to me as I would like to write some styling into the style tags not create a line or path.
I think some more Documentation would come a long way here.
Also, I would really appreciate it if there was something like a mask or clipPath.
Would make this package a whole lot more versatile!
Thanks for your effort so far!
Nico
The text was updated successfully, but these errors were encountered:
Looking at the code, it looks like the style element accepts style as an attribute, so you can put, for example: svg.style({style:"fill: skyblue; stroke: cadetblue"}) if you want to write styling into the style tags.
The arguments in a given svg.function-name-here are attributes then content.
Hi! I am currently trying to use your Package,
and first of all: Thank you a lot! I have created SVGs using string interpolation before but this gets messy fast, so it is highly appreciated to have a cleaner alternative.
Unfortunately, I can't really figure out how to use the Style Element.
Seems like I have to provide another SVG-Builder Element as content eg.
svg.style({}, svg.line(...))
This does not really make sense to me as I would like to write some styling into the style tags not create a line or path.
I think some more Documentation would come a long way here.
Also, I would really appreciate it if there was something like a mask or clipPath.
Would make this package a whole lot more versatile!
Thanks for your effort so far!
Nico
The text was updated successfully, but these errors were encountered: