Skip to content

Commit

Permalink
Merge pull request #818 from scala-js/issue/807
Browse files Browse the repository at this point in the history
Fix type of `ImageData#data`
  • Loading branch information
armanbilge authored Sep 27, 2023
2 parents 048d183 + 9c8796d commit aa82b8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit aa82b8f

Please sign in to comment.