-
Notifications
You must be signed in to change notification settings - Fork 475
[svgLib] add rudimentary support for shapes #1500
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
Conversation
def _prefer_non_zero(*args): | ||
for arg in args: | ||
if arg != 0: | ||
return arg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation should use four spaces like in the rest of the module
return 0. | ||
|
||
def _ntos(n): | ||
# %f likes to add unnecessary 0's, %g isn't consistent about # decimals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn mor 8000 e.
LGTM (besides minor indentation issue)
closing this, we'll continue on #1508 |
Make it possible to import SVGs with simple uses of
<rect>
,<circle>
,<polygon>
by converting them to<path>