Skip to content

Commit 0481e5a

Browse files
authored
More formatting changes.
Drawing cues from https://github.com/scala-js/scala-js-dom/blob/main/dom/src/main/scala/org/scalajs/dom/InputEvent.scala#L15C89-L17C1 Don't know what the formatting issue is.
1 parent f28f9a9 commit 0481e5a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

dom/src/main/scala/org/scalajs/dom/ImageData.scala

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ import scala.scalajs.js.annotation._
1717
@JSGlobal
1818
class 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

Comments
 (0)