Skip to main content

CanvasDrawPath

Extended by

Methods

beginPath()

beginPath(): void;

MDN Reference

Returns

void


clip()

Call Signature

clip(fillRule?): void;

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Call Signature

clip(path, fillRule?): void;
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void


fill()

Call Signature

fill(fillRule?): void;

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Call Signature

fill(path, fillRule?): void;
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void


isPointInPath()

Call Signature

isPointInPath(
x,
y,
fillRule?
): boolean;

MDN Reference

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Call Signature

isPointInPath(
path,
x,
y,
fillRule?
): boolean;
Parameters
ParameterType
pathPath2D
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean


isPointInStroke()

Call Signature

isPointInStroke(x, y): boolean;

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Call Signature

isPointInStroke(
path,
x,
y
): boolean;
Parameters
ParameterType
pathPath2D
xnumber
ynumber
Returns

boolean


stroke()

Call Signature

stroke(): void;

MDN Reference

Returns

void

Call Signature

stroke(path): void;
Parameters
ParameterType
pathPath2D
Returns

void