Path2D.idl 349 B

123456789101112
  1. #import <Geometry/DOMMatrixReadOnly.idl>
  2. #import <HTML/Canvas/CanvasPath.idl>
  3. // https://html.spec.whatwg.org/multipage/canvas.html#path2d
  4. [Exposed=(Window,Worker)]
  5. interface Path2D {
  6. constructor(optional (Path2D or DOMString) path);
  7. undefined addPath(Path2D path, optional DOMMatrix2DInit transform = {});
  8. };
  9. Path2D includes CanvasPath;