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

Set cluster CSS class #420

Open
IlyaSemenov opened this issue Feb 1, 2021 · 0 comments
Open

Set cluster CSS class #420

IlyaSemenov opened this issue Feb 1, 2021 · 0 comments

Comments

@IlyaSemenov
Copy link

I think it makes sense to allow to set cluster CSS class names, the same way as it works for leaf nodes.

For instance, for leaf nodes, this works:

graph.setNode(`node`, { class: "state-text" })

and generates <g class="node state-text" ....

However, for clusters, it generates <g class="cluster" ... so one can't use CSS to style clusters.

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

No branches or pull requests

1 participant