Class CSS
- CSS
Hz
-
Creates a
CSSUnitValue
withvalue
and Hz unit-
value: number
The numeric value
-
Q
-
Creates a
CSSUnitValue
withvalue
and Q unit-
value: number
The numeric value
-
are Compatible
-
Returns true if the provided units are compatible (ie cm and mm are compatible, px and Hz are incompatible)
-
Rest ...units: string[]
-
ch
-
Creates a
CSSUnitValue
withvalue
and ch unit-
value: number
The numeric value
-
cm
-
Creates a
CSSUnitValue
withvalue
and cm unit-
value: number
The numeric value
-
deg
-
Creates a
CSSUnitValue
withvalue
and deg unit-
value: number
The numeric value
-
dpcm
-
Creates a
CSSUnitValue
withvalue
and dpcm unit-
value: number
The numeric value
-
dpi
-
Creates a
CSSUnitValue
withvalue
and dpi unit-
value: number
The numeric value
-
dppx
-
Creates a
CSSUnitValue
withvalue
and dppx unit-
value: number
The numeric value
-
em
-
Creates a
CSSUnitValue
withvalue
and em unit-
value: number
The numeric value
-
ex
-
Creates a
CSSUnitValue
withvalue
and ex unit-
value: number
The numeric value
-
fr
-
Creates a
CSSUnitValue
withvalue
and fr unit-
value: number
The numeric value
-
get Canonical Unit
-
Gets the canonical unit of the compatibility set of which
unit
is part of-
unit: CSSUnit
The name of the unit
-
get Unit Data
-
Gets some basic data about
unit
such as name, symbol or compatibility set-
The name or symbol of the unit
-
grad
-
Creates a
CSSUnitValue
withvalue
and grad unit-
value: number
The numeric value
-
in
-
Creates a
CSSUnitValue
withvalue
and in unit-
value: number
The numeric value
-
k Hz
-
Creates a
CSSUnitValue
withvalue
and kHz unit-
value: number
The numeric value
-
mm
-
Creates a
CSSUnitValue
withvalue
and mm unit-
value: number
The numeric value
-
ms
-
Creates a
CSSUnitValue
withvalue
and ms unit-
value: number
The numeric value
-
number
-
Creates a
CSSUnitValue
withvalue
and number unit-
value: number
The numeric value
-
pc
-
Creates a
CSSUnitValue
withvalue
and pc unit-
value: number
The numeric value
-
percent
-
Creates a
CSSUnitValue
withvalue
and percent unit-
value: number
The numeric value
-
pt
-
Creates a
CSSUnitValue
withvalue
and pt unit-
value: number
The numeric value
-
px
-
Creates a
CSSUnitValue
withvalue
and px unit-
value: number
The numeric value
-
rad
-
Creates a
CSSUnitValue
withvalue
and rad unit-
value: number
The numeric value
-
rem
-
Creates a
CSSUnitValue
withvalue
and rem unit-
value: number
The numeric value
-
resolve Unit
-
If
unit
is a valid css unit name or symbol returns its data, otherwise throws an error-
unit: string
The name or symbol of the unit
-
s
-
Creates a
CSSUnitValue
withvalue
and s unit-
value: number
The numeric value
-
turn
-
Creates a
CSSUnitValue
withvalue
and turn unit-
value: number
The numeric value
-
vh
-
Creates a
CSSUnitValue
withvalue
and vh unit-
value: number
The numeric value
-
vmax
-
Creates a
CSSUnitValue
withvalue
and vmax unit-
value: number
The numeric value
-
vmin
-
Creates a
CSSUnitValue
withvalue
and vmin unit-
value: number
The numeric value
-
vw
-
Creates a
CSSUnitValue
withvalue
and vw unit-
value: number
The numeric value
-
A utility class which exposes various numeric factory functions to easily create
CSSUnitValue
s, similar to CSS Typed Om’s CSS namespace.