Class: CssTranslateTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:264
A CSS translate
transform.
Extends
AbstractCssTransform
Constructors
Constructor
new CssTranslateTransform(
unitX
,unitY
):CssTranslateTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:272
Creates a new instance of a CSS translate
transform, initialized to zero translation.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
unitX | string | undefined | The unit to use for this transform's x translation. |
unitY | string | unitX | The unit to use for this transform's y translation. Defaults to the same unit as the x translation. |
Returns
CssTranslateTransform
Overrides
AbstractCssTransform.constructor
Properties
cachedParams
protected
readonly
cachedParams:Float64Array
Defined in: src/sdk/graphics/css/CssTransform.ts:22
Inherited from
AbstractCssTransform.cachedParams
params
protected
readonly
params:Float64Array
Defined in: src/sdk/graphics/css/CssTransform.ts:21
Inherited from
AbstractCssTransform.params
stringValue?
protected
optional
stringValue:string
Defined in: src/sdk/graphics/css/CssTransform.ts:24
Inherited from
AbstractCssTransform.stringValue
Methods
buildString()
protected
buildString(params
):string
Defined in: src/sdk/graphics/css/CssTransform.ts:291
Parameters
Parameter | Type |
---|---|
params | ReadonlyFloat64Array |
Returns
string
Inherit Doc
Overrides
AbstractCssTransform.buildString
resolve()
resolve():
string
Defined in: src/sdk/graphics/css/CssTransform.ts:36
Returns
string
Inherit Doc
Inherited from
AbstractCssTransform.resolve
set()
set(
x
,y
,precisionX
,precisionY
):void
Defined in: src/sdk/graphics/css/CssTransform.ts:285
Sets this transform's translation.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
x | number | undefined | The x translation to set. |
y | number | undefined | The y translation to set. |
precisionX | number | 0 | The precision with which to set the x translation. A value of 0 denotes infinite precision. Defaults to 0 . |
precisionY | number | precisionX | The precision with which to set the y translation. A value of 0 denotes infinite precision. Defaults to the x translation precision value. |
Returns
void