Open IlyaSemenov opened 3 years ago
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" ....
<g class="node state-text" ...
However, for clusters, it generates <g class="cluster" ... so one can't use CSS to style clusters.
<g class="cluster" ...
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:
and generates
<g class="node state-text" ...
.However, for clusters, it generates
<g class="cluster" ...
so one can't use CSS to style clusters.