dev #84

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

View File

@ -17,6 +17,7 @@ const section_count = use_section_count()
const extra_section = use_extra_section()
const total_length = use_total_length()
const min_length = use_min_length()
const open_calc = use_open_calc()
if (!pillar_color.value) {
const r = Math.floor(Math.random() * predefPillarColors.length)
@ -136,6 +137,10 @@ const changeParametres = () => {
goal('calc_fence', form_state)
}
watch(() => [form_state.fence_length, form_state.height], () => {
open_calc.value = []
})
const setLamelleColor = (color: ralTypes) => {
lamelle_color.value = color;
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"
:goto_target="new Vector3(fence_section * 0.5, lamelles_count * lamelle_height, 0)"
:goto_cam="new Vector3(1, 2, -1)">
<span
:style="getFilename(pillar_pattern) ? [{
<span :style="getFilename(pillar_pattern) ? [{
backgroundImage: `url(${getFilename(pillar_pattern)})`,
backgroundSize: 'contain',
color: 'transparent'