From db84abf0e7713bb249b3277f55075286d0f5b34b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 20 Mar 2025 14:58:41 +0100 Subject: [PATCH] =?UTF-8?q?feat(Anmerkung):=20JsonIgnore-Attribut=20f?= =?UTF-8?q?=C3=BCr=20nicht-clientbezogene=20Entit=C3=A4ten=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EnvelopeGenerator.Web/Models/Annotation.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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