Interface UnitlessZero<TUnit>

A kind of dimension with unit-less zero. E.g. angle or length.

Type Parameters

  • TUnit extends string

    Allowed units type.

Hierarchy

  • Kind<TUnit>
    • UnitlessZero

Properties

Methods

Properties

noPt: UnitlessZero<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?: UnitlessZero<"%" | 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: StypZero<TUnit>

Zero value of this kind without unit.

Methods

Generated using TypeDoc