Skip to main content

Class: CssTranslateYTransform

A CSS translateY transform.

Hierarchy

  • AbstractCssTransform

    CssTranslateYTransform

Constructors

constructor

new CssTranslateYTransform(unit): CssTranslateYTransform

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

Parameters

NameTypeDescription
unitstringThe unit to use for this transform.

Returns

CssTranslateYTransform

Overrides

AbstractCssTransform.constructor

Defined in

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

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:226


resolve

resolve(): string

Returns

string

Inherit Doc

Inherited from

AbstractCssTransform.resolve

Defined in

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


set

set(y, precision?): void

Sets this transform's translation.

Parameters

NameTypeDefault valueDescription
ynumberundefinedThe translation to set.
precisionnumber0The precision with which to set the translation. A value of 0 denotes infinite precision. Defaults to 0.

Returns

void

Defined in

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