Skip to main content

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​

ParameterTypeDefault valueDescription
unitXstringundefinedThe unit to use for this transform's x translation.
unitYstringunitXThe unit to use for this transform's y translation. Defaults to the same unit as the x translation.
unitZstringunitXThe 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​

ParameterType
paramsReadonlyFloat64Array

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​

ParameterTypeDefault valueDescription
xnumberundefinedThe x translation to set.
ynumberundefinedThe y translation to set.
znumberundefinedThe z translation to set.
precisionXnumber0The precision with which to set the x translation. A value of 0 denotes infinite precision. Defaults to 0.
precisionYnumberprecisionXThe precision with which to set the y translation. A value of 0 denotes infinite precision. Defaults to the x translation precision value.
precisionZnumberprecisionXThe precision with which to set the z translation. A value of 0 denotes infinite precision. Defaults to the x translation precision value.

Returns​

void