jsPlumb: how to make Flowchart connectors avoid intersecting elements?

后端 未结 4 1577
一整个雨季
一整个雨季 2021-01-31 19:33

Is it possible to make jsPlumb Flowchart connectors not to cross connectable items or specified elements (in the example: elements with \'item\' class)?

Default Flowchar

4条回答
  •  暖寄归人
    2021-01-31 19:41

    I just had a similar problem, where connections of a dynamically generated diagram intersected with elements.

    What worked for me was to specify the "midpoint" argument for the Flowchart connection. Maybe this helps in you case as well.

    The stub argument also accepts arrays (not in documentation). I just set:

    jsPlumb.Defaults.Connector = [ "Flowchart", { stub: [10, 50], midpoint: 0.0001 } ];

    Hope this helps!

提交回复
热议问题