gadfly361 / rid3

Reagent Interface to D3
MIT License
142 stars 6 forks source link

Can I add a <defs> tag to the SVG? #17

Open ILoveHubGit opened 1 year ago

ILoveHubGit commented 1 year ago

I would like to be able to add arrows heads to lines. The way this is normally done in SVG is by defining a in the tag and then use an attribute marker-start or marker-end with the line to add this arrow head.

Is this possible with this library?

gadfly361 commented 1 year ago

@ILoveHubGit I no longer write clojurescript or use D3, so my memory is fuzzy at this point. Take this with a grain of salt, but I do anticipate you should be able to achieve that with rid3 though. Using an :elem piece, you should be able to set the tag and the attributes that you want.