Skip to main content

Class: CssMatrixTransform

A CSS matrix transform.

Hierarchy

  • AbstractCssTransform

    CssMatrixTransform

Constructors

constructor

new CssMatrixTransform(): CssMatrixTransform

Creates a new instance of a CSS matrix transform, initialized to the identity transformation.

Returns

CssMatrixTransform

Overrides

AbstractCssTransform.constructor

Defined in

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

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


resolve

resolve(): string

Returns

string

Inherit Doc

Inherited from

AbstractCssTransform.resolve

Defined in

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


set

set(scaleX, skewY, skewX, scaleY, translateX, translateY): void

Sets the parameters of this transform.

Parameters

NameTypeDescription
scaleXnumberThe x scaling value to set.
skewYnumberThe y skew value to set.
skewXnumberThe x skew value to set.
scaleYnumberThe y scaling value to set.
translateXnumberThe x translation value to set.
translateYnumberThe y translation value to set.

Returns

void

Defined in

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

set(transform): void

Sets the parameters of this transform.

Parameters

NameTypeDescription
transformTransform2DA transform object containing the parameters to set.

Returns

void

Defined in

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