feat(Annotation): marginX in left und marginY in top umbenannt.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user