From f84d5ff3b3c22d0dd8066987d918e8a8c24b3651 Mon Sep 17 00:00:00 2001
From: Remi PLANEL <rplanel@pasteur.fr>
Date: Mon, 6 May 2024 17:30:54 +0200
Subject: [PATCH] increase struct width
---
components/OperonStructure.vue | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/components/OperonStructure.vue b/components/OperonStructure.vue
index 28bbae9b..98dda5e6 100644
--- a/components/OperonStructure.vue
+++ b/components/OperonStructure.vue
@@ -42,7 +42,7 @@ const domain = computed(() => {
return genes?.map(d => { return d.gene })
})
const maxOperonSize = toRef(props, "maxOperonSize")
-
+const structureWidthPerGene = ref<number>(120)
const operonLength = computed(() => {
// return props.maxOperonSize || 0
const genes = toValue(computedGenes)
@@ -58,13 +58,6 @@ const innerPadding = computed(() => {
return totalGeneLengthVal * innerPadding
})
-const innerPaddingpPerGene = computed(() => {
- const genes = toValue(computedGenes)
- const innerPaddingVal = toValue(innerPadding)
- return genes.length === 1 ? innerPaddingVal / 2 : innerPaddingVal / genes.length
-})
-
-
const totalGeneLengthWithPadding = computed(() => {
const totalGeneLengthVal = toValue(operonLength)
// const totalGeneLengthVal = props.maxOperonSize || 0
@@ -97,7 +90,7 @@ const domainGenes = computed(() => {
const structureRange = computed(() => {
const genes = toValue(computedGenes)
- const minStructureWidth = genes.length * 100
+ const minStructureWidth = genes.length * structureWidthPerGene.value
let maxRange = 0
let minRange = 0
// get genes width
--
GitLab