Namespaces
toDevicePixels
Converts PercentLengthType unit to device pixels.
const toDevicePixels: (length: PercentLengthType, auto: number, parentAvailableWidth: number) => number;Defined in: ui/styling/length-shared.ts
Converts PercentLengthType unit to device pixels.
Parameters
| Parameter | Type | Description |
|---|---|---|
length | PercentLengthType | The PercentLengthType to convert. |
auto | number | Value to use for conversion of "auto". By default is Math.NaN. |
parentAvailableWidth | number | Value to use as base when converting percent unit. By default is Math.NaN. |
Returns
number