我有一个带状态机连接器的图表,
instance.connect(
{
source: "estadoDg-1" ,
target: "estadoDg-2" ,
//connector: ["StateMachine", { proximityLimit: 0, curviness: -46 }]
});
正如您在图像中看到的那样,绿色连接器是第二个元素的背景, 我想曲线连接器像红线(参考)..
感谢
答案 0 :(得分:4)
好 它不是最佳解决方案,但我得到了一种渴望结果的方法
instance.connect(
{
source: "estadoDg-" + datos[i].idEtapa,
target: "estadoDg-" + datos[j].idEtapa,
connector: ["Bezier", { curviness: 30 }]
//connector: ["StateMachine", { proximityLimit: 0, curviness: -46 }]
//connector: ["Flowchart", { minStubLength: 40 }]
});