nikeee / edotor.net

Your favourite Graphviz editor
https://edotor.net
MIT License
176 stars 21 forks source link

Fix sharing large DOT scripts #24

Open nikeee opened 4 years ago

nikeee commented 4 years ago

Currently, they are not passed to any server. This way, we can host this on a static site.

If we'd upload the script to some server, we could potentially store a large graph. We wouldn't run into size limitations of URLs.

We should consider this solution.

IfZen commented 4 years ago

HI Just my 2 cents :

Here is a large width digraph that causes issues (maybe not what this thread means though): Actually the digraph is not large enough so that we can think it could cause issue... The render is actually fine online on edotor but when downloading PNG file, a part of graph is completely cropped. About 66% of the image width (at right) seems missing. There is no warning in console in chrome (when graph was even larger).

If I reduce size of edge's label (for example by setting them all to "A"), everywhere goes fine.

large_width_digraph.txt cropped_result_when_exporting

nikeee commented 4 years ago

Thansk for reporting! I created a new issue for that problem as #31.