Skip to content
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

Is it possible to load stylesheet? #147

Open
zizhengwu opened this issue Jan 12, 2023 · 3 comments
Open

Is it possible to load stylesheet? #147

zizhengwu opened this issue Jan 12, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@zizhengwu
Copy link

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

digraph {
    stylesheet = "/Users/zizhengwu/Downloads/graphviz-style.css"
}
@bigbug bigbug added the enhancement New feature or request label Jan 22, 2023
@bigbug
Copy link
Collaborator

bigbug commented Jan 22, 2023

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.

@LaoshuBaby
Copy link

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?

![graphviz_v01](https://user-images.githubusercontent.com/2865694/151164049-9c89e167-d0c1-43eb-ae96-0f5004847bde.gif)

@bigbug
Copy link
Collaborator

bigbug commented Feb 5, 2024

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?

![graphviz_v01](https://user-images.githubusercontent.com/2865694/151164049-9c89e167-d0c1-43eb-ae96-0f5004847bde.gif)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants