개정판 39f208de
ArrowTextControl 수정
- 화살표 Mid 포인트가 가끔 잘못 나오는 경우가 있음
Change-Id: I4b5ff997e7d284eb37e2e1de01849f176d3ef7ea
MarkupToPDF/Controls/Text/ArrowTextControl.cs | ||
---|---|---|
1382 | 1382 |
CenterY = this.CenterY, |
1383 | 1383 |
}; |
1384 | 1384 |
|
1385 |
System.Diagnostics.Debug.WriteLine($"base TextBox center X : {this.CenterX} Y : {this.CenterY} "); |
|
1386 |
|
|
1387 |
|
|
1388 |
|
|
1389 | 1385 |
Base_ArrowSubPath.RenderTransform = new RotateTransform |
1390 | 1386 |
{ |
1391 | 1387 |
Angle = this.VisualPageAngle, |
... | ... | |
1741 | 1737 |
double _dx = dx * cos - dy * sin; |
1742 | 1738 |
double _dy = dx * sin + dy * cos; |
1743 | 1739 |
|
1740 |
//var transform = new RotateTransform() { Angle = CommentAngle, CenterX = dx, CenterY = dy }; |
|
1741 |
//var transformedPoint = transform.Transform(pt); |
|
1742 |
//selected = transformedPoint; |
|
1743 |
|
|
1744 | 1744 |
selected.X += _dx; |
1745 | 1745 |
selected.Y += _dy; |
1746 | 1746 |
} |
... | ... | |
1750 | 1750 |
selected.Y += dy; |
1751 | 1751 |
} |
1752 | 1752 |
|
1753 |
int i = 0;
|
|
1753 |
int i = 0; |
|
1754 | 1754 |
for (i = 0; i < (this as IPath).PointSet.Count; i++) |
1755 | 1755 |
{ |
1756 | 1756 |
if (pt.Equals((this as IPath).PointSet[i])) break; |
내보내기 Unified diff