Class CSSTransformComponent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSTransformComponent interface of the CSS Typed Object Model API is part of the 'CSSTransformValue' interface.
[Value("CSSTransformComponent")]
public class CSSTransformComponent
- Inheritance
-
CSSTransformComponent
- Derived
- Inherited Members
Remarks
Constructors
CSSTransformComponent()
public CSSTransformComponent()
Properties
Is2D
The is2D read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
[Value("is2D")]
public bool Is2D { get; set; }
Property Value
- bool
A boolean. True indicating the transform is a 2D transform, false if it is a 3D
transform.
Remarks
Methods
ToMatrix()
The toMatrix() method of the
CSSTransformComponent interface returns a 'DOMMatrix'
object.
[Value("toMatrix")]
public DOMMatrix ToMatrix()
Returns
- DOMMatrix
A 'DOMMatrix' object
Remarks
All transform functions can be represented mathematically as a 4x4 transformation matrix.
NOTE
The
is2Dproperty affects what transform, and therefore type of matrix that will be returned. CSS 2D and 3D transforms are different for legacy reasons. A brief explanation of 2D vs. 3D transforms can be found in Using CSS transforms.