mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Extract CanvasPathDrawingStyles class from CRC2D
This commit is contained in:
parent
53b9f36413
commit
9f71d65005
4 changed files with 57 additions and 8 deletions
|
@ -0,0 +1,22 @@
|
|||
// https://html.spec.whatwg.org/multipage/canvas.html#canvaslinecap
|
||||
enum CanvasLineCap { "butt", "round", "square" };
|
||||
enum CanvasLineJoin { "round", "bevel", "miter" };
|
||||
enum CanvasTextAlign { "start", "end", "left", "right", "center" };
|
||||
enum CanvasTextBaseline { "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" };
|
||||
enum CanvasDirection { "ltr", "rtl", "inherit" };
|
||||
enum CanvasFontKerning { "auto", "normal", "none" };
|
||||
enum CanvasFontStretch { "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" };
|
||||
enum CanvasFontVariantCaps { "normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase", "titling-caps" };
|
||||
enum CanvasTextRendering { "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision" };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles
|
||||
interface mixin CanvasPathDrawingStyles {
|
||||
attribute unrestricted double lineWidth;
|
||||
// FIXME: attribute CanvasLineCap lineCap;
|
||||
// FIXME: attribute CanvasLineJoin lineJoin;
|
||||
// FIXME: attribute unrestricted double miterLimit;
|
||||
|
||||
// FIXME: undefined setLineDash(sequence<unrestricted double> segments);
|
||||
// FIXME: sequence<unrestricted double> getLineDash();
|
||||
// FIXME: attribute unrestricted double lineDashOffset;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue