-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add plugin to fix nonASCII font bug and combine pdf export bugfi…
…x plugins
- Loading branch information
1 parent
ef76866
commit 69164e6
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import nonASCIIFontBugfix from './nonASCIIFont.js' | ||
import textShadowBugFix from './textShadow.js' | ||
|
||
export default function (H) { | ||
textShadowBugFix(H) | ||
nonASCIIFontBugfix(H) | ||
} |
9 changes: 9 additions & 0 deletions
9
src/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/nonASCIIFont.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* This is a workaround for https://github.com/highcharts/highcharts/issues/22008 | ||
* We add some transparent text in a non-ASCII script to the chart to prevent | ||
* the chart from being exported in a serif font */ | ||
|
||
export default function (H) { | ||
H.addEvent(H.Chart, 'load', function () { | ||
this.renderer.text('모', 20, 20).attr({ opacity: 0 }).add() | ||
}) | ||
} |
File renamed without changes.