Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/length
EmLength
Class EmLength
Hierarchy
Length
EmLength
Implements
HashCode
Debug
Index
Constructors
constructor
Methods
debug
divide
em
em
Value
equals
hash
Code
is
Defined
minus
node
opposite
pct
pct
Value
plus
px
px
Value
rem
rem
Value
times
to
to
String
to
Value
unit
Value
units
value
em
form
from
from
Any
from
Value
parse
pct
px
rem
unitless
zero
Constructors
constructor
new
EmLength
(
value
:
number
, node
?:
Node
)
:
EmLength
Parameters
value:
number
Optional
node:
Node
Returns
EmLength
Methods
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
divide
divide
(
scalar
:
number
, units
?:
LengthUnits
)
:
Length
Parameters
scalar:
number
Default value
units:
LengthUnits
= this.units()
Returns
Length
em
em
(
)
:
EmLength
Returns
EmLength
em
Value
em
Value
(
)
:
number
Returns
number
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
AnyLength
, units
?:
LengthUnits
)
:
Length
Parameters
that:
AnyLength
Default value
units:
LengthUnits
= this.units()
Returns
Length
node
node
(
)
:
Node
|
undefined
Returns
Node
|
undefined
opposite
opposite
(
units
?:
LengthUnits
)
:
Length
Parameters
Default value
units:
LengthUnits
= this.units()
Returns
Length
pct
pct
(
)
:
PctLength
Returns
PctLength
pct
Value
pct
Value
(
)
:
number
Returns
number
plus
plus
(
that
:
AnyLength
, units
?:
LengthUnits
)
:
Length
Parameters
that:
AnyLength
Default value
units:
LengthUnits
= this.units()
Returns
Length
px
px
(
unitValue
?:
undefined
|
number
)
:
PxLength
Parameters
Optional
unitValue:
undefined
|
number
Returns
PxLength
px
Value
px
Value
(
)
:
number
Returns
number
rem
rem
(
)
:
RemLength
Returns
RemLength
rem
Value
rem
Value
(
)
:
number
Returns
number
times
times
(
scalar
:
number
, units
?:
LengthUnits
)
:
Length
Parameters
scalar:
number
Default value
units:
LengthUnits
= this.units()
Returns
Length
to
to
(
units
:
LengthUnits
)
:
Length
Parameters
units:
LengthUnits
Returns
Length
to
String
to
String
(
)
:
string
Returns
string
to
Value
to
Value
(
units
:
LengthUnits
)
:
number
Parameters
units:
LengthUnits
Returns
number
unit
Value
unit
Value
(
)
:
number
Returns
number
units
units
(
)
:
LengthUnits
Returns
LengthUnits
value
value
(
)
:
number
Returns
number
Static
em
em
(
value
:
number
, node
?:
Node
)
:
EmLength
Parameters
value:
number
Optional
node:
Node
Returns
EmLength
Static
form
form
(
defaultUnits
?:
LengthUnits
, node
?:
Node
, unit
?:
AnyLength
)
:
Form
<
Length
,
AnyLength
>
Parameters
Optional
defaultUnits:
LengthUnits
Optional
node:
Node
Optional
unit:
AnyLength
Returns
Form
<
Length
,
AnyLength
>
Static
from
from
(
value
:
number
, units
?:
LengthUnits
, node
?:
Node
)
:
Length
from
(
value
:
number
, node
?:
Node
)
:
Length
Parameters
value:
number
Optional
units:
LengthUnits
Optional
node:
Node
Returns
Length
Parameters
value:
number
Optional
node:
Node
Returns
Length
Static
from
Any
from
Any
(
value
:
AnyLength
, defaultUnits
?:
LengthUnits
, node
?:
Node
)
:
Length
from
Any
(
value
:
AnyLength
, node
?:
Node
)
:
Length
Parameters
value:
AnyLength
Optional
defaultUnits:
LengthUnits
Optional
node:
Node
Returns
Length
Parameters
value:
AnyLength
Optional
node:
Node
Returns
Length
Static
from
Value
from
Value
(
value
:
Value
, node
?:
Node
)
:
Length
|
undefined
Parameters
value:
Value
Optional
node:
Node
Returns
Length
|
undefined
Static
parse
parse
(
string
:
string
, defaultUnits
?:
LengthUnits
, node
?:
Node
)
:
Length
parse
(
string
:
string
, node
?:
Node
)
:
Length
Parameters
string:
string
Optional
defaultUnits:
LengthUnits
Optional
node:
Node
Returns
Length
Parameters
string:
string
Optional
node:
Node
Returns
Length
Static
pct
pct
(
value
:
number
, node
?:
Node
)
:
PctLength
Parameters
value:
number
Optional
node:
Node
Returns
PctLength
Static
px
px
(
value
:
number
, node
?:
Node
)
:
PxLength
Parameters
value:
number
Optional
node:
Node
Returns
PxLength
Static
rem
rem
(
value
:
number
, node
?:
Node
)
:
RemLength
Parameters
value:
number
Optional
node:
Node
Returns
RemLength
Static
unitless
unitless
(
value
:
number
, node
?:
Node
)
:
UnitlessLength
Parameters
value:
number
Optional
node:
Node
Returns
UnitlessLength
Static
zero
zero
(
units
?:
LengthUnits
, node
?:
Node
)
:
Length
zero
(
node
?:
Node
)
:
Length
Parameters
Optional
units:
LengthUnits
Optional
node:
Node
Returns
Length
Parameters
Optional
node:
Node
Returns
Length
Globals
@swim/core
@swim/mesh
@swim/ui
@swim/angle
@swim/animate
@swim/color
@swim/constraint
@swim/dom
@swim/font
@swim/gesture
@swim/interpolate
@swim/length
@swim/render
@swim/scale
@swim/shape
@swim/style
@swim/transform
@swim/transition
@swim/typeset
@swim/view
@swim/ux
@swim/web
Em
Length
constructor
debug
divide
em
em
Value
equals
hash
Code
is
Defined
minus
node
opposite
pct
pct
Value
plus
px
px
Value
rem
rem
Value
times
to
to
String
to
Value
unit
Value
units
value
em
form
from
from
Any
from
Value
parse
pct
px
rem
unitless
zero
Length
Pct
Length
Px
Length
Rem
Length
Unitless
Length
Any
Length
Length
Units