Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/math
RemLength
Class RemLength
Hierarchy
Length
RemLength
Index
Constructors
constructor
Properties
value
Accessors
units
Methods
combine
compare
To
debug
divide
em
em
Value
equals
equivalent
To
hash
Code
interpolate
To
is
Defined
minus
negative
pct
pct
Value
plus
px
px
Value
rem
rem
Value
times
to
to
Css
Value
to
String
to
Value
create
em
em
Unit
form
from
Any
from
Css
Value
from
Value
is
Any
parse
pct
pct
Unit
px
rem
rem
Unit
unitless
zero
Constructors
constructor
new
Rem
Length
(
value
:
number
)
:
RemLength
Parameters
value:
number
Returns
RemLength
Properties
Readonly
value
value
:
number
Accessors
units
get
units
(
)
:
LengthUnits
Returns
LengthUnits
Methods
combine
combine
(
that
:
AnyLength
, scalar
?:
number
, units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
that:
AnyLength
Optional
scalar:
number
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
compare
To
compare
To
(
that
:
unknown
)
:
number
Parameters
that:
unknown
Returns
number
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
divide
divide
(
scalar
:
number
, units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
scalar:
number
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
em
em
(
basis
?:
number
|
LengthBasis
)
:
EmLength
Parameters
Optional
basis:
number
|
LengthBasis
Returns
EmLength
em
Value
em
Value
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
interpolate
To
interpolate
To
(
that
:
Length
)
:
Interpolator
<
Length
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Length
>
Parameters
that:
Length
Returns
Interpolator
<
Length
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Length
>
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
AnyLength
, units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
that:
AnyLength
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
negative
negative
(
units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
pct
pct
(
basis
?:
number
|
LengthBasis
)
:
PctLength
Parameters
Optional
basis:
number
|
LengthBasis
Returns
PctLength
pct
Value
pct
Value
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
plus
plus
(
that
:
AnyLength
, units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
that:
AnyLength
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
px
px
(
basis
?:
number
|
LengthBasis
)
:
PxLength
Parameters
Optional
basis:
number
|
LengthBasis
Returns
PxLength
px
Value
px
Value
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
rem
rem
(
basis
?:
number
|
LengthBasis
)
:
RemLength
Parameters
Optional
basis:
number
|
LengthBasis
Returns
RemLength
rem
Value
rem
Value
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
times
times
(
scalar
:
number
, units
?:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
scalar:
number
Optional
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
to
to
(
units
:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
Length
Parameters
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
Length
to
Css
Value
to
Css
Value
(
)
:
null
|
CSSUnitValue
Returns
null
|
CSSUnitValue
to
String
to
String
(
)
:
string
Returns
string
to
Value
to
Value
(
)
:
Value
to
Value
(
units
:
LengthUnits
, basis
?:
number
|
LengthBasis
)
:
number
Returns
Value
Parameters
units:
LengthUnits
Optional
basis:
number
|
LengthBasis
Returns
number
Static
create
create
(
value
:
number
, units
?:
LengthUnits
)
:
Length
Parameters
value:
number
Optional
units:
LengthUnits
Returns
Length
Static
em
em
(
value
:
number
)
:
EmLength
Parameters
value:
number
Returns
EmLength
Static
em
Unit
em
Unit
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
Static
form
form
(
)
:
Form
<
Length
,
AnyLength
>
Returns
Form
<
Length
,
AnyLength
>
Static
from
Any
from
Any
(
value
:
AnyLength
, defaultUnits
?:
LengthUnits
)
:
Length
Parameters
value:
AnyLength
Optional
defaultUnits:
LengthUnits
Returns
Length
Static
from
Css
Value
from
Css
Value
(
value
:
CSSStyleValue
)
:
Length
Parameters
value:
CSSStyleValue
Returns
Length
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
Length
Parameters
value:
Value
Returns
null
|
Length
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyLength
Parameters
value:
unknown
Returns
value
is
AnyLength
Static
parse
parse
(
string
:
string
, defaultUnits
?:
LengthUnits
)
:
Length
Parameters
string:
string
Optional
defaultUnits:
LengthUnits
Returns
Length
Static
pct
pct
(
value
:
number
)
:
PctLength
Parameters
value:
number
Returns
PctLength
Static
pct
Unit
pct
Unit
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
Static
px
px
(
value
:
number
)
:
PxLength
Parameters
value:
number
Returns
PxLength
Static
rem
rem
(
value
:
number
)
:
RemLength
Parameters
value:
number
Returns
RemLength
Static
rem
Unit
rem
Unit
(
basis
?:
number
|
LengthBasis
)
:
number
Parameters
Optional
basis:
number
|
LengthBasis
Returns
number
Static
unitless
unitless
(
value
:
number
)
:
UnitlessLength
Parameters
value:
number
Returns
UnitlessLength
Static
zero
zero
(
)
:
RemLength
Returns
RemLength
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Rem
Length
constructor
value
units
combine
compare
To
debug
divide
em
em
Value
equals
equivalent
To
hash
Code
interpolate
To
is
Defined
minus
negative
pct
pct
Value
plus
px
px
Value
rem
rem
Value
times
to
to
Css
Value
to
String
to
Value
create
em
em
Unit
form
from
Any
from
Css
Value
from
Value
is
Any
parse
pct
pct
Unit
px
rem
rem
Unit
unitless
zero
Generated using
TypeDoc