-
Notifications
You must be signed in to change notification settings - Fork 7
Fix imageData.data type
#189
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
Conversation
nojaf
left a comment
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.
Would be great if you could add a unit test here as well.
src/DOMAPI/ImageData.res
Outdated
| [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData) | ||
| */ | ||
| @new | ||
| external make2: ( |
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.
Please rename the function as well while you are here:
| external make2: ( | |
| external makeWithData: ( |
|
@nojaf both done |
nojaf
left a comment
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.
Wonderful! Thanks very much.
There should be a new version once CI is done on main.
| @@ -0,0 +1,5 @@ | |||
| open DOMAPI | |||
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.
Could you rename file to ImageData_test.res please
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.
Oops, done
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.
Thx!
https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data
I changed it to
Uint8ClampedArray.tbecause initially it wasarray<int>.