-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix the steps to find a point on an ellipse #8495
Conversation
This is an attempt at fixing whatwg#8408. This goes the long way of defining the steps to determine the point on the ellipse, in a "theoretical" wording (as opposed to using algebra formulae). This is based on what browsers seems to do. so there shouldn't be a need for browser issues, yet a technical review from @whatwg/canvas is probably necessary. Not sure either if editorially this is the proper way of fixing that.
cc @whatwg/canvas (pr-preview cannot mention teams so mentioning them in OP often fails) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's some minor editorial review... hopefully some domain experts can still chime in to help us with the review of the actual logic :)
Anyone from @whatwg/canvas want to provide a quick check on the logic here? I'll plan on merging this by Monday the 16th if we don't hear otherwise. |
I think this makes sense. Thanks, @Kaiido for doing this. :) |
Gentle ping @domenic, I guess this went off your radar ;-) |
* Fix ellipse angles definition As was found in whatwg/html#8408 the ellipse's `startAngle` and `endAngle` are not really angles on the ellipse, but angles on the eccentric circle of the ellipse. These are known as "eccentric angle", though this term *might* be a bit obscure at first sight, so I wouldn't mind a better proposition if reviewers have one. The specs got fixed in whatwg/html#8495 but as can be seen, the fix was quite verbose and I'm not sure the docs need to get that much details. So I hope this little fix is both enough to lead the ones that could get surprised by the actual behavior to the proper understanding, and not too obscure to lose in details the ones that wouldn't notice. * Link "eccentric angle" to outside explanation Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com> * Should have batched... Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com> --------- Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
This is an attempt at fixing #8408.
This goes the long way of defining the steps to determine the point on the ellipse, in a "theoretical" wording (as opposed to using algebra formulae).
This is based on what browsers seems to do, so there shouldn't be a need for browser issues, yet a technical review from @whatwg/canvas is probably necessary.
Not sure either if editorially this is the proper way of fixing that.
Ps: Also CCing @flupe since they were the ones discovering this in the first place.
(See WHATWG Working Mode: Changes for more details.)
/canvas.html ( diff )