connectors Array
The connectors defined on this shape.
Example - accessing the shape connectors
<div id="diagram"></div>
<script>
var Shape = kendo.dataviz.diagram.Shape;
$("#diagram").kendoDiagram();
var diagram = $("#diagram").data("kendoDiagram");
var shape = new Shape({
id: 1,
x: 20,
y: 20,
fill: "#c0f0fc",
connectors: [
{
name: "top"
},
{
name: "Upstream",
position: function(shp) {
return shp._transformPoint(shp.bounds().bottomRight());
}
}]
});
diagram.addShape(shape);
var connectors = shape.connectors;
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("Shape has " + connectors.length + " connectors.");
</script>