refactor(Annotation): Umbenennen von left in marginLeft, top in marginTop, posX in Left und posY in top für eine CSS-ähnlichere Benennung
This commit is contained in:
@@ -13,24 +13,24 @@ public record Annotation
|
||||
#endregion
|
||||
|
||||
#region Layout
|
||||
internal double _left = default;
|
||||
internal double _marginLeft = default;
|
||||
|
||||
internal double _top = default;
|
||||
internal double _marginTop = default;
|
||||
|
||||
internal double _width = default;
|
||||
|
||||
internal double _height = default;
|
||||
|
||||
public double Left
|
||||
|
||||
public double MarginLeft
|
||||
{
|
||||
get => _left;
|
||||
init => _left = value;
|
||||
get => _marginLeft;
|
||||
init => _marginLeft = value;
|
||||
}
|
||||
|
||||
public double Top
|
||||
public double MarginTop
|
||||
{
|
||||
get => _top;
|
||||
init => _top = value;
|
||||
get => _marginTop;
|
||||
init => _marginTop = value;
|
||||
}
|
||||
|
||||
public double Width
|
||||
@@ -46,16 +46,16 @@ public record Annotation
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Pos
|
||||
public double PosX => Left + (HorBoundAnnot?.HorBoundary ?? 0);
|
||||
#region Position
|
||||
public double Left => MarginLeft + (HorBoundAnnot?.HorBoundary ?? 0);
|
||||
|
||||
public double PosY => Top + (VerBoundAnnot?.VerBoundary ?? 0);
|
||||
public double Top => MarginTop + (VerBoundAnnot?.VerBoundary ?? 0);
|
||||
#endregion
|
||||
|
||||
#region Boundary
|
||||
public double HorBoundary => Left + Width;
|
||||
public double HorBoundary => MarginLeft + Width;
|
||||
|
||||
public double VerBoundary => Top + Height;
|
||||
public double VerBoundary => MarginTop + Height;
|
||||
#endregion
|
||||
|
||||
#region BoundAnnot
|
||||
|
||||
Reference in New Issue
Block a user