| | |
| | | return formattedItem; |
| | | }); |
| | | data.forEach(item => { |
| | | |
| | | if(formattedData[0].autoFillEdge==="true"){ |
| | | item.longGrind1=0 |
| | | item.longGrind2=0 |
| | | item.shortGrind1=0 |
| | | item.shortGrind2=0 |
| | | |
| | | if(item.width>=formattedData[0].minAutoLenght){ |
| | | item.longGrind1 = formattedData[0].leftEdge; |
| | | item.longGrind2 = formattedData[0].rightEdge; |
| | |
| | | item.shortGrind2 = formattedData[0].downEdge; |
| | | } |
| | | } |
| | | item.longGrind1=0 |
| | | item.longGrind2=0 |
| | | item.shortGrind1=0 |
| | | item.shortGrind2=0 |
| | | item.height=parseFloat(item.height.toFixed(2)) |
| | | item.width=parseFloat(item.width.toFixed(2)) |
| | | |