Abstract
A type of itself.
Allowed unit type.
Readonly
dimReadonly
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.
Abstract
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
prioritizeAbstract
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
Base implementation of structured numeric CSS property value.