Query |
Response | |
I was either going to add multiple annotations to show multiple labels, the other solution was to have the diagram not overlay nodes or connections on top of each other. |
To avoid overlapping of connectors on the nodes, you can use our LineRouting feature.
To enable line routing, please enable diagram constraints LineRouting along with Default constraints. Also you need to inject LineRouting. Please refer to an code example below.
Code example:
Online sample:
| |
Is there a layout or node shape that I can use to indicate a node can have multiple connections to another node but each is visualized separately? |
We don’t have option to avoid Connector Overlapping while multiple connectors connected to Node. We have logged “Line Distribution Support” as a feature and you can track the status of the feature from the below link.
Feedback link:
However you can use ports to achieve your requirement. Please refer to a help documentation and online sample link below.
Help documentation: https://ej2.syncfusion.com/react/documentation/diagram/ports/?no-cache=1
|
I see LineDistribution has been added as a package, but this appears to only stop connectors from overlapping nodes. Is there any update on when it will be possible to stop connectors from overlapping each other on a Complex Hierarchical Diagram?
Thanks,
Shane F
We created a sample to achieve your requirements. To prevent connector overlapping ,use layout connectionPointOrigin property as DifferentPoint
Code snippet:
layout= { { type: 'ComplexHierarchicalTree', connectionPointOrigin: ConnectionPointOrigin.DifferentPoint, horizontalSpacing: 40, verticalSpacing: 40, orientation: 'TopToBottom', margin: { left: 10, right: 0, top: 50, bottom: 0 }, } } |
Sample:
https://stackblitz.com/edit/react-wo2rmd?file=index.js,package.json