mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-09 04:24:35 +02:00
WIP
This commit is contained in:
parent
bd95734751
commit
edb4f0dc2a
5 changed files with 387 additions and 67 deletions
|
@ -103,6 +103,14 @@ AnimationFactory.playRefreshAnimationAndFinish = function(gitVisuals, animationQ
|
|||
animationQueue.thenFinish(animation.getPromise());
|
||||
};
|
||||
|
||||
AnimationFactory.genRefreshPromiseAnimation = function(gitVisuals) {
|
||||
return new PromiseAnimation({
|
||||
closure: function() {
|
||||
gitVisuals.refreshTree();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
AnimationFactory.playRefreshAnimationSlow = function(gitVisuals) {
|
||||
var time = GRAPHICS.defaultAnimationTime;
|
||||
return this.playRefreshAnimation(gitVisuals, time * 2);
|
||||
|
|
|
@ -407,7 +407,7 @@ var VisBranch = VisBase.extend({
|
|||
var name = this.getName();
|
||||
|
||||
// when from a reload, we dont need to generate the text
|
||||
text = paper.text(textPos.x, textPos.y, String(name));
|
||||
var text = paper.text(textPos.x, textPos.y, String(name));
|
||||
text.attr({
|
||||
'font-size': 14,
|
||||
'font-family': 'Monaco, Courier, font-monospace',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue