gpt4 book ai didi

graphviz - 如何设置圆形节点样式的半径?

转载 作者:行者123 更新时间:2023-12-04 13:20:20 24 4
gpt4 key购买 nike

我有一个带有圆形节点的图。我怎样才能影响圆角的半径?或者我是否需要接受固定的graphviz设置?确切的默认设置是什么?

digraph G { 
node [shape=rectangle style=rounded]
}

提前谢谢了!

最佳答案

对不起的家伙,我有同样的铅。
查看源代码......它被硬编码为 12 !

shape.c#18 => #define RBCONST 12

没有办法改变它。
唯一的方法是修改生成的svg:

  • 不要再使用舍入
  • 找到:
  • <polygon fill="#8a2be2" stroke="#8a2be2" points="194,-344 140,-344 140,-308 194,-308 194,-344"></polygon>
  • 替换为:
  • <rect x="140" y="-344" rx="5" ry="5" width="54" height="36" style="fill: rgb(181, 157, 224);stroke: rgb(138, 43, 226);stroke-width: 1px;opacity: 1;"></rect>

    关于graphviz - 如何设置圆形节点样式的半径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53726454/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com