8.6 Released with 🥽 visionOS support and more!
Check it out

Summary ​

Functions ​

convertToString ​

convertToString(length: LengthType): string
Parameter Default Description
length

Returns string

equals ​

equals(a: LengthType, b: LengthType): boolean
Parameter Default Description
a

b

Returns boolean

parse ​

parse(text: string): LengthType
Parameter Default Description
text
string

Returns LengthType

toDevicePixels ​

toDevicePixels(length: LengthType, auto?: number): number
Converts Length unit to device pixels.
Parameter Default Description
length

The Length to convert.

auto
number

Value to use for conversion of "auto". By default is Math.NaN.

Returns number
Previous
IOSHelper