jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

Print the ENTIRE flow #747

Open nbar10 opened 11 months ago

nbar10 commented 11 months ago

I have looked at the previous solutions for saving the entire flow but i can't find a solution that will print every item, even if it is out of sight. The image itself looks like it might be the correct size, but it isn't complete. I have attached an image as an example. Any ideas would be much appreciated? drawflow (1)

jerosoler commented 11 months ago

Try: https://github.com/bubkoo/html-to-image

react flow uses this library to output the image. On their demo page you can see how they have to calculate the position and zoom before downloading the image. You would have to replicate the example but in drawflow.

View example: https://reactflow.dev/docs/examples/misc/download-image/

nbar10 commented 11 months ago

Thanks, i'll look in to it.