CanvasRenderingContext2D context2D

An API for drawing on this canvas.

Source

CanvasRenderingContext2D get context2D => getContext('2d');