Skip to content

Conversation

UnrelatedString
Copy link

Description of the change

The Canvas API guarantees and enforces that the width and height of the canvas element are integers; this PR changes the type declarations of getWidth, getHeight, setWidth, setHeight, and Dimensions to reflect this. Although this is an extremely breaking change, it seems like it ought to be made eventually.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

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

Successfully merging this pull request may close these issues.

1 participant