ReadonlycanvasThe CanvasRenderingContext2D.canvas property, part of the Canvas API, is a read-only reference to the might be null if there is no associated canvas element.
OptionalfillRule: CanvasFillRuleOptionalcounterclockwise: booleanOptionalfillRule: CanvasFillRuleOptionalsettings: ImageDataSettingsOptionalfillRule: CanvasFillRuleOptionalradii: number | DOMPointInit | (number | DOMPointInit)[]Optionaltransform: DOMMatrix2DInit
The
CanvasRenderingContext2Dinterface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a canvas element.MDN Reference