jothepro / doxygen-awesome-css

Custom CSS theme for doxygen html-documentation with lots of customization parameters.
https://jothepro.github.io/doxygen-awesome-css/
MIT License
952 stars 108 forks source link

dot/GraphViz diagrams are cut off #46

Open define-private-public opened 2 years ago

define-private-public commented 2 years ago

I recently upgraded to v1.6.0 (thanks for the project BTW). I use dot toe generate collaboration diagrams which are then placed in the docs. This is how they look. The first diagram is cut off to the right.

bad_graph_viz

jothepro commented 2 years ago

Hm, can you provide me some information on how I can reproduce that? Is the documentation publicly available so I can have a look at it? 🤔

define-private-public commented 2 years ago

Unfortunately this is a private project. I do have a public one up and I was able to reproduce this when making the window's width smaller. The project is here: https://github.com/define-private-public/PSRayTracing

With my doxygen file here: https://pastebin.com/5v26jcJJ place that in the root of the repo, as well as doxygen-awesome.css. Then run Doxygen with dot/Graphviz installed. If you then open up the source and navigate to cxxopts::values Namespace reference page there should be some diagrams. Then when making the window less wide, it should start to cut off the graphs.

What's interesting is that there are already some larger graphs, But doxygen add a sort of "pan-zoom" tool for them.

2bndy5 commented 2 years ago

What's interesting is that there are already some larger graphs, But doxygen add a sort of "pan-zoom" tool for them.

This is because your Doxyfile has

# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
# enable generation of interactive SVG images that allow zooming and panning.
#
# Note that this requires a modern browser other than Internet Explorer. Tested
# and working are Firefox, Chrome, Safari, and Opera.
# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
# the SVG files visible. Older versions of IE do not have SVG support.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

INTERACTIVE_SVG        = YES