AnimationTrack
AnimationTrack
Optimize multi-variable animation descriptor Consider using AnimationCurve instead if you're starting a new project as it's simpler to use and is more streamlined
Kind: global class
- AnimationTrack
- new AnimationTrack(properties)
- .properties :
Array.<String> - .propertyCount :
number - .keyValues :
Array.<number> - .keyTimes :
Array.<number> - .transitionKeys :
Array.<number> - .transitionFunctions :
Array.<function()> - .addKey(keyTime, values)
- .addTransition(startKeyIndex, transitionFunction)
- .keyLowerBoundIndexAt(time) ⇒
number - .transitionIndexAt(time) ⇒
number - .readKeyValues(keyIndex, result)
new AnimationTrack(properties)
| Param | Type |
|---|---|
| properties | Array.<String> |
animationTrack.properties : Array.<String>
Kind: instance property of AnimationTrack
animationTrack.propertyCount : number
Kind: instance property of AnimationTrack
animationTrack.keyValues : Array.<number>
Kind: instance property of AnimationTrack
animationTrack.keyTimes : Array.<number>
Kind: instance property of AnimationTrack
animationTrack.transitionKeys : Array.<number>
Indices of keys from which transition takes place
Kind: instance property of AnimationTrack
animationTrack.transitionFunctions : Array.<function()>
Transition function associated with a key
Kind: instance property of AnimationTrack
animationTrack.addKey(keyTime, values)
Kind: instance method of AnimationTrack
| Param | Type |
|---|---|
| keyTime | number |
| values | Array.<number> |
animationTrack.addTransition(startKeyIndex, transitionFunction)
Kind: instance method of AnimationTrack
| Param | Type |
|---|---|
| startKeyIndex | number |
| transitionFunction | function |
animationTrack.keyLowerBoundIndexAt(time) ⇒ number
Kind: instance method of AnimationTrack
| Param | Type |
|---|---|
| time | number |
animationTrack.transitionIndexAt(time) ⇒ number
Kind: instance method of AnimationTrack
| Param | Type |
|---|---|
| time | number |
animationTrack.readKeyValues(keyIndex, result)
Kind: instance method of AnimationTrack
| Param | Type |
|---|---|
| keyIndex | number |
| result | Array.<number> |