From c22fd05c83e50fe55a2f156a32122e94b22b0829 Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Wed, 9 Oct 2024 15:03:18 +0200 Subject: [PATCH] fix: whitelist some SVG attributes needed by the single value visualization This fixes an issue in client-side PDF exports --- src/visualizations/config/generators/highcharts/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/visualizations/config/generators/highcharts/index.js b/src/visualizations/config/generators/highcharts/index.js index 731905aaf..2adca1763 100644 --- a/src/visualizations/config/generators/highcharts/index.js +++ b/src/visualizations/config/generators/highcharts/index.js @@ -16,6 +16,10 @@ HOE(H) HPF(H) HB(H) +/* Whitelist some additional SVG attributes here. Without this, + * the PDF export for the SingleValue visualization breaks. */ +H.AST.allowedAttributes.push('fill-rule', 'clip-rule') + function drawLegendSymbolWrap() { const pick = H.pick H.wrap(