big finish on the rebase animation

This commit is contained in:
Peter Cottle 2012-09-30 16:30:43 -07:00
parent b106e22ac3
commit 311e429ba3
4 changed files with 59 additions and 49 deletions

View file

@ -42,25 +42,7 @@ AnimationFactory.prototype.genCommitBirthAnimation = function(animationQueue, co
};
AnimationFactory.prototype.genCommitBirthAnimationInSequence = function(animationQueue, index, commits) {
if (!animationQueue) { throw new Error("rawrr"); }
var time = GRAPHICS.defaultAnimationTime * 1.0;
var bounceTime = time * 2.0;
var toHide = commits.slice(index + 1);
var visNode = commits[index].get('visNode');
var animation = function() {
visNode.parentInFront();
visNode.animateUpdatedPosition(bounceTime, 'bounce');
visNode.animateOutgoingEdges(time);
};
animationQueue.add(new Animation({
closure: animation,
duration: Math.max(time, bounceTime)
}));
};
AnimationFactory.prototype.refreshTree = function(animationQueue) {