Browse Source

优化喷涂区域的选择

master
王梦远 2 weeks ago
parent
commit
7b41ef8c4f
  1. 4
      src/components/spray/trayGraph/index.vue

4
src/components/spray/trayGraph/index.vue

@ -131,6 +131,10 @@ const addSelect = () => {
|| newBoundBox.y < 0
|| newBoundBox.x + newBoundBox.width > stageWidth
|| newBoundBox.y + newBoundBox.height > stageHeight
|| oldBoundBox.width - (newBoundBox.x - oldBoundBox.x) < 25
|| newBoundBox.width < 25
|| oldBoundBox.height - (newBoundBox.y - oldBoundBox.y) < 25
|| newBoundBox.height < 25
) {
return oldBoundBox //
}

Loading…
Cancel
Save