CanvasPath

external interface CanvasPath(source)

Since Kotlin

1.1

Inheritors

external interface CanvasPath : JsAny(source)

Since Kotlin

1.8

Inheritors

Functions

Link copied to clipboard
abstract fun arc(x: Double, y: Double, radius: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = definedExternally)
Since Kotlin 1.1
abstract fun arc(x: Double, y: Double, radius: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = definedExternally)
Since Kotlin 1.8
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)
Since Kotlin 1.1
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)
Since Kotlin 1.8
Link copied to clipboard
abstract fun bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double)
Since Kotlin 1.1
abstract fun bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun closePath()
Since Kotlin 1.1
abstract fun closePath()
Since Kotlin 1.8
Link copied to clipboard
abstract fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = definedExternally)
Since Kotlin 1.1
abstract fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = definedExternally)
Since Kotlin 1.8
Link copied to clipboard
abstract fun lineTo(x: Double, y: Double)
Since Kotlin 1.1
abstract fun lineTo(x: Double, y: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun moveTo(x: Double, y: Double)
Since Kotlin 1.1
abstract fun moveTo(x: Double, y: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double)
Since Kotlin 1.1
abstract fun quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun rect(x: Double, y: Double, w: Double, h: Double)
Since Kotlin 1.1
abstract fun rect(x: Double, y: Double, w: Double, h: Double)
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8