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; } Methods
fillText
- fillText(text, x, y, maxWidth?): void
Parameters
- text: string
- x: number
- y: number
Optional
maxWidth: number
Returns void
measureText
- measureText(text): TextMetrics
strokeText
- strokeText(text, x, y, maxWidth?): void
Parameters
- text: string
- x: number
- y: number
Optional
maxWidth: number
Returns void
MDN Reference