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
......@@ -54,6 +54,9 @@ onMounted(async () => {
throw createError("Error while getting structure pdocks")
}
attachEventHandler()
})
const computedSystem = computed(() => {
......@@ -140,7 +143,8 @@ function getDataLabelFromCell(elem) {
const parent = elem.parentNode.parentNode.parentNode.parentNode
return parent.dataset.label
}
watch(matrixPlot, () => {
function attachEventHandler() {
const cells = d3.selectAll(".pdockq-plot").selectAll("rect")
console.log("cells rect on watch")
console.log(cells)
......@@ -161,6 +165,10 @@ watch(matrixPlot, () => {
else { console.log("no data found") }
})
}
watch(matrixPlot, () => {
attachEventHandler()
})
function pdbNameToCif(pdbPath: string) {
const cifPath = pdbPath.split(".").slice(0, -1).join(".")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment