Skip to content

Commit 3f1b655

Browse files
committed
Add moveBy to Window
1 parent d02c0ca commit 3f1b655

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3718,6 +3718,13 @@ class CanvasRenderingContext2D extends js.Object {
37183718
*/
37193719
def moveTo(x: Double, y: Double): Unit = js.native
37203720

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+
37213728
/**
37223729
* Returns an ImageData object representing the underlying pixel data for the area of
37233730
* the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh

0 commit comments

Comments
 (0)