-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Cubic Bezier incorrect bounding box #214
Comments
<svg width="240" height="320" viewBox="-5 -5 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M 0,0 C -2,-3 -1,-4 0,-3" stroke="#FFC681" stroke-width="0.05px"/>
<rect x="0" y="0" width="1.1547005383792515" height="3.0" transform="scale(-1,-1)" stroke="#FFC681" stroke-width="0.05px"/>
</svg> Confirmed. That bit seems quite clearly not correctly the bounding box. |
This is an edge case when Given that we're solving |
This may be related to #186, but thought I'd bring it up in case it isn't known about. The computed bounding box of certain cubic beziers seems to be incorrect sometimes. Here's an example:
This outputs
(-1.1547005383792515, -3.0, 0.0, 0.0)
, butymin
should really be lower than-3
. Here is a picture of the bezier with the incorrectly computed bounding box:svgelements version: 1.9.0
Python version: 3.8.1
OS: Windows
The text was updated successfully, but these errors were encountered: