DOMRect

open external class DOMRect(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally) : DOMRectReadOnly(source)

Exposes the JavaScript DOMRect to Kotlin

Since Kotlin

1.1
open external class DOMRect(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally) : DOMRectReadOnly, JsAny(source)

Exposes the JavaScript DOMRect to Kotlin

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally)
constructor(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally)

Properties

Link copied to clipboard
open val bottom: Double
Since Kotlin 1.1
open val bottom: Double
Since Kotlin 1.8
Link copied to clipboard
open override var height: Double
Since Kotlin 1.1
open override var height: Double
Since Kotlin 1.8
Link copied to clipboard
open val left: Double
Since Kotlin 1.1
open val left: Double
Since Kotlin 1.8
Link copied to clipboard
open val right: Double
Since Kotlin 1.1
open val right: Double
Since Kotlin 1.8
Link copied to clipboard
open val top: Double
Since Kotlin 1.1
open val top: Double
Since Kotlin 1.8
Link copied to clipboard
open override var width: Double
Since Kotlin 1.1
open override var width: Double
Since Kotlin 1.8
Link copied to clipboard
open override var x: Double
Since Kotlin 1.1
open override var x: Double
Since Kotlin 1.8
Link copied to clipboard
open override var y: Double
Since Kotlin 1.1
open override var y: Double
Since Kotlin 1.8

Functions

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