Replies: 0 comments 2 replies
-
After a quick investigation, it looks like it's currently impossible to generate a SVG from a Overall I think it'd be great if tldraw could generate the SVG independently from rendering the complete editor. I think it can be quite common to use the editor to edit, store the document and wanting to render it as a quick image somewhere. |
Beta Was this translation helpful? Give feedback.
-
I'm playing with using tldraw for a project, it's great! 🎉
I'm blocked when trying to render a saved TDDocument json into a SVG without rendering the whole
<Tldraw />
component.I've tried:
But it doesn't seem to work and return an almost empty SVG. It also tries to copy to the clipboard.
What is the best way to implement this
documentToSVG
in a browser environment (no server-side rendering) but without rendering<Tldraw />
?Beta Was this translation helpful? Give feedback.
All reactions