mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibWeb: Teach CRC2D to draw Path2Ds :^)
This commit is contained in:
parent
389f1ee6f5
commit
6644f3ab44
3 changed files with 41 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
|||
#import <HTML/TextMetrics.idl>
|
||||
#import <HTML/CanvasGradient.idl>
|
||||
#import <HTML/Canvas/CanvasPath.idl>
|
||||
#import <HTML/Path2D.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2d
|
||||
[Exposed=Window]
|
||||
|
@ -18,8 +19,12 @@ interface CanvasRenderingContext2D {
|
|||
undefined rotate(double radians);
|
||||
|
||||
undefined beginPath();
|
||||
// FIXME: `DOMString` should be `CanvasFillRule`
|
||||
undefined fill(optional DOMString fillRule = "nonzero");
|
||||
// FIXME: `DOMString` should be `CanvasFillRule`
|
||||
undefined fill(Path2D path, optional DOMString fillRule = "nonzero");
|
||||
undefined stroke();
|
||||
undefined stroke(Path2D path);
|
||||
|
||||
undefined fillText(DOMString text, double x, double y, optional double maxWidth);
|
||||
undefined strokeText(DOMString text, double x, double y, optional double maxWidth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue