I have some animated SVG rects moving about. Now I just want to convert them from rect to text. The problem I have is a very simple one. I don't know how to put the actual text. I use keywords for :x
, :y
, :transform
etc. - and they all work fine. However :text
and :value
don't seem to work. Also I tried (dom/text (clj->js svg-props) text-here)
, and that didn't work either. So the question is how to get this to work, but also where I should go for documentation for this. I got it going with rects mainly from this excellent post: https://nvbn.github.io/2015/05/28/svg-animation/
Umm - nevermind because I worked it out - the text here
thing was the way. I was not seeing them because of a too low opacity.