jsplumb创建弯曲连接

时间:2014-07-29 23:30:41

标签: javascript jquery jsplumb connector

我有一个带状态机连接器的图表,

instance.connect(
                               {
                                   source: "estadoDg-1" ,
                                   target: "estadoDg-2" ,
                                   //connector: ["StateMachine", { proximityLimit: 0, curviness: -46 }]
                               });

正如您在图像中看到的那样,绿色连接器是第二个元素的背景, 我想曲线连接器像红线(参考)..

感谢

jsplumb diagram

1 个答案:

答案 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 }]
                               });