Allowed unit type.
Readonly
dimReadonly
leftLeft operand.
Readonly
opOperator.
Readonly
priorityCSS property value priority.
The value Important and above means the property is !important
. Everything else means normal
priority.
The property value with higher priority number takes precedence over the one with lower one.
Readonly
rightRight operand.
Readonly
typeA type of structured numeric CSS property value.
Abstract
addMaps the given CSS property value to the value of this one's type. Defaults to this value if mapping is not possible.
This method allows to use an structured value instance as CSS property mapping.
A raw property value that should be converted.
Mapped property value.
Abstract
divCreates !important
variant of this value.
Either a new value equal to this one but having priority
equal to Important,
or this one if already the case.
Abstract
isChecks whether this value equals to CSS property value.
CSS property value to compare with.
Abstract
mulAbstract
negateAbstract
prioritizeCreates structured CSS value with the given priority
.
New priority.
Either a new value equal to this one but having the given priority
, or this one if priority
did
not change.
Abstract
subAbstract
toTries to converts this numeric value to another dimension.
Does not actually construct a value in another dimension, as long as dimension unit supported by both dimensions.
A unit type allowed in target dimension.
Target dimension.
Either a value in dimension compatible with dim
, or undefined
if this value's unit is not supported
by dim
.
Abstract
toCreates usual (not !important
) variant of this value.
Either a new value equal to this one but having priority
equal to Usual,
or this one if already the case.
Generated using TypeDoc
CSS
calc()
function call representation containing either addition or subtraction.