mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-04 19:54:29 +02:00
[Hackathon] Hg mode initial
This commit is contained in:
parent
52c6579fae
commit
0f1c9c4e7a
15 changed files with 443 additions and 26 deletions
|
@ -103,10 +103,16 @@ AnimationFactory.playRefreshAnimationAndFinish = function(gitVisuals, animationQ
|
|||
animationQueue.thenFinish(animation.getPromise());
|
||||
};
|
||||
|
||||
AnimationFactory.playRefreshAnimation = function(gitVisuals) {
|
||||
AnimationFactory.playRefreshAnimationSlow = function(gitVisuals) {
|
||||
var time = GRAPHICS.defaultAnimationTime;
|
||||
return this.playRefreshAnimation(gitVisuals, time * 2);
|
||||
};
|
||||
|
||||
AnimationFactory.playRefreshAnimation = function(gitVisuals, speed) {
|
||||
var animation = new PromiseAnimation({
|
||||
duration: speed,
|
||||
closure: function() {
|
||||
gitVisuals.refreshTree();
|
||||
gitVisuals.refreshTree(speed)
|
||||
}
|
||||
});
|
||||
animation.play();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue