shapes.connectorDefaults Object

Defines default options for all connectors belonging to a given shape.

Example - customizing the connectors of a Diagram shape

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      id: "1",
      x: 20,
      y: 40,
      content: {
        text: "Monday"
      },
      connectorDefaults: {
        width: 10,
        height: 10,
        fill: {
          color: "blue",
          opacity: 0.5
        },
        stroke: {
          width: 2,
          color: "lightgreen"
        },
        hover: {
          fill: {
            color: "yellow"
          },
          stroke: {
            color: "lightgreen"
          }
        }
      }
    }, {
      id: "2",
      x: 200,
      y: 40,
      content: {
        text: "Tuesday"
      }
    }, {
      id: "3",
      x: 380,
      y: 200,
      content: {
        text: "Wednesday"
      }
    }],
    connections: [{
      from: "1",
      to: "2"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>
In this article