CanvasAPI
Types
canvasDirection
canvasFillRule
canvasFontKerning
canvasFontStretch
canvasFontVariantCaps
canvasGradient
An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). See CanvasGradient on MDN
Module
There are methods and helpers defined in CanvasGradient .
canvasLineCap
canvasLineJoin
canvasPattern
An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. See CanvasPattern on MDN
Module
There are methods and helpers defined in CanvasPattern .
canvasRenderingContext2DSettings
Record fields
alpha
desynchronized
colorSpace
willReadFrequently
canvasTextAlign
canvasTextBaseline
canvasTextRendering
globalCompositeOperation
imageBitmapRenderingContext
Record fields
Module
There are methods and helpers defined in ImageBitmapRenderingContext .
imageBitmapRenderingContextSettings
Record fields
alpha
imageEncodeOptions
Record fields
type_
quality
imageSmoothingQuality
offscreenCanvas
Record fields
width
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). Read more on MDN
height
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). Read more on MDN
Module
There are methods and helpers defined in OffscreenCanvas .
offscreenCanvasRenderingContext2D
Record fields
offscreenRenderingContext
offscreenRenderingContextId
path2D
This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. See Path2D on MDN
Module
There are methods and helpers defined in Path2D .
predefinedColorSpace
textMetrics
The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. See TextMetrics on MDN
Record fields
webGL2RenderingContext
Record fields
webGLContextAttributes
Record fields
alpha
depth
stencil
antialias
premultipliedAlpha
preserveDrawingBuffer
powerPreference
failIfMajorPerformanceCaveat
desynchronized
webGLPowerPreference
webGLRenderingContext
Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. See WebGLRenderingContext on MDN