Fossil SCM

Check-mark alternative for closed branches.

preben 2023-09-27 15:17 indicate-closed-branches-in-timeline
Commit 62ab3a1d8020459034be1975ad39e843a1e4963b2ecc54129af82ad19a1d1e63
1 file changed +4 -8
+4 -8
--- src/graph.js
+++ src/graph.js
@@ -398,19 +398,15 @@
398398
n.onclick = clickOnNode;
399399
n.ondblclick = dblclickOnNode;
400400
n.onmousemove = mouseOverNode;
401401
n.style.zIndex = 10;
402402
if( p.f&2 ){
403
- var pt1 = 0;
404
- var pt2 = 100;
405
- if( tx.circleNodes ){
406
- pt1 = 14;
407
- pt2 = 86;
408
- }
409403
n.innerHTML = "<svg width='100%' height='100%'viewbox='0 0 100 100'>"
410
- + `<path d='M ${pt1},${pt1} L ${pt2},${pt2} M ${pt1},${pt2} L ${pt2},${pt1}'`
411
- + " stroke='currentcolor' stroke-width='13'/>"
404
+ + "<line x1='25' y1='55' x2='45' y2='75'"
405
+ + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
406
+ + "<line x1='75' y1='30' x2='45' y2='75'"
407
+ + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
412408
+ "</svg>";
413409
}
414410
if( !tx.omitDescenders ){
415411
if( p.u==0 ){
416412
if( p.hasOwnProperty('mo') && p.r==p.mo ){
417413
--- src/graph.js
+++ src/graph.js
@@ -398,19 +398,15 @@
398 n.onclick = clickOnNode;
399 n.ondblclick = dblclickOnNode;
400 n.onmousemove = mouseOverNode;
401 n.style.zIndex = 10;
402 if( p.f&2 ){
403 var pt1 = 0;
404 var pt2 = 100;
405 if( tx.circleNodes ){
406 pt1 = 14;
407 pt2 = 86;
408 }
409 n.innerHTML = "<svg width='100%' height='100%'viewbox='0 0 100 100'>"
410 + `<path d='M ${pt1},${pt1} L ${pt2},${pt2} M ${pt1},${pt2} L ${pt2},${pt1}'`
411 + " stroke='currentcolor' stroke-width='13'/>"
 
 
412 + "</svg>";
413 }
414 if( !tx.omitDescenders ){
415 if( p.u==0 ){
416 if( p.hasOwnProperty('mo') && p.r==p.mo ){
417
--- src/graph.js
+++ src/graph.js
@@ -398,19 +398,15 @@
398 n.onclick = clickOnNode;
399 n.ondblclick = dblclickOnNode;
400 n.onmousemove = mouseOverNode;
401 n.style.zIndex = 10;
402 if( p.f&2 ){
 
 
 
 
 
 
403 n.innerHTML = "<svg width='100%' height='100%'viewbox='0 0 100 100'>"
404 + "<line x1='25' y1='55' x2='45' y2='75'"
405 + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
406 + "<line x1='75' y1='30' x2='45' y2='75'"
407 + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
408 + "</svg>";
409 }
410 if( !tx.omitDescenders ){
411 if( p.u==0 ){
412 if( p.hasOwnProperty('mo') && p.r==p.mo ){
413

Keyboard Shortcuts

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