Lines Matching refs:animationState
1 var animationState = {}; variable
2 animationState.reset = function (engine) {
28 if (animationState.paused) {
31 if (animationState.start == null) {
32 animationState.start = now - animationState.time;
34 animationState.time = now - animationState.start;
36 … for (var index = animationState.timelineIndex; index < animationState.timeline.length; ++index) {
37 var animation = animationState.timeline[index];
38 if (animation.time > animationState.time) {
42 if (animation.time + animation.duration < animationState.time) {
58 if (ref in animationState.displayDict) {
59 displayIndex = animationState.displayDict[ref];
70 paint = animationState.defaults.paint;
72 displayIndex = animationState.displayList.length;
73 animationState.displayList.push( { "ref":ref, "draw":draw, "paint":paint,
77 animationState.displayDict[ref] = displayIndex;
81 displayIndex = animationState.displayDict[action.ref];
89 animationState.defaults[prop] = obj;
91 animationState.defaults[prop] = action[prop];
96 var targetSpec = 'target' in action ? action.target : animationState.defaults.target;
99 assert(displayIndex < animationState.displayList.length);
100 var display = animationState.displayList[displayIndex];
157 for (var p in animationState.defaults) {
163 action[p] = animationState.defaults[p];
175 var value = Math.min(1, (animationState.time - animation.time) / animation.duration);
208 displayBackend(animationState.displayEngine, animationState.displayList);
211 animationState.requestID = requestAnimationFrame(animateList);
230 animationState.reset(engine);
232 setupBackend(animationState.displayEngine);
237 animationState.reset();
238 addActions("_default", animationState.timeline);
239 addActions(frame, animationState.timeline);
240 for (var index = 0; index < animationState.timeline.length; ++index) {
241 animationState.timeline[index].position = index;
243 animationState.timeline.sort(function(a, b) {
249 keyframeBackendInit(animationState.displayEngine, animationState.displayList,
251 animationState.requestID = requestAnimationFrame(animateList);