interface CanvasText { fillText(text: string,
x: number,
y: number,
maxWidth?: number): void; measureText(text: string): TextMetrics; strokeText(text: string,
x: number,
y: number,
maxWidth?: number): void; }
Hierarchy-Diagram
Legend
interface
public property
public method
Methods
fillText
- fillText(text: string, x: number, y: number, maxWidth?: number): void
Parameters
- text: string
- x: number
- y: number
Optional
maxWidth: number
Returns void
measureText
- measureText(text: string): TextMetrics
strokeText
- strokeText(text: string, x: number, y: number, maxWidth?: number): void
Parameters
- text: string
- x: number
- y: number
Optional
maxWidth: number
Returns void
MDN Reference