Make it easy to render to an SVG DOM element, that the user can then manipulate, instead of rendering directly into the DOM tree. The most convenient way to do this is probably to return ScalaTags, so this would be straightforward as that is already our internal representation.
This is useful because users will not always want to just insert the SVG into the DOM tree. They might want to manipulate it, but adding their own elements or choosing how and when to insert it. This gives them the flexibility to do so.
Make it easy to render to an SVG DOM element, that the user can then manipulate, instead of rendering directly into the DOM tree. The most convenient way to do this is probably to return ScalaTags, so this would be straightforward as that is already our internal representation.
This is useful because users will not always want to just insert the SVG into the DOM tree. They might want to manipulate it, but adding their own elements or choosing how and when to insert it. This gives them the flexibility to do so.