cppfw / svgren

:camera: SVG rendering library in C++
MIT License
206 stars 41 forks source link

Support for stroke-dasharray and stroke-dashoffset #86

Closed VilleKrumlinde closed 3 years ago

VilleKrumlinde commented 3 years ago

Hi,

Any plans to support stroke-dasharray and stroke-dashoffset?

One interesting use for these attributes is the animation effect of static images as demonstrated here:

https://maxwellito.github.io/vivus-instant/

and explained here:

https://css-tricks.com/svg-line-animation-works/

igagis commented 3 years ago

Let me investigate, perhaps implementing those is not that hard...

igagis commented 3 years ago

Implemented in:

Now the libraries require C++'17 compatible compiler.

VilleKrumlinde commented 3 years ago

Thank you very much! Did you also see the email regarding this issue that I sent on Dec 22?

igagis commented 3 years ago

@VilleKrumlinde I have just found your email, it went to spam folder for some reason. I'll take a look at it. Could you create issues on github in future? It is just much more convenient and could help someone else with similar issues.