Skip to content
Snippets Groups Projects
Unverified Commit 763ebb74 authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Fix exported png got different backgrounds based on screen density (#46769)

parent e2bcdb14
Branches
Tags
No related merge requests found
......@@ -28,6 +28,7 @@ export const saveChartImage = async (selector: string, fileName: string) => {
const { default: html2canvas } = await import("html2canvas-pro");
const canvas = await html2canvas(node, {
scale: 2,
useCORS: true,
onclone: (doc: Document, node: HTMLElement) => {
node.classList.add(SAVING_DOM_IMAGE_CLASS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment