mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-15 00:54:25 +02:00
WIP working on get target graph difference
This commit is contained in:
parent
6e75e04daf
commit
6cc0b182cc
7 changed files with 115 additions and 106 deletions
|
@ -102,18 +102,8 @@ var VisBranch = VisBase.extend({
|
|||
}
|
||||
},
|
||||
|
||||
shouldOffsetY: function() {
|
||||
return this.gitEngine.getBranches().length > 1;
|
||||
},
|
||||
|
||||
refreshOffset: function() {
|
||||
var baseOffsetX = GRAPHICS.nodeRadius * 4.75;
|
||||
if (!this.shouldOffsetY()) {
|
||||
this.set('offsetY', 0);
|
||||
this.set('offsetX', baseOffsetX);
|
||||
return;
|
||||
}
|
||||
|
||||
var offsetY = 33;
|
||||
var deltaX = 10;
|
||||
if (this.get('flip') === 1) {
|
||||
|
@ -126,9 +116,7 @@ var VisBranch = VisBase.extend({
|
|||
},
|
||||
|
||||
getArrowTransform: function() {
|
||||
if (!this.shouldOffsetY()) {
|
||||
return '';
|
||||
} else if (this.get('flip') === 1) {
|
||||
if (this.get('flip') === 1) {
|
||||
return 't-2,-20R-35';
|
||||
} else {
|
||||
return 't2,20R-35';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue