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

interpolateTransform* can't interpolate rotation from 0 to 360 deg #48

Closed
iseeyou911 opened this issue Feb 20, 2018 · 2 comments
Closed

Comments

@iseeyou911
Copy link

Hello
interpolateTransform* interpolate rotation with shortest path. So, looks like it's imposible to make interpolation from 0 to 360 deg. I think this is an issue.

if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path

@danburzo
Copy link

@iseeyou911 this behavior matches the CSS spec

@mbostock
Copy link
Member

Duplicate of #44.

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

No branches or pull requests

3 participants