From c21e88415dd153a96b184f45d8bb322373c7ff77 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 15 Nov 2023 03:42:37 +0100 Subject: [PATCH] Print: add QR-code to output --- langs/ca.json | 5 +- langs/cs.json | 5 +- langs/de.json | 5 +- langs/en.json | 3 +- langs/nl.json | 5 +- langs/pl.json | 5 +- package-lock.json | 33 ++- package.json | 2 + .../templates/CurrentMapWithHeaderA4.svg | 120 ++++++--- ... => CurrentMapWithHeader_A3_Landscape.svg} | 143 +++++++---- .../CurrentMapWithHeader_A3_Portrait.svg | 243 ++++++++++++++++++ src/UI/DownloadFlow/DownloadPdf.svelte | 17 +- src/Utils/Qr.ts | 26 ++ src/Utils/pngMapCreator.ts | 8 +- src/Utils/svgToPdf.ts | 58 +++-- src/test.ts | 51 +--- 16 files changed, 544 insertions(+), 185 deletions(-) rename public/assets/templates/{CurrentMapWithHeaderA3.svg => CurrentMapWithHeader_A3_Landscape.svg} (61%) create mode 100644 public/assets/templates/CurrentMapWithHeader_A3_Portrait.svg create mode 100644 src/Utils/Qr.ts diff --git a/langs/ca.json b/langs/ca.json index 4178af93c..160df95aa 100644 --- a/langs/ca.json +++ b/langs/ca.json @@ -186,10 +186,7 @@ "includeMetaData": "Incloure metadades (darrer editor, valors calculats, ...)", "licenseInfo": "

Avís de drets de còpia

Les dades proveïdes estan sota ODbL. Es poden reutilitzar de forma gratuïta, però Llegeix sencer l'avís de drets de còpia per més detalls.", "noDataLoaded": "No s'han carregat dades. La baixada estarà disponible aviat", - "pdf": { - "current_view_a3": "Exporta un PDF (A3, vertical) de la vista actual", - "current_view_a4": "Exporta un PDF (A4, horitzontal) de la vista actual" - }, + "pdf": {}, "title": "Descarrega", "uploadGpx": "Pujar la teva traça a OpenStreetMap" }, diff --git a/langs/cs.json b/langs/cs.json index b13b7a81c..d2e244343 100644 --- a/langs/cs.json +++ b/langs/cs.json @@ -186,10 +186,7 @@ "includeMetaData": "Zahrnout metadata (poslední editor, vypočtené hodnoty, ...)", "licenseInfo": "

Upozornění na autorská práva

Poskytovaná data jsou dostupná pod ODbL. Opětovné použití je zdarma pro jakýkoli účel, ale