From 7bca3fff2b9ea2e593cb32f26bf2e7bed6eaf551 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 11 Jun 2024 17:01:25 +0300 Subject: [PATCH] multiple --- components/calcValues.vue | 3 + components/model/fence.vue | 112 +++++++++++++++++++++++++++++++ components/model/parametric.vue | 114 ++------------------------------ 3 files changed, 120 insertions(+), 109 deletions(-) create mode 100644 components/model/fence.vue diff --git a/components/calcValues.vue b/components/calcValues.vue index 915c569..e27a054 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -3,6 +3,8 @@ const lamelles_count = useState('lamelles_count', () => 8) const fence_section = useState('fence_section', () => 2000 * 0.001) const pillar_color = useState('pillar_color', () => '#828282') const lamelle_color = useState('lamelle_color', () => '#C2B078') +const section_count = useState('section_count', () => 1) +const extra_section = useState('section_count', () => 0) const parametric = { length: { @@ -74,6 +76,7 @@ const changeParametres = () => { const t_f = (form_state.total_length_mm - form_state.fence_length) const i_f = (form_state.length - form_state.fence_length) form_state.full_sections = Math.floor(t_f / i_f) + section_count.value = form_state.full_sections if (t_f % i_f) { form_state.extra_section = Math.round(t_f % i_f) } else { diff --git a/components/model/fence.vue b/components/model/fence.vue new file mode 100644 index 0000000..dcda05b --- /dev/null +++ b/components/model/fence.vue @@ -0,0 +1,112 @@ + + \ No newline at end of file diff --git a/components/model/parametric.vue b/components/model/parametric.vue index bb7ccfd..dbd97bc 100644 --- a/components/model/parametric.vue +++ b/components/model/parametric.vue @@ -1,114 +1,10 @@