d3/d3-interpolate

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

iseeyou911 opened this issue · 2 comments

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

@iseeyou911 this behavior matches the CSS spec

Duplicate of #44.