vscode-interactive-graphviz icon indicating copy to clipboard operation
vscode-interactive-graphviz copied to clipboard

Is it possible to load stylesheet?

Open zizhengwu opened this issue 2 years ago • 3 comments

For example, vscode-interactive-graphviz doesn't seem to pick up the following stylesheet

digraph {
    stylesheet = "/Users/zizhengwu/Downloads/graphviz-style.css"
}

zizhengwu avatar Jan 12 '23 23:01 zizhengwu

Hi, thanks for this. At the moment loading stylesheets is not possible. We will look into this, but this won't happen any time soon. However, you should be able to use this using the export SVG function. The exported SVG should pick up your CSS file.

bigbug avatar Jan 22 '23 21:01 bigbug

Hi, thanks for this. At the moment loading stylesheets is not possible.

The current effect is this:

图片

I'm very curious about how this effect is achieved in the preview. Is it because it uses a special tool to generate dots?

https://github.com/tintinweb/vscode-interactive-graphviz/blob/1074d8c264b05c9460aeacf1027fc5c61e43ac29/README.md?plain=1#L14

LaoshuBaby avatar Feb 05 '24 07:02 LaoshuBaby

Hi, thanks for this. At the moment loading stylesheets is not possible.

The current effect is this:

图片

I'm very curious about how this effect is achieved in the preview. Is it because it uses a special tool to generate dots?

https://github.com/tintinweb/vscode-interactive-graphviz/blob/1074d8c264b05c9460aeacf1027fc5c61e43ac29/README.md?plain=1#L14

In the preview it is done with inline styles. See available attributes at https://graphviz.org/doc/info/attrs.html

bigbug avatar Feb 05 '24 17:02 bigbug