feat(IAnnotation): Erstellt, um die grundlegenden Eigenschaften einer Annotation zu behandeln.
- implementiert in Annotation und Hintergrund
This commit is contained in:
parent
32be5077f9
commit
e95d1d782e
@ -2,7 +2,7 @@
|
||||
|
||||
namespace EnvelopeGenerator.Web.Models.Annotation;
|
||||
|
||||
public record Annotation
|
||||
public record Annotation : IAnnotation
|
||||
{
|
||||
public required string Name { get; init; }
|
||||
|
||||
|
||||
@ -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; }
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user