Class CSSScale
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSScale interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual {{CSSXRef('transform')}} property in CSS. It inherits properties and methods from its parent 'CSSTransformValue'.
[Value("CSSScale")]
public class CSSScale : CSSTransformComponent
- Inheritance
-
CSSScale
- Inherited Members
Remarks
Constructors
CSSScale()
public CSSScale()
CSSScale(Union13, Union13, Union13)
The CSSScale() constructor creates a new
CSSScale object representing the scale() and scale3d() values of the
individual 'transform' property in CSS.
public CSSScale(Union13 x, Union13 y, Union13 z = default)
Parameters
Remarks
Properties
X
The x property of the
CSSScale interface gets and sets the abscissa or x-axis of the
translating vector.
[Value("x")]
public Union13 X { get; set; }
Property Value
- Union13
A CSSNumericValue. Can be set to a number, which is wrapped in a CSSUnitValue of
unit: "number".
Remarks
Y
The y property of the
CSSScale interface gets and sets the ordinate or y-axis of the
translating vector.
[Value("y")]
public Union13 Y { get; set; }
Property Value
- Union13
A CSSNumericValue. Can be set to a number, which is wrapped in a CSSUnitValue of
unit: "number".
Remarks
Z
The z property of the
CSSScale interface representing the z-component of the translating
vector. A positive value moves the element towards the viewer, and a negative value
farther away.
[Value("z")]
public Union13 Z { get; set; }
Property Value
- Union13
A CSSNumericValue. Can be set to a number, which is wrapped in a CSSUnitValue of
unit: "number".
Remarks
If this value is present then the transform is a 3D transform and the is2D
property will be set to false.