Files
ladybird/Userland/Libraries/LibWeb/HTML/Canvas/CanvasPathDrawingStyles.idl
Nico Weber 7ac3806a1d LibWeb: Plumbing for lineCap, lineJoin, miterLimit, lineDashOffset
Not used for painting yet, but adds a FIXME for what's missing.

Also tweak some existing spec comments minorly.
2024-11-07 19:54:10 +01:00

16 lines
633 B
Plaintext

// https://html.spec.whatwg.org/multipage/canvas.html#canvaslinecap
// enum CanvasLineCap { "butt", "round", "square" };
// enum CanvasLineJoin { "round", "bevel", "miter" };
// https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles
interface mixin CanvasPathDrawingStyles {
attribute unrestricted double lineWidth;
attribute CanvasLineCap lineCap;
attribute CanvasLineJoin lineJoin;
attribute unrestricted double miterLimit;
undefined setLineDash(sequence<unrestricted double> segments);
sequence<unrestricted double> getLineDash();
attribute unrestricted double lineDashOffset;
};