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

Merge branch 'operon-struct-type' into operon-struct-type-article-update

parents b74654e7 2584422b
No related branches found
No related tags found
No related merge requests found
Pipeline #128519 waiting for manual action
......@@ -139,8 +139,23 @@ function drawGenes(genesGroup) {
enter => {
const g = enter.append("g")
.classed("gene", true);
g.append("path").classed("gene", true)
g.append("path")
.classed("gene", true)
g.append("image")
.on("mouseover", function (event) {
console.log(event.srcElement)
d3.select(event.srcElement.previousSibling)
.attr("stroke-width", 4)
.attr("stroke", "darkred")
d3.select(event.srcElement).attr("cursor", "pointer")
})
.on("mouseout", function (event) {
d3.select(event.srcElement.previousSibling)
.attr("stroke-width", 0)
.attr("stroke", null)
d3.select(event.srcElement).attr("cursor", "unset")
})
g.append("text")
// .attr("fill", "white")
.classed("gene-label", true)
......@@ -153,14 +168,12 @@ function drawGenes(genesGroup) {
exit => exit.remove()
)
genesSelection.attr("transform", d => `translate(${d.x},${d.y})`)
genesGroup.select("image")
genesSelection.select("image")
.attr("href", d => d?.structImg)
.attr("width", d => d.width)
.attr("height", d => d.height)
.on("click", function (event) {
console.log(event)
const data = d3.select(this).data()
console.log(data)
structureBasket.set(data.map(s => s.structPath))
})
......
......@@ -164,11 +164,12 @@ function on(mark) {
r.on("mouseover", function (event) {
const elem = d3.select(event.srcElement)
const elemFill = d3.color(elem.attr("fill")).darker()
elem.attr("stroke-width", 4).attr("stroke", elemFill)
const fillColor = elem.attr("fill")
const elemFill = d3.color(fillColor).darker()
elem.attr("stroke-width", 4).attr("stroke", elemFill.toString()).attr("cursor", "pointer")
})
r.on("mouseout", function (event) {
d3.select(event.srcElement).attr("stroke-width", undefined).attr("stroke", undefined)
d3.select(event.srcElement).attr("stroke-width", null).attr("stroke", null).attr("cursor", "unset")
})
return g;
......
......@@ -36,7 +36,6 @@ securityContext:
allowPrivilegeEscalation: false
runAsUser: 101
runAsGroup: 101
allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
......
......@@ -616,7 +616,7 @@ def markdown(
new_f_str = re.sub(
r"#{2}\s+Structure.*?#{2}\s+Experimental\s+validation",
"## Structure\n\n### List predicted structures\n\n::article-structure\n::\n\n### pDockQ matrix\n\n::pdockq-matrix\n::\n\n## Experimental validation",
"## Structure\n\n::article-structure\n::\n\n## Experimental validation",
all_file,
flags=re.DOTALL | re.IGNORECASE,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment