Skip to main content

Class: CssTransformChain<T>

A concatenated chain of CSS transforms.

Type parameters

NameType
Textends CssTransform[]

Implements

Constructors

constructor

new CssTransformChain<T>(...transforms): CssTransformChain<T>

Creates a new chain of CSS transforms.

Type parameters

NameType
Textends CssTransform[]

Parameters

NameTypeDescription
...transformsTThe individual child transforms that will constitute the new transform chain. The order of the children passed to the constructor determines the order of concatenation. Concatenation follows the standard CSS transform convention: for a concatenation of transforms [A, B, C], the resulting transformation is equivalent to the one produced by multiplying the transformation matrices in the order (A * B) * C.

Returns

CssTransformChain<T>

Defined in

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

Methods

getChild

getChild<Index>(index): Omit<NonNullable<T[Index]>, "resolve">

Gets one of this chain's child transforms.

Type parameters

NameType
Indexextends number

Parameters

NameTypeDescription
indexIndexThe index of the child to get.

Returns

Omit<NonNullable<T[Index]>, "resolve">

The child transform at the specified index in this chain.

Throws

RangeError if index is out of bounds.

Defined in

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


resolve

resolve(): string

Resolves this transform to a CSS transform string.

Returns

string

A CSS transform string representative of this transform.

Implementation of

CssTransform.resolve

Defined in

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