zathras / jovial_svg

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

SvgValueColor should be exported #115

Closed zathras closed 1 month ago

zathras commented 2 months 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 2 months 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 2 months ago

Absolute font size had the same issue as value color.

zathras commented 1 month ago

Published in 1.1.23