CanvasDrawPath.idl 1.3 KB

123456789101112131415161718192021222324252627
  1. #import <HTML/Path2D.idl>
  2. // https://html.spec.whatwg.org/multipage/canvas.html#canvasfillrule
  3. enum CanvasFillRule { "nonzero", "evenodd" };
  4. // https://html.spec.whatwg.org/multipage/canvas.html#canvasdrawpath
  5. interface mixin CanvasDrawPath {
  6. undefined beginPath();
  7. // FIXME: `DOMString` should be `CanvasFillRule`
  8. undefined fill(optional DOMString fillRule = "nonzero");
  9. // FIXME: `DOMString` should be `CanvasFillRule`
  10. undefined fill(Path2D path, optional DOMString fillRule = "nonzero");
  11. undefined stroke();
  12. undefined stroke(Path2D path);
  13. // FIXME: `DOMString` should be `CanvasFillRule`
  14. undefined clip(optional DOMString fillRule = "nonzero");
  15. // FIXME: `DOMString` should be `CanvasFillRule`
  16. undefined clip(Path2D path, optional DOMString fillRule = "nonzero");
  17. // FIXME: `DOMString` should be `CanvasFillRule`
  18. boolean isPointInPath(unrestricted double x, unrestricted double y, optional DOMString fillRule = "nonzero");
  19. // FIXME: `DOMString` should be `CanvasFillRule`
  20. boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional DOMString fillRule = "nonzero");
  21. [FIXME] boolean isPointInStroke(unrestricted double x, unrestricted double y);
  22. [FIXME] boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
  23. };