geofflane / vectored

Elixir SVG primitives and rendering
MIT License
0 stars 0 forks source link

Update use to take title children #2

Closed codingbull closed 3 months ago

codingbull commented 3 months ago

https://github.com/geofflane/vectored/blob/7a155e25d8eb262ac23b4ef02e5613b63b2d5818/lib/vectored/elements/use.ex#L64

Use can take a "title" child, it's considered a "graphics element" in the list on https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title

       attrs = Vectored.Elements.Use.attributes(element)
      children = Vectored.Elements.Element.render_common_children(element)
      {:use, attrs, children}