feat(AnnotationParams): Erstellt, um Annotationen über Appsettings zu konfigurieren.

This commit is contained in:
Developer 02 2025-03-20 09:22:36 +01:00
parent 6c222ca9ad
commit df019a7243
4 changed files with 17 additions and 6 deletions

View File

@ -1,8 +1,6 @@
namespace EnvelopeGenerator.Web.Models;
public record Annotation(
string Id,
string? HorBoundAnnotId = null, string? VerBoundAnnotId = null)
public record Annotation(string? HorBoundAnnotId = null, string? VerBoundAnnotId = null)
{
#region Layout
internal double _marginX = default;
@ -51,8 +49,8 @@ public record Annotation(
#endregion
#region BoundAnnot
public Annot? HorBoundAnnot { get; set; }
public Annotation? HorBoundAnnot { get; set; }
public Annot? VerBoundAnnot { get; set; }
public Annotation? VerBoundAnnot { get; set; }
#endregion
};

View File

@ -0,0 +1,6 @@
namespace EnvelopeGenerator.Web.Models;
public class AnnotationParams
{
public required Dictionary<string, Annotation> Annotations { get; init; }
}

View File

@ -163,6 +163,8 @@ try
builder.ConfigureBySection<CustomImages>();
builder.ConfigureBySection<AnnotationParams>();
var app = builder.Build();
// Configure the HTTP request pipeline.

View File

@ -149,5 +149,10 @@
"EnvelopeReceiverReadOnly": [ "TBSIG_ENVELOPE_RECEIVER_READ_ONLY_UPD" ],
"Receiver": []
},
"MainPageTitle": null
"MainPageTitle": null,
"AnnotationParams": {
"Annotations": {
}
}
}