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

arcTo doesn't handle counterclockwise arcs #101

Open
BorisTheBrave opened this issue Oct 11, 2024 · 2 comments
Open

arcTo doesn't handle counterclockwise arcs #101

BorisTheBrave opened this issue Oct 11, 2024 · 2 comments

Comments

@BorisTheBrave
Copy link

Try this in playground

var x = 100;
var y = 100;
ctx.beginPath();
ctx.moveTo(x, y+200);
ctx.arcTo(x+200, y+200, x+200, y, 200);
ctx.stroke();

image

The fix is relatively straightforward, but I'm not going to prepare it for a defunct project. If you are still supporting canvas2svg, write back and I'll consider it.

@murkle
Copy link

murkle commented Oct 11, 2024

This fork is maintained - does it have the bug?
https://github.com/zenozeng/svgcanvas/

@BorisTheBrave
Copy link
Author

Thanks for that link. It appears to have the exact same issue (and the arcTo code looks the unchanged from this repo).

zenozeng#28

notes two bugs - anticlockwise (as above) and also shallow arc. He's got a fix for the latter only.

So much for it being "maintained".

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