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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect rendering of SVG arcs #63

Closed
avgrad opened this issue May 4, 2018 · 3 comments
Closed

Incorrect rendering of SVG arcs #63

avgrad opened this issue May 4, 2018 · 3 comments
Assignees
Labels

Comments

@avgrad
Copy link

avgrad commented May 4, 2018

It's me again. 馃榿

I tried creating shapes with the rc.path() function using SVG-Paths.
But the arcs which are supposed to appear are not drawn correctly using the rough-canvas.
I tried fiddling with the comma-separators between values, relative a and absolute A instructions, none of them creates the right shape.
Drawing the shape directly to the danvas via a Path2D object works fine.

Interestingly enough, the fill for the shape is rendered correctly, just the outline is rendered wrong.
Also the four examples found on the website work perfectly in the same canvas.

I created a codepen to illustrate the issue -> codepen

Am I missing something again or is this an actual bug?

@pshihn
Copy link
Collaborator

pshihn commented May 12, 2018

Seems like a bug. Let me take a look.

@pshihn
Copy link
Collaborator

pshihn commented May 12, 2018

v2.1.3 should have the fix for this.

@pshihn
Copy link
Collaborator

pshihn commented May 12, 2018

@sydeslyde Adapted your codepen with the fix: https://codepen.io/shihn/pen/GdGoYQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants