implement
This commit is contained in:
11
dotnet/AipsCore/Domain/Models/Shape/Sub/Arrow/Arrow.Move.cs
Normal file
11
dotnet/AipsCore/Domain/Models/Shape/Sub/Arrow/Arrow.Move.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Arrow;
|
||||
|
||||
public partial class Arrow
|
||||
{
|
||||
public override void Move(int newPositionX, int newPositionY)
|
||||
{
|
||||
EndPosition.X += newPositionX - Position.X;
|
||||
EndPosition.Y += newPositionY - Position.Y;
|
||||
base.Move(newPositionX, newPositionY);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Arrow;
|
||||
|
||||
public class Arrow : Shape
|
||||
public partial class Arrow : Shape
|
||||
{
|
||||
public Position EndPosition { get; private set; }
|
||||
public Thickness Thickness { get; private set; }
|
||||
|
||||
11
dotnet/AipsCore/Domain/Models/Shape/Sub/Line/Line.Move.cs
Normal file
11
dotnet/AipsCore/Domain/Models/Shape/Sub/Line/Line.Move.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Line;
|
||||
|
||||
public partial class Line
|
||||
{
|
||||
public override void Move(int newPositionX, int newPositionY)
|
||||
{
|
||||
EndPosition.X += newPositionX - Position.X;
|
||||
EndPosition.Y += newPositionY - Position.Y;
|
||||
base.Move(newPositionX, newPositionY);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Line;
|
||||
|
||||
public class Line : Shape
|
||||
public partial class Line : Shape
|
||||
{
|
||||
public Position EndPosition { get; private set; }
|
||||
public Thickness Thickness { get; private set; }
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Rectangle;
|
||||
|
||||
public partial class Rectangle
|
||||
{
|
||||
public override void Move(int newPositionX, int newPositionY)
|
||||
{
|
||||
EndPosition.X += newPositionX - Position.X;
|
||||
EndPosition.Y += newPositionY - Position.Y;
|
||||
base.Move(newPositionX, newPositionY);
|
||||
}
|
||||
}
|
||||
@@ -6,11 +6,11 @@ using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.Rectangle;
|
||||
|
||||
public class Rectangle : Shape
|
||||
public partial class Rectangle : Shape
|
||||
{
|
||||
public override ShapeType ShapeType => ShapeType.Rectangle;
|
||||
|
||||
public Position EndPosition { get; }
|
||||
public Position EndPosition { get; set; }
|
||||
|
||||
public Thickness BorderThickness { get; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user