mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-11 15:14:27 +02:00
big finish on the rebase animation
This commit is contained in:
parent
b106e22ac3
commit
311e429ba3
4 changed files with 59 additions and 49 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue