tidy up project structure and normalize formatting

This commit is contained in:
Your Name
2026-02-19 22:43:14 +02:00
parent 81f9386136
commit 5e313f3cea
29 changed files with 385 additions and 11624 deletions

View File

@@ -220,7 +220,7 @@ function pageBreak(doc: jsPDF, y: number, threshold: number = 262): boolean {
// ===========================================================================
// 1. CLEAN Swiss minimalism, single blue accent
// 1. CLEAN - Swiss minimalism, single blue accent
// ===========================================================================
function renderClean(
@@ -316,7 +316,7 @@ function renderClean(
// ===========================================================================
// 2. PROFESSIONAL Navy header band, corporate polish
// 2. PROFESSIONAL - Navy header band, corporate polish
// ===========================================================================
function renderProfessional(
@@ -402,7 +402,7 @@ function renderProfessional(
// ===========================================================================
// 3. BOLD Large indigo block with oversized typography
// 3. BOLD - Large indigo block with oversized typography
// ===========================================================================
function renderBold(
@@ -475,7 +475,7 @@ function renderBold(
drawHeaderText(doc, layout, y, rowH, c.tableHeaderText, padX)
y += rowH
// Rows no borders, no stripes, generous height
// Rows - no borders, no stripes, generous height
for (const item of items) {
if (pageBreak(doc, y)) y = 20
y = drawItemRow(doc, item, layout, y, rowH, c.bodyText, padX)
@@ -494,7 +494,7 @@ function renderBold(
// ===========================================================================
// 4. MINIMAL Pure monochrome, everything centered
// 4. MINIMAL - Pure monochrome, everything centered
// ===========================================================================
function renderMinimal(
@@ -562,7 +562,7 @@ function renderMinimal(
drawHeaderText(doc, layout, y, rowH, c.primary, padX)
y += rowH
// Rows whitespace separation only
// Rows - whitespace separation only
for (const item of items) {
if (pageBreak(doc, y)) y = 20
y = drawItemRow(doc, item, layout, y, rowH, c.bodyText, padX)
@@ -601,7 +601,7 @@ function renderMinimal(
// ===========================================================================
// 5. CLASSIC Traditional layout, burgundy accents, bordered grid
// 5. CLASSIC - Traditional layout, burgundy accents, bordered grid
// ===========================================================================
function renderClassic(
@@ -712,7 +712,7 @@ function renderClassic(
// ===========================================================================
// 6. MODERN Teal accents, borderless, teal header text
// 6. MODERN - Teal accents, borderless, teal header text
// ===========================================================================
function renderModern(
@@ -837,7 +837,7 @@ function renderModern(
// ===========================================================================
// 7. ELEGANT Gold double-rule accents, centered layout
// 7. ELEGANT - Gold double-rule accents, centered layout
// ===========================================================================
function renderElegant(
@@ -960,7 +960,7 @@ function renderElegant(
// ===========================================================================
// 8. CREATIVE Purple sidebar, card-style rows
// 8. CREATIVE - Purple sidebar, card-style rows
// ===========================================================================
function renderCreative(
@@ -1058,7 +1058,7 @@ function renderCreative(
// ===========================================================================
// 9. COMPACT Data-dense layout with tight spacing
// 9. COMPACT - Data-dense layout with tight spacing
// ===========================================================================
function renderCompact(
@@ -1184,7 +1184,7 @@ function renderCompact(
// ===========================================================================
// 10. DARK Full dark background with cyan highlights
// 10. DARK - Full dark background with cyan highlights
// ===========================================================================
function renderDark(
@@ -1307,7 +1307,7 @@ function renderDark(
// ===========================================================================
// 11. VIBRANT Coral header band, warm tones
// 11. VIBRANT - Coral header band, warm tones
// ===========================================================================
function renderVibrant(
@@ -1390,7 +1390,7 @@ function renderVibrant(
// ===========================================================================
// 12. CORPORATE Blue header with info bar below
// 12. CORPORATE - Blue header with info bar below
// ===========================================================================
function renderCorporate(
@@ -1482,7 +1482,7 @@ function renderCorporate(
// ===========================================================================
// 13. FRESH Oversized watermark invoice number
// 13. FRESH - Oversized watermark invoice number
// ===========================================================================
function renderFresh(
@@ -1581,7 +1581,7 @@ function renderFresh(
// ===========================================================================
// 14. NATURAL Warm beige full-page background, terracotta accents
// 14. NATURAL - Warm beige full-page background, terracotta accents
// ===========================================================================
function renderNatural(
@@ -1684,7 +1684,7 @@ function renderNatural(
// ===========================================================================
// 15. STATEMENT Total-forward design, hero amount top-right
// 15. STATEMENT - Total-forward design, hero amount top-right
// ===========================================================================
function renderStatement(