Fossil

Check-in [62ab3a1d80]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Check-mark alternative for closed branches.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | indicate-closed-branches-in-timeline
Files: files | file ages | folders
SHA3-256: 62ab3a1d8020459034be1975ad39e843a1e4963b2ecc54129af82ad19a1d1e63
User & Date: preben 2023-09-27 15:17:54.346
Context
2023-09-27
15:17
Check-mark alternative for closed branches. ... (Closed-Leaf check-in: 62ab3a1d80 user: preben tags: indicate-closed-branches-in-timeline)
11:24
Draw an X instead of a horizontal line. Uses SVG as attempts with characters differed wildly among browsers. ... (check-in: 63785bd911 user: preben tags: indicate-closed-branches-in-timeline)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410

411


412
413
414
415
416
417
418
    var n = drawBox(cls,p.bg,p.x,p.y);
    n.id = "tln"+p.id;
    n.onclick = clickOnNode;
    n.ondblclick = dblclickOnNode;
    n.onmousemove = mouseOverNode;
    n.style.zIndex = 10;
    if( p.f&2 ){
      var pt1 = 0;
      var pt2 = 100;
      if( tx.circleNodes ){
        pt1 = 14;
        pt2 = 86;
      }
      n.innerHTML = "<svg width='100%' height='100%'viewbox='0 0 100 100'>"
          + `<path d='M ${pt1},${pt1} L ${pt2},${pt2} M ${pt1},${pt2} L ${pt2},${pt1}'`

          + " stroke='currentcolor' stroke-width='13'/>"


          + "</svg>";
    }
    if( !tx.omitDescenders ){
      if( p.u==0 ){
        if( p.hasOwnProperty('mo') && p.r==p.mo ){
          var ix = p.hasOwnProperty('cu') ? p.cu : p.mu;
          var top = tx.rowinfo[ix-tx.iTopRow]







<
<
<
<
<
<

<
>
|
>
>







396
397
398
399
400
401
402






403

404
405
406
407
408
409
410
411
412
413
414
    var n = drawBox(cls,p.bg,p.x,p.y);
    n.id = "tln"+p.id;
    n.onclick = clickOnNode;
    n.ondblclick = dblclickOnNode;
    n.onmousemove = mouseOverNode;
    n.style.zIndex = 10;
    if( p.f&2 ){






      n.innerHTML = "<svg width='100%' height='100%'viewbox='0 0 100 100'>"

          + "<line x1='25' y1='55' x2='45' y2='75'"
          + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
          + "<line x1='75' y1='30' x2='45' y2='75'"
          + " stroke='currentcolor' stroke-width='15' stroke-linecap='round'/>"
          + "</svg>";
    }
    if( !tx.omitDescenders ){
      if( p.u==0 ){
        if( p.hasOwnProperty('mo') && p.r==p.mo ){
          var ix = p.hasOwnProperty('cu') ? p.cu : p.mu;
          var top = tx.rowinfo[ix-tx.iTopRow]