Class: CssTransformChain<T>
A concatenated chain of CSS transforms.
Type parameters
Name | Type |
---|---|
T | extends CssTransform [] |
Implements
Constructors
constructor
• new CssTransformChain<T
>(...transforms
): CssTransformChain
<T
>
Creates a new chain of CSS transforms.
Type parameters
Name | Type |
---|---|
T | extends CssTransform [] |
Parameters
Name | Type | Description |
---|---|---|
...transforms | T | The 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
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
Name | Type |
---|---|
Index | extends number |
Parameters
Name | Type | Description |
---|---|---|
index | Index | The 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
Defined in
src/sdk/graphics/css/CssTransform.ts:529