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

Runtime crash with arc function and negative radius #34

Open
SiriusStarr opened this issue Nov 18, 2021 · 0 comments
Open

Runtime crash with arc function and negative radius #34

SiriusStarr opened this issue Nov 18, 2021 · 0 comments

Comments

@SiriusStarr
Copy link

If Canvas.arc is passed a negative value for its radius, it crashes with

Uncaught DOMException: CanvasRenderingContext2D.arc: Negative radius

This should probably at least be documented clearly in a warning, since one is usually reasonably insulated from runtime crashes with Elm. (Obviously, the use of a custom element here does away with that "guarantee," but it's still not entirely expected.)

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

1 participant