Skip to content

Commit

Permalink
fix: whitelist some SVG attributes needed by the single value visuali…
Browse files Browse the repository at this point in the history
…zation

This fixes an issue in client-side PDF exports
  • Loading branch information
HendrikThePendric committed Oct 9, 2024
1 parent f95bee8 commit c22fd05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/visualizations/config/generators/highcharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c22fd05

Please sign in to comment.