diff --git a/EnvelopeGenerator.Web/Models/Annotation.cs b/EnvelopeGenerator.Web/Models/Annotation.cs index e909eddf..b4774cb1 100644 --- a/EnvelopeGenerator.Web/Models/Annotation.cs +++ b/EnvelopeGenerator.Web/Models/Annotation.cs @@ -7,8 +7,10 @@ public record Annotation public required string Name { get; init; } #region Bound Annotation + [JsonIgnore] public string? HorBoundAnnotName { get; init; } + [JsonIgnore] public string? VerBoundAnnotName { get; init; } #endregion @@ -20,13 +22,15 @@ public record Annotation internal double _width = default; internal double _height = default; - + + [JsonIgnore] public double MarginLeft { get => _marginLeft; init => _marginLeft = value; } + [JsonIgnore] public double MarginTop { get => _marginTop; @@ -53,8 +57,10 @@ public record Annotation #endregion #region Boundary + [JsonIgnore] public double HorBoundary => MarginLeft + Width; + [JsonIgnore] public double VerBoundary => MarginTop + Height; #endregion