mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-19 09:08:25 +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();
|
||||
|
|
|
@ -631,7 +631,7 @@ GitVisuals.prototype.removeVisBranch = function(visBranch) {
|
|||
};
|
||||
|
||||
GitVisuals.prototype.removeVisNode = function(visNode) {
|
||||
this.visNodeMap[visNode.getID()] = undefined;
|
||||
delete this.visNodeMap[visNode.getID()];
|
||||
};
|
||||
|
||||
GitVisuals.prototype.removeVisEdge = function(visEdge) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue