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
LayoutService
Class LayoutService<V>
Type parameters
V
:
View
=
View
Hierarchy
Service
<
V
>
LayoutService
Implements
ConstraintContext
Index
Constructors
constructor
Properties
observer
Type
observers
roots
solver
Accessors
attached
Methods
activate
Constraint
activate
Constraint
Variable
attach
Root
create
Solver
deactivate
Constraint
deactivate
Constraint
Variable
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
set
Constraint
Variable
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
global
Constructors
constructor
new
Layout
Service<V>
(
)
:
LayoutService
<
V
>
Type parameters
V
:
View
<
V
>
=
View
Returns
LayoutService
<
V
>
Properties
Optional
Readonly
observer
Type
observer
Type
:
Class
<
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
>
Readonly
observers
observers
:
readonly
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
[]
Readonly
roots
roots
:
readonly
V
[]
Readonly
solver
solver
:
ConstraintSolver
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
Methods
activate
Constraint
activate
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
activate
Constraint
Variable
activate
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
attach
Root
attach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
create
Solver
create
Solver
(
)
:
ConstraintSolver
Returns
ConstraintSolver
deactivate
Constraint
deactivate
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
deactivate
Constraint
Variable
deactivate
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
detach
Root
detach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
did
Attach
did
Attach
(
)
:
void
Returns
void
Protected
did
Attach
Root
did
Attach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
did
Detach
did
Detach
(
)
:
void
Returns
void
Protected
did
Detach
Root
did
Detach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
did
Observe
did
Observe
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
=>
void
|
T
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
|
T
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
|
T
Returns
undefined
|
T
observe
observe
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
on
Attach
on
Attach
(
)
:
void
Returns
void
Protected
on
Attach
Root
on
Attach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
on
Detach
on
Detach
(
)
:
void
Returns
void
Protected
on
Detach
Root
on
Detach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
on
Observe
on
Observe
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
set
Constraint
Variable
set
Constraint
Variable
(
variable
:
ConstraintVariable
, state
:
number
)
:
void
Parameters
variable:
ConstraintVariable
state:
number
Returns
void
unobserve
unobserve
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
will
Attach
will
Attach
(
)
:
void
Returns
void
Protected
will
Attach
Root
will
Attach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
will
Detach
will
Detach
(
)
:
void
Returns
void
Protected
will
Detach
Root
will
Detach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
will
Observe
will
Observe
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
)
:
void
Parameters
observer:
LayoutServiceObserver
<
V
,
LayoutService
<
V
>
>
Returns
void
Static
global
global<V>
(
)
:
LayoutService
<
V
>
Type parameters
V
:
View
<
V
>
Returns
LayoutService
<
V
>
Modules
@swim/runtime
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/controller
@swim/ux
@swim/vis
@swim/maps
Layout
Service
constructor
observer
Type
observers
roots
solver
attached
activate
Constraint
activate
Constraint
Variable
attach
Root
create
Solver
deactivate
Constraint
deactivate
Constraint
Variable
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
set
Constraint
Variable
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
global
Generated using
TypeDoc