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
ThemeService
Class ThemeService<V>
Type parameters
V
:
View
=
View
Hierarchy
Service
<
V
>
ThemeService
Index
Constructors
constructor
Properties
mood
observer
Type
observers
roots
theme
Accessors
attached
Methods
apply
Theme
attach
Root
detach
Root
did
Apply
Theme
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
init
Mood
init
Theme
observe
on
Apply
Theme
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
set
Mood
set
Theme
unobserve
will
Apply
Theme
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
global
Constructors
constructor
new
Theme
Service<V>
(
)
:
ThemeService
<
V
>
Type parameters
V
:
View
<
V
>
=
View
Returns
ThemeService
<
V
>
Properties
Readonly
mood
mood
:
MoodVector
<
Feel
>
Optional
Readonly
observer
Type
observer
Type
:
Class
<
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
>
Readonly
observers
observers
:
readonly
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
[]
Readonly
roots
roots
:
readonly
V
[]
Readonly
theme
theme
:
ThemeMatrix
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
Methods
Protected
apply
Theme
apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
?:
boolean
|
AnyTiming
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
Optional
timing:
boolean
|
AnyTiming
Returns
void
attach
Root
attach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
detach
Root
detach
Root
(
root
:
V
)
:
void
Parameters
root:
V
Returns
void
Protected
did
Apply
Theme
did
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
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
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
=>
void
|
T
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
|
T
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
|
T
Returns
undefined
|
T
Protected
init
Mood
init
Mood
(
)
:
MoodVector
<
Feel
>
Returns
MoodVector
<
Feel
>
Protected
init
Theme
init
Theme
(
)
:
ThemeMatrix
Returns
ThemeMatrix
observe
observe
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
on
Apply
Theme
on
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
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
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
set
Mood
set
Mood
(
mood
:
MoodVector
<
Feel
>
)
:
void
Parameters
mood:
MoodVector
<
Feel
>
Returns
void
set
Theme
set
Theme
(
theme
:
ThemeMatrix
)
:
void
Parameters
theme:
ThemeMatrix
Returns
void
unobserve
unobserve
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
will
Apply
Theme
will
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
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
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
)
:
void
Parameters
observer:
ThemeServiceObserver
<
V
,
ThemeService
<
V
>
>
Returns
void
Static
global
global<V>
(
)
:
ThemeService
<
V
>
Type parameters
V
:
View
<
V
>
Returns
ThemeService
<
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
Theme
Service
constructor
mood
observer
Type
observers
roots
theme
attached
apply
Theme
attach
Root
detach
Root
did
Apply
Theme
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
init
Mood
init
Theme
observe
on
Apply
Theme
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
set
Mood
set
Theme
unobserve
will
Apply
Theme
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
global
Generated using
TypeDoc