zathras / jovial_svg

Flutter library for robust, efficient rendering of SVG static images
BSD 3-Clause "New" or "Revised" License
102 stars 20 forks source link

SvgValueColor should be exported #115

Open zathras opened 1 week ago

zathras commented 1 week ago

The DOM API allows modification of a parsed SVG asset, but the ability to read the asset and extract information is incomplete. For example, https://github.com/zathras/jovial_svg/discussions/111 points out that SvgValueColor and its value attribute aren't exposed. There are likely other areas where the API doesn't expose attributes of an SVG asset.

The original use case for this API was modifying a known SVG asset, but being able to analyze an unknown asset might be of some value. It's unclear at present how many other places there are where more would need to be exposed, but it's worth taking a look.

zathras commented 1 week ago

Upon review, it looks like not exporting SvgValueColor was a simple oversight. I'm checking the rest of the DOM API to make sure nothing else was missed.

zathras commented 1 week ago

Absolute font size had the same issue as value color.