extra value
This commit is contained in:
parent
7dbcecacdc
commit
bd5dbccd08
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue