You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer
* values between 0 and 255 (included).
*/
defdata: js.Array[Int] = js.native
I am confused: is the type Uint8ClampedArray, or js.Array[Int]? Or are those types interchangeable somehow? If they are, perhaps the documentation could clarify how.
The text was updated successfully, but these errors were encountered:
I guess the interface of both JS types is similar enough, they both contain length and bracket access, therefore one can perform some basic operations on TypedArray thinking it is a normal array.
The ImageData.data is defined and documented as follows:
scala-js-dom/dom/src/main/scala/org/scalajs/dom/ImageData.scala
Lines 23 to 26 in 7d0508c
I am confused: is the type
Uint8ClampedArray
, orjs.Array[Int]
? Or are those types interchangeable somehow? If they are, perhaps the documentation could clarify how.The text was updated successfully, but these errors were encountered: