Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.CanvasDrawPath

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CanvasDrawPath
import { type dom } from "https://deno.land/x/evt@v2.4.19/lib/types/index.ts";
const { CanvasDrawPath } = dom;

Methods

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