mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

Bugfix for parsing rounded rect instances #222

Open kennyweiss opened 5 months ago

kennyweiss commented 5 months ago

This PR contains a minor bugfix for parsing rounded rectangles.

When calling rect2pathd through the Document class, the passed in Element instance did not directly expose its rx and ry attributes, which can be accessed through the keys() method.

I added unit tests for this case and verified that everything continues to work when calling rect2pathd with a dictionary and with the svg2paths function on an SVG document.