Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/constraint
ConstrainBinding
Class ConstrainBinding
Hierarchy
ConstrainVariable
ConstrainBinding
LayoutAnchor
Implements
ConstraintKey
ConstraintSymbol
Debug
Index
Constructors
constructor
Properties
name
Accessors
coefficient
constant
scope
state
strength
terms
value
variable
Methods
debug
divide
is
Constant
minus
opposite
plus
set
State
set
Strength
set
Value
times
to
String
constant
product
sum
zero
Constructors
constructor
new
Constrain
Binding
(
scope
:
ConstraintScope
, name
:
string
, value
:
number
, strength
:
ConstraintStrength
)
:
ConstrainBinding
Parameters
scope:
ConstraintScope
name:
string
value:
number
strength:
ConstraintStrength
Returns
ConstrainBinding
Properties
name
name
:
string
Accessors
coefficient
get
coefficient
(
)
:
number
Returns
number
constant
get
constant
(
)
:
number
Returns
number
scope
get
scope
(
)
:
ConstraintScope
Returns
ConstraintScope
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
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
Constrain
Constrain
Binding
constructor
name
coefficient
constant
scope
state
strength
terms
value
variable
debug
divide
is
Constant
minus
opposite
plus
set
State
set
Strength
set
Value
times
to
String
constant
product
sum
zero
Constrain
Constant
Constrain
Product
Constrain
Sum
Constrain
Term
Constrain
Variable
Constraint
Constraint
Solver
Constraint
Scope
Any
Constraint
Strength
Constraint
Relation
Constraint
Strength
Constraint
Strength
Init
Constraint
Strength