mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f0ea3c6150
commit
251eeb2c2d
53 changed files with 1566 additions and 262 deletions
|
@ -117,15 +117,15 @@ interface mixin CanvasDrawPath {
|
|||
// path API (see also CanvasPath)
|
||||
undefined beginPath();
|
||||
undefined fill(optional CanvasFillRule fillRule = "nonzero");
|
||||
//void fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
undefined fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
undefined stroke();
|
||||
//void stroke(Path2D path);
|
||||
undefined stroke(Path2D path);
|
||||
undefined clip(optional CanvasFillRule fillRule = "nonzero");
|
||||
//void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
undefined clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
boolean isPointInPath(unrestricted double x, unrestricted double y,
|
||||
optional CanvasFillRule fillRule = "nonzero");
|
||||
//boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y,
|
||||
// optional CanvasFillRule fillRule = "nonzero");
|
||||
boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y,
|
||||
optional CanvasFillRule fillRule = "nonzero");
|
||||
//boolean isPointInStroke(unrestricted double x, unrestricted double y);
|
||||
//boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
||||
};
|
||||
|
@ -262,3 +262,12 @@ interface ImageData {
|
|||
[Throws] readonly attribute Uint8ClampedArray data;
|
||||
//readonly attribute PredefinedColorSpace colorSpace;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Path2D {
|
||||
constructor();
|
||||
constructor(Path2D other);
|
||||
constructor(DOMString pathString);
|
||||
undefined addPath(Path2D path/*, SVGMatrix? transformation*/);
|
||||
};
|
||||
Path2D includes CanvasPath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue