From 45dca804b3dc20784f3c581aca3c5c62c5656ca2 Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Tue, 30 Apr 2024 14:01:32 +0200
Subject: [PATCH] add title for structure

---
 components/OperonStructure.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/components/OperonStructure.vue b/components/OperonStructure.vue
index eb54ee2d..21e09691 100644
--- a/components/OperonStructure.vue
+++ b/components/OperonStructure.vue
@@ -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`)
 
 
 }
-- 
GitLab