extra value
Deploy / build_and_push_images (push) Successful in 1m21s Details
Deploy / deploy_to_server_dev (push) Successful in 32s Details

This commit is contained in:
Kseninia Mikhaylova 2024-09-30 14:20:11 +03:00
parent 7dbcecacdc
commit bd5dbccd08
1 changed files with 2 additions and 2 deletions

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