Class: CssRotate3dTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:138
A CSS rotate3d
transform.
Extends
AbstractCssTransform
Constructors
Constructor
new CssRotate3dTransform(
unit
):CssRotate3dTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:145
Creates a new instance of a CSS rotate3d
transform, initialized to zero rotation about the z axis.
Parameters
Parameter | Type | Description |
---|---|---|
unit | "rad" | "deg" | The angle unit to use for this transform. |
Returns
CssRotate3dTransform
Overrides
AbstractCssTransform.constructor
Properties
cachedParams
protected
readonly
cachedParams:Float64Array
Defined in: src/sdk/graphics/css/CssTransform.ts:22
Inherited from
AbstractCssTransform.cachedParams
params
protected
readonly
params:Float64Array
Defined in: src/sdk/graphics/css/CssTransform.ts:21
Inherited from
AbstractCssTransform.params
stringValue?
protected
optional
stringValue:string
Defined in: src/sdk/graphics/css/CssTransform.ts:24
Inherited from
AbstractCssTransform.stringValue
Methods
buildString()
protected
buildString(params
):string
Defined in: src/sdk/graphics/css/CssTransform.ts:166
Parameters
Parameter | Type |
---|---|
params | ReadonlyFloat64Array |
Returns
string
Inherit Doc
Overrides
AbstractCssTransform.buildString
resolve()
resolve():
string
Defined in: src/sdk/graphics/css/CssTransform.ts:36
Returns
string
Inherit Doc
Inherited from
AbstractCssTransform.resolve
set()
set(
x
,y
,z
,angle
,precision
):void
Defined in: src/sdk/graphics/css/CssTransform.ts:158
Sets this transform's rotation.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
x | number | undefined | The x component of the rotation axis vector. |
y | number | undefined | The y component of the rotation axis vector. |
z | number | undefined | The z component of the rotation axis vector. |
angle | number | undefined | The rotation angle to set. |
precision | number | 0 | The precision with which to set the angle. A value of 0 denotes infinite precision. Defaults to 0 . |
Returns
void