CanvasDrawPath

external interface CanvasDrawPath(source)

Since Kotlin

1.1

Inheritors

external interface CanvasDrawPath : JsAny(source)

Since Kotlin

1.8

Inheritors

Functions

Link copied to clipboard
abstract fun beginPath()
Since Kotlin 1.1
abstract fun beginPath()
Since Kotlin 1.8
Link copied to clipboard
abstract fun clip(fillRule: CanvasFillRule = definedExternally)
abstract fun clip(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Since Kotlin 1.1
abstract fun clip(fillRule: CanvasFillRule = definedExternally)
abstract fun clip(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Since Kotlin 1.8
Link copied to clipboard
abstract fun fill(fillRule: CanvasFillRule = definedExternally)
abstract fun fill(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Since Kotlin 1.1
abstract fun fill(fillRule: CanvasFillRule = definedExternally)
abstract fun fill(path: Path2D, fillRule: CanvasFillRule = definedExternally)
Since Kotlin 1.8
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
Since Kotlin 1.1
abstract fun isPointInPath(x: Double, y: Double, fillRule: CanvasFillRule = definedExternally): Boolean
abstract fun isPointInPath(path: Path2D, x: Double, y: Double, fillRule: CanvasFillRule = definedExternally): Boolean
Since Kotlin 1.8
Link copied to clipboard
abstract fun isPointInStroke(x: Double, y: Double): Boolean
abstract fun isPointInStroke(path: Path2D, x: Double, y: Double): Boolean
Since Kotlin 1.1
abstract fun isPointInStroke(x: Double, y: Double): Boolean
abstract fun isPointInStroke(path: Path2D, x: Double, y: Double): Boolean
Since Kotlin 1.8
Link copied to clipboard
abstract fun resetClip()
Since Kotlin 1.1
abstract fun resetClip()
Since Kotlin 1.8
Link copied to clipboard
abstract fun stroke()
abstract fun stroke(path: Path2D)
Since Kotlin 1.1
abstract fun stroke()
abstract fun stroke(path: Path2D)
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