feat(IAnnotation): Erstellt, um die grundlegenden Eigenschaften einer Annotation zu behandeln.
- implementiert in Annotation und Hintergrund
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace EnvelopeGenerator.Web.Models.Annotation;
|
namespace EnvelopeGenerator.Web.Models.Annotation;
|
||||||
|
|
||||||
public record Annotation
|
public record Annotation : IAnnotation
|
||||||
{
|
{
|
||||||
public required string Name { get; init; }
|
public required string Name { get; init; }
|
||||||
|
|
||||||
|
|||||||
@@ -2,16 +2,18 @@
|
|||||||
|
|
||||||
namespace EnvelopeGenerator.Web.Models.Annotation;
|
namespace EnvelopeGenerator.Web.Models.Annotation;
|
||||||
|
|
||||||
public class Background
|
public record Background : IAnnotation
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int Margin { get; init; }
|
public double Margin { get; init; }
|
||||||
|
|
||||||
|
public string Name { get; } = "Background";
|
||||||
|
|
||||||
public double? Width { get; set; }
|
public double? Width { get; set; }
|
||||||
|
|
||||||
public double? Height { 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; }
|
||||||
}
|
}
|
||||||
|
|||||||
14
EnvelopeGenerator.Web/Models/Annotation/IAnnotation.cs
Normal file
14
EnvelopeGenerator.Web/Models/Annotation/IAnnotation.cs
Normal 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; }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user