Interface Kind<TUnit>

A kind of dimensions. E.g. angle, length, percentage, etc.

It is perfectly fine to use dimensions interchangeably as long as dimension units are compatible.

Type Parameters

  • TUnit extends string

    Allowed units type.

Hierarchy

Properties

Methods

Properties

noPt: Kind<Exclude<TUnit, "%">>

A 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.

pt?: Kind<TUnit | "%">

A 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.

zero: StypDimension<TUnit> | StypZero<TUnit>

Zero value of this kind.

Typically, this is unit-less StypZero. But some dimensions require units.

Methods

Generated using TypeDoc