-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make graphviz svg interactive #858
Conversation
Very nice! |
What about the scale modification? (2nd commit) |
Fine by me. |
33b01b4
to
11f4d0c
Compare
Actually in the new version it's less ugly. Without onload I can insert the javascript near the bottom which is easier, and separate the scaling of width and height entirely (no longer confined to svg attributes, but it's probably ok) (edit: restored confinement to svg attributes) |
308a004
to
659a660
Compare
This patch inserts a javascript snippet into generated svg graphs to make nodes and edges highlightable in capable viewers (such as a web browser).
This patch modifies the width and height parameters of the graphviz generated svg image in order to scale it down to 2/3 the original size. This avoids having to scale the image via the browser which may affect other tabs as well. Sadly it does not seem possible to instruct the dot executable to generate an image at the desired scale directly. The regular expression that is used instead is fairly sensitive to the generated xml, but that is acceptable given that the only risk is to leave the svg at its original scale.
659a660
to
ad33d53
Compare
No description provided.