dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.85k stars 587 forks source link

Cannot set rounded corners on cluster nodes #396

Open sonntam opened 4 years ago

sonntam commented 4 years ago

Setting the .rx and .ry rounded corner properties on rectangular cluster nodes has no effect.

I'll prepare a pull request to fix this.

cyrilis commented 3 years ago

I run into same issue, and I resolved with this:

g.setNode(group.id, {
  label: group.name,
  clusterLabelPos: 'top',
  style: 'fill: #d3d7e8; rx: 3; ry: 3;'
})

Hope this helps.