Similar to the sourcePoint, this gets the coordinates of the target of the Connection independently of its endpoint attachment.


kendo.dataviz.diagram.Point the coordinates of the connection target.

Example - configuring the targetPoint

<button id="getTargetBtn">Get Connection Target Point</button>
<div id="diagram"></div>
  var Shape = kendo.dataviz.diagram.Shape;
  var diagram = $("#diagram").data("kendoDiagram");
  var shape1 = diagram.addShape( new Shape({ x: 100, y: 100 }));
  var shape2 = diagram.addShape( new Shape({ x: 300, y: 180 }));

  var connection = new kendo.dataviz.diagram.Connection(shape1, shape2, {
    fromConnector: "left",
    type: "cascading",
    selectable: false


  $("#getTargetBtn").on("click", function(){
    var connection = diagram.connections[0];
    var point = connection.targetPoint();
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("Connection target point: x = " + point.x + "; y = " + point.y);
In this article
Not finding the help you need? Improve this article