This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
Export with canvas padding? #539
Unanswered
Rodeoclash
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the SVG export of TLDraw to capture an SVG of drawing. The trouble is, TLDraw will automatically crop the dimensions of the exported SVG to match the boundaries of the drawing. In my app, the "whitespace" i.e. original dimensions of the canvas is useful to have for when I'm resizing the image. I'll explain:
Here is an original drawing in my app at 1624 x 914 pixels. When exported, I get the following:
You can see that this image is now 968 x 855 pixels, i.e. almost square.
Does anyone know how I might go about preserving the original dimensions of the export? Hopefully an option I've missed somewhere (although I can't see anything in the source code for this).
I'm open to other workarounds if people have ideas too, perhaps something around capturing the offset of the camera?
Beta Was this translation helpful? Give feedback.
All reactions