Skip to content
Snippets Groups Projects
Commit 45dca804 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add title for structure

parent 36782851
Branches
No related tags found
No related merge requests found
Pipeline #129761 failed
......@@ -276,6 +276,9 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement |
// img group
gStructure
.append("image")
gStructure
.append("title")
return gStructure
},
update => update,
......@@ -293,7 +296,7 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement |
.attr("width", d => d.width)
.attr("height", d => d.height)
.attr("preserveAspectRatio", "xMidYMid meet")
structureSelection.select("title").text(d => `${d.gene} | ${d.size} aa`)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment