개정판 40b3ce25
issue #754 Arc Arrow Line Control 추가
KCOM/Events/Move.cs | ||
---|---|---|
232 | 232 |
break; |
233 | 233 |
case (ControlType.ArcArrow): |
234 | 234 |
{ |
235 |
s_point.X = Math.Min((control as ArcControl).StartPoint.X, (control as ArcControl).EndPoint.X);
|
|
236 |
s_point.X = Math.Min((control as ArcControl).MidPoint.X, s_point.X); |
|
237 |
s_point.Y = Math.Min((control as ArcControl).StartPoint.Y, (control as ArcControl).EndPoint.Y);
|
|
238 |
s_point.Y = Math.Min((control as ArcControl).MidPoint.Y, s_point.Y); |
|
239 |
e_point.X = Math.Max((control as ArcControl).StartPoint.X, (control as ArcControl).EndPoint.X);
|
|
240 |
e_point.X = Math.Max((control as ArcControl).MidPoint.X, e_point.X); |
|
241 |
e_point.Y = Math.Max((control as ArcControl).StartPoint.Y, (control as ArcControl).EndPoint.Y);
|
|
242 |
e_point.Y = Math.Max((control as ArcControl).MidPoint.Y, e_point.Y); |
|
235 |
s_point.X = Math.Min((control as ArrowArcControl).StartPoint.X, (control as ArrowArcControl).EndPoint.X);
|
|
236 |
s_point.X = Math.Min((control as ArrowArcControl).MidPoint.X, s_point.X);
|
|
237 |
s_point.Y = Math.Min((control as ArrowArcControl).StartPoint.Y, (control as ArrowArcControl).EndPoint.Y);
|
|
238 |
s_point.Y = Math.Min((control as ArrowArcControl).MidPoint.Y, s_point.Y);
|
|
239 |
e_point.X = Math.Max((control as ArrowArcControl).StartPoint.X, (control as ArrowArcControl).EndPoint.X);
|
|
240 |
e_point.X = Math.Max((control as ArrowArcControl).MidPoint.X, e_point.X);
|
|
241 |
e_point.Y = Math.Max((control as ArrowArcControl).StartPoint.Y, (control as ArrowArcControl).EndPoint.Y);
|
|
242 |
e_point.Y = Math.Max((control as ArrowArcControl).MidPoint.Y, e_point.Y);
|
|
243 | 243 |
rectSize = e_point - s_point; |
244 | 244 |
} |
245 | 245 |
break; |
내보내기 Unified diff