Skip to content

Commit 208e56f

Browse files
committed
Add moveTo and moveBy to Window
Undo addition of CanvasRenderingContext2D.moveBy
1 parent 47af225 commit 208e56f

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
@@ -2690,6 +2690,20 @@ class Window
26902690
* MDN
26912691
*/
26922692
var lostpointercapture: js.Function1[PointerEvent, _] = js.native
2693+
2694+
/**
2695+
* Moves the window to the specified coordinates.
2696+
*
2697+
* MDN
2698+
*/
2699+
def moveTo(x: Int, y: Int): Unit = js.native
2700+
2701+
/**
2702+
* Moves the current window by a specified amount.
2703+
*
2704+
* MDN
2705+
*/
2706+
def moveBy(deltaX: Int, deltaY: Int): Unit = js.native
26932707
}
26942708

26952709
/**
@@ -3718,13 +3732,6 @@ class CanvasRenderingContext2D extends js.Object {
37183732
*/
37193733
def moveTo(x: Double, y: Double): Unit = js.native
37203734

3721-
/**
3722-
* Moves the current window by a specified amount.
3723-
*
3724-
* MDN
3725-
*/
3726-
def moveBy(deltaX: Double, deltaY: Double): Unit = js.native
3727-
37283735
/**
37293736
* Returns an ImageData object representing the underlying pixel data for the area of
37303737
* the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh

0 commit comments

Comments
 (0)