프로젝트

일반

사용자정보

개정판 233ef333

ID233ef33394c1947626c9a73cd37782b45ac9e28b
상위 b643fcca
하위 a342d378

김태성이(가) 4년 이상 전에 추가함

- markus control angle 기능 수정
- axis 기능

Change-Id: I0e34fe08407dca77c9ccc668595489a99b981065

차이점 보기:

MarkupToPDF/Controls/Line/ArrowArcControl.cs
478 478
        /// <author>humkyung</author>
479 479
        /// <param name="pt"></param>
480 480
        /// <param name="bAxisLocked"></param>
481
        public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed)
481
        public override void OnCreatingMouseMove(Point pt, bool bAxisLocked)
482 482
        {
483 483
            this.isTransOn = false;
484 484
            this.MidPoint = new Point(0, 0);
485 485
            this.EndPoint = pt;
486 486
         
487 487
            Point tmp = this.EndPoint;
488
            CommentAngle = MathSet.returnAngle(this.StartPoint, ref tmp, bShiftKeyPressed);
488
            CommentAngle = MathSet.returnAngle(this.StartPoint, ref tmp, bAxisLocked);
489 489

  
490
            if (bAxisLocked || bShiftKeyPressed)
490
            if (bAxisLocked)
491 491
            {
492 492
                this.EndPoint = tmp;
493 493
            }
......
508 508
        /// <param name="pt"></param>
509 509
        /// <param name="dx"></param>
510 510
        /// <param name="dy"></param>
511
        public override void OnMoveCtrlPoint(Point pt, double dx, double dy)
511
        public override void OnMoveCtrlPoint(Point pt, double dx, double dy, bool bAxisLocked = false)
512 512
        {
513 513
            Point selected = MathSet.getNearPoint((this as IPath).PointSet, pt);
514

  
515
            var tmpPointSet = (this as IPath).PointSet.Where(x => !x.Equals(selected));
516
            Point NearStartpoint = MathSet.getNearPoint(tmpPointSet.ToList(), pt);
517

  
514 518
            selected.X += dx;
515 519
            selected.Y += dy;
520

  
521
            Point tmp = selected;
522

  
523
            CommentAngle = MathSet.returnAngle(NearStartpoint, ref tmp, bAxisLocked);
524

  
525
            if (bAxisLocked)
526
            {
527
                selected = tmp;
528
            }
529

  
516 530
            for (int i = 0; i < (this as IPath).PointSet.Count; i++)
517 531
            {
518 532
                if (pt.Equals((this as IPath).PointSet[i]))

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)