개정판 b643fcca
- angle event 수정
- select에서 shift키 이벤트 안됨
Change-Id: I17decc4b6ab1f91e7b6ae18751acf74811e5d7a7
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
164 | 164 |
#region 공용 인스턴스 |
165 | 165 |
public List<AdornerMember> Members { get; } = new List<AdornerMember>(); |
166 | 166 |
public Dictionary<Thumb, DragData> _dragData = new Dictionary<Thumb, DragData>(); |
167 |
public double AngleValue = 0; |
|
167 |
|
|
168 |
private double angleValue; |
|
169 |
|
|
170 |
public double AngleValue { get => angleValue; |
|
171 |
set |
|
172 |
{ |
|
173 |
if(angleValue != value) |
|
174 |
{ |
|
175 |
angleValue = value; |
|
176 |
} |
|
177 |
} |
|
178 |
} |
|
179 |
|
|
180 |
|
|
168 | 181 |
public bool IsTextAngle = false; |
169 | 182 |
public Rect BorderSize { get; set; } |
170 | 183 |
public bool TextCompensation = false; |
... | ... | |
321 | 334 |
} |
322 | 335 |
} |
323 | 336 |
|
324 |
#endregion |
|
325 |
#region 메서드 |
|
326 |
public Rect getAdornerSize() |
|
337 |
#endregion
|
|
338 |
#region 메서드
|
|
339 |
public Rect getAdornerSize()
|
|
327 | 340 |
{ |
328 | 341 |
return BorderSize; |
329 | 342 |
} |
... | ... | |
632 | 645 |
foreach (var item in this.Members) |
633 | 646 |
{ |
634 | 647 |
UIElement currentControl = (item as AdornerMember).DrawingData; |
648 |
|
|
649 |
Point startP = (currentControl as IPath).StartPoint; |
|
650 |
Point endP = (currentControl as IPath).EndPoint; |
|
651 |
|
|
652 |
ViewerDataModel.Instance.Angle = MathSet.returnAngle(startP, ref endP, ViewerDataModel.Instance.IsPressShift); |
|
653 |
|
|
635 | 654 |
if (item.DrawingData.GetType().Name == "TextControl") |
636 | 655 |
{ |
637 | 656 |
double textControlWidth; |
내보내기 Unified diff