mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
never thought i would see the DAYgit pushgit push! rebase animation fully working for all edge cases
This commit is contained in:
parent
6e30bedd37
commit
be2a5bf35b
4 changed files with 42 additions and 19 deletions
|
@ -64,11 +64,15 @@ GitVisuals.prototype.toScreenCoords = function(pos) {
|
|||
};
|
||||
};
|
||||
|
||||
GitVisuals.prototype.animateAllFromAttrToAttr = function(fromSnapshot, toSnapshot) {
|
||||
GitVisuals.prototype.animateAllFromAttrToAttr = function(fromSnapshot, toSnapshot, idsToOmit) {
|
||||
var animate = function(obj) {
|
||||
var id = obj.getID();
|
||||
if (_.include(idsToOmit, id)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fromSnapshot[id] || !toSnapshot[id]) {
|
||||
console.warn('this obj doesnt exist yet', id);
|
||||
// its actually ok it doesnt exist yet
|
||||
return;
|
||||
}
|
||||
obj.animateFromAttrToAttr(fromSnapshot[id], toSnapshot[id]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue