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

Multiple translates, rotations aren't right #16

Closed
gillescastel opened this issue Apr 14, 2015 · 3 comments
Closed

Multiple translates, rotations aren't right #16

gillescastel opened this issue Apr 14, 2015 · 3 comments

Comments

@gillescastel
Copy link

What I get when I use canvas2svg:
001056-

What I get when I use canvas:
001055-

Code:

ctx.fillRect(0, 0, 10, 10)
ctx.translate(0, 20)
ctx.fillRect(0, 0, 10, 10)
ctx.translate(0, 20)
ctx.fillRect(0, 0, 10, 10)
ctx.translate(0, 20)

The generated svg is:
001057-ulamspiral html

I have this problem too when I use ctx.rotate()

@gwwar
Copy link
Contributor

gwwar commented Apr 16, 2015

I'll take a look this weekend

@gwwar
Copy link
Contributor

gwwar commented Apr 25, 2015

Hi, @gillescastel thanks for reporting. I have a pr open for this, but if you can't wait, you can get the fix here: https://github.com/gwwar/canvas2svg

clintjd pushed a commit that referenced this issue Apr 28, 2015
@gillescastel
Copy link
Author

Thank you very much!

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