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
              
              
            Index
 Methods
beginPath 
clip
- clip(fillRule?: CanvasFillRule): void
- Parameters- OptionalfillRule: CanvasFillRule
 - Returns void
- clip(path: Path2D, fillRule?: CanvasFillRule): void
- Parameters- path: Path2D
- OptionalfillRule: CanvasFillRule
 - Returns void
fill
- fill(fillRule?: CanvasFillRule): void
- Parameters- OptionalfillRule: CanvasFillRule
 - Returns void
- fill(path: Path2D, fillRule?: CanvasFillRule): void
- Parameters- path: Path2D
- OptionalfillRule: CanvasFillRule
 - Returns void
isPointInPath   
- isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean
- Parameters- x: number
- y: number
- OptionalfillRule: CanvasFillRule
 - Returns boolean
- isPointInPath(
 path: Path2D,
 x: number,
 y: number,
 fillRule?: CanvasFillRule,
 ): boolean
- Parameters- path: Path2D
- x: number
- y: number
- OptionalfillRule: CanvasFillRule
 - Returns boolean
MDN Reference