mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-04 19:54:29 +02:00
have revert and cherry pick
This commit is contained in:
parent
f400ac238e
commit
246753caad
3 changed files with 147 additions and 90 deletions
|
@ -49,7 +49,7 @@ var makeHighlightAnimation = function(visNode, visBranch) {
|
|||
animation: function() {
|
||||
visNode.highlightTo(visBranch, slowTime, 'easeInOut');
|
||||
},
|
||||
duration: fullTime * 1.5
|
||||
duration: slowTime * 1.5
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -72,6 +72,22 @@ AnimationFactory.prototype.genCommitBirthPromiseAnimation = function(commit, git
|
|||
return new PromiseAnimation(makeCommitBirthAnimation(gitVisuals, visNode));
|
||||
};
|
||||
|
||||
AnimationFactory.prototype.highlightEachWithPromise = function(
|
||||
chain,
|
||||
toHighlight,
|
||||
destObj
|
||||
) {
|
||||
_.each(toHighlight, function(commit) {
|
||||
chain = chain.then(_.bind(function() {
|
||||
return this.playHighlightPromiseAnimation(
|
||||
commit,
|
||||
destObj
|
||||
);
|
||||
}, this));
|
||||
}, this);
|
||||
return chain;
|
||||
};
|
||||
|
||||
AnimationFactory.prototype.playCommitBirthPromiseAnimation = function(commit, gitVisuals) {
|
||||
var animation = this.genCommitBirthPromiseAnimation(commit, gitVisuals);
|
||||
animation.play();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue