DOMRectReadOnly

open class DOMRectReadOnly(    val x: Double = definedExternally,     val y: Double = definedExternally,     val width: Double = definedExternally,     val height: Double = definedExternally) : Serializable(source)

The DOMRectReadOnly interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.

MDN Reference

Inheritors

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val bottom: Double

The bottom read-only property of the DOMRectReadOnly interface returns the bottom coordinate value of the DOMRect.

Link copied to clipboard
open val height: Double

The height read-only property of the DOMRectReadOnly interface represents the height of the DOMRect.

Link copied to clipboard
open val left: Double

The left read-only property of the DOMRectReadOnly interface returns the left coordinate value of the DOMRect.

Link copied to clipboard
open val right: Double

The right read-only property of the DOMRectReadOnly interface returns the right coordinate value of the DOMRect.

Link copied to clipboard
open val top: Double

The top read-only property of the DOMRectReadOnly interface returns the top coordinate value of the DOMRect.

Link copied to clipboard
open val width: Double

The width read-only property of the DOMRectReadOnly interface represents the width of the DOMRect.

Link copied to clipboard
open val x: Double

The x read-only property of the DOMRectReadOnly interface represents the x coordinate of the DOMRect's origin.

Link copied to clipboard
open val y: Double

The y read-only property of the DOMRectReadOnly interface represents the y coordinate of the DOMRect's origin.

Functions

Link copied to clipboard
fun toJSON(): JsAny

The DOMRectReadOnly method toJSON() returns a JSON representation of the DOMRectReadOnly object.