Calc

data class Calc(val expression: String) : LinearDimension(source)

A calc() expression with percentages, which are taken of the same length as a percentage of the property; computed styles have the other relative units in pixels

Constructors

Link copied to clipboard
constructor(expression: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun inPixels(parentLengthInPx: Double): Double
Link copied to clipboard
fun resolve(reference: Double): Double

the length in pixels, with percentages of reference