개정판 49a6d7c3
Fix: ImgControl, SignControl, SymControl, SymControlN 생성 시 ShiftKey 적용
Change-Id: Ifedc7a3ef03bc8c11a00ed8cce4eff99f8a14d65
MarkupToPDF/Controls/Etc/SymControlN.cs | ||
---|---|---|
394 | 394 |
this.Base_ViewBox.Child = ob; |
395 | 395 |
} |
396 | 396 |
|
397 |
this.EndPoint = pt; |
|
398 |
this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y); |
|
399 |
this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y); |
|
397 |
if (bAxisLocked) |
|
398 |
{ |
|
399 |
double _dx = pt.X - this.StartPoint.X; |
|
400 |
double _dy = pt.Y - this.StartPoint.Y; |
|
401 |
double dist = Math.Max(Math.Abs(_dx), Math.Abs(_dy)); |
|
402 |
var dir = new Vector(_dx, _dy); |
|
403 |
dir.Normalize(); |
|
404 |
|
|
405 |
this.LeftBottomPoint = new Point(this.StartPoint.X, this.StartPoint.Y + (dir.Y > 0 ? 1 : -1) * dist); |
|
406 |
this.TopRightPoint = new Point(this.StartPoint.X + (dir.X > 0 ? 1 : -1) * dist, this.StartPoint.Y); |
|
407 |
this.EndPoint = new Point(this.TopRightPoint.X, this.LeftBottomPoint.Y); |
|
408 |
} |
|
409 |
else |
|
410 |
{ |
|
411 |
this.EndPoint = pt; |
|
412 |
this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y); |
|
413 |
this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y); |
|
414 |
} |
|
400 | 415 |
|
401 | 416 |
this.PointSet = new List<Point> |
402 | 417 |
{ |
내보내기 Unified diff