Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/view
LayoutAnchor
Interface LayoutAnchor<S>
Type parameters
S
:
LayoutScope
Hierarchy
ConstrainBinding
LayoutAnchor
Implements
ConstraintKey
ConstraintSymbol
Debug
Callable
__call
(
)
:
number
__call
(
state
:
number
)
:
S
Returns
number
Parameters
state:
number
Returns
S
Index
Constructors
constructor
Properties
name
scope
Accessors
coefficient
constant
state
strength
terms
value
variable
Methods
debug
divide
enabled
is
Constant
minus
opposite
plus
set
State
set
Strength
set
Value
times
to
String
constant
product
sum
zero
Constructors
constructor
new
Layout
Anchor
(
scope
:
ConstraintScope
, name
:
string
, value
:
number
, strength
:
ConstraintStrength
)
:
LayoutAnchor
Parameters
scope:
ConstraintScope
name:
string
value:
number
strength:
ConstraintStrength
Returns
LayoutAnchor
Properties
name
name
:
string
scope
scope
:
S
Accessors
coefficient
get
coefficient
(
)
:
number
Returns
number
constant
get
constant
(
)
:
number
Returns
number
state
get
state
(
)
:
number
Returns
number
strength
get
strength
(
)
:
ConstraintStrength
Returns
ConstraintStrength
terms
get
terms
(
)
:
ConstraintMap
<
ConstrainVariable
,
number
>
Returns
ConstraintMap
<
ConstrainVariable
,
number
>
value
get
value
(
)
:
number
Returns
number
variable
get
variable
(
)
:
ConstrainVariable
Returns
ConstrainVariable
Methods
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
divide
divide
(
scalar
:
number
)
:
Constrain
Parameters
scalar:
number
Returns
Constrain
enabled
enabled
(
)
:
boolean
enabled
(
enabled
:
boolean
)
:
this
Returns
boolean
Parameters
enabled:
boolean
Returns
this
is
Constant
is
Constant
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
Constrain
|
number
)
:
Constrain
Parameters
that:
Constrain
|
number
Returns
Constrain
opposite
opposite
(
)
:
ConstrainTerm
Returns
ConstrainTerm
plus
plus
(
that
:
Constrain
|
number
)
:
Constrain
Parameters
that:
Constrain
|
number
Returns
Constrain
set
State
set
State
(
newState
:
number
)
:
void
Parameters
newState:
number
Returns
void
set
Strength
set
Strength
(
newStrength
:
AnyConstraintStrength
)
:
void
Parameters
newStrength:
AnyConstraintStrength
Returns
void
set
Value
set
Value
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
times
times
(
coefficient
:
number
)
:
Constrain
Parameters
coefficient:
number
Returns
Constrain
to
String
to
String
(
)
:
string
Returns
string
Static
constant
constant
(
value
:
number
)
:
ConstrainConstant
Parameters
value:
number
Returns
ConstrainConstant
Static
product
product
(
coefficient
:
number
, variable
:
ConstrainVariable
)
:
ConstrainProduct
Parameters
coefficient:
number
variable:
ConstrainVariable
Returns
ConstrainProduct
Static
sum
sum
(
...
args
:
(
number
|
Constrain
)
[]
)
:
ConstrainSum
Parameters
Rest
...
args:
(
number
|
Constrain
)
[]
Returns
ConstrainSum
Static
zero
zero
(
)
:
ConstrainConstant
Returns
ConstrainConstant
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
Layout
Anchor
constructor
name
scope
coefficient
constant
state
strength
terms
value
variable
debug
divide
enabled
is
Constant
minus
opposite
plus
set
State
set
Strength
set
Value
times
to
String
constant
product
sum
zero