| | |
| | | whethersame:'是否相同', |
| | | same:'相同', |
| | | notsame:'不相同', |
| | | partask:'任务重置', |
| | | partasks:'是否任务重置?', |
| | | empty:'默认空任务', |
| | | historicaltasks:'历史任务', |
| | |
| | | if (existingRect) { |
| | | return { |
| | | ...existingRect, |
| | | xAxisa: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yAxisa: rect.yAxis * scaleFactory * 1.1, |
| | | xAxisa: rect.xAxis * scaleFactor * 1.1, |
| | | yAxisa: (3300 - (rect.yAxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | widtha: rect.edgWidth, |
| | |
| | | // 如果不存在,则添加新矩形,默认 isActive 为 false |
| | | return { |
| | | ...rect, |
| | | xAxisa: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yAxisa: rect.yAxis * scaleFactory * 1.1, |
| | | xAxisa: rect.xAxis * scaleFactor * 1.1, |
| | | yAxisa: (3300 - (rect.yAxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | widtha: rect.edgWidth, |
| | |
| | | if (existingRect) { |
| | | return { |
| | | ...existingRect, |
| | | xAxisa: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yAxisa: rect.yAxis * scaleFactory * 1.1, |
| | | xAxisa: rect.xAxis * scaleFactor * 1.1, |
| | | yAxisa: (3300 - (rect.yAxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | state: rect.state, |
| | | // 保持 isActive 状态不变 |
| | | }; |
| | | } else { |
| | | // 如果不存在,则添加新矩形,默认 isActive 为 false |
| | | return { |
| | | ...rect, |
| | | xAxisa: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yAxisa: rect.yAxis * scaleFactory * 1.1, |
| | | xAxisa: rect.xAxis * scaleFactor * 1.1, |
| | | yAxisa: (3300 - (rect.yAxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | widtha: rect.edgWidth, |
| | |
| | | const scaleFactory = 750/3300; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yaxisa: rect.yaxis * scaleFactory * 1.1, |
| | | xaxisa: rect.xaxis * scaleFactor * 1.1, |
| | | yaxisa: (3300 - (rect.yaxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | // xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | // yaxisa: rect.yaxis * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | widtha: rect.edgWidth , |
| | | heighta: rect.edgHeight , |
| | |
| | | const scaleFactory = 750/3300; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | yaxisa: rect.yaxis * scaleFactory * 1.1, |
| | | xaxisa: rect.xaxis * scaleFactor * 1.1, |
| | | yaxisa: (3300 - (rect.yaxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | widtha: rect.edgWidth , |
| | | heighta: rect.edgHeight , |