Skip to content

Added Canvas 2D filter property #840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading