tldraw
tldraw copied to clipboard
[Example Request]: Export Custom shape as Image
What's the example?
As explained in the title, we have examples for custom shapes but what we are missing in the sample I visited( #Sample 1, #Sample 2) are we are not able to export the custom component as image. It download blank component.
https://tldraw.dev/examples/shapes/tools/interactive-shape https://tldraw.dev/examples/shapes/tools/custom-shape
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hey! We now have an example of how to do an export. You have to override the toSvg method. You can see it here.
(for now just on the staging version of docs)
Thanks for the example. But still we are unable to make it possible. Can you make the changes in #this example ?