CanvasPath

JS
1.1
interface CanvasPath
(source)

Functions

JS
1.1

arc

abstract fun arc(
    x: Double,
    y: Double,
    radius: Double,
    startAngle: Double,
    endAngle: Double,
    anticlockwise: Boolean = definedExternally)
JS
1.1

arcTo

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)
JS
1.1

bezierCurveTo

abstract fun bezierCurveTo(
    cp1x: Double,
    cp1y: Double,
    cp2x: Double,
    cp2y: Double,
    x: Double,
    y: Double)
JS
1.1

closePath

abstract fun closePath()
JS
1.1

ellipse

abstract fun ellipse(
    x: Double,
    y: Double,
    radiusX: Double,
    radiusY: Double,
    rotation: Double,
    startAngle: Double,
    endAngle: Double,
    anticlockwise: Boolean = definedExternally)
JS
1.1

lineTo

abstract fun lineTo(x: Double, y: Double)
JS
1.1

moveTo

abstract fun moveTo(x: Double, y: Double)
JS
1.1

quadraticCurveTo

abstract fun quadraticCurveTo(
    cpx: Double,
    cpy: Double,
    x: Double,
    y: Double)
JS
1.1

rect

abstract fun rect(x: Double, y: Double, w: Double, h: Double)

Inheritors

JS
1.1

CanvasRenderingContext2D

Exposes the JavaScript CanvasRenderingContext2D to Kotlin

abstract class CanvasRenderingContext2D : 
    CanvasState,
    CanvasTransform,
    CanvasCompositing,
    CanvasImageSmoothing,
    CanvasFillStrokeStyles,
    CanvasShadowStyles,
    CanvasFilters,
    CanvasRect,
    CanvasDrawPath,
    CanvasUserInterface,
    CanvasText,
    CanvasDrawImage,
    CanvasHitRegion,
    CanvasImageData,
    CanvasPathDrawingStyles,
    CanvasTextDrawingStyles,
    CanvasPath,
    RenderingContext
JS
1.1

Path2D

Exposes the JavaScript Path2D to Kotlin

open class Path2D : CanvasPath