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

increase struct width

parent af4e0ad1
No related branches found
No related tags found
No related merge requests found
Pipeline #130157 waiting for manual action
...@@ -42,7 +42,7 @@ const domain = computed(() => { ...@@ -42,7 +42,7 @@ const domain = computed(() => {
return genes?.map(d => { return d.gene }) return genes?.map(d => { return d.gene })
}) })
const maxOperonSize = toRef(props, "maxOperonSize") const maxOperonSize = toRef(props, "maxOperonSize")
const structureWidthPerGene = ref<number>(120)
const operonLength = computed(() => { const operonLength = computed(() => {
// return props.maxOperonSize || 0 // return props.maxOperonSize || 0
const genes = toValue(computedGenes) const genes = toValue(computedGenes)
...@@ -58,13 +58,6 @@ const innerPadding = computed(() => { ...@@ -58,13 +58,6 @@ const innerPadding = computed(() => {
return totalGeneLengthVal * innerPadding 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 totalGeneLengthWithPadding = computed(() => {
const totalGeneLengthVal = toValue(operonLength) const totalGeneLengthVal = toValue(operonLength)
// const totalGeneLengthVal = props.maxOperonSize || 0 // const totalGeneLengthVal = props.maxOperonSize || 0
...@@ -97,7 +90,7 @@ const domainGenes = computed(() => { ...@@ -97,7 +90,7 @@ const domainGenes = computed(() => {
const structureRange = computed(() => { const structureRange = computed(() => {
const genes = toValue(computedGenes) const genes = toValue(computedGenes)
const minStructureWidth = genes.length * 100 const minStructureWidth = genes.length * structureWidthPerGene.value
let maxRange = 0 let maxRange = 0
let minRange = 0 let minRange = 0
// get genes width // get genes width
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment