public export type Unit = Unit . Length | Unit . Angle | Unit . Time | Unit . Frequency | Unit . Resolution ; public export namespace Unit { export namespace Length { /**
         *  https export type Relative = Relative . Font | Relative . Viewport ; export namespace Relative { /**
             *  https export type Font = "em" | "ex" | "ch" | "rem" ; /**
             *  https export type Viewport = "vw" | "vh" | "vmin" | "vmax" ; } export function isRelative ( unit ) { return isFontRelative ( unit ) || isViewportRelative ( unit ) ; } export function isFontRelative ( unit ) { switch ( unit ) { case "em" : case "ex" : case "ch" : case "rem" : return true ; } return false ; } export function isViewportRelative ( unit ) { switch ( unit ) { case "vw" : case "vh" : case "vmin" : case "vmax" : return true ; } return false ; } /**
         *  https export type Absolute = "cm" | "mm" | "Q" | "in" | "pc" | "pt" | "px" ; export function isAbsolute ( unit ) { switch ( unit ) { case "cm" : case "mm" : case "Q" : case "in" : case "pc" : case "pt" : case "px" : return true ; } return false ; } } export const { isRelative : isRelativeLength , isFontRelative : isFontRelativeLength , isViewportRelative : isViewportRelativeLength , isAbsolute : isAbsoluteLength , } = Length ; /**
     *  https export type Length = Length . Relative | Length . Absolute ; export function isLength ( unit ) { return isRelativeLength ( unit ) || isAbsoluteLength ( unit ) ; } /**
     *  https export type Angle = "deg" | "grad" | "rad" | "turn" ; export function isAngle ( unit ) { switch ( unit ) { case "deg" : case "grad" : case "rad" : case "turn" : return true ; } return false ; } /**
     *  https export type Time = "s" | "ms" ; export function isTime ( unit ) { switch ( unit ) { case "s" : case "ms" : return true ; } return false ; } /**
     *  https export type Frequency = "hz" | "kHz" ; export function isFrequency ( unit ) { switch ( unit ) { case "hz" : case "kHz" : return true ; } return false ; } /**
     *  https export type Resolution = "dpi" | "dpcm" | "dppx" ; export function isResolution ( unit ) { switch ( unit ) { case "dpi" : case "dpcm" : case "dppx" : return true ; } return false ; } }