scale

fun scale(scalar: Number)

Scales this ComponentView by the given scalar.

Parameters

scalar

New scale.

Throws

If the given scalar is negative.


var scale: Double

Scale of this ComponentView.

See also

Throws

When invoking getter if scaleX and scaleY differ. Use scaleX and scaleY getters instead. Safe to use if scale is equal in both directions.