1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

LibWeb: Add a naive implemention of CanvasRenderingContext2D::fill_text

This doesnt actually account for several unimplemented attributes
(like ltr/rtl, alignment, etc) yet, so this should be expanded in
the future.
This commit is contained in:
Idan Horowitz 2021-04-15 20:36:10 +03:00 committed by Andreas Kling
parent a257ef0f35
commit 00114ab01d
3 changed files with 20 additions and 0 deletions

View file

@ -20,6 +20,8 @@ interface CanvasRenderingContext2D {
undefined ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, optional boolean counterclockwise = false);
undefined rect(double x, double y, double width, double height);
undefined fillText(DOMString text, double x, double y, optional double maxWidth);
undefined drawImage(HTMLImageElement image, double dx, double dy);
attribute DOMString fillStyle;