Fossil SCM

Add the experiemental "nomo" query parameter on the timeline graph.

drh 2015-03-10 02:39 UTC trunk
Commit 9ca4f330e18bb3df3274049ae75dc5c0e2731c8d
1 file changed +2
--- src/timeline.c
+++ src/timeline.c
@@ -615,10 +615,11 @@
615615
int mergeOffset;
616616
617617
/* Number of pixels that the thin merge lines are offset from the
618618
** the center of the think rail lines */
619619
mergeOffset = pGraph->iRailPitch>=14 ? 4 : pGraph->iRailPitch>=13 ? 3 : 0;
620
+ if( PB("nomo") ) mergeOffset = 0;
620621
621622
@ <script>
622623
@ var railPitch=%d(pGraph->iRailPitch);
623624
624625
/* the rowinfo[] array contains all the information needed to generate
@@ -819,10 +820,11 @@
819820
@ if( x1>=p.x-5 && x1<=p.x+5 ){
820821
@ y1 = p.y-5;
821822
@ }else{
822823
@ drawThinLine(x0,y1,x1,y1);
823824
@ }
825
+ if( mergeOffset>0 ) cgi_printf("if( p.mo!=p.u-1 ) ");
824826
@ drawThinLine(x1,y0,x1,y1);
825827
@ }
826828
@ var n = p.au.length;
827829
@ for(var i=0; i<n; i+=2){
828830
@ var x1 = p.au[i]*railPitch + left;
829831
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button