feat(Anmerkung): JsonIgnore-Attribut für nicht-clientbezogene Entitäten hinzugefügt

This commit is contained in:
Developer 02 2025-03-20 14:58:41 +01:00
parent 14be46d3d6
commit db84abf0e7

View File

@ -7,8 +7,10 @@ public record Annotation
public required string Name { get; init; } public required string Name { get; init; }
#region Bound Annotation #region Bound Annotation
[JsonIgnore]
public string? HorBoundAnnotName { get; init; } public string? HorBoundAnnotName { get; init; }
[JsonIgnore]
public string? VerBoundAnnotName { get; init; } public string? VerBoundAnnotName { get; init; }
#endregion #endregion
@ -20,13 +22,15 @@ public record Annotation
internal double _width = default; internal double _width = default;
internal double _height = default; internal double _height = default;
[JsonIgnore]
public double MarginLeft public double MarginLeft
{ {
get => _marginLeft; get => _marginLeft;
init => _marginLeft = value; init => _marginLeft = value;
} }
[JsonIgnore]
public double MarginTop public double MarginTop
{ {
get => _marginTop; get => _marginTop;
@ -53,8 +57,10 @@ public record Annotation
#endregion #endregion
#region Boundary #region Boundary
[JsonIgnore]
public double HorBoundary => MarginLeft + Width; public double HorBoundary => MarginLeft + Width;
[JsonIgnore]
public double VerBoundary => MarginTop + Height; public double VerBoundary => MarginTop + Height;
#endregion #endregion