feat(IAnnotation): Erstellt, um die grundlegenden Eigenschaften einer Annotation zu behandeln.

- implementiert in Annotation und Hintergrund
This commit is contained in:
Developer 02 2025-04-23 16:50:10 +02:00
parent 32be5077f9
commit e95d1d782e
3 changed files with 21 additions and 5 deletions

View File

@ -2,7 +2,7 @@
namespace EnvelopeGenerator.Web.Models.Annotation;
public record Annotation
public record Annotation : IAnnotation
{
public required string Name { get; init; }

View File

@ -2,16 +2,18 @@
namespace EnvelopeGenerator.Web.Models.Annotation;
public class Background
public record Background : IAnnotation
{
[JsonIgnore]
public int Margin { get; init; }
public double Margin { get; init; }
public string Name { get; } = "Background";
public double? Width { get; set; }
public double? Height { get; set; }
public double? Left { get; set; }
public double Left { get; set; }
public double? Top { get; set; }
public double Top { get; set; }
}

View File

@ -0,0 +1,14 @@
namespace EnvelopeGenerator.Web.Models.Annotation;
public interface IAnnotation
{
string Name { get; }
double? Width { get; }
double? Height { get; }
double Left { get; }
double Top { get; }
}