Allowed units type.
Readonly noA similar kind of dimensions supporting all units this one supports, except percents (%).
undefined if there is no such dimension kind. Refers itself if does not support percents.
Optional Readonly ptA similar kind of dimensions supporting all units this one supports and, in addition, supporting percents (%).
undefined if there is no such dimension kind. Refers itself if supports percents.
Readonly zeroZero value of this kind that has unit.
Maps the given CSS property value to the one compatible with this dimension kind. Defaults to undefined
if mapping is not possible.
This method allows to use a dimension kind as CSS property mapping.
Any scalar or non-numeric value is mapped to undefined. A numeric value is converted to this dimension by
toDim method.
A raw property value that should be converted.
Mapped property value or undefined.
Constructs dimension value.
Numeric dimension value.
Dimension unit.
Constructed dimension value as a StypDimension instance.
Generated using TypeDoc
A kind of dimension which zero value has unit. E.g. frequency or resolution.