feat(Annotation): marginX in left und marginY in top umbenannt.
This commit is contained in:
parent
8a6a11c1bc
commit
b6563d71b0
@ -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
|
||||
|
||||
@ -14,11 +14,11 @@ public class AnnotationParams: Annotation
|
||||
foreach (var name in _annots.Keys)
|
||||
{
|
||||
#region set default values
|
||||
if (_annots[name]._marginX == default)
|
||||
_annots[name]._marginX = MarginX;
|
||||
if (_annots[name]._left == default)
|
||||
_annots[name]._left = Left;
|
||||
|
||||
if (_annots[name]._marginY == default)
|
||||
_annots[name]._marginY = MarginY;
|
||||
if (_annots[name]._top == default)
|
||||
_annots[name]._top = Top;
|
||||
|
||||
if (_annots[name]._width == default)
|
||||
_annots[name]._width = Width;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user