CssDimension

data class CssDimension(val value: Double, val unit: String)(source)

a number with a unit of CSS, like 12px, 50%, 1.5em or 2fr; unit is lowercase, empty for numbers

Constructors

Link copied to clipboard
constructor(value: Double, unit: String)

Properties

Link copied to clipboard

the value in pixels for absolute units and numbers, as CSS defines them at 96 pixels per inch; null for others

Link copied to clipboard
Link copied to clipboard