Properties
canvas
direction
direction: CanvasDirection
filter
filter: string
fontKerning
fontKerning: CanvasFontKerning
globalCompositeOperation
globalCompositeOperation: GlobalCompositeOperation
imageSmoothingEnabled
imageSmoothingEnabled: boolean
imageSmoothingQuality
imageSmoothingQuality: ImageSmoothingQuality
shadowBlur
shadowBlur: number
shadowColor
shadowColor: string
shadowOffsetX
shadowOffsetX: number
shadowOffsetY
shadowOffsetY: number
textAlign
textAlign: CanvasTextAlign
textBaseline
textBaseline: CanvasTextBaseline
Implementation from https://github.com/nilzona/path2d-polyfill