Interface CanvasDrawPath
interface CanvasDrawPath {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
Hierarchy
- CanvasDrawPath (view full)
Index
Methods
beginPath
clip
- clip(fillRule?): void
Parameters
Optional
fillRule: CanvasFillRule
Returns void
- clip(path, fillRule?): void
Parameters
- path: Path2D
Optional
fillRule: CanvasFillRule
Returns void
fill
- fill(fillRule?): void
Parameters
Optional
fillRule: CanvasFillRule
Returns void
- fill(path, fillRule?): void
Parameters
- path: Path2D
Optional
fillRule: CanvasFillRule
Returns void
isPointInPath
- is
Point (x, y, fillRule?): booleanIn Path Parameters
- x: number
- y: number
Optional
fillRule: CanvasFillRule
Returns boolean
- is
Point (path, x, y, fillRule?): booleanIn Path Parameters
- path: Path2D
- x: number
- y: number
Optional
fillRule: CanvasFillRule
Returns boolean
isPointInStroke
- is
Point (x, y): booleanIn Stroke Parameters
- x: number
- y: number
Returns boolean
- is
Point (path, x, y): booleanIn Stroke Parameters
- path: Path2D
- x: number
- y: number
Returns boolean
stroke
- stroke(): void
Returns void
- stroke(path): void
Parameters
- path: Path2D
Returns void
MDN Reference