shapekendo.dataviz.diagram.Shape
The Shape that owns 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 shape that owns this connector
console.log("Parent shape:", connector.shape);
console.log("Shape content:", connector.shape.content);
</script>
In this article