Constructors

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addHitRegion(options: HitRegionOptions = definedExternally)
Link copied to clipboard
abstract fun arc(    x: Double,     y: Double,     radius: Double,     startAngle: Double,     endAngle: Double,     anticlockwise: Boolean = definedExternally)
Link copied to clipboard
abstract fun arcTo(    x1: Double,     y1: Double,     x2: Double,     y2: Double,     radius: Double)
abstract fun arcTo(    x1: Double,     y1: Double,     x2: Double,     y2: Double,     radiusX: Double,     radiusY: Double,     rotation: Double)
Link copied to clipboard
abstract fun beginPath()
Link copied to clipboard
abstract fun bezierCurveTo(    cp1x: Double,     cp1y: Double,     cp2x: Double,     cp2y: Double,     x: Double,     y: Double)
Link copied to clipboard
abstract fun clearHitRegions()
Link copied to clipboard
abstract fun clearRect(    x: Double,     y: Double,     w: Double,     h: Double)
Link copied to clipboard
abstract fun clip(fillRule: CanvasFillRule = definedExternally)
abstract fun clip(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Link copied to clipboard
abstract fun closePath()
Link copied to clipboard
abstract fun createImageData(imagedata: ImageData): ImageData
abstract fun createImageData(sw: Double, sh: Double): ImageData
Link copied to clipboard
abstract fun createLinearGradient(    x0: Double,     y0: Double,     x1: Double,     y1: Double): CanvasGradient
Link copied to clipboard
abstract fun createPattern(image: CanvasImageSource, repetition: String): CanvasPattern?
Link copied to clipboard
abstract fun createRadialGradient(    x0: Double,     y0: Double,     r0: Double,     x1: Double,     y1: Double,     r1: Double): CanvasGradient
Link copied to clipboard
abstract fun drawFocusIfNeeded(element: Element)
abstract fun drawFocusIfNeeded(path: Path2D, element: Element)
Link copied to clipboard
abstract fun drawImage(    image: CanvasImageSource,     dx: Double,     dy: Double)
abstract fun drawImage(    image: CanvasImageSource,     dx: Double,     dy: Double,     dw: Double,     dh: Double)
abstract fun drawImage(    image: CanvasImageSource,     sx: Double,     sy: Double,     sw: Double,     sh: Double,     dx: Double,     dy: Double,     dw: Double,     dh: Double)
Link copied to clipboard
abstract fun ellipse(    x: Double,     y: Double,     radiusX: Double,     radiusY: Double,     rotation: Double,     startAngle: Double,     endAngle: Double,     anticlockwise: Boolean = definedExternally)
Link copied to clipboard
abstract fun fill(fillRule: CanvasFillRule = definedExternally)
abstract fun fill(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Link copied to clipboard
abstract fun fillRect(    x: Double,     y: Double,     w: Double,     h: Double)
Link copied to clipboard
abstract fun fillText(    text: String,     x: Double,     y: Double,     maxWidth: Double = definedExternally)
Link copied to clipboard
abstract fun getImageData(    sx: Double,     sy: Double,     sw: Double,     sh: Double): ImageData
Link copied to clipboard
abstract fun getLineDash(): Array<Double>
Link copied to clipboard
abstract fun getTransform(): DOMMatrix
Link copied to clipboard
abstract fun isPointInPath(    x: Double,     y: Double,     fillRule: CanvasFillRule = definedExternally): Boolean
abstract fun isPointInPath(    path: Path2D,     x: Double,     y: Double,     fillRule: CanvasFillRule = definedExternally): Boolean
Link copied to clipboard
abstract fun isPointInStroke(x: Double, y: Double): Boolean
abstract fun isPointInStroke(    path: Path2D,     x: Double,     y: Double): Boolean
Link copied to clipboard
abstract fun lineTo(x: Double, y: Double)
Link copied to clipboard
abstract fun measureText(text: String): TextMetrics
Link copied to clipboard
abstract fun moveTo(x: Double, y: Double)
Link copied to clipboard
abstract fun putImageData(    imagedata: ImageData,     dx: Double,     dy: Double)
abstract fun putImageData(    imagedata: ImageData,     dx: Double,     dy: Double,     dirtyX: Double,     dirtyY: Double,     dirtyWidth: Double,     dirtyHeight: Double)
Link copied to clipboard
abstract fun quadraticCurveTo(    cpx: Double,     cpy: Double,     x: Double,     y: Double)
Link copied to clipboard
abstract fun rect(    x: Double,     y: Double,     w: Double,     h: Double)
Link copied to clipboard
abstract fun removeHitRegion(id: String)
Link copied to clipboard
abstract fun resetClip()
Link copied to clipboard
abstract fun resetTransform()
Link copied to clipboard
abstract fun restore()
Link copied to clipboard
abstract fun rotate(angle: Double)
Link copied to clipboard
abstract fun save()
Link copied to clipboard
abstract fun scale(x: Double, y: Double)
Link copied to clipboard
abstract fun scrollPathIntoView()
abstract fun scrollPathIntoView(path: Path2D)
Link copied to clipboard
abstract fun setLineDash(segments: Array<Double>)
Link copied to clipboard
abstract fun setTransform(transform: dynamic = definedExternally)
abstract fun setTransform(    a: Double,     b: Double,     c: Double,     d: Double,     e: Double,     f: Double)
Link copied to clipboard
abstract fun stroke()
abstract fun stroke(path: Path2D)
Link copied to clipboard
abstract fun strokeRect(    x: Double,     y: Double,     w: Double,     h: Double)
Link copied to clipboard
abstract fun strokeText(    text: String,     x: Double,     y: Double,     maxWidth: Double = definedExternally)
Link copied to clipboard
abstract fun transform(    a: Double,     b: Double,     c: Double,     d: Double,     e: Double,     f: Double)
Link copied to clipboard
abstract fun translate(x: Double, y: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var fillStyle: dynamic
Link copied to clipboard
abstract var filter: String
Link copied to clipboard
abstract var font: String
Link copied to clipboard
abstract var globalAlpha: Double
Link copied to clipboard
Link copied to clipboard
abstract var imageSmoothingEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
abstract var lineCap: CanvasLineCap
Link copied to clipboard
abstract var lineDashOffset: Double
Link copied to clipboard
abstract var lineJoin: CanvasLineJoin
Link copied to clipboard
abstract var lineWidth: Double
Link copied to clipboard
abstract var miterLimit: Double
Link copied to clipboard
abstract var shadowBlur: Double
Link copied to clipboard
abstract var shadowColor: String
Link copied to clipboard
abstract var shadowOffsetX: Double
Link copied to clipboard
abstract var shadowOffsetY: Double
Link copied to clipboard
open var strokeStyle: dynamic
Link copied to clipboard
Link copied to clipboard