22 lines
1.3 KiB
Text
22 lines
1.3 KiB
Text
// 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;
|
|
};
|