dev #84
|
@ -17,6 +17,7 @@ const section_count = use_section_count()
|
||||||
const extra_section = use_extra_section()
|
const extra_section = use_extra_section()
|
||||||
const total_length = use_total_length()
|
const total_length = use_total_length()
|
||||||
const min_length = use_min_length()
|
const min_length = use_min_length()
|
||||||
|
const open_calc = use_open_calc()
|
||||||
|
|
||||||
if (!pillar_color.value) {
|
if (!pillar_color.value) {
|
||||||
const r = Math.floor(Math.random() * predefPillarColors.length)
|
const r = Math.floor(Math.random() * predefPillarColors.length)
|
||||||
|
@ -136,6 +137,10 @@ const changeParametres = () => {
|
||||||
goal('calc_fence', form_state)
|
goal('calc_fence', form_state)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(() => [form_state.fence_length, form_state.height], () => {
|
||||||
|
open_calc.value = []
|
||||||
|
})
|
||||||
|
|
||||||
const setLamelleColor = (color: ralTypes) => {
|
const setLamelleColor = (color: ralTypes) => {
|
||||||
lamelle_color.value = color;
|
lamelle_color.value = color;
|
||||||
lamelle_text.value = contrastColor(color) ?? '#000'
|
lamelle_text.value = contrastColor(color) ?? '#000'
|
||||||
|
@ -215,8 +220,7 @@ const calc_table = computed(() => {
|
||||||
<DropdownPicker type="pattern" :cb="setPillarPattern" name="pillar_pattern" :disabled="remove_pillar"
|
<DropdownPicker type="pattern" :cb="setPillarPattern" name="pillar_pattern" :disabled="remove_pillar"
|
||||||
:goto_target="new Vector3(fence_section * 0.5, lamelles_count * lamelle_height, 0)"
|
:goto_target="new Vector3(fence_section * 0.5, lamelles_count * lamelle_height, 0)"
|
||||||
:goto_cam="new Vector3(1, 2, -1)">
|
:goto_cam="new Vector3(1, 2, -1)">
|
||||||
<span
|
<span :style="getFilename(pillar_pattern) ? [{
|
||||||
:style="getFilename(pillar_pattern) ? [{
|
|
||||||
backgroundImage: `url(${getFilename(pillar_pattern)})`,
|
backgroundImage: `url(${getFilename(pillar_pattern)})`,
|
||||||
backgroundSize: 'contain',
|
backgroundSize: 'contain',
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
|
|
Loading…
Reference in New Issue