Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/dom
ColorStyleAnimator
Class ColorStyleAnimator<V>
Type parameters
V
:
StyleContext
Hierarchy
StyleAnimator
<
V
,
Color
|
null
,
AnyColor
|
null
>
ColorStyleAnimator
Callable
Color
Style
Animator
(
)
:
null
|
Color
Color
Style
Animator
(
newState
:
null
|
AnyColor
, precedenceOrTiming
:
undefined
|
number
|
boolean
|
AnyTiming
)
:
V
Color
Style
Animator
(
newState
:
null
|
AnyColor
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
V
Returns
null
|
Color
Parameters
newState:
null
|
AnyColor
precedenceOrTiming:
undefined
|
number
|
boolean
|
AnyTiming
Returns
V
Parameters
newState:
null
|
AnyColor
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
V
Index
Constructors
constructor
Properties
animator
Flags
interpolator
name
node
own
Look
own
State
own
Value
owner
precedence
priority
property
Names
property
Value
timing
update
Flags
Accessors
look
state
updated
Value
value
Methods
apply
Look
apply
Theme
did
Mount
did
Set
Look
did
Set
Precedence
did
Set
State
did
Set
Value
did
Start
Animating
did
Stop
Animating
did
Unmount
from
Any
from
Css
Value
get
State
get
State
Or
get
Value
get
Value
Or
is
Animating
is
Defined
is
Mounted
is
Updated
mount
on
Animate
on
Begin
on
End
on
Interrupt
on
Mount
on
Set
Look
on
Set
Precedence
on
Set
State
on
Set
Value
on
Start
Animating
on
Stop
Animating
on
Unmount
parse
set
Animated
State
set
Animator
Flags
set
Immediate
State
set
Intermediate
Value
set
Look
set
Own
Look
set
Own
State
set
Precedence
set
Priority
set
State
set
Value
start
Animating
stop
Animating
take
Updated
Value
take
Value
takes
Precedence
to
String
unmount
will
Mount
will
Set
Look
will
Set
Precedence
will
Set
State
will
Set
Value
will
Start
Animating
will
Stop
Animating
will
Unmount
define
get
Class
Constructors
constructor
new
Color
Style
Animator<V>
(
owner
:
V
, animatorName
:
string
)
:
ColorStyleAnimator
<
V
>
Type parameters
V
:
StyleContext
<
V
>
Parameters
owner:
V
animatorName:
string
Returns
ColorStyleAnimator
<
V
>
Properties
Readonly
animator
Flags
animator
Flags
:
number
Readonly
interpolator
interpolator
:
null
|
Interpolator
<
null
|
Color
>
Readonly
name
name
:
string
Readonly
node
node
:
null
|
Node
Readonly
own
Look
own
Look
:
null
|
Look
<
null
|
Color
,
never
>
Readonly
own
State
own
State
:
null
|
Color
Readonly
own
Value
own
Value
:
null
|
Color
Readonly
owner
owner
:
V
Readonly
precedence
precedence
:
number
Readonly
priority
priority
:
undefined
|
string
Readonly
property
Names
property
Names
:
string
|
readonly
string
[]
Readonly
property
Value
property
Value
:
undefined
|
null
|
Color
Readonly
timing
timing
:
null
|
Timing
Optional
update
Flags
update
Flags
:
number
Accessors
look
get
look
(
)
:
null
|
Look
<
T
,
never
>
Returns
null
|
Look
<
T
,
never
>
state
get
state
(
)
:
T
Returns
T
updated
Value
get
updatedValue
(
)
:
undefined
|
T
Returns
undefined
|
T
value
get
value
(
)
:
T
Returns
T
Methods
apply
Look
apply
Look
(
look
:
Look
<
null
|
Color
,
never
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
look:
Look
<
null
|
Color
,
never
>
timing:
boolean
|
Timing
Returns
void
apply
Theme
apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
Returns
void
did
Mount
did
Mount
(
)
:
void
Returns
void
did
Set
Look
did
Set
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, oldLook
:
null
|
Look
<
null
|
Color
,
never
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
oldLook:
null
|
Look
<
null
|
Color
,
never
>
timing:
boolean
|
Timing
Returns
void
did
Set
Precedence
did
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
Protected
did
Set
State
did
Set
State
(
newState
:
null
|
Color
, oldState
:
null
|
Color
)
:
void
Parameters
newState:
null
|
Color
oldState:
null
|
Color
Returns
void
did
Set
Value
did
Set
Value
(
newValue
:
null
|
Color
, oldValue
:
null
|
Color
)
:
void
Parameters
newValue:
null
|
Color
oldValue:
null
|
Color
Returns
void
did
Start
Animating
did
Start
Animating
(
)
:
void
Returns
void
did
Stop
Animating
did
Stop
Animating
(
)
:
void
Returns
void
did
Unmount
did
Unmount
(
)
:
void
Returns
void
from
Any
from
Any
(
value
:
AnyColor
)
:
null
|
Color
Parameters
value:
AnyColor
Returns
null
|
Color
from
Css
Value
from
Css
Value
(
value
:
CSSStyleValue
)
:
null
|
Color
Parameters
value:
CSSStyleValue
Returns
null
|
Color
get
State
get
State
(
)
:
Color
Returns
Color
get
State
Or
get
State
Or<E>
(
elseState
:
E
)
:
Color
|
E
Type parameters
E
Parameters
elseState:
E
Returns
Color
|
E
get
Value
get
Value
(
)
:
Color
Returns
Color
get
Value
Or
get
Value
Or<E>
(
elseValue
:
E
)
:
Color
|
E
Type parameters
E
Parameters
elseValue:
E
Returns
Color
|
E
is
Animating
is
Animating
(
)
:
boolean
Returns
boolean
is
Defined
is
Defined
(
value
:
null
|
Color
)
:
boolean
Parameters
value:
null
|
Color
Returns
boolean
is
Mounted
is
Mounted
(
)
:
boolean
Returns
boolean
is
Updated
is
Updated
(
)
:
boolean
Returns
boolean
mount
mount
(
)
:
void
Returns
void
on
Animate
on
Animate
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
on
Begin
on
Begin
(
value
:
null
|
Color
)
:
void
Parameters
value:
null
|
Color
Returns
void
on
End
on
End
(
value
:
null
|
Color
)
:
void
Parameters
value:
null
|
Color
Returns
void
on
Interrupt
on
Interrupt
(
value
:
null
|
Color
)
:
void
Parameters
value:
null
|
Color
Returns
void
on
Mount
on
Mount
(
)
:
void
Returns
void
on
Set
Look
on
Set
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, oldLook
:
null
|
Look
<
null
|
Color
,
never
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
oldLook:
null
|
Look
<
null
|
Color
,
never
>
timing:
boolean
|
Timing
Returns
void
on
Set
Precedence
on
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
Protected
on
Set
State
on
Set
State
(
newState
:
null
|
Color
, oldState
:
null
|
Color
)
:
void
Parameters
newState:
null
|
Color
oldState:
null
|
Color
Returns
void
on
Set
Value
on
Set
Value
(
newValue
:
null
|
Color
, oldValue
:
null
|
Color
)
:
void
Parameters
newValue:
null
|
Color
oldValue:
null
|
Color
Returns
void
on
Start
Animating
on
Start
Animating
(
)
:
void
Returns
void
on
Stop
Animating
on
Stop
Animating
(
)
:
void
Returns
void
on
Unmount
on
Unmount
(
)
:
void
Returns
void
parse
parse
(
value
:
string
)
:
null
|
Color
Parameters
value:
string
Returns
null
|
Color
set
Animated
State
set
Animated
State
(
newState
:
null
|
Color
, oldState
:
null
|
Color
, timing
:
Timing
)
:
void
Parameters
newState:
null
|
Color
oldState:
null
|
Color
timing:
Timing
Returns
void
set
Animator
Flags
set
Animator
Flags
(
animatorFlags
:
number
)
:
void
Parameters
animatorFlags:
number
Returns
void
set
Immediate
State
set
Immediate
State
(
newState
:
null
|
Color
, oldState
:
null
|
Color
)
:
void
Parameters
newState:
null
|
Color
oldState:
null
|
Color
Returns
void
set
Intermediate
Value
set
Intermediate
Value
(
newValue
:
null
|
Color
, newState
?:
null
|
Color
)
:
void
Parameters
newValue:
null
|
Color
Optional
newState:
null
|
Color
Returns
void
set
Look
set
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, precedenceOrTiming
:
undefined
|
number
|
boolean
|
AnyTiming
)
:
void
set
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
precedenceOrTiming:
undefined
|
number
|
boolean
|
AnyTiming
Returns
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
void
set
Own
Look
set
Own
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, timing
?:
boolean
|
AnyTiming
)
:
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
Optional
timing:
boolean
|
AnyTiming
Returns
void
set
Own
State
set
Own
State
(
newState
:
null
|
AnyColor
, timing
?:
boolean
|
AnyTiming
)
:
void
Parameters
newState:
null
|
AnyColor
Optional
timing:
boolean
|
AnyTiming
Returns
void
set
Precedence
set
Precedence
(
newPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
Returns
void
set
Priority
set
Priority
(
priority
:
undefined
|
string
)
:
void
Parameters
priority:
undefined
|
string
Returns
void
set
State
set
State
(
newState
:
null
|
AnyColor
, precedenceOrTiming
:
undefined
|
number
|
boolean
|
AnyTiming
)
:
void
set
State
(
newState
:
null
|
AnyColor
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
void
Parameters
newState:
null
|
AnyColor
precedenceOrTiming:
undefined
|
number
|
boolean
|
AnyTiming
Returns
void
Parameters
newState:
null
|
AnyColor
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
void
set
Value
set
Value
(
newValue
:
null
|
Color
, oldValue
?:
null
|
Color
)
:
void
Parameters
newValue:
null
|
Color
Optional
oldValue:
null
|
Color
Returns
void
Protected
start
Animating
start
Animating
(
)
:
void
Returns
void
Protected
stop
Animating
stop
Animating
(
)
:
void
Returns
void
take
Updated
Value
take
Updated
Value
(
)
:
undefined
|
null
|
Color
Returns
undefined
|
null
|
Color
take
Value
take
Value
(
)
:
null
|
Color
Returns
null
|
Color
takes
Precedence
takes
Precedence
(
precedence
:
number
)
:
boolean
Parameters
precedence:
number
Returns
boolean
to
String
to
String
(
)
:
string
Returns
string
unmount
unmount
(
)
:
void
Returns
void
will
Mount
will
Mount
(
)
:
void
Returns
void
will
Set
Look
will
Set
Look
(
newLook
:
null
|
Look
<
null
|
Color
,
never
>
, oldLook
:
null
|
Look
<
null
|
Color
,
never
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
newLook:
null
|
Look
<
null
|
Color
,
never
>
oldLook:
null
|
Look
<
null
|
Color
,
never
>
timing:
boolean
|
Timing
Returns
void
will
Set
Precedence
will
Set
Precedence
(
newPrecedence
:
number
, oldPrecedence
:
number
)
:
void
Parameters
newPrecedence:
number
oldPrecedence:
number
Returns
void
Protected
will
Set
State
will
Set
State
(
newState
:
null
|
Color
, oldState
:
null
|
Color
)
:
void
Parameters
newState:
null
|
Color
oldState:
null
|
Color
Returns
void
will
Set
Value
will
Set
Value
(
newValue
:
null
|
Color
, oldValue
:
null
|
Color
)
:
void
Parameters
newValue:
null
|
Color
oldValue:
null
|
Color
Returns
void
will
Start
Animating
will
Start
Animating
(
)
:
void
Returns
void
will
Stop
Animating
will
Stop
Animating
(
)
:
void
Returns
void
will
Unmount
will
Unmount
(
)
:
void
Returns
void
Static
define
define<V_11, T_11, U_11, I_1>
(
descriptor
:
StyleAnimatorDescriptorExtends
<
V_11
,
T_11
,
U_11
,
I_1
>
)
:
StyleAnimatorConstructor
<
V_11
,
T_11
,
U_11
,
I_1
>
define<V_12, T_12, U_12>
(
descriptor
:
StyleAnimatorDescriptor
<
V_12
,
T_12
,
U_12
,
{}
>
)
:
StyleAnimatorConstructor
<
V_12
,
T_12
,
U_12
,
{}
>
Type parameters
V_11
:
StyleContext
<
V_11
>
T_11
U_11 =
never
I_1 =
{}
Parameters
descriptor:
StyleAnimatorDescriptorExtends
<
V_11
,
T_11
,
U_11
,
I_1
>
Returns
StyleAnimatorConstructor
<
V_11
,
T_11
,
U_11
,
I_1
>
Type parameters
V_12
:
StyleContext
<
V_12
>
T_12
U_12 =
never
Parameters
descriptor:
StyleAnimatorDescriptor
<
V_12
,
T_12
,
U_12
,
{}
>
Returns
StyleAnimatorConstructor
<
V_12
,
T_12
,
U_12
,
{}
>
Static
get
Class
get
Class
(
type
:
unknown
)
:
null
|
StyleAnimatorClass
Parameters
type:
unknown
Returns
null
|
StyleAnimatorClass
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
Color
Style
Animator
constructor
animator
Flags
interpolator
name
node
own
Look
own
State
own
Value
owner
precedence
priority
property
Names
property
Value
timing
update
Flags
look
state
updated
Value
value
apply
Look
apply
Theme
did
Mount
did
Set
Look
did
Set
Precedence
did
Set
State
did
Set
Value
did
Start
Animating
did
Stop
Animating
did
Unmount
from
Any
from
Css
Value
get
State
get
State
Or
get
Value
get
Value
Or
is
Animating
is
Defined
is
Mounted
is
Updated
mount
on
Animate
on
Begin
on
End
on
Interrupt
on
Mount
on
Set
Look
on
Set
Precedence
on
Set
State
on
Set
Value
on
Start
Animating
on
Stop
Animating
on
Unmount
parse
set
Animated
State
set
Animator
Flags
set
Immediate
State
set
Intermediate
Value
set
Look
set
Own
Look
set
Own
State
set
Precedence
set
Priority
set
State
set
Value
start
Animating
stop
Animating
take
Updated
Value
take
Value
takes
Precedence
to
String
unmount
will
Mount
will
Set
Look
will
Set
Precedence
will
Set
State
will
Set
Value
will
Start
Animating
will
Stop
Animating
will
Unmount
define
get
Class
Generated using
TypeDoc