mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-15 00:54:25 +02:00
awesome faded branches for level comparing done
This commit is contained in:
parent
19f204ddcb
commit
e7f5acaece
8 changed files with 43 additions and 1194 deletions
|
@ -467,24 +467,6 @@ var VisBranch = VisBase.extend({
|
|||
});
|
||||
},
|
||||
|
||||
getArrowOpacity: function() {
|
||||
if (this.getIsGoalAndNotCompared() &&
|
||||
!this.get('isHead') &&
|
||||
this.getBranchStackIndex() === 0) {
|
||||
return 0.5;
|
||||
}
|
||||
return this.getNonTextOpacity();
|
||||
},
|
||||
|
||||
getRectOpacity: function() {
|
||||
if (this.getIsGoalAndNotCompared() &&
|
||||
!this.get('isHead') &&
|
||||
this.getBranchStackIndex() === 0) {
|
||||
return 0.8;
|
||||
}
|
||||
return this.getNonTextOpacity();
|
||||
},
|
||||
|
||||
getNonTextOpacity: function() {
|
||||
if (this.get('isHead')) {
|
||||
return this.gitEngine.getDetachedHead() ? 1 : 0;
|
||||
|
@ -544,7 +526,7 @@ var VisBranch = VisBase.extend({
|
|||
y: rectPos.y,
|
||||
width: rectSize.w,
|
||||
height: rectSize.h,
|
||||
opacity: this.getRectOpacity(),
|
||||
opacity: this.getNonTextOpacity(),
|
||||
fill: this.getFill(),
|
||||
stroke: this.get('stroke'),
|
||||
'stroke-dasharray': dashArray,
|
||||
|
@ -552,7 +534,7 @@ var VisBranch = VisBase.extend({
|
|||
},
|
||||
arrow: {
|
||||
path: arrowPath,
|
||||
opacity: this.getArrowOpacity(),
|
||||
opacity: this.getNonTextOpacity(),
|
||||
fill: this.getFill(),
|
||||
stroke: this.get('stroke'),
|
||||
transform: this.getArrowTransform(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue