feat(Annotation): marginX in left und marginY in top umbenannt.

This commit is contained in:
Developer 02
2025-03-20 10:27:53 +01:00
parent 8a6a11c1bc
commit b6563d71b0
2 changed files with 16 additions and 16 deletions

View File

@@ -9,24 +9,24 @@ public class Annotation
#endregion
#region Layout
internal double _marginX = default;
internal double _left = default;
internal double _marginY = default;
internal double _top = default;
internal double _width = default;
internal double _height = default;
public double MarginX
public double Left
{
get => _marginX;
init => _marginX = value;
get => _left;
init => _left = value;
}
public double MarginY
public double Top
{
get => _marginY;
init => _marginY = value;
get => _top;
init => _top = value;
}
public double Width
@@ -43,15 +43,15 @@ public class Annotation
#endregion
#region Pos
public double PosX => MarginX + (HorBoundAnnot?.HorBoundary ?? 0);
public double PosX => Left + (HorBoundAnnot?.HorBoundary ?? 0);
public double PosY => MarginY + (VerBoundAnnot?.VerBoundary ?? 0);
public double PosY => Top + (VerBoundAnnot?.VerBoundary ?? 0);
#endregion
#region Boundary
public double HorBoundary => MarginX + Width;
public double HorBoundary => Left + Width;
public double VerBoundary => MarginY + Height;
public double VerBoundary => Top + Height;
#endregion
#region BoundAnnot