Fix RTL text direction rendering (#1687)
Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
@ -32,6 +32,8 @@ export const exportToCanvas = (
|
||||
const tempCanvas = document.createElement("canvas");
|
||||
tempCanvas.width = width * scale;
|
||||
tempCanvas.height = height * scale;
|
||||
// We append the canvas before drawing it to it for RTL to work
|
||||
document.body.appendChild(tempCanvas);
|
||||
return tempCanvas;
|
||||
},
|
||||
) => {
|
||||
|
Reference in New Issue
Block a user