From d80fa0b023ba37a2c820f68be035c70c87c1fd96 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Apr 2025 15:38:14 +0200 Subject: [PATCH] feat(Background): Add Width, Height, Top and Left properties. - Add JsonIgnroe property to BackGround --- .../Models/Annotation/Background.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Web/Models/Annotation/Background.cs b/EnvelopeGenerator.Web/Models/Annotation/Background.cs index 57220365..b9143f5b 100644 --- a/EnvelopeGenerator.Web/Models/Annotation/Background.cs +++ b/EnvelopeGenerator.Web/Models/Annotation/Background.cs @@ -1,6 +1,17 @@ -namespace EnvelopeGenerator.Web.Models.Annotation; +using System.Text.Json.Serialization; + +namespace EnvelopeGenerator.Web.Models.Annotation; public class Background { + [JsonIgnore] public int Margin { get; init; } + + public double? Width { get; set; } + + public double? Height { get; set; } + + public double? Left { get; set; } + + public double? Top { get; set; } }