connections.points Array

Sets the intermediate points (in global coordinates) of the connection. These points cannot be manipulated by user action.

Example - setting intermediate connection points

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes:[
      {
        id:"1",
        content:{
          text: "State 1"
        },
        x: 20,
        y: 20
      },
      {
        id:"2",
        content: {
          text: "State 2"
        },
        x: 300,
        y: 20
      }
    ],
    connections:[
      {
        from: "1",
        to: "2",
        points: [
          {x: 150, y: 20},
          {x: 270, y: 20}
        ]
      }
    ],
    connectionDefaults: {
      type: "polyline"
    }
  });
</script>

connections.points.x Number

Sets the X coordinate of the intermediate point.

connections.points.y Number

Sets the Y coordinate of the intermediate point.

In this article
Not finding the help you need?