test calc
This commit is contained in:
parent
464163ea2b
commit
60b42c39e5
|
@ -49,13 +49,13 @@ const changeParametres = () => {
|
|||
form_state.total_length_mm = form_state.total_length * 1000
|
||||
if (auto_section_width.value) {
|
||||
// form_state.length
|
||||
if (form_state.total_length_mm % form_state.length) {
|
||||
// if (form_state.total_length_mm % form_state.length) {
|
||||
let w = parametric.length.max
|
||||
while ((form_state.total_length_mm % form_state.length > 0) && w > parametric.length.min) {
|
||||
while (((form_state.total_length_mm % w) > 0) && w > (parametric.length.min + parametric.length.step * 10)) {
|
||||
w -= parametric.length.step
|
||||
}
|
||||
form_state.length = w
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
if (form_state.total_length_mm < form_state.length) {
|
||||
|
|
Loading…
Reference in New Issue