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

Fix type of ImageData#data #818

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15465,7 +15465,7 @@ ImageBitmap[JT] def width: Double
ImageCapture[JC] def grabFrame(): js.Promise[ImageBitmap]
ImageCapture[JC] def takePhoto(): js.Promise[Blob]
ImageCapture[JC] val track: MediaStreamTrack
ImageData[JC] def data: js.Array[Int]
ImageData[JC] def data: js.typedarray.Uint8ClampedArray
ImageData[JC] def height: Int
ImageData[JC] def width: Int
InputEvent[JC] def bubbles: Boolean
Expand Down
2 changes: 1 addition & 1 deletion api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15465,7 +15465,7 @@ ImageBitmap[JT] def width: Double
ImageCapture[JC] def grabFrame(): js.Promise[ImageBitmap]
ImageCapture[JC] def takePhoto(): js.Promise[Blob]
ImageCapture[JC] val track: MediaStreamTrack
ImageData[JC] def data: js.Array[Int]
ImageData[JC] def data: js.typedarray.Uint8ClampedArray
ImageData[JC] def height: Int
ImageData[JC] def width: Int
InputEvent[JC] def bubbles: Boolean
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/ImageData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ImageData extends js.Object {
/** Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer
* values between 0 and 255 (included).
*/
def data: js.Array[Int] = js.native
def data: js.typedarray.Uint8ClampedArray = js.native

/** Is an unsigned long representing the actual height, in pixels, of the ImageData. */
def height: Int = js.native
Expand Down
Loading