dev #84

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

View File

@ -37,12 +37,12 @@ const setPillarValues = () => {
} }
} }
const getExtraValue = () => (extra_section.value && props.last_element) ? extra_section.value * 0.001 : false const getExtraValue = () => (extra_section.value && props.last_element && !props.first_element) ? extra_section.value * 0.001 : false
const extra = ref(getExtraValue()) const extra = ref(getExtraValue())
setPillarValues() setPillarValues()
const make_translate_to_section = (source = fence_section.value) => { const make_translate_to_section = (source = fence_section.value) => {
const one_s = (source + pillar_size) * scale_koef const one_s = (source + (remove_pillar.value ? 0 : pillar_size)) * scale_koef
let r = (props.index - 1) * one_s let r = (props.index - 1) * one_s
if (typeof extra.value == 'number') { if (typeof extra.value == 'number') {
r -= (fence_section.value - extra.value) * scale_koef * 0.5 r -= (fence_section.value - extra.value) * scale_koef * 0.5