CanvasFillStrokeStyles

external interface CanvasFillStrokeStyles(source)

Since Kotlin

1.1

Inheritors

external interface CanvasFillStrokeStyles : JsAny(source)

Since Kotlin

1.8

Inheritors

Properties

Link copied to clipboard
open var fillStyle: dynamic
Since Kotlin 1.1
abstract var fillStyle: JsAny?
Since Kotlin 1.8
Link copied to clipboard
open var strokeStyle: dynamic
Since Kotlin 1.1
abstract var strokeStyle: JsAny?
Since Kotlin 1.8

Functions

Link copied to clipboard
abstract fun createLinearGradient(x0: Double, y0: Double, x1: Double, y1: Double): CanvasGradient
Since Kotlin 1.1
abstract fun createLinearGradient(x0: Double, y0: Double, x1: Double, y1: Double): CanvasGradient
Since Kotlin 1.8
Link copied to clipboard
abstract fun createPattern(image: CanvasImageSource, repetition: String): CanvasPattern?
Since Kotlin 1.1
abstract fun createPattern(image: CanvasImageSource, repetition: String): CanvasPattern?
Since Kotlin 1.8
Link copied to clipboard
abstract fun createRadialGradient(x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): CanvasGradient
Since Kotlin 1.1
abstract fun createRadialGradient(x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): CanvasGradient
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