Class: CssTranslate3dTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:299
A CSS translate3d
transform.
Extends
AbstractCssTransform
Constructors
Constructor
new CssTranslate3dTransform(
unitX
,unitY
,unitZ
):CssTranslate3dTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:308
Creates a new instance of a CSS translate3d
transform, initialized to zero translation.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
unitX | string | undefined | The unit to use for this transform's x translation. |
unitY | string | unitX | The unit to use for this transform's y translation. Defaults to the same unit as the x translation. |
unitZ | string | unitX | The unit to use for this transform's z translation. Defaults to the same unit as the x translation. |
Returns
CssTranslate3dTransform
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:331
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
,precisionX
,precisionY
,precisionZ
):void
Defined in: src/sdk/graphics/css/CssTransform.ts:324
Sets this transform's translation.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
x | number | undefined | The x translation to set. |
y | number | undefined | The y translation to set. |
z | number | undefined | The z translation to set. |
precisionX | number | 0 | The precision with which to set the x translation. A value of 0 denotes infinite precision. Defaults to 0 . |
precisionY | number | precisionX | The precision with which to set the y translation. A value of 0 denotes infinite precision. Defaults to the x translation precision value. |
precisionZ | number | precisionX | The precision with which to set the z translation. A value of 0 denotes infinite precision. Defaults to the x translation precision value. |
Returns
void