Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for parsing rounded rect instances #222

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kennyweiss
Copy link

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.

The previous algorithm supported the case where the rect was a python dictionary,
but not when it was a rect Element instance.
Adds support for rect2pathd from SVG strings.
These failed before the bugfix in rect2pathd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant