From 8b505ae39a33c5779bb87f5d1e3d161c96d74f64 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Apr 2025 22:59:45 +0200 Subject: [PATCH] =?UTF-8?q?feat(annotations):=20verbessertes=20Styling=20f?= =?UTF-8?q?=C3=BCr=20Hintergrund-Anmerkungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Hintergrundfarbe der Hintergrund-Anmerkungen auf einen benutzerdefinierten hellen Ton geändert - Unterstrichener Rahmenstil mit spezifischer Farbe und Breite hinzugefügt - Blendmodus von 'multiply' zu 'normal' vereinheitlicht für bessere Konsistenz - Visuelle Hierarchie der Anmerkungselemente verbessert --- .../wwwroot/js/annotation.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/EnvelopeGenerator.Web/wwwroot/js/annotation.js b/EnvelopeGenerator.Web/wwwroot/js/annotation.js index 2345cf59..d2fcde76 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/annotation.js +++ b/EnvelopeGenerator.Web/wwwroot/js/annotation.js @@ -13,10 +13,13 @@ async function createAnnotations(document, instance) { id: id_background, pageIndex: page, formFieldName: id_background, - backgroundColor: PSPDFKit.Color.WHITE, + backgroundColor: new PSPDFKit.Color({ r: 222, g: 220, b: 215 }), blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.background), fontSize: 8, + borderStyle: 'underline', + borderWidth: 4, + borderColor: new PSPDFKit.Color({ r: 204, g: 202, b: 198 }) }); const formFieldBackground = new PSPDFKit.FormFields.ButtonFormField({ @@ -37,7 +40,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id, backgroundColor: PSPDFKit.Color.LIGHT_YELLOW, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.signature), }) @@ -53,7 +56,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_position, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.position), fontSize: 8 }) @@ -72,7 +75,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_city, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.city), fontSize: 8 }) @@ -91,7 +94,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_date, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.date), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -121,7 +124,7 @@ async function createAnnotations(document, instance) { id: id_date_label, pageIndex: page, formFieldName: id_date_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.datelabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -143,7 +146,7 @@ async function createAnnotations(document, instance) { id: id_city_label, pageIndex: page, formFieldName: id_city_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.citylabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -165,7 +168,7 @@ async function createAnnotations(document, instance) { id: id_position_label, pageIndex: page, formFieldName: id_position_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.positionlabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT,