Skip to content

Commit f2d5b6f

Browse files
committed
graphviz: make the diagrams' background transparent by default
No need to set a background color, is there? Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a7cac47 commit f2d5b6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/js/application.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ var Graphviz = {
789789
if (!vizInstance) vizInstance = await Viz.instance()
790790
const options = {
791791
format: "svg",
792+
graphAttributes: {
793+
bgcolor: "transparent",
794+
},
792795
}
793796
const svg = vizInstance.renderString(x.innerText, options)
794797
const img = document.createElement('img')

0 commit comments

Comments
 (0)