(Based on #45 for now since I can't easily build otherwise)
I need this in order to process some basic SVGs output by the diagrams library.
There are a few things that could maybe be improved. I'm not totally sure about:
the best way to split up the types - there's some overlap with text-anchor, as well as alignment-baseline (which is not yet supported by this library)
where to put these new definitions - I've put it all below the existing text stuff, but maybe there's some logical order to the types and to the fields of DrawAttributes?
what to put in the haddocks, e.g. on DominantBaseline constructors - are these maybe copied from some source (seemingly not the SVG spec, or MDN)?
(Based on #45 for now since I can't easily build otherwise)
I need this in order to process some basic SVGs output by the
diagrams
library.There are a few things that could maybe be improved. I'm not totally sure about:
text-anchor
, as well asalignment-baseline
(which is not yet supported by this library)DrawAttributes
?DominantBaseline
constructors - are these maybe copied from some source (seemingly not the SVG spec, or MDN)?