scale

fun scale(x: Number, y: Number? = null): String

Creates a scale transform string.

The scale transform resizes an element by the specified x and y scaling factors. This helper is intended to be used directly as a transform attribute value or combined with other transform helpers via transforms(...).

Return

The scale transform string.

Parameters

x

The scaling factor along the x-axis.

y

The scaling factor along the y-axis (optional).