we are facing some issue with Connector's annotation style while switching between connector's type.
Here are the steps:
We are using automatic layout while creating diagram.
User might be able to change the coordinates of the nodes which we store in storage on node's position change event (positionChange event)
when we load the diagram , we override node's default position on created event of the diagram.
At any point when we trigger the position change event ,
if (args.state == 'Completed')
store the coordinates ();
rearrange the connectors();
in the rearrangeConnector we switch the connector type to StraightLine and then by Orthogonal(our default type is always Orthogonal)
the reason we are doing this is because on position change connector tend to add a lot of unnecessary segments , therefore by changing it to straightLine and then to Orthogonal it rearranges itself with least segment in Orthogonal type.
Only problem in this approach is the annotation of connector which is supposed to stick to the middle of the connector:
SGShyam G Syncfusion Team April 25, 2023 08:57 AM UTC
We have created a sample in which changed the connector type at runtime. The annotation is positioned correctly in the connector. We could not able to replicate an issue at our end. Could you please share us more details such as modify the below sample or video.