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

Incorrect Bounding Box #3

Open
jayliu50 opened this issue Mar 14, 2017 · 1 comment
Open

Incorrect Bounding Box #3

jayliu50 opened this issue Mar 14, 2017 · 1 comment

Comments

@jayliu50
Copy link

The following path (circle) should have a height and width of 80px, but instead has a height and width of 68.2842.

<path d="M68.2842,11.7158 C83.9053,27.3367 83.9053,52.6633 68.2842,68.2842 C52.6633,83.9053 27.3367,83.9053 11.7158,68.2842 C-3.9053,52.6633 -3.9053,27.3367 11.7158,11.7158 C27.3367,-3.9053 52.6633,-3.9053 68.2842,11.7158" stroke="#4990E2" stroke-linecap="round" stroke-linejoin="round"></path>

@mondeja
Copy link

mondeja commented Nov 23, 2020

There is a bug in this library concerning c, C, q, Q, t and T path commands. I've done a comparison between different implementations here. I suggest to use svg-path-bbox because svg-path-bounding-box seems to be unmaintained.

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

No branches or pull requests

2 participants