atr-components 0.2.230 → 0.2.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -221,7 +221,7 @@ class ToolsUtil {
221
221
  let start = pointsArr[0];
222
222
  let end = pointsArr[pointsArr.length - 1];
223
223
  //如果数组首尾没有相连,手动添加
224
- pointsArr = start.x1 != end.x1 || start.y1 != start.y1 ? pointsArr.concat(start) : pointsArr;
224
+ pointsArr = start.x1 != end.x1 || start.y1 != end.y1 ? pointsArr.concat(start) : pointsArr;
225
225
  //射线选取Y坐标不变,x正方向
226
226
  pointsArr.forEach((item, index) => {
227
227
  if (index == pointsArr.length - 1
@@ -238,7 +238,7 @@ class ToolsUtil {
238
238
  return;
239
239
  }
240
240
  //判断射线重合并且点在边上
241
- if ((startY == endY)
241
+ if ((startY == endY == py)
242
242
  && ((px > endX && px < startX
243
243
  || (px < endX && px > startX)))) {
244
244
  inRect = true;