From 04d7de4104eec73bb4d2c22545a9dd00946ffa99 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 27 Sep 2024 13:23:00 +0300 Subject: [PATCH] close tabber --- components/calc/values.vue | 5 ----- components/model/fence.vue | 2 +- components/model/parametric.vue | 5 ++++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/calc/values.vue b/components/calc/values.vue index 26c2389..fb91092 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -17,7 +17,6 @@ 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) @@ -137,10 +136,6 @@ const changeParametres = () => { goal('calc_fence', form_state) } -watch(() => [form_state.fence_length, form_state.height, form_state.total_length], () => { - open_calc.value = [] -}) - const setLamelleColor = (color: ralTypes) => { lamelle_color.value = color; lamelle_text.value = contrastColor(color) ?? '#000' diff --git a/components/model/fence.vue b/components/model/fence.vue index e08642a..2a63caf 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -178,7 +178,7 @@ const setFastening = () => { const top = props.models.fastening_top.clone().children[0]; top.position.set( pillar_size * 0.5, - lamelles_count.value * lSize - 0.02 * scale_koef, + lamelles_count.value * lSize - 0.0275 * scale_koef, 0 ); top.scale.setComponent(0, v); diff --git a/components/model/parametric.vue b/components/model/parametric.vue index 9fd3c53..4a84138 100644 --- a/components/model/parametric.vue +++ b/components/model/parametric.vue @@ -86,7 +86,10 @@ const setTarget = (smooth = false) => { } } setTarget() -watch([lamelles_count, fence_section], () => setTarget(false)) +watch([lamelles_count, fence_section], () => { + setTarget(false) + open_calc.value = [] +}) watch(open_calc, () => { if (Object.keys(open_calc.value).length == 0) {