Package-level declarations

Types

Link copied to clipboard
sealed external interface CanvasCompositing
Link copied to clipboard
sealed external interface CanvasDirection
Link copied to clipboard
sealed external interface CanvasDrawImage
Link copied to clipboard
sealed external interface CanvasDrawPath
Link copied to clipboard
sealed external interface CanvasFillRule
Link copied to clipboard
sealed external interface CanvasFillStrokeStyles
Link copied to clipboard
sealed external interface CanvasFilters
Link copied to clipboard
sealed external interface CanvasFontKerning
Link copied to clipboard
sealed external interface CanvasFontStretch
Link copied to clipboard
sealed external interface CanvasFontVariantCaps
Link copied to clipboard
external class CanvasGradient

An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().

Link copied to clipboard
sealed external interface CanvasImageData
Link copied to clipboard
sealed external interface CanvasImageSmoothing
Link copied to clipboard
sealed external interface CanvasLineCap
Link copied to clipboard
sealed external interface CanvasLineJoin
Link copied to clipboard
sealed external interface CanvasPath
Link copied to clipboard
sealed external interface CanvasPathDrawingStyles
Link copied to clipboard
external class CanvasPattern

An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.

Link copied to clipboard
sealed external interface CanvasRect
Link copied to clipboard

The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects.

Link copied to clipboard
Link copied to clipboard
sealed external interface CanvasShadowStyles
Link copied to clipboard
sealed external interface CanvasState
Link copied to clipboard
sealed external interface CanvasText
Link copied to clipboard
sealed external interface CanvasTextAlign
Link copied to clipboard
sealed external interface CanvasTextBaseline
Link copied to clipboard
sealed external interface CanvasTextDrawingStyles
Link copied to clipboard
sealed external interface CanvasTextRendering
Link copied to clipboard
sealed external interface CanvasTransform
Link copied to clipboard
sealed external interface CanvasUserInterface
Link copied to clipboard
sealed external interface GlobalCompositeOperation
Link copied to clipboard
external interface ImageEncodeOptions
Link copied to clipboard
sealed external interface ImageSmoothingQuality
Link copied to clipboard
open external class Path2D(path: Path2D = definedExternally) : CanvasPath

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.

Link copied to clipboard
external class TextMetrics

The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.