Commit b13291b9 authored by Fabien Maniere's avatar Fabien Maniere

adding a pipe separator between terms per line

parent e97e7b30
Pipeline #6699 passed with stages
in 21 minutes and 11 seconds
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -119,5 +119,5 @@ nodeCpt = R2.hereComponent here "node" hCpt where
]
_ -> H.p
{ className: "text-center pt-10" }
[ H.text "Phylo not generated yet, please update the node settings to see your phylonometry." ]
[ H.text "Phylo not generated yet, please update the node settings to see your phylomemy." ]
}
......@@ -2062,7 +2062,9 @@ function setGroup(g, xScale, yScale, wScale) {
fdt = lines[i].fdt,
roles = lines[i].role,
terms = mergeLists(words,fdt,roles),
toSpan = (acc, w) => acc + "<tspan fdt=" + w[1]
toSpan = (acc, w, index) => {
let separator = index < terms.length - 1 ? "<tspan class='separator'> | </tspan>" : "";
return acc + "<tspan fdt=" + w[1]
+ " class='term fdt-" + w[1] + " " + "g-" + g.gId + findRole(w[2]) + "'"
+ " gy=" + yScale(g.to)
+ " gx=" + xScale(g.x)
......@@ -2071,7 +2073,9 @@ function setGroup(g, xScale, yScale, wScale) {
+ " gid=" + g.gId
+ " bid=" + g.bId
+ " from=" + (g.to).getFullYear()
+ ">" + w[0] + "</tspan>";
+ ">" + w[0] + "</tspan>"
+ separator;
};
panel
.append("text")
......
......@@ -209,7 +209,10 @@ $decreasing-color: #11638F;
.term:hover {
font-weight: bold;
}
.separator {
fill: $graph-heading-color;
}
// .term-unfocus {
// fill: #A9A9A9;
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment