feat(Annotation): marginX in left und marginY in top umbenannt.
This commit is contained in:
@@ -9,24 +9,24 @@ public class Annotation
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Layout
|
#region Layout
|
||||||
internal double _marginX = default;
|
internal double _left = default;
|
||||||
|
|
||||||
internal double _marginY = default;
|
internal double _top = default;
|
||||||
|
|
||||||
internal double _width = default;
|
internal double _width = default;
|
||||||
|
|
||||||
internal double _height = default;
|
internal double _height = default;
|
||||||
|
|
||||||
public double MarginX
|
public double Left
|
||||||
{
|
{
|
||||||
get => _marginX;
|
get => _left;
|
||||||
init => _marginX = value;
|
init => _left = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double MarginY
|
public double Top
|
||||||
{
|
{
|
||||||
get => _marginY;
|
get => _top;
|
||||||
init => _marginY = value;
|
init => _top = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Width
|
public double Width
|
||||||
@@ -43,15 +43,15 @@ public class Annotation
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Pos
|
#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
|
#endregion
|
||||||
|
|
||||||
#region Boundary
|
#region Boundary
|
||||||
public double HorBoundary => MarginX + Width;
|
public double HorBoundary => Left + Width;
|
||||||
|
|
||||||
public double VerBoundary => MarginY + Height;
|
public double VerBoundary => Top + Height;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region BoundAnnot
|
#region BoundAnnot
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ public class AnnotationParams: Annotation
|
|||||||
foreach (var name in _annots.Keys)
|
foreach (var name in _annots.Keys)
|
||||||
{
|
{
|
||||||
#region set default values
|
#region set default values
|
||||||
if (_annots[name]._marginX == default)
|
if (_annots[name]._left == default)
|
||||||
_annots[name]._marginX = MarginX;
|
_annots[name]._left = Left;
|
||||||
|
|
||||||
if (_annots[name]._marginY == default)
|
if (_annots[name]._top == default)
|
||||||
_annots[name]._marginY = MarginY;
|
_annots[name]._top = Top;
|
||||||
|
|
||||||
if (_annots[name]._width == default)
|
if (_annots[name]._width == default)
|
||||||
_annots[name]._width = Width;
|
_annots[name]._width = Width;
|
||||||
|
|||||||
Reference in New Issue
Block a user