Class: CssRotate3dTransform
A CSS rotate3d
transform.
Hierarchy
AbstractCssTransform
↳
CssRotate3dTransform
Constructors
constructor
• new CssRotate3dTransform(unit
): CssRotate3dTransform
Creates a new instance of a CSS rotate3d
transform, initialized to zero rotation about the z axis.
Parameters
Name | Type | Description |
---|---|---|
unit | "rad" | "deg" | The angle unit to use for this transform. |
Returns
Overrides
AbstractCssTransform.constructor
Defined in
src/sdk/graphics/css/CssTransform.ts:145
Properties
cachedParams
• Protected
Readonly
cachedParams: Float64Array
Inherited from
AbstractCssTransform.cachedParams
Defined in
src/sdk/graphics/css/CssTransform.ts:22
params
• Protected
Readonly
params: Float64Array
Inherited from
AbstractCssTransform.params
Defined in
src/sdk/graphics/css/CssTransform.ts:21
stringValue
• Protected
Optional
stringValue: string
Inherited from
AbstractCssTransform.stringValue
Defined in
src/sdk/graphics/css/CssTransform.ts:24
Methods
buildString
▸ buildString(params
): string
Parameters
Name | Type |
---|---|
params | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> |
Returns
string
Inherit Doc
Overrides
AbstractCssTransform.buildString
Defined in
src/sdk/graphics/css/CssTransform.ts:166
resolve
▸ resolve(): string
Returns
string
Inherit Doc
Inherited from
AbstractCssTransform.resolve
Defined in
src/sdk/graphics/css/CssTransform.ts:36
set
▸ set(x
, y
, z
, angle
, precision?
): void
Sets this transform's rotation.
Parameters
Name | 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
Defined in
src/sdk/graphics/css/CssTransform.ts:158