Skip to content

Runtime crash with arc function and negative radius #34

@SiriusStarr

Description

@SiriusStarr

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions