mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix RTL text direction rendering (#1687)
Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
parent
fd75b88bd3
commit
a118bed82f
4 changed files with 41 additions and 10 deletions
|
@ -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;
|
||||
},
|
||||
) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue