Class: CssScaleTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:426
A CSS scale
transform.
Extends
AbstractCssTransform
Constructors
Constructor
new CssScaleTransform():
CssScaleTransform
Defined in: src/sdk/graphics/css/CssTransform.ts:432
Creates a new instance of a CSS scale
transform, initialized to the identity scaling.
Returns
CssScaleTransform
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:451
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:445
Sets this transform's scaling.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
x | number | undefined | The x scaling to set. |
y | number | undefined | The y scaling to set. |
precisionX | number | 0 | The precision with which to set the x scaling. A value of 0 denotes infinite precision. Defaults to 0 . |
precisionY | number | precisionX | The precision with which to set the y scaling. A value of 0 denotes infinite precision. Defaults to the x scaling precision value. |
Returns
void