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

add title for structure

parent 36782851
No related branches found
No related tags found
No related merge requests found
Pipeline #129761 failed
...@@ -276,6 +276,9 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement | ...@@ -276,6 +276,9 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement |
// img group // img group
gStructure gStructure
.append("image") .append("image")
gStructure
.append("title")
return gStructure return gStructure
}, },
update => update, update => update,
...@@ -293,7 +296,7 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement | ...@@ -293,7 +296,7 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement |
.attr("width", d => d.width) .attr("width", d => d.width)
.attr("height", d => d.height) .attr("height", d => d.height)
.attr("preserveAspectRatio", "xMidYMid meet") .attr("preserveAspectRatio", "xMidYMid meet")
structureSelection.select("title").text(d => `${d.gene} | ${d.size} aa`)
} }
......
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