개정판 902faaea
nuget 정리
Change-Id: I8fee2c9138a11bd4b441c0e29dd75d67ea2f63d9
MarkupToPDF/Controls/Polygon/PolygonControl.cs | ||
---|---|---|
514 | 514 |
/// <param name="dy"></param> |
515 | 515 |
public override void OnMoveCtrlPoint(Point pt, double dx, double dy, bool bAxisLocked = false) |
516 | 516 |
{ |
517 |
Point selected = MathSet.getNearPoint((this as IPath).PointSet, pt);
|
|
517 |
var pointSet = (this as IPath).PointSet;
|
|
518 | 518 |
|
519 |
var tmpPointSet = (this as IPath).PointSet.Where(x => !x.Equals(selected)); |
|
520 |
Point NearStartpoint = MathSet.getNearPoint(tmpPointSet.ToList(), pt); |
|
519 |
Point selected = MathSet.getNearPoint(pointSet, pt); |
|
520 |
|
|
521 |
Point NearStartpoint = MathSet.getNearPoint(pointSet, pt); |
|
522 |
|
|
523 |
var tmpPointSet = pointSet.Select((x,inx)=> new { x,inx}); |
|
524 |
|
|
525 |
var selectPoint = tmpPointSet.Where(x => x.x.Equals(pt)); |
|
526 |
|
|
527 |
if(selectPoint.Count() > 0) |
|
528 |
{ |
|
529 |
if (tmpPointSet.Count() > selectPoint.First().inx + 1) |
|
530 |
{ |
|
531 |
NearStartpoint = pointSet[selectPoint.First().inx + 1]; |
|
532 |
} |
|
533 |
else |
|
534 |
{ |
|
535 |
NearStartpoint = pointSet[selectPoint.First().inx - 1]; |
|
536 |
} |
|
537 |
} |
|
521 | 538 |
|
522 | 539 |
selected.X += dx; |
523 | 540 |
selected.Y += dy; |
내보내기 Unified diff