CSSMatrixComponent

The CSSMatrixComponent interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.

MDN Reference

Constructors

Link copied to clipboard
constructor(matrix: DOMMatrixReadOnly, options: CSSMatrixComponentOptions = definedExternally)

Properties

Link copied to clipboard
open external var is2D: Boolean

The is2D property of the CSSTransformComponent interface represents whether the transform is 2D or 3D.

Link copied to clipboard
open external var matrix: DOMMatrix

The matrix property of the CSSMatrixComponent interface represents a DOMMatrix object containing a 2D or 3D matrix.

Functions

Link copied to clipboard
open external fun toMatrix(): DOMMatrix

The toMatrix() method of the CSSTransformComponent interface returns a DOMMatrix object.