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; } 方法
clip
- clip(fillRule?): void
返回 void
- clip(path, fillRule?): void
返回 void
fill
- fill(fillRule?): void
返回 void
- fill(path, fillRule?): void
返回 void
isPointInPath
- isPointInPath(x, y, fillRule?): boolean
返回 boolean
- isPointInPath(path, x, y, fillRule?): boolean
返回 boolean
isPointInStroke
- isPointInStroke(x, y): boolean
返回 boolean
- isPointInStroke(path, x, y): boolean
参数
- path: Path2D
- x: number
- y: number
返回 boolean
stroke
- stroke(): void
返回 void
- stroke(path): void
返回 void