Skip to content

Commit 27a4cbe

Browse files
anilanarjapgolly
authored andcommitted
Add moveTo and moveBy to Window
Undo addition of CanvasRenderingContext2D.moveBy
1 parent b9cf7f2 commit 27a4cbe

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,20 @@ class Window
27622762
* MDN
27632763
*/
27642764
var lostpointercapture: js.Function1[PointerEvent, _] = js.native
2765+
2766+
/**
2767+
* Moves the window to the specified coordinates.
2768+
*
2769+
* MDN
2770+
*/
2771+
def moveTo(x: Int, y: Int): Unit = js.native
2772+
2773+
/**
2774+
* Moves the current window by a specified amount.
2775+
*
2776+
* MDN
2777+
*/
2778+
def moveBy(deltaX: Int, deltaY: Int): Unit = js.native
27652779
}
27662780

27672781
/**
@@ -3901,13 +3915,6 @@ class CanvasRenderingContext2D extends js.Object {
39013915
*/
39023916
def moveTo(x: Double, y: Double): Unit = js.native
39033917

3904-
/**
3905-
* Moves the current window by a specified amount.
3906-
*
3907-
* MDN
3908-
*/
3909-
def moveBy(deltaX: Double, deltaY: Double): Unit = js.native
3910-
39113918
/**
39123919
* Returns an ImageData object representing the underlying pixel data for the area of
39133920
* the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh

0 commit comments

Comments
 (0)