feat(Hintergrund): Locate add, um die Position des Hintergrunds anhand anderer Anmerkungen zu berechnen.

- Standort des Hintergrunds zu Anmerkungen hinzugefügt
This commit is contained in:
Developer 02
2025-04-23 18:13:46 +02:00
parent e72ea534e5
commit d75da655d2
4 changed files with 57 additions and 19 deletions

View File

@@ -0,0 +1,8 @@
namespace EnvelopeGenerator.Web.Models.Annotation;
public static class Extensions
{
public static double GetRight(this IAnnotation annotation) => annotation.Left + annotation?.Width ?? 0;
public static double GetBottom(this IAnnotation annotation) => annotation.Top + annotation?.Height ?? 0;
}