This is a migrated thread and some comments may be shown as answers.

Connecting to centre connectors

1 Answer 87 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
Veteran
John asked on 14 Oct 2020, 09:31 AM

I would like all connections made to shapes to use ONLY the centre connector.

In the javascript code I use the diagram.connect method to connect the shapes; I did see an example of the use shape.getConnector method but cannot find any documentation on this. But I felt by doing something like....

 

diagram.connect(shape1.getConnector('middle'),shape2.getConnector('middle')

 

Should actually do what I wanted but using the key word 'middle' or 'center' did not work. Any help appreciated.

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 16 Oct 2020, 07:30 AM

Hi John,

The documentation article for the getConnector method of the shape of the Kendo UI Diagram can be found here:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/diagram/shape/methods/getconnector

Also, the connect method of the diagram uses three parameters , and the only option to make use of custom connections is to set manually the coordinates of the endpoints:

It is important to point out that the available options for the connectors are "top", "bottom", "left" and "right". 

 

Kind regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Diagram
Asked by
John
Top achievements
Rank 1
Veteran
Answers by
Tsvetomir
Telerik team
Share this question
or