@@ -17,17 +17,6 @@ import scala.scalajs.js.annotation._
17
17
@ JSGlobal
18
18
class ImageData extends js.Object {
19
19
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
-
31
20
/**
32
21
* Create an ImageData instance from an array of pixel data and a width.
33
22
* @param data pixel data
@@ -70,4 +59,15 @@ class ImageData extends js.Object {
70
59
*/
71
60
def this (data : js.typedarray.Uint8ClampedArray , width : Int , height : Int , setings : js.Object ) = this ()
72
61
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
+
73
73
}
0 commit comments