CanvasTransform

external interface CanvasTransform(source)

Since Kotlin

1.1

Inheritors

external interface CanvasTransform : JsAny(source)

Since Kotlin

1.8

Inheritors

Functions

Link copied to clipboard
abstract fun getTransform(): DOMMatrix
Since Kotlin 1.1
abstract fun getTransform(): DOMMatrix
Since Kotlin 1.8
Link copied to clipboard
abstract fun resetTransform()
Since Kotlin 1.1
abstract fun resetTransform()
Since Kotlin 1.8
Link copied to clipboard
abstract fun rotate(angle: Double)
Since Kotlin 1.1
abstract fun rotate(angle: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun scale(x: Double, y: Double)
Since Kotlin 1.1
abstract fun scale(x: Double, y: Double)
Since Kotlin 1.8
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)
Since Kotlin 1.1
abstract fun setTransform(transform: JsAny? = definedExternally)
abstract fun setTransform(a: Double, b: Double, c: Double, d: Double, e: Double, f: 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
abstract fun transform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double)
Since Kotlin 1.1
abstract fun transform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double)
Since Kotlin 1.8
Link copied to clipboard
abstract fun translate(x: Double, y: Double)
Since Kotlin 1.1
abstract fun translate(x: Double, y: Double)
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