Copyright 2012, Lance Larsen Licensed under the MIT license
Uses flot/jquery.flot.js
Animator classes | |
Animator | Stores a list of animated objects and animates them based on a parameter value. |
Functions | |
Animator | |
addAnimated | Add an Animated object to the list of animations. |
push | Add an Animated object or create and add an Animated object from the input. |
unshift | Add an Animated object or create and add an Animated object from the input. |
kill | Signal to end the animation. |
animate | Run the animation |
plot | Set the parameter for each of the animations and plot the results. |
Animated | Plots that support animation. |
Functions | |
Animated | Make a new Animated object |
setParam | Slice the data based on a parameter value. |
Global | Globally available functions |
Functions | |
typeOf | An extended ‘typeof’ operator. |
Stores a list of animated objects and animates them based on a parameter value.
Functions | |
Animator | |
addAnimated | Add an Animated object to the list of animations. |
push | Add an Animated object or create and add an Animated object from the input. |
unshift | Add an Animated object or create and add an Animated object from the input. |
kill | Signal to end the animation. |
animate | Run the animation |
plot | Set the parameter for each of the animations and plot the results. |
Add an Animated object to the list of animations. The Animated object doesn’t need to be derived from the Animated class, but need to have a function ‘setParam(param)’ and needs to be a ‘flot’ plotable object (i.e. it should contain a ‘data’ parameter at least).
anim | An Animated object to add to the list |
Make a new Animated object
plotinfo | An object containing the values used for a plot. Parameters consistent with the ‘flot’ plot command are accepted. The ‘data’ parameter is required. A ‘param’ field is required as well. The ‘param’ field should be an array with the same length as the ‘data’ array, and should contain a numeric parameter value associated with the associated ‘data’ array index. The parameter array should be monotonically increasing or decreasing. |