Hello.
There is a bug with diagram.addConnection();
I followed the sample in this page (https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/methods/addconnection), and I'm getting an error when clicking on the connection.
I created a Dojo snippet (https://dojo.telerik.com/eluKEMOn) and you can reproduce the bug by
1. Clicking the Run button.
2. Clicking the connection that connects the shapes.
This generates an Uncaught TypeError: Cannot read property 'tools' of undefined, and this messes up the diagram.
Is there a workaround to this? I need to add connections after the diagram is initialized.
And addShape() takes both kendo.dataviz.diagram.Shape() and a plan object like this.
{ id: "2", content: { text: "State 2" }, x: 300, y: 20}But addConnection only takes kendo.dataviz.diagram.Connection().
Do you have any plans to accept a pure javascript object for addConnection()?
Attached is the screenshot of an error produced by the Dojo snippet.
Thank you!

