prismaliser icon indicating copy to clipboard operation
prismaliser copied to clipboard

Feature to export the preview as image

Open lallenfrancisl opened this issue 3 years ago • 1 comments

It would be really nice if we could export the preview as an image. This could have usecases where we want to store it as documentation or include it in a website

lallenfrancisl avatar Jan 12 '22 09:01 lallenfrancisl

Definitely would be cool to have, a good idea. React Flow (the graph lib I'm using) doesn't seem to have a screenshot capability. However I notice monkeytype seems to take a screenshot of the results element (it changes temporarily to match what it has in the screenshot, before reverting back), so I'll do some digging to see if I can pull it off and implement something similar here.

Ovyerus avatar Jan 31 '22 11:01 Ovyerus

Have you I saw @dravorle added the screenshot functionality. Is this something that's coming to the hosted version anytime soon?

guatedude2 avatar Jan 21 '23 01:01 guatedude2

Yes I'll be getting it out to the hosted version as soon as I can. Noticed some weirdness with it (flow not going back to its normal size, and weird output size) during some testing yesterday though so I'm going to be changing some parts of it to try and fix it.

Ovyerus avatar Jan 21 '23 02:01 Ovyerus

Just tested it and somehow there are really quite a few weird things with it now. It might be due to the update to react flow 11, as I have not worked with that version when writing it.

Sorry for the complications!

dravorle avatar Jan 21 '23 17:01 dravorle

No worries, it was good to get the ball rolling at least.

Ovyerus avatar Jan 21 '23 23:01 Ovyerus