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

Add also in onMounted

parent a011bb87
No related branches found
No related tags found
No related merge requests found
Pipeline #127619 waiting for manual action with stages
in 8 minutes and 40 seconds
...@@ -54,6 +54,9 @@ onMounted(async () => { ...@@ -54,6 +54,9 @@ onMounted(async () => {
throw createError("Error while getting structure pdocks") throw createError("Error while getting structure pdocks")
} }
attachEventHandler()
}) })
const computedSystem = computed(() => { const computedSystem = computed(() => {
...@@ -140,7 +143,8 @@ function getDataLabelFromCell(elem) { ...@@ -140,7 +143,8 @@ function getDataLabelFromCell(elem) {
const parent = elem.parentNode.parentNode.parentNode.parentNode const parent = elem.parentNode.parentNode.parentNode.parentNode
return parent.dataset.label return parent.dataset.label
} }
watch(matrixPlot, () => {
function attachEventHandler() {
const cells = d3.selectAll(".pdockq-plot").selectAll("rect") const cells = d3.selectAll(".pdockq-plot").selectAll("rect")
console.log("cells rect on watch") console.log("cells rect on watch")
console.log(cells) console.log(cells)
...@@ -161,6 +165,10 @@ watch(matrixPlot, () => { ...@@ -161,6 +165,10 @@ watch(matrixPlot, () => {
else { console.log("no data found") } else { console.log("no data found") }
}) })
}
watch(matrixPlot, () => {
attachEventHandler()
}) })
function pdbNameToCif(pdbPath: string) { function pdbNameToCif(pdbPath: string) {
const cifPath = pdbPath.split(".").slice(0, -1).join(".") const cifPath = pdbPath.split(".").slice(0, -1).join(".")
......
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