Dan Field

Results 553 comments of Dan Field

Relevant part of spec: > Unlike the ‘transform’ attribute (see effect of the ‘transform’ on sibling attributes), the automatic transformation that is created due to a ‘viewBox’ does not affect...

The basic issue seems to be there needs to be some special handling for stroke widths and font sizes in this scenario.

This is now fixed on master (d8e2b82) and I'm contemplating releasing it as v0.7.0, but I'd really like to hear your feedback about whether it's working the way you want...

Yes, this is expected now. I think it conforms to the spec more closely this way, but I'm not sure if it's really better for flutter specifically. What do you...

If you specify the width of the svg, it's going to be the actual width of the drawing in pixels.

This feels like a bug to me. the alignment property isn't doing what it should be in this case.

I've pushed up some new changes to master that should fix the alignment issues. I'm getting some more confidence in how this is working at this point, but would again...

Yes, I haven't quite been able to get that to look just right. Unfortunately I think you're probably beat off avoiding having width or height explicitly specified. :(

All the things you're discussing about the viewbox are supported - the only problem comes in when there is additional a width/height constraint. All of the scaling/transforming related to width/height...