Constructor
new KeyframeProperty(millisecond, name, value, easingopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
millisecond |
number
|
|||
name |
string
|
|||
value |
number
|
string
|
boolean
|
rekapi.keyframeFunction
|
|||
easing |
rekapi.easingOption
|
<optional> |
"linear" |
Members
actor :rekapi.Actor|undefined
The
rekapi.Actor to which this rekapi.KeyframeProperty
belongs, if any.
- Source:
Type:
-
rekapi.Actor|undefined
easing :rekapi.easingOption
The
easing curve by which this rekapi.KeyframeProperty should be
animated.
- Source:
Type:
hasFired :boolean
Flag to determine if
this rekapi.KeyframeProperty's rekapi.keyframeFunction
should be invoked in the current animation loop.
- Source:
Type:
-
boolean
millisecond :number
Where on the
animation timeline this rekapi.KeyframeProperty is.
- Source:
Type:
-
number
nextProperty :rekapi.KeyframeProperty|null
A reference to the rekapi.KeyframeProperty that follows this one in a rekapi.Actor's property track.
- Source:
Type:
-
rekapi.KeyframeProperty|null
value :number|string|boolean|rekapi.keyframeFunction
The value that this rekapi.KeyframeProperty represents.
- Source:
Type:
-
number|string|boolean|rekapi.keyframeFunction
Methods
detach()
Disassociates this rekapi.KeyframeProperty from its rekapi.Actor. This is called by various rekapi.Actor methods
and triggers the removeKeyframeProperty event
on the associated rekapi.Rekapi instance.
- Source:
Fires:
exportPropertyData(configopt) → {rekapi.propertyData}
Export this rekapi.KeyframeProperty to a JSON.stringify-friendly
Object.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object
|
<optional> |
|
Returns:
- Type:
-
rekapi.propertyData
getValueAt(millisecond) → {number|string|boolean|rekapi.keyframeFunction|rekapi.KeyframeProperty#value}
Calculate the midpoint between this rekapi.KeyframeProperty and
the next rekapi.KeyframeProperty in a rekapi.Actor's
property track.
In just about all cases, millisecond should be between this rekapi.KeyframeProperty's millisecond and the millisecond of the
rekapi.KeyframeProperty that follows it in the animation
timeline, but it is valid to specify a value outside of this range.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
millisecond |
number
|
The millisecond in the animation timeline to compute the state value for. |
Returns:
- Type:
-
number|string|boolean|rekapi.keyframeFunction|rekapi.KeyframeProperty#value
invoke() → {any}
Calls rekapi.KeyframeProperty#value if it is a rekapi.keyframeFunction.
- Source:
Returns:
- Type:
-
any
Whatever value is returned for this rekapi.KeyframeProperty's rekapi.keyframeFunction.
linkToNext(nextPropertyopt)
Create the reference to the rekapi.KeyframeProperty that follows
this one on a rekapi.Actor's property track. Property tracks
are just linked lists of rekapi.KeyframePropertys.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
nextProperty |
KeyframeProperty
|
<optional> |
The |
modifyWith(newProperties)
Modify this rekapi.KeyframeProperty.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
newProperties |
Object
|
Valid values are:
|