Fossil SCM
Add the experiemental "nomo" query parameter on the timeline graph.
Commit
9ca4f330e18bb3df3274049ae75dc5c0e2731c8d
Parent
e81344f3bd663c1…
1 file changed
+2
+2
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -615,10 +615,11 @@ | ||
| 615 | 615 | int mergeOffset; |
| 616 | 616 | |
| 617 | 617 | /* Number of pixels that the thin merge lines are offset from the |
| 618 | 618 | ** the center of the think rail lines */ |
| 619 | 619 | mergeOffset = pGraph->iRailPitch>=14 ? 4 : pGraph->iRailPitch>=13 ? 3 : 0; |
| 620 | + if( PB("nomo") ) mergeOffset = 0; | |
| 620 | 621 | |
| 621 | 622 | @ <script> |
| 622 | 623 | @ var railPitch=%d(pGraph->iRailPitch); |
| 623 | 624 | |
| 624 | 625 | /* the rowinfo[] array contains all the information needed to generate |
| @@ -819,10 +820,11 @@ | ||
| 819 | 820 | @ if( x1>=p.x-5 && x1<=p.x+5 ){ |
| 820 | 821 | @ y1 = p.y-5; |
| 821 | 822 | @ }else{ |
| 822 | 823 | @ drawThinLine(x0,y1,x1,y1); |
| 823 | 824 | @ } |
| 825 | + if( mergeOffset>0 ) cgi_printf("if( p.mo!=p.u-1 ) "); | |
| 824 | 826 | @ drawThinLine(x1,y0,x1,y1); |
| 825 | 827 | @ } |
| 826 | 828 | @ var n = p.au.length; |
| 827 | 829 | @ for(var i=0; i<n; i+=2){ |
| 828 | 830 | @ var x1 = p.au[i]*railPitch + left; |
| 829 | 831 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -615,10 +615,11 @@ | |
| 615 | int mergeOffset; |
| 616 | |
| 617 | /* Number of pixels that the thin merge lines are offset from the |
| 618 | ** the center of the think rail lines */ |
| 619 | mergeOffset = pGraph->iRailPitch>=14 ? 4 : pGraph->iRailPitch>=13 ? 3 : 0; |
| 620 | |
| 621 | @ <script> |
| 622 | @ var railPitch=%d(pGraph->iRailPitch); |
| 623 | |
| 624 | /* the rowinfo[] array contains all the information needed to generate |
| @@ -819,10 +820,11 @@ | |
| 819 | @ if( x1>=p.x-5 && x1<=p.x+5 ){ |
| 820 | @ y1 = p.y-5; |
| 821 | @ }else{ |
| 822 | @ drawThinLine(x0,y1,x1,y1); |
| 823 | @ } |
| 824 | @ drawThinLine(x1,y0,x1,y1); |
| 825 | @ } |
| 826 | @ var n = p.au.length; |
| 827 | @ for(var i=0; i<n; i+=2){ |
| 828 | @ var x1 = p.au[i]*railPitch + left; |
| 829 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -615,10 +615,11 @@ | |
| 615 | int mergeOffset; |
| 616 | |
| 617 | /* Number of pixels that the thin merge lines are offset from the |
| 618 | ** the center of the think rail lines */ |
| 619 | mergeOffset = pGraph->iRailPitch>=14 ? 4 : pGraph->iRailPitch>=13 ? 3 : 0; |
| 620 | if( PB("nomo") ) mergeOffset = 0; |
| 621 | |
| 622 | @ <script> |
| 623 | @ var railPitch=%d(pGraph->iRailPitch); |
| 624 | |
| 625 | /* the rowinfo[] array contains all the information needed to generate |
| @@ -819,10 +820,11 @@ | |
| 820 | @ if( x1>=p.x-5 && x1<=p.x+5 ){ |
| 821 | @ y1 = p.y-5; |
| 822 | @ }else{ |
| 823 | @ drawThinLine(x0,y1,x1,y1); |
| 824 | @ } |
| 825 | if( mergeOffset>0 ) cgi_printf("if( p.mo!=p.u-1 ) "); |
| 826 | @ drawThinLine(x1,y0,x1,y1); |
| 827 | @ } |
| 828 | @ var n = p.au.length; |
| 829 | @ for(var i=0; i<n; i+=2){ |
| 830 | @ var x1 = p.au[i]*railPitch + left; |
| 831 |