Package-level declarations

Types

Link copied to clipboard
open class DOMMatrix(init: String = definedExternally) : DOMMatrixReadOnly, Serializable

The DOMMatrix interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. It is a mutable version of the DOMMatrixReadOnly interface. The interface is available inside web workers.

Link copied to clipboard
open class DOMMatrixReadOnly(init: String = definedExternally) : Serializable

The DOMMatrixReadOnly interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. The DOMMatrix interface — which is based upon DOMMatrixReadOnly—adds mutability, allowing you to alter the matrix after creating it.

Link copied to clipboard
open class DOMPoint(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally) : DOMPointReadOnly, Serializable

A DOMPoint object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. DOMPoint is based on DOMPointReadOnly but allows its properties' values to be changed.

Link copied to clipboard
open class DOMPointReadOnly(val x: Double = definedExternally, val y: Double = definedExternally, val z: Double = definedExternally, val w: Double = definedExternally) : Serializable

The DOMPointReadOnly interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.

Link copied to clipboard
open class DOMQuad(p1: DOMPointReadOnly = definedExternally, p2: DOMPointReadOnly = definedExternally, p3: DOMPointReadOnly = definedExternally, p4: DOMPointReadOnly = definedExternally) : Serializable

A DOMQuad is a collection of four DOMPoints defining the corners of an arbitrary quadrilateral. Returning DOMQuads lets getBoxQuads() return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy bounds attribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.

Link copied to clipboard
open class DOMRect(var x: Double = definedExternally, var y: Double = definedExternally, var width: Double = definedExternally, var height: Double = definedExternally) : DOMRectReadOnly, Serializable

A DOMRect describes the size and position of a rectangle.

Link copied to clipboard

The DOMRectList interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as getClientRects(). It provides access to each rectangle in the list via its index, along with a length property that indicates the total number of rectangles in the list.

Link copied to clipboard
open class DOMRectReadOnly(val x: Double = definedExternally, val y: Double = definedExternally, val width: Double = definedExternally, val height: Double = definedExternally) : Serializable

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