dev #84

Merged
ksenia_mikhailova merged 141 commits from dev into main 2024-10-03 15:30:24 +03:00
1 changed files with 20 additions and 0 deletions
Showing only changes of commit 6a25442c19 - Show all commits

View File

@ -87,6 +87,26 @@ watch([section_count, fence_section, extra_section], () => {
pillar_two_pos.value = fence_section.value * 0.5 + pillar_size + bSize - 0.01
// translate_to_section.value = make_translate_to_section()
}
if ((section_count.value + ~~(!!extra_section.value)) > 3) {
const total = (section_count.value + ~~(!!extra_section.value))
const size = Math.ceil(total / 4)
console.log({ total, size, index: props.index });
switch(Math.ceil(props.index / size)) {
case 1:
console.log('1')
break;
case 2:
console.log('2')
break;
case 3:
console.log('3')
break;
case 4:
console.log('4')
break;
}
}
})
</script>
<template>