From 1ac2a476d29af5945eb10a601c5d7fa5502b43b3 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 9 Sep 2025 16:55:34 +0200 Subject: [PATCH] refactor(DocumentReceiverElementDto): remove Top and Left-properties --- .../Dto/DocumentReceiverElementDto.cs | 10 ---------- EnvelopeGenerator.Web/wwwroot/js/annotation.js | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/EnvelopeGenerator.Application/Dto/DocumentReceiverElementDto.cs b/EnvelopeGenerator.Application/Dto/DocumentReceiverElementDto.cs index d0aef851..91d34b91 100644 --- a/EnvelopeGenerator.Application/Dto/DocumentReceiverElementDto.cs +++ b/EnvelopeGenerator.Application/Dto/DocumentReceiverElementDto.cs @@ -82,14 +82,4 @@ public class DocumentReceiverElementDto /// Gets or sets the timestamp when the element was last changed, if applicable. /// public DateTime? ChangedWhen { get; set; } - - /// - /// Gets or sets the top position of the element (in layout terms). - /// - public double Top { get; set; } - - /// - /// Gets or sets the left position of the element (in layout terms). - /// - public double Left { get; set; } } \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/js/annotation.js b/EnvelopeGenerator.Web/wwwroot/js/annotation.js index c5ddf54f..c247a4c4 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/annotation.js +++ b/EnvelopeGenerator.Web/wwwroot/js/annotation.js @@ -3,7 +3,7 @@ async function createAnnotations(document, instance) { const signatures = []; for(var element of document.elements) { - const annotParams = await getAnnotationParams(element.left, element.top); + const annotParams = await getAnnotationParams(element.x, element.y); const page = element.page - 1 //background