From b9cd57d14819d4fd88ab50f9de8e9a997bf6b198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Ben=C3=ADtez?= Date: Wed, 24 Jun 2026 16:22:37 -0300 Subject: [PATCH] =?UTF-8?q?feat(sprint-6/etapa-1):=20logo=20InQuality=20en?= =?UTF-8?q?=20header=20PDFs=20(p=C3=A1gs=202+)=20+=20whitespace-nowrap=20e?= =?UTF-8?q?ficiencia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/export/pdf-sections-roi.ts | 27 +++------------------------ src/lib/export/pdf-sections.ts | 21 ++------------------- 2 files changed, 5 insertions(+), 43 deletions(-) diff --git a/src/lib/export/pdf-sections-roi.ts b/src/lib/export/pdf-sections-roi.ts index a2c4d94..ae30e9b 100644 --- a/src/lib/export/pdf-sections-roi.ts +++ b/src/lib/export/pdf-sections-roi.ts @@ -45,42 +45,21 @@ export function drawRoiPage1( // ── 5.1 Header denso de página 1 ───────────────────────────────────────────── function _drawDenseHeader( - doc: DocLike, pageW: number, m: number, cW: number, y: number + doc: DocLike, _pageW: number, m: number, cW: number, y: number ): number { - const right = pageW - m - // Izquierda: "InQ ROI" 22pt bold naranja doc.setFont('helvetica', 'bold') doc.setFontSize(22) doc.setTextColor(...C.heroOrange) doc.text('InQ ROI', m, y) - - // Derecha: "UN PRODUCTO DE" 9pt slate-400 - doc.setFont('helvetica', 'normal') - doc.setFontSize(9) - doc.setTextColor(...PDF_COLORS.textDisabled) - doc.text('UN PRODUCTO DE', right, y, { align: 'right' } as Record) y += 9 - // Izquierda: subtítulo 9pt slate-400 (margin-top 4mm ya incluido en line-height) + // Izquierda: subtítulo 9pt slate-400 doc.setFont('helvetica', 'normal') doc.setFontSize(9) doc.setTextColor(...PDF_COLORS.textDisabled) doc.text('ANÁLISIS DE RETORNO DE INVERSIÓN', m, y) - - // Derecha: "InQ" 16pt bold slate-600 - doc.setFont('helvetica', 'bold') - doc.setFontSize(16) - doc.setTextColor(...PDF_COLORS.textSecondary) - doc.text('InQ', right, y, { align: 'right' } as Record) - y += 6 - - // Derecha: "InQuality" 9pt slate-500 - doc.setFont('helvetica', 'normal') - doc.setFontSize(9) - doc.setTextColor(...PDF_COLORS.textTertiary) - doc.text('InQuality', right, y, { align: 'right' } as Record) - y += 10 + y += 16 // Border-bottom naranja 0.8mm doc.setDrawColor(...C.heroOrange) diff --git a/src/lib/export/pdf-sections.ts b/src/lib/export/pdf-sections.ts index 205886e..45c942e 100644 --- a/src/lib/export/pdf-sections.ts +++ b/src/lib/export/pdf-sections.ts @@ -347,10 +347,9 @@ export function drawScenarioPage1( } function _drawScenarioDenseHeader( - doc: DocLike, pageW: number, m: number, cW: number, + doc: DocLike, _pageW: number, m: number, cW: number, tab: 'actual' | 'automatizado', y: number ): number { - const right = pageW - m const subtitle = tab === 'actual' ? 'ANÁLISIS DE COSTOS — ESCENARIO ACTUAL' : 'ANÁLISIS DE COSTOS — ESCENARIO AUTOMATIZADO' @@ -359,29 +358,13 @@ function _drawScenarioDenseHeader( doc.setFontSize(22) doc.setTextColor(..._SC.orange) doc.text('InQ ROI', m, y) - - doc.setFont('helvetica', 'normal') - doc.setFontSize(9) - doc.setTextColor(...PDF_COLORS.textDisabled) - doc.text('UN PRODUCTO DE', right, y, { align: 'right' } as Record) y += 9 doc.setFont('helvetica', 'normal') doc.setFontSize(9) doc.setTextColor(...PDF_COLORS.textDisabled) doc.text(subtitle, m, y) - - doc.setFont('helvetica', 'bold') - doc.setFontSize(16) - doc.setTextColor(...PDF_COLORS.textSecondary) - doc.text('InQ', right, y, { align: 'right' } as Record) - y += 6 - - doc.setFont('helvetica', 'normal') - doc.setFontSize(9) - doc.setTextColor(...PDF_COLORS.textTertiary) - doc.text('InQuality', right, y, { align: 'right' } as Record) - y += 10 + y += 16 doc.setDrawColor(..._SC.orange) doc.setLineWidth(0.8)