You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this code to save element as png. It works well on all browsers except when Safari is zoomed in. Some elements tend to shift while downloading in such a case.
Is there something I'm doing wrong?
No error in console.
Browsers
Safari version 17.5
The text was updated successfully, but these errors were encountered:
Code
let chart_data = await domtoimage.toPng(document.getElementById('chart'),
{
width: clientwidth,
height: container.clientHeight * scale,
filter: (node: Node) => node !== action1 && node !== action2 && node !== action3 && node !== action4 && node !== action5 && node !== action7,
style: {
transform: 'scale(' + scale + ')'
}
}
);
saveAs(chart_data, chartName + '.png');
Expected Image
Safari image
Issue
I use this code to save element as png. It works well on all browsers except when Safari is zoomed in. Some elements tend to shift while downloading in such a case.
Is there something I'm doing wrong?
No error in console.
Browsers
Safari version 17.5
The text was updated successfully, but these errors were encountered: