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

CanvasRenderingContext2D#getImageData should check and use parameters #110

Closed
danielrentz opened this issue May 16, 2023 · 0 comments · Fixed by #111
Closed

CanvasRenderingContext2D#getImageData should check and use parameters #110

danielrentz opened this issue May 16, 2023 · 0 comments · Fixed by #111

Comments

@danielrentz
Copy link
Contributor

Original CanvasRenderingContext2D#getImageData requires 4 or 5 parameters, and uses width/height parameters for the size of the returned ImageData object.

danielrentz added a commit to danielrentz/jest-canvas-mock that referenced this issue May 17, 2023
hustcc pushed a commit that referenced this issue May 18, 2023
* fix: support parameters for CanvasRenderingContext2D#getImageData

* #110: throw on zero size, allow negative size
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 a pull request may close this issue.

1 participant