position
Gets the position of the Connector.
Returns
kendo.dataviz.diagram.Point the current position of the connector.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [{
id: "1",
content: "Shape 1",
x: 100,
y: 100
}, {
id: "2",
content: "Shape 2",
x: 300,
y: 100
}],
connections: [{
from: "1",
to: "2"
}]
});
var diagram = $("#diagram").data("kendoDiagram");
var shape = diagram.shapes[0];
var connector = shape.connectors[0];
// Get the connector's position
var position = connector.position();
console.log("Connector position - X:", position.x, "Y:", position.y);
</script>
In this article