Last active
August 4, 2024 10:29
-
-
Save sverweij/93e324f67310f66a8f5da5c2abe94682 to your computer and use it in GitHub Desktop.
Highlight an edge in a graphviz generated svg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- slap this somewhere at the top --> | |
<style> | |
/* the lines within the edges */ | |
.edge:active path, | |
.edge:hover path { | |
stroke: fuchsia; | |
stroke-width: 3; | |
stroke-opacity: 1; | |
} | |
/* arrows are typically drawn with a polygon */ | |
.edge:active polygon, | |
.edge:hover polygon { | |
stroke: fuchsia; | |
stroke-width: 3; | |
fill: fuchsia; | |
stroke-opacity: 1; | |
fill-opacity: 1; | |
} | |
/* If you happen to have text and want to color that as well... */ | |
.edge:active text, | |
.edge:hover text { | |
fill: fuchsia; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@sverweij It works, thank you for sharing that!