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.
This PR contains a minor bugfix for parsing rounded rectangles.
When calling
rect2pathd
through theDocument
class, the passed inElement
instance did not directly expose itsrx
andry
attributes, which can be accessed through thekeys()
method.I added unit tests for this case and verified that everything continues to work when calling
rect2pathd
with a dictionary and with thesvg2paths
function on an SVG document.