Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/view
LengthViewPropertyConstraint
Class LengthViewPropertyConstraint<V>
Type parameters
V
:
View
Hierarchy
ViewPropertyConstraint
<
V
,
Length
|
null
|
undefined
,
AnyLength
|
null
|
undefined
>
LengthViewPropertyConstraint
Callable
Length
View
Property
Constraint
(
)
:
undefined
|
null
|
Length
Length
View
Property
Constraint
(
state
:
undefined
|
null
|
AnyLength
, precedence
?:
number
)
:
V
Returns
undefined
|
null
|
Length
Parameters
state:
undefined
|
null
|
AnyLength
Optional
precedence:
number
Returns
V
Index
Constructors
constructor
Properties
coefficient
condition
Count
constant
id
inherit
name
own
State
owner
precedence
property
Flags
state
strength
sub
Properties
super
Name
super
Property
super
State
terms
update
Flags
updated
State
variable
Methods
add
Constraint
Condition
add
Sub
Property
bind
Super
Property
change
constrain
did
Mount
did
Set
Precedence
did
Set
State
did
Start
Constraining
did
Stop
Constraining
did
Unmount
divide
evaluate
Constraint
Variable
from
Any
get
State
get
State
Or
is
Constant
is
Constrained
is
Constraining
is
Dummy
is
External
is
Inherited
is
Invalid
is
Mounted
is
Updated
minus
mount
negative
on
Change
on
Change
Inherited
on
Mount
on
Set
Precedence
on
Set
State
on
Start
Constraining
on
Stop
Constraining
on
Unmount
plus
remove
Constraint
Condition
remove
Sub
Property
set
Inherit
set
Inherited
set
Own
State
set
Precedence
set
Property
Flags
set
State
start
Constraining
stop
Constraining
take
State
take
Updated
State
takes
Precedence
times
to
Number
to
String
unbind
Super
Property
unmount
update
Constraint
Solution
update
Constraint
Variable
update
Sub
Properties
will
Mount
will
Set
Precedence
will
Set
State
will
Start
Constraining
will
Stop
Constraining
will
Unmount
define
get
Class
Constructors
constructor
new
Length
View
Property
Constraint<V>
(
owner
:
V
, propertyName
:
undefined
|
string
)
:
LengthViewPropertyConstraint
<
V
>
Type parameters
V
:
View
<
V
>
Parameters
owner:
V
propertyName:
undefined
|
string
Returns
LengthViewPropertyConstraint
<
V
>
Properties
Readonly
coefficient
coefficient
:
number
Readonly
condition
Count
condition
Count
:
number
Readonly
constant
constant
:
number
Readonly
id
id
:
number
Readonly
inherit
inherit
:
string
|
boolean
Readonly
name
name
:
string
Readonly
own
State
own
State
:
undefined
|
null
|
Length
Readonly
owner
owner
:
V
Readonly
precedence
precedence
:
number
property
Flags
property
Flags
:
number
Readonly
state
state
:
undefined
|
null
|
Length
Readonly
strength
strength
:
number
Readonly
sub
Properties
sub
Properties
:
null
|
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
[]
Readonly
super
Name
super
Name
:
undefined
|
string
Readonly
super
Property
super
Property
:
null
|
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
Readonly
super
State
super
State
:
undefined
|
null
|
Length
Readonly
terms
terms
:
ConstraintMap
<
ConstraintVariable
,
number
>
Optional
update
Flags
update
Flags
:
number
Readonly
updated
State
updated
State
:
undefined
|
null
|
Length
Readonly
variable
variable
:
null
|
ConstraintVariable
Methods
add
Constraint
Condition
add
Constraint
Condition
(
constraint
:
Constraint
, solver
:
ConstraintSolver
)
:
void
Parameters
constraint:
Constraint
solver:
ConstraintSolver
Returns
void
add
Sub
Property
add
Sub
Property
(
subProperty
:
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
)
:
void
Parameters
subProperty:
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
Returns
void
bind
Super
Property
bind
Super
Property
(
)
:
void
Returns
void
change
change
(
)
:
void
Returns
void
constrain
constrain
(
constrained
?:
boolean
)
:
LengthViewPropertyConstraint
<
V
>
Parameters
Optional
constrained:
boolean
Returns
LengthViewPropertyConstraint
<
V
>
did
Mount
did
Mount
(
)
:
void
Returns
void
did
Set
Precedence
did
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
did
Set
State
did
Set
State
(
newState
:
undefined
|
null
|
Length
, oldState
:
undefined
|
null
|
Length
)
:
void
Parameters
newState:
undefined
|
null
|
Length
oldState:
undefined
|
null
|
Length
Returns
void
did
Start
Constraining
did
Start
Constraining
(
)
:
void
Returns
void
did
Stop
Constraining
did
Stop
Constraining
(
)
:
void
Returns
void
did
Unmount
did
Unmount
(
)
:
void
Returns
void
divide
divide
(
scalar
:
number
)
:
ConstraintExpression
Parameters
scalar:
number
Returns
ConstraintExpression
evaluate
Constraint
Variable
evaluate
Constraint
Variable
(
)
:
void
Returns
void
from
Any
from
Any
(
value
:
undefined
|
null
|
AnyLength
)
:
undefined
|
null
|
Length
Parameters
value:
undefined
|
null
|
AnyLength
Returns
undefined
|
null
|
Length
get
State
get
State
(
)
:
Length
Returns
Length
get
State
Or
get
State
Or<E>
(
elseState
:
E
)
:
Length
|
E
Type parameters
E
Parameters
elseState:
E
Returns
Length
|
E
is
Constant
is
Constant
(
)
:
boolean
Returns
boolean
is
Constrained
is
Constrained
(
)
:
boolean
Returns
boolean
is
Constraining
is
Constraining
(
)
:
boolean
Returns
boolean
is
Dummy
is
Dummy
(
)
:
boolean
Returns
boolean
is
External
is
External
(
)
:
boolean
Returns
boolean
is
Inherited
is
Inherited
(
)
:
boolean
Returns
boolean
is
Invalid
is
Invalid
(
)
:
boolean
Returns
boolean
is
Mounted
is
Mounted
(
)
:
boolean
Returns
boolean
is
Updated
is
Updated
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
AnyConstraintExpression
)
:
ConstraintExpression
Parameters
that:
AnyConstraintExpression
Returns
ConstraintExpression
mount
mount
(
)
:
void
Returns
void
negative
negative
(
)
:
ConstraintTerm
Returns
ConstraintTerm
on
Change
on
Change
(
)
:
void
Returns
void
on
Change
Inherited
on
Change
Inherited
(
)
:
void
Returns
void
on
Mount
on
Mount
(
)
:
void
Returns
void
on
Set
Precedence
on
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
on
Set
State
on
Set
State
(
newState
:
undefined
|
null
|
Length
, oldState
:
undefined
|
null
|
Length
)
:
void
Parameters
newState:
undefined
|
null
|
Length
oldState:
undefined
|
null
|
Length
Returns
void
on
Start
Constraining
on
Start
Constraining
(
)
:
void
Returns
void
on
Stop
Constraining
on
Stop
Constraining
(
)
:
void
Returns
void
on
Unmount
on
Unmount
(
)
:
void
Returns
void
plus
plus
(
that
:
AnyConstraintExpression
)
:
ConstraintExpression
Parameters
that:
AnyConstraintExpression
Returns
ConstraintExpression
remove
Constraint
Condition
remove
Constraint
Condition
(
constraint
:
Constraint
, solver
:
ConstraintSolver
)
:
void
Parameters
constraint:
Constraint
solver:
ConstraintSolver
Returns
void
remove
Sub
Property
remove
Sub
Property
(
subProperty
:
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
)
:
void
Parameters
subProperty:
ViewProperty
<
View
,
undefined
|
null
|
Length
,
never
>
Returns
void
set
Inherit
set
Inherit
(
inherit
:
string
|
boolean
)
:
void
Parameters
inherit:
string
|
boolean
Returns
void
set
Inherited
set
Inherited
(
inherited
:
boolean
)
:
void
Parameters
inherited:
boolean
Returns
void
set
Own
State
set
Own
State
(
state
:
undefined
|
null
|
AnyLength
)
:
void
Parameters
state:
undefined
|
null
|
AnyLength
Returns
void
set
Precedence
set
Precedence
(
precedence
:
number
)
:
void
Parameters
precedence:
number
Returns
void
set
Property
Flags
set
Property
Flags
(
propertyFlags
:
number
)
:
void
Parameters
propertyFlags:
number
Returns
void
set
State
set
State
(
state
:
undefined
|
null
|
AnyLength
, precedence
?:
number
)
:
void
Parameters
state:
undefined
|
null
|
AnyLength
Optional
precedence:
number
Returns
void
start
Constraining
start
Constraining
(
)
:
void
Returns
void
stop
Constraining
stop
Constraining
(
)
:
void
Returns
void
take
State
take
State
(
)
:
undefined
|
null
|
Length
Returns
undefined
|
null
|
Length
take
Updated
State
take
Updated
State
(
)
:
undefined
|
null
|
Length
Returns
undefined
|
null
|
Length
takes
Precedence
takes
Precedence
(
precedence
:
number
)
:
boolean
Parameters
precedence:
number
Returns
boolean
times
times
(
scalar
:
number
)
:
ConstraintExpression
Parameters
scalar:
number
Returns
ConstraintExpression
to
Number
to
Number
(
value
:
undefined
|
null
|
Length
)
:
number
Parameters
value:
undefined
|
null
|
Length
Returns
number
to
String
to
String
(
)
:
string
Returns
string
unbind
Super
Property
unbind
Super
Property
(
)
:
void
Returns
void
unmount
unmount
(
)
:
void
Returns
void
update
Constraint
Solution
update
Constraint
Solution
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
update
Constraint
Variable
update
Constraint
Variable
(
)
:
void
Returns
void
update
Sub
Properties
update
Sub
Properties
(
newState
:
undefined
|
null
|
Length
, oldState
:
undefined
|
null
|
Length
)
:
void
Parameters
newState:
undefined
|
null
|
Length
oldState:
undefined
|
null
|
Length
Returns
void
will
Mount
will
Mount
(
)
:
void
Returns
void
will
Set
Precedence
will
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
will
Set
State
will
Set
State
(
newState
:
undefined
|
null
|
Length
, oldState
:
undefined
|
null
|
Length
)
:
void
Parameters
newState:
undefined
|
null
|
Length
oldState:
undefined
|
null
|
Length
Returns
void
will
Start
Constraining
will
Start
Constraining
(
)
:
void
Returns
void
will
Stop
Constraining
will
Stop
Constraining
(
)
:
void
Returns
void
will
Unmount
will
Unmount
(
)
:
void
Returns
void
Static
define
define<V_5, T_5, U_5, I_1>
(
descriptor
:
ViewPropertyConstraintDescriptorExtends
<
V_5
,
T_5
,
U_5
,
I_1
>
)
:
ViewPropertyConstraintConstructor
<
V_5
,
T_5
,
U_5
,
I_1
>
define<V_6, T_6, U_6>
(
descriptor
:
ViewPropertyConstraintDescriptor
<
V_6
,
T_6
,
U_6
,
{}
>
)
:
ViewPropertyConstraintConstructor
<
V_6
,
T_6
,
U_6
,
{}
>
Type parameters
V_5
:
View
<
V_5
>
T_5
U_5 =
never
I_1 =
{}
Parameters
descriptor:
ViewPropertyConstraintDescriptorExtends
<
V_5
,
T_5
,
U_5
,
I_1
>
Returns
ViewPropertyConstraintConstructor
<
V_5
,
T_5
,
U_5
,
I_1
>
Type parameters
V_6
:
View
<
V_6
>
T_6
U_6 =
never
Parameters
descriptor:
ViewPropertyConstraintDescriptor
<
V_6
,
T_6
,
U_6
,
{}
>
Returns
ViewPropertyConstraintConstructor
<
V_6
,
T_6
,
U_6
,
{}
>
Static
get
Class
get
Class
(
type
:
unknown
)
:
null
|
ViewPropertyConstraintClass
Parameters
type:
unknown
Returns
null
|
ViewPropertyConstraintClass
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Length
View
Property
Constraint
constructor
coefficient
condition
Count
constant
id
inherit
name
own
State
owner
precedence
property
Flags
state
strength
sub
Properties
super
Name
super
Property
super
State
terms
update
Flags
updated
State
variable
add
Constraint
Condition
add
Sub
Property
bind
Super
Property
change
constrain
did
Mount
did
Set
Precedence
did
Set
State
did
Start
Constraining
did
Stop
Constraining
did
Unmount
divide
evaluate
Constraint
Variable
from
Any
get
State
get
State
Or
is
Constant
is
Constrained
is
Constraining
is
Dummy
is
External
is
Inherited
is
Invalid
is
Mounted
is
Updated
minus
mount
negative
on
Change
on
Change
Inherited
on
Mount
on
Set
Precedence
on
Set
State
on
Start
Constraining
on
Stop
Constraining
on
Unmount
plus
remove
Constraint
Condition
remove
Sub
Property
set
Inherit
set
Inherited
set
Own
State
set
Precedence
set
Property
Flags
set
State
start
Constraining
stop
Constraining
take
State
take
Updated
State
takes
Precedence
times
to
Number
to
String
unbind
Super
Property
unmount
update
Constraint
Solution
update
Constraint
Variable
update
Sub
Properties
will
Mount
will
Set
Precedence
will
Set
State
will
Start
Constraining
will
Stop
Constraining
will
Unmount
define
get
Class
Generated using
TypeDoc