Skip to content

DimensionUnit

const DimensionUnit: object

Defined in: ui/core/dimension.ts:15

How a Dimension’s value is interpreted. Mirrors the C++ u8 unit.

readonly Auto: 2 = 2

Content-/layout-driven; value is ignored.

readonly Percent: 1 = 1

Percentage of the parent’s corresponding axis (0..100).

readonly Px: 0 = 0

Absolute pixels.