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

gene clickable to open structure

parent 0136ca05
No related branches found
No related tags found
No related merge requests found
Pipeline #129748 failed
......@@ -334,6 +334,10 @@ function drawGenes(operonGroup: d3.Selection<SVGGElement, any, SVGElement | null
enter => {
const gOperonItem = enter.append("g")
.classed("operon-item", true)
.on("click", function (event) {
const data = d3.select<SVGElement, StructureOperonGeneWithCoordinate>(this).data()
structureBasket.set(data.map(s => s?.structPath ?? ''))
})
.on("mouseover", function (event) {
const srcSelection = d3.select<SVGElement, StructureOperonGeneWithCoordinate>(event.srcElement)
const node = srcSelection.data()
......
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