2022-08-12 17:43:37 +01:00
|
|
|
// https://html.spec.whatwg.org/multipage/canvas.html#canvaslinecap
|
2024-11-07 09:27:55 -05:00
|
|
|
// enum CanvasLineCap { "butt", "round", "square" };
|
|
|
|
|
// enum CanvasLineJoin { "round", "bevel", "miter" };
|
2022-08-12 17:43:37 +01:00
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles
|
|
|
|
|
interface mixin CanvasPathDrawingStyles {
|
|
|
|
|
attribute unrestricted double lineWidth;
|
2024-11-07 09:27:55 -05:00
|
|
|
attribute CanvasLineCap lineCap;
|
|
|
|
|
attribute CanvasLineJoin lineJoin;
|
|
|
|
|
attribute unrestricted double miterLimit;
|
2022-08-12 17:43:37 +01:00
|
|
|
|
2024-06-24 19:02:30 -03:00
|
|
|
undefined setLineDash(sequence<unrestricted double> segments);
|
|
|
|
|
sequence<unrestricted double> getLineDash();
|
2024-11-07 09:27:55 -05:00
|
|
|
attribute unrestricted double lineDashOffset;
|
2022-08-12 17:43:37 +01:00
|
|
|
};
|