doxygen-awesome-css icon indicating copy to clipboard operation
doxygen-awesome-css copied to clipboard

dot/GraphViz diagrams are cut off

Open define-private-public opened this issue 4 years ago • 3 comments

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

define-private-public avatar Sep 26 '21 17:09 define-private-public

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? 🤔

jothepro avatar Sep 26 '21 17:09 jothepro

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.

define-private-public avatar Sep 26 '21 20:09 define-private-public

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

2bndy5 avatar Jan 01 '22 19:01 2bndy5