CanvasPathDrawingStyles.idl 633 B

123456789101112131415
  1. // https://html.spec.whatwg.org/multipage/canvas.html#canvaslinecap
  2. // enum CanvasLineCap { "butt", "round", "square" };
  3. // enum CanvasLineJoin { "round", "bevel", "miter" };
  4. // https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles
  5. interface mixin CanvasPathDrawingStyles {
  6. attribute unrestricted double lineWidth;
  7. attribute CanvasLineCap lineCap;
  8. attribute CanvasLineJoin lineJoin;
  9. attribute unrestricted double miterLimit;
  10. undefined setLineDash(sequence<unrestricted double> segments);
  11. sequence<unrestricted double> getLineDash();
  12. attribute unrestricted double lineDashOffset;
  13. };