From 4ef76537a1567eef1fb2b5c102be4295edc74ee4 Mon Sep 17 00:00:00 2001 From: Simon Reinisch Date: Wed, 1 May 2024 14:58:16 +0200 Subject: [PATCH] feat: add download button to dashboard sankey chart closes #36 --- .../base/context-menu/ContextMenu.vue | 1 + src/app/components/charts/echart/EChart.vue | 32 ++++++++- .../charts/sankey-chart/SankeyChart.vue | 66 ++++++++++++++++++- .../navigation/tools/export/ExportButton.vue | 4 +- src/i18n/locales/de.json | 4 +- src/i18n/locales/en.json | 4 +- src/utils/cssVariables.ts | 26 ++++++++ src/utils/downloadFile.ts | 15 +++++ src/utils/index.ts | 2 +- src/utils/saveFile.ts | 12 ---- src/utils/svgToPNG.ts | 25 +++++++ 11 files changed, 170 insertions(+), 21 deletions(-) create mode 100644 src/utils/cssVariables.ts create mode 100644 src/utils/downloadFile.ts delete mode 100644 src/utils/saveFile.ts create mode 100644 src/utils/svgToPNG.ts diff --git a/src/app/components/base/context-menu/ContextMenu.vue b/src/app/components/base/context-menu/ContextMenu.vue index d2f29161..4a0eb360 100644 --- a/src/app/components/base/context-menu/ContextMenu.vue +++ b/src/app/components/base/context-menu/ContextMenu.vue @@ -1,4 +1,5 @@