tamer: build-aux/asg-ontviz: Vary arrowhead for cross edges
This makes it more visually apparent, when looking directly at a node, whether an edge could represent a tree edge. Dynamic edges could be tree edges, so I left those solid; that's the more important visual indicator that I'm interested in, and it's disambiguated by the dashed line. DEV-13708main
parent
893da0ed20
commit
669302700a
|
@ -123,13 +123,13 @@ block_src && $NF ~ /\w+,$/ {
|
||||||
attrs = ""
|
attrs = ""
|
||||||
switch (ty) {
|
switch (ty) {
|
||||||
case "tree":
|
case "tree":
|
||||||
attrs="[style=solid]";
|
attrs="[style=solid,arrowhead=normal]";
|
||||||
break;
|
break;
|
||||||
case "cross":
|
case "cross":
|
||||||
attrs="[style=dotted]";
|
attrs="[style=dotted,arrowhead=open]";
|
||||||
break;
|
break;
|
||||||
case "dyn":
|
case "dyn":
|
||||||
attrs="[style=dashed]";
|
attrs="[style=dashed,arrowhead=normal]";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ block_src && $NF ~ /\w+,$/ {
|
||||||
# the source object is right-aligned and target is left-aligned,
|
# the source object is right-aligned and target is left-aligned,
|
||||||
# so that `Src -> Target` can be easily read regardless of the width
|
# so that `Src -> Target` can be easily read regardless of the width
|
||||||
# of the objects involved.
|
# of the objects involved.
|
||||||
printf " %5s -> %-5s %14s; # %s edge\n", block_src, $NF, attrs, ty
|
printf " %5s -> %-5s %32s; # %s edge\n", block_src, $NF, attrs, ty
|
||||||
|
|
||||||
found_rels++
|
found_rels++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue