Skip to content

Commit 35fed55

Browse files
authored
Add CanvasRenderingContext2D.ellipse(). (#403)
1 parent fb9072f commit 35fed55

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -3983,6 +3983,17 @@ class CanvasRenderingContext2D extends js.Object {
39833983

39843984
def createLinearGradient(x0: Double, y0: Double, x1: Double,
39853985
y1: Double): CanvasGradient = js.native
3986+
3987+
/**
3988+
* The ellipse() method creates an elliptical arc centered at (x, y) with the radii radiusX
3989+
* and radiusY. The path starts at startAngle and ends at endAngle, and travels in the direction
3990+
* given by anticlockwise (defaulting to clockwise).
3991+
*
3992+
* MDN
3993+
*/
3994+
def ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double,
3995+
rotation: Double, startAngle: Double, endAngle: Double,
3996+
anticlockwise: Boolean = false): Unit = js.native
39863997
}
39873998

39883999
/**

0 commit comments

Comments
 (0)