Skip to content

Commit

Permalink
Merge pull request #840 from daniel-ciocirlan/main
Browse files Browse the repository at this point in the history
Added Canvas 2D filter property
  • Loading branch information
zetashift authored Mar 19, 2024
2 parents aca3aa2 + cf5b7ce commit 7106ca1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ CanvasRenderingContext2D[JC] def fill(path: Path2D, fillRule: CanvasFillRule): U
CanvasRenderingContext2D[JC] def fillRect(x: Double, y: Double, w: Double, h: Double): Unit
CanvasRenderingContext2D[JC] var fillStyle: js.Any
CanvasRenderingContext2D[JC] def fillText(text: String, x: Double, y: Double, maxWidth: Double?): Unit
CanvasRenderingContext2D[JC] var filter: String
CanvasRenderingContext2D[JC] var font: String
CanvasRenderingContext2D[JC] def getImageData(sx: Double, sy: Double, sw: Double, sh: Double): ImageData
CanvasRenderingContext2D[JC] def getLineDash(): js.Array[Double]
Expand Down
1 change: 1 addition & 0 deletions api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ CanvasRenderingContext2D[JC] def fill(path: Path2D, fillRule: CanvasFillRule): U
CanvasRenderingContext2D[JC] def fillRect(x: Double, y: Double, w: Double, h: Double): Unit
CanvasRenderingContext2D[JC] var fillStyle: js.Any
CanvasRenderingContext2D[JC] def fillText(text: String, x: Double, y: Double, maxWidth: Double?): Unit
CanvasRenderingContext2D[JC] var filter: String
CanvasRenderingContext2D[JC] var font: String
CanvasRenderingContext2D[JC] def getImageData(sx: Double, sy: Double, sw: Double, sh: Double): ImageData
CanvasRenderingContext2D[JC] def getLineDash(): js.Array[Double]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class CanvasRenderingContext2D extends js.Object {
/** A CSS color, a CanvasGradient or CanvasPattern, to use as a fill. */
var fillStyle: js.Any = js.native

/** A CSS filter, which will be applied on the entire canvas. */
var filter: String = js.native

/** Specifies the blurring effect. Default 0 */
var shadowBlur: Double = js.native

Expand Down

0 comments on commit 7106ca1

Please sign in to comment.