size

fun size(raw: Any): ObjectValue<Size>

Return

a new size value that wraps the parsed content of raw.

Parameters

raw

raw value to convert to a size value. The format is Xunit, where X is a number (integer or floating point) and unit is one of the following: px, pt, cm, mm, in. If not specified, px is assumed.

Throws

if the value is an invalid size