@@ -17,17 +17,6 @@ import scala.scalajs.js.annotation._
1717@ JSGlobal
1818class ImageData extends js.Object {
1919
20- /** Is an unsigned long representing the actual width, in pixels, of the ImageData. */
21- def width : Int = js.native
22-
23- /** Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer
24- * values between 0 and 255 (included).
25- */
26- def data : js.typedarray.Uint8ClampedArray = js.native
27-
28- /** Is an unsigned long representing the actual height, in pixels, of the ImageData. */
29- def height : Int = js.native
30-
3120 /**
3221 * Create an ImageData instance from an array of pixel data and a width.
3322 * @param data pixel data
@@ -70,4 +59,15 @@ class ImageData extends js.Object {
7059 */
7160 def this (data : js.typedarray.Uint8ClampedArray , width : Int , height : Int , setings : js.Object ) = this ()
7261
62+ /** Is an unsigned long representing the actual width, in pixels, of the ImageData. */
63+ def width : Int = js.native
64+
65+ /** Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer
66+ * values between 0 and 255 (included).
67+ */
68+ def data : js.typedarray.Uint8ClampedArray = js.native
69+
70+ /** Is an unsigned long representing the actual height, in pixels, of the ImageData. */
71+ def height : Int = js.native
72+
7373}
0 commit comments