Skip to main content

Class: CssTranslate3dTransform

A CSS translate3d transform.

Hierarchy

  • AbstractCssTransform

    CssTranslate3dTransform

Constructors

constructor

new CssTranslate3dTransform(unitX, unitY?, unitZ?): CssTranslate3dTransform

Creates a new instance of a CSS translate3d transform, initialized to zero translation.

Parameters

NameTypeDefault 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

Defined in

src/sdk/graphics/css/CssTransform.ts:308

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

NameType
paramsReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>

Returns

string

Inherit Doc

Overrides

AbstractCssTransform.buildString

Defined in

src/sdk/graphics/css/CssTransform.ts:331


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, precisionX?, precisionY?, precisionZ?): void

Sets this transform's translation.

Parameters

NameTypeDefault 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

Defined in

src/sdk/graphics/css/CssTransform.ts:324